Commit Graph

16037 Commits

Author SHA1 Message Date
Tony Murray
b5714820de
Improved Exception handling (#9844)
* Update LibreNMS exception output
Use built-in laravel exception rendering.
DuskUnsafeExcpetion is triggered before Blade(view) is booted, so, try to boot it

* Cleaner blade registration

* Change 500 error page to generic LibreNMS error page.

* Handle generic exceptions from laravel better.

* Custome LdapMissingException

* Cleanup, don't need to override convertExceptionToResponse anymore

* Update unauthenticated code to current upstream style

* UpgradableException interface

* LdapMissingException extend AuthenticationException

* Code climate cleanups

* Fix code style
2019-02-21 12:08:35 -06:00
Tony Murray
fffd468c2d
Email should be options in lnms user:add command (#9841) 2019-02-21 11:05:49 -06:00
PipoCanaja
e2f835ad9d
FDB table with history capabilities (#9804)
* Migration script and data feeding

* Adding the columns in the GUI

* build schema

* update FDB test data

* Use of timestamps()

* ignore created_at and updated_at in tests, and regenerate test impacted

* daily.sh does the cleaning

* space cleaning codeclimate

* Use carbon instead of str-val

* handle when $fdb_entry->updated_at and created at are null

* handle when $fdb_entry->updated_at and created at are null (force travis rerun)

* Doc update

* Doc update
2019-02-21 13:23:01 +01:00
Kevin Krumm
c892f4fc85 docs: Readme update the bug report link (#9850)
report link to the Community site.
2019-02-21 13:16:19 +01:00
jozefrebjak
2eac72d34b Added support for Protelevision DVB-T Transmitter (#9648)
* Create protelevision-t1.yaml

* Create protelevision-t1.yaml

* Create PT-MIB

* Create PT3080-MIB

* Add files via upload

* Create protelevision-t1.snmprec

* Create protelevision-t1.json

* Create protelevision-t1.inc.php

* Add files via upload

* Delete protelevision.png

* added indexes to dbm sensors

* Update protelevision-t1.yaml

* added On Air TS Bitrate

* Update protelevision-t1.yaml

* added more sensors

* Update ProtelevisionT1.php

* Update protelevision-t1.yaml

* Update protelevision-t1.yaml

* Update protelevision-t1.yaml

* Update protelevision-t1.snmprec

* Update protelevision-t1.json

* Update protelevision-t1.yaml

* Update protelevision-t1.snmprec

* Update protelevision-t1.json

* added more sensors and grouping of state sensors

* Add files via upload

* Update protelevision-t1.json

* Update protelevision-t1.json

* Update protelevision-t1.snmprec

* Update protelevision-t1.yaml

* Update protelevision-t1.json

* Update protelevision-t1.json
2019-02-19 00:39:16 -06:00
Tony Murray
0a56fc4694
Restore alert template converter for a while longer (#9845) 2019-02-19 00:33:51 -06:00
TylerSweet
06d61fc528 For some reason, this is now broken. Accessing the array this way fixes it. I suspect it has something to do with the periods in the host names (#9839) 2019-02-18 22:57:33 -06:00
TheGreatDoc
b8a9e53b13
Merge pull request #9840 from murrant/remove-dd-ripe
Remove accidentally left in dd()
2019-02-18 19:26:21 +01:00
Tony Murray
478c1a6070 Remove accidentally left in dd() 2019-02-18 11:48:01 -06:00
PipoCanaja
cc08235fe2 Netscaler SDWAN appliance - Serial# + Version and state sensors (#9834)
* mib

* versions and serial

* sensors

* sensors

* tests

* cleaning

* (force travis rerun)
2019-02-18 10:16:40 -06:00
KodApa85
9dba9f6265 Netgear m5300 health sensors (#9744)
* ZyXEL XGS4600-32F
- Added mib for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage
- Updated zyxel group mempools
- Updated test data
    - snmprec
    - json
- Altered ZyWall
    - To exclude XGS switches

* Defined ZYXEL-HW-MONITOR-MIB at the top of file

* Removed .MIB

* Netgear M5300
- Added mibs for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage

* Netgear M5300
- Added mibs for diagnostics
    - CPU/Mem
    - Temp/Fan/Voltage

* Create netgear.json
2019-02-17 20:07:13 -06:00
Søren Rosiak
ae7e2621f6 Fix Junos CPU Discovery (#9467)
* Fix SRX processor description..

* Add hacky mode to identify which CPUs to poll

* Create junos_srx3600.json

* update EX test data
2019-02-16 08:01:32 -06:00
Marc
fcb0b67714 Additional TPLink JetStream mem/cpu support (#9829)
* newdevice: Additional TPLink JetStream support
Added: T1700G-28TQ, T1600G-16TS
Updated: T1600G-28TQ to use cpu/mem

* Create jetstream_t1600g-18ts.json
2019-02-15 21:33:30 -06:00
djamp42
e572d2a144 Ruckus Wireless updates (ZD/SZ/Unleashed/Hotzone) (#9727)
* Fixes for SZ detection

* Ruckuswireless devices

* remove registered mibs

* Code Climate Fixes

* updated test data for zd1100 & zd1200

* Updated database test data

* trying to fix smartzone test data

* updating zd test data

* more code climate fixes

* Update ruckuswireless-unleashed.yaml

* hide total clients if 1 ssid

* fixing smartzone ap status

* smartzone ap count fixes

* fixes because of git

* fix zd ap counts

* Update ruckuswireless-sz.json

* Update ZD1200 test Data

* Update ruckuswireless-sz.snmprec

* Update Database test data

* Update zd1200 database data

* Update ruckuswireless_zd1100.snmprec

* Update ruckuswireless_zd1100.json

* Update ruckuswireless_zd1100.json

* Update ruckuswireless_zd1100.json

* Code Climate Fixes

* Code Climate Fixes

* Update Ruckuswireless.php

* Code Format Fixes
2019-02-15 21:32:44 -06:00
tharbakim
4f7a71c09f Update Templates.md (#9833) 2019-02-15 12:31:07 -06:00
dsmfool
4504b20468 Updated JumpCloud authentication example (#9722)
* Updated JumpCloud authentication example

Updated JumpCloud authentication example.  Relevant Community Support Thread: https://community.librenms.org/t/ldap-with-jumpcloud/6883

* Updated JumpCloud authentication example.

Updated JumpCloud authentication example in accordance with @murrant review.
2019-02-15 09:02:17 -06:00
Tony Murray
a4b79d3339
lnms user:add command (#9830)
* Add lnms user:add command
Uses events to mark past notifications as read (even for non-manually added users)

* Filter out previous options from auto-completion

* use validation to check cli input

* Warn if using other auth

* abstract LnmsCommand

* Use setPassword helper for hashing instead of mutator

* Extract validation function
2019-02-15 09:00:07 -06:00
SirMaple
a41f1d9608 Updating pfSense Logo (#9828)
* Update pfsense.json

* Delete pfsense.svg

* Add files via upload

* Create pfsense.svg

* Create pfsense.svg

* Update pfsense.json

* Delete pfsense.png
2019-02-15 08:44:51 -06:00
TheGreatDoc
6ea0e72d73 MAIPU MyPowerOS: CPU, Memory, expanded detection (#9825)
* New OS: MAIPU MyPowerOS

* fix file permissions
2019-02-15 08:02:06 -06:00
Neil Lathwood
5d74839139 Removed legacy transports and templates code (#9646)
* Removed legacy transports and templates code

* Add notification

* abstract LnmsCommand

* Only issue alerts "legacy" alerts to mail for default contacts, etc.

* Prevent no contacts error when default contact is not specified, or there are no contacts for other reasons.

* remove eval \o/

* Update notifications.rss
2019-02-15 07:58:59 -06:00
TheGreatDoc
0835d8899e Change minimum PHP version in install docs (#9820)
* Change minimum PHP version in install docs
2019-02-15 12:05:22 +01:00
Felicián Hoppál
942dc65122 Update to PHPMailer 6.0 (PHP 7.3 support) (#9818) 2019-02-15 00:53:41 -06:00
Tony Murray
63de34e295
php artisan serve and dusk testing (#9422)
* php artisan serve and dusk testing

* Fix style

* move if into, in case we need to have different configs

* fix travis yml

* Add missing folders files

* Try to fixup Travis-ci

* revert variable, change check

* skip browser tests for phpunit runs
set up env correctly

* maybe bg is needed

* attempt to fix env

* install Chrome

* Update tests
fix migrations

* Move pylint to python2

* use testing .env

* Running chrome on port 9515 conflicts with the instance started by the tests.  It is probably not needed.

* suppress some artisan serve output

* remove the unused updater
2019-02-14 09:06:10 -06:00
Tony Murray
108348e93f
Fix logging too much (#9824)
* Fix logging
Also mark all the files in config as non-editable

* Set the proper default logging levels
2019-02-14 08:08:38 -06:00
Tony Murray
0b802d6571
Fix for failed sql query during db dump (#9815) 2019-02-13 13:19:45 -06:00
Tony Murray
3f1489bd0f
Expand Cyberpower OS detection (#9802) 2019-02-13 10:25:59 -06:00
mhzgh
f7ae5e3cff Install docs, note proxy config (#9720)
* Update Installation-Ubuntu-1804-Apache.md

As discussed here:
https://github.com/librenms/librenms/issues/9709

* Update Installation-Ubuntu-1804-Apache.md

* Update Installation-Ubuntu-1804-Apache.md

* Update Installation-Ubuntu-1804-Apache.md

* Update Installation-Ubuntu-1804-Nginx.md

* Update Installation-Ubuntu-1604-Nginx.md

* Update Installation-Ubuntu-1604-Apache.md

* Update Installation-Ubuntu-1404-Nginx.md

* Update Installation-Ubuntu-1404-Lighttpd.md

* Update Installation-Ubuntu-1404-Apache.md

* Update Installation-CentOS-7-Nginx.md

* Update Installation-CentOS-7-Apache.md

* Update Installation-CentOS-6-Apache-Nginx.md
2019-02-13 10:13:33 -06:00
Tony Murray
5f0015ab8b
Fix cisco component alert macro (#9805) 2019-02-13 10:10:04 -06:00
Tony Murray
d23ab06938
Add osmc icon (#9810) 2019-02-13 09:31:35 -06:00
TheGreatDoc
9ab4237c28
Merge pull request #9814 from murrant/db-connect-extensions
Check for mysql extensions missing if DB connection fails.
2019-02-13 16:08:04 +01:00
Tony Murray
6bf77b4940
Update index.md 2019-02-13 09:02:25 -06:00
Tony Murray
ebb1569acb
Discard local changes to git based vendor packages (#9813)
Fixes an update issue with the recent dependencies update.
2019-02-13 09:01:05 -06:00
Tony Murray
85a382e015 Check for mysql extensions missing if DB connection fails. 2019-02-13 08:39:48 -06:00
Connor Wolf
9766cad5d0 Fix setup instructions so they actually work (#9731)
I'm walking through installing smokeping, and running into some minor issues in the docs.

Basically: 
 1. Smokeping is a `fastcgi` application, and the config in the docs assumes that you have a fastcgi handler installed (`fastcgi_pass unix:/var/run/fcgiwrap.socket;`). I did not, and you get confusing errors.
2. I'm still not sure where the smokeping stuff is supposed to show up in the UI.
2019-02-12 21:49:09 -06:00
pobradovic08
67d81e68c9 LibreNMS/Alert/Transport/Elasticsearch - Send timestamp with timezone (#9757)
* Send timestamp with timezone

Add timezone to timestamp field, otherwise ES will think it's UTC

* Update Elasticsearch.php
2019-02-12 21:48:12 -06:00
Vitali Kari
d60a0da7de Add support for Nokia ISAM (#9793)
* add mibs,first commit

* adds support for Nokia ISAM Plattform

* remove some comments

* change os polling to multi oid

* Restore file headers

* Fix discovery by sysObjectID

* first deactivate checks against IHUB (timos), It not necessary so long we can not provide more thatn one snmp community per device

* move snmp state and temperature from pre-cache

* Update os_schema.json
2019-02-12 20:23:02 -06:00
Misha Komarovskiy
fe4bd2b338 Update Mattermost transport with configurable author_name (#9759)
Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2019-02-12 18:22:30 -06:00
Tony Murray
2f8964ce27
Recommend InnoDB engine in validation (#9799) 2019-02-12 17:55:52 -06:00
PipoCanaja
1d1962af83 Workaround of bad SNMP implementation in EDS device. (#9801)
* Correcting bad SNMP behaviour

* Correcting bad SNMP behaviour

* change a file to force travis to re-run
2019-02-12 17:54:57 -06:00
paraselene92
5141717e83 fix a link in support document (#9808) 2019-02-12 17:52:55 -06:00
angryp
c0aea751e3 Fixed Alertmanager transport (#9807) 2019-02-12 17:51:20 -06:00
Tony Murray
e18f4522d5
Update to Laravel 5.7 (PHP 7.3 support) (#9800)
* Move assets to 5.7 location

* Add 5.7 SVGs

* add cache data dir

* update QUEUE_DRIVER -> QUEUE_CONNECTION

* Update trusted proxy config

* update composer.json

* 5.5 command loading

* @php and @endphp can't be inline

* Laravel 5.6 logging, Nice!

* Update blade directives

* improved redirects

* remove unneeded service providers

* Improved debugbar loading

* no need to emulate renderable exceptions anymore

* merge updated 5.7 files (WIP)

* Enable CSRF

* database_path() call causes issue in init.php

* fix old testcase name

* generic phpunit 7 fixes

* add missed file_get_contents
Keep migrations table content

* fix duplicate key

* Drop old php versions from travis-ci

* remove hhvm

* fix code climate message

* remove use of deprecated function assertInternalType

* Disable CSRF, we'll enable it separately.
All forms need to be updated to work.

* Update document references
2019-02-12 17:45:04 -06:00
ipptac
25954ccda6 JunOS: Added Virtual Chassis Member Role Sensor (#9783)
* Added Virtual Chassis Member Role Sensor
2019-02-11 21:17:50 +01:00
aylham
cf1701624f Canopsis transport (#9795)
* Change in the Canopsis transport to make it 3.9.0 compliant and link to
the new documentation

* Add missing php72 module on Centos

* Fixing documentation for AMQP based tranport outside of the main doc
2019-02-11 09:46:09 -06:00
PipoCanaja
7e18a07088 FS.COM (Fiberstore) 'GBN' and 'SWITCH' devices support (#9734)
* Basic Support for Fiberstore devices

* Basic Support for Fiberstore devices

* mib files

* sysObjectID added

* mibs added

* MIB corrections + CPU discovery + version and SN

* CodeClimate + mempools

* CodeClimate + mempools

* mempools

* 5800

* testdata

* 5800

* tests

* mempools for 5800

* CodeClimate

* CodeClimate

* Cleaning and comments

* Tests for 5800

* CodeClimate

* Update Fs.php

* init processors[]

* optimized logo

* optimized logo

* optimized logo

* optimized logo

* split FS devices

* split FS devices

* split FS devices - tests

* split FS devices - class

* split FS devices - class

* split FS devices - tests

* removing un-necessry condition

* text and comments
2019-02-10 17:31:25 -06:00
Tony Murray
bc93d8c037
Fix php version notification removal (#9796) 2019-02-08 08:17:02 -06:00
Tony Murray
2310356f60
Fix whitespace (#9798) 2019-02-08 07:57:56 -06:00
PipoCanaja
c7c1ca2c5a Support for DKT Comega FTTx devices (#9732)
* DKT Comega device support

* DKT Comega device support

* DKT Comega device support

* DKT Comega device support
2019-02-07 14:58:56 -06:00
PipoCanaja
ccd9973695 Added support for EDS 1Wire devices (#9740)
* EDS support

* EDS support

* EDS support

* EDS support

* EDS support (tests)

* EDS support

* EDS support

* Adding DS18B20 sensors

* Adding DS18B20 sensors

* read tables separatly in precache instead
2019-02-07 14:16:15 -06:00
mbwall
6d55524484 Ignore disabled ports in minigraph view (#9737) 2019-02-07 13:24:20 -06:00