Commit Graph

17326 Commits

Author SHA1 Message Date
Tony Murray
d5a52ca4eb Fix various issues with loading os definitions (#11640)
* Ping only device doesn't display
if os was set to something, ping os wasn't loaded and we try to get overview graphs from it.

* Fix snmp_disable device page load error
When other os is set.

* Revamp os setting loading
the only safe way to access is Config::getOsSetting()

* Remove getOsSetting fallback behavior
Most instances don't use it and it can have unexpected results Config::getOsSetting('blah', 'group') == 'librenms'

* refactor and remove unneeded load_os/loadOs calls now since getOsSetting automatically loads it.

* restore unix overview graphs, they are different
small cleanups

* fix
2020-05-19 14:35:32 -05:00
Tony Murray
0b68c70a97 Python wrapper sql cleanup (#11628)
* Clean up wrapp mysql connect a bit

* fix typo
2020-05-19 10:14:09 -05:00
Jellyfrog
3985ce74ce Update PHPUnit to 8.x (#11635)
* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Update PHPUnit to 8.x

Part of Laravel 6 upgrade

* Bump php versions

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-19 16:31:50 +02:00
Tony Murray
ee4ae0b2af Fix inconsistent escapes (#11637)
should probably stripslashes() instead
2020-05-19 08:22:57 -05:00
joseUPV
9ac05f48b8 AOS Advanced Support. (#11500)
* Comes from PR11322.

* Code changes to solve github-apply warnings. Removed aos tests.

* Added new aos tests.
2020-05-18 07:50:13 -05:00
KingJ
7bc2f9621a Extend processor polling to Dell Powerconnect N1100 and N1500 series (#11631)
* Extend processor polling to Dell Powerconnect N1100 and N1500 series

* SNMP test data for Dell Powerconnect N1124T-ON

* SNMP test data for Dell Powerconnect N1148T-ON

* SNMP test data for Dell Powerconnect N1524P
2020-05-17 21:15:39 +02:00
Tony Murray
a82cded552 Handle exception about unserializable route cache (#11625)
* Handle exception about unserializable route cache

* description

* Fix whitespace
2020-05-16 22:22:00 -05:00
Tony Murray
f7d77777fc Fix python validation user check (#11626) 2020-05-16 11:33:59 -05:00
PipoCanaja
b9c2f75092 Riedo E3Meter PDU (#11624)
* e3meter

* display

* tests
2020-05-16 10:14:46 +02:00
Cliff Albert
576d155613 gen_rancid.php: support for allied telesis and cisco wlc (#11617)
* allied, radlan, ciscowlc rancid router.db configuration support
allied and radlan represent allied telesis

* tab/spaces
2020-05-15 23:47:36 -05:00
Tony Murray
216f16f159 Validate PHP version mismatch (#11621)
* Validate PHP version mismatch on the web interface

* fixes
2020-05-15 23:44:18 -05:00
SourceDoctor
4edff1e88a Application - Redis (#11612)
* Application - Redis

* Travis fix
2020-05-15 22:05:40 +02:00
SourceDoctor
17698a36f0 Natural Sort Applications by Display Name (#11577)
* Natural Sort Applications by Display Name

* some optimizations

* .
2020-05-15 18:32:09 +02:00
Tony Murray
b90549b316 python wrapper Decode config data output (#11620)
* decode config_data output

* decode config_data output
2020-05-15 10:43:00 -05:00
Ryan Walters
077e6788bf Fixed realtime graph http get spam (#11616) 2020-05-15 08:31:43 -05:00
Tony Murray
ec3dc4f89b Don't use command_runner (#11618) 2020-05-15 08:29:30 -05:00
Orsiris de Jong
1dd0d46edd Migrate Python scripts to Python 3 (#10759)
* Migrate to python3

* Migrate to python3

* Migrate to python3

* Migrate to python3

* Code refactoring and python 2 compat

* Code refactoring and python 2 compat

* Code refactoring and python 2 compat

* Code refactoring and python 2 compat

* Added shared code for wrappers

* Fix python version check

* Allow pure python MySQL library

* move library.py
remove python2 support bits
remove duplicate code

* fix log location

* whitespace?

* fix pre-existing bug

* fix bug when no devices/services exist

* fix pylint issues

* update imports to match

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-15 00:37:34 -05:00
Tony Murray
60c03baf76 fix-install-config (#11614) 2020-05-14 23:25:09 -05:00
Facundo Caselles
2869a33ba5 Update Airos.php to match with Airos 8.x.x (#11400)
* Update Airos.php to match with Airos 8.x.x

Oid changed from AirMaxQuality (not used anymore), to Airtime

* Update Airos.php

* update airos.php to use wirelessUtilization

Using OID for UBNT-AirMMAX-MIB::ubntAirMaxAirtime.1 for wireless sensor utilization.

* Removed Airtime from quality

* Tests

* Update airos.json

* airos.snmprec reverted to previous state, and uploaded airos_airos8.snmprec

* Added airos8 snmprec

* Create airos_airos8.json

* Update airos.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-14 23:14:59 -05:00
Dag Bakke
98d0f5bc1b Improvement for matching LLDP neighbors with known hosts. (#11445)
* Minor addition to find_device_id, such that we match LLDP hosts presenting with FQDN with devices where $hostname + $config['mydomain'] is a match.
This yields clickable links in the neighbor overview.

* Modified to comply with comments in code review
2020-05-14 22:25:41 -05:00
TheGreatDoc
1366bdebaf Added ignored devices to be pinged by smokeping (#11557)
Co-authored-by: Daniel Baeza <d.baeza@tvt-datos.es>
2020-05-14 22:06:18 -05:00
TheGreatDoc
eac6c08ab8 Fix "improper label name" in Prometheus datastore (#11602)
* base64 encode tags with forward slashes "/" in it

* Use of Str::contains and ternary statement

* Like this

* Update Prometheus.php

Co-authored-by: Daniel Baeza <d.baeza@tvt-datos.es>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-14 21:57:18 -05:00
Jellyfrog
ec57d3b669 Run artisan optimize after composer install (#11465)
* Remove unused routes

Prevents route:cache from working also

* Run artisan optimize after composer install

Helps cleaning up issues with upgrades, and also makes laravel a bit
faster

* Update composer.json

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-14 21:10:03 -05:00
lazyb0nes
e87f590232 Update Example-Hardware-Setup.md (#11611)
* Update Example-Hardware-Setup.md

* Update Example-Hardware-Setup.md

* Update Example-Hardware-Setup.md
2020-05-14 21:07:33 -05:00
PipoCanaja
1b05f435ec fix sensor type/class confusion (#11608) 2020-05-14 21:06:50 -05:00
Tony Murray
b573c9ef73 Implement OS specific information discovery (#11446)
* Implement OS specific information discovery
That way it doesn't have to be fetched during polling
Also improve discovery process, os is only detected once, in the core module.
EXA is the test os, a couple improvements there.

* Use local variable, then unset it so we don't pollute.

* fix style issues

* test and other fixes

* attribute update fixes

* Update exa data, need new source data

* null missing "os" values

* fix ftos odd character

* fix ftos odd character

* only null for new style or we will reset to null every discovery

* Move device observer to own class

* Handle location, relocate event logging

* update exa e7-2 data

* update ird test data, apparently unicode is now working.

* update Linux ntc, now uses correct icon

* Only load all os on the web, also, we can't load existing the the database isn't connected.

* only for devices that have a location

* revert ftos test data apparently

* revert ird
2020-05-14 11:27:59 -05:00
Tony Murray
f80ff5266d Fix Papouch detection too generic (#11540) 2020-05-13 23:38:00 -05:00
PipoCanaja
306630a8c8 Filter on sensor class as expected and documented (#11592) 2020-05-13 09:02:30 -05:00
gardar
f62216fdc5 Add missing python3 modules from repo, remove pip (#11594)
* Add missing python3 modules from repo, remove pip

Added missing python3 modules from official debian repos and thus removing the need for pip

* Add python3-setuptools
2020-05-13 08:58:18 -05:00
SourceDoctor
f66b16932a Update requirements.txt (#11600) 2020-05-12 23:11:59 +02:00
PipoCanaja
804bb22a5a Correct options for IBMC version polling (#11587)
* Correct options for version polling

* Update ibmc.json
2020-05-12 16:09:18 -05:00
PipoCanaja
e48e37402b Device - Correct SysObjectID for RIEDO Concentrator (#11573)
* Bug - Correct SysObjID for Concentrator

In order to properly classify concentrator and simple PDUs (they'll come in a new PR soon)

* typo
2020-05-12 15:53:50 -05:00
SourceDoctor
e305a39d31 Sort Health table alphabetic (#11586) 2020-05-12 15:51:30 -05:00
Lars Elgtvedt Susaas
aca95b5554 bugfix: addhost (web) snmp v3 not used first (#11536)
* Update addhost.inc.php

bugfix: push snmp v3 user settings to the front of the config array and not the back.

To reproduce the bug:
Force add new snmp v3 device.
The v3 settings added to the database will not be the same as entered in the webpage

* Update addhost.inc.php

Minor change in order to trigger travis build
2020-05-12 15:49:39 -05:00
Luca Olivetti
5e6d371e42 Added example for the alerta transport (#11596) 2020-05-12 15:45:00 -05:00
Hans Erasmus
a9f6c935a4 Removed reference to deprecated poller-service.py (#11598)
* Removed reference to deprecated poller-service.py

* Update Dispatcher-Service.md

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-12 15:39:44 -05:00
PipoCanaja
7a2424c524 Correct sensor ignore documentation (#11591) 2020-05-12 09:22:47 -05:00
Tony Murray
8513026b1a Hide python user warning if deps met at system level (#11590) 2020-05-12 08:16:22 -05:00
VTS
60552d96ae Copy and modify the syslog transport for sending alerts to Splunk in an easy to parse format (#11176)
* Create Splunk.php

* add documentation

add documentation for splunk transport rule

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-11 23:11:45 -05:00
louis-oui
c9155bf5ea disable auto-refresh for notifications and alert history (#11589) 2020-05-11 23:07:14 +02:00
SourceDoctor
38abff264a Show Hardware Details on Network Adapters in Inventory (#11545) 2020-05-11 20:28:42 +02:00
Munzy
e37cf6fc64 Typo Fix (#11588) 2020-05-11 17:44:21 +02:00
Tony Murray
55e70be6ba Send to PHP 71/Python2 support branch 2020-05-10 23:09:03 -05:00
Alexander Moisseev
0900f9513e Add serial for QTECH QSW-3400 (#11569) 2020-05-10 22:08:07 +02:00
Jozef Rebjak
3b79ca0e79 Added warmStart trap handler (#11583)
* Added warmStart Trap

* Added warmStart Trap Test
2020-05-10 21:50:19 +02:00
Jozef Rebjak
44f3dea8e8 Fixed issues with IMCO Power (#11559)
* Fixed Issues with IMCO Power

* Fixed TRAVIS
2020-05-10 21:48:34 +02:00
CrazyMax
c6c7b3c5cc Update Docker installation doc (#11579)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-05-09 14:28:31 -05:00
Tony Murray
0e00454b8f Full path to requirements.txt in validate (#11581) 2020-05-09 14:26:24 -05:00
SourceDoctor
8d3f39743a Application DisplayName in Overview Hover (#11576) 2020-05-09 20:34:14 +02:00
Vitali Kari
918cf86eae Add acknowledgment notes to eventlog (#11575) 2020-05-09 20:33:50 +02:00