17225 Commits

Author SHA1 Message Date
0b68c70a97 Python wrapper sql cleanup (#11628)
* Clean up wrapp mysql connect a bit

* fix typo
2020-05-19 10:14:09 -05:00
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
ee4ae0b2af Fix inconsistent escapes (#11637)
should probably stripslashes() instead
2020-05-19 08:22:57 -05:00
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
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
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
f7d77777fc Fix python validation user check (#11626) 2020-05-16 11:33:59 -05:00
b9c2f75092 Riedo E3Meter PDU (#11624)
* e3meter

* display

* tests
2020-05-16 10:14:46 +02:00
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
216f16f159 Validate PHP version mismatch (#11621)
* Validate PHP version mismatch on the web interface

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

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

* some optimizations

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

* decode config_data output
2020-05-15 10:43:00 -05:00
077e6788bf Fixed realtime graph http get spam (#11616) 2020-05-15 08:31:43 -05:00
ec3dc4f89b Don't use command_runner (#11618) 2020-05-15 08:29:30 -05:00
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
60c03baf76 fix-install-config (#11614) 2020-05-14 23:25:09 -05:00
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
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
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
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
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
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
1b05f435ec fix sensor type/class confusion (#11608) 2020-05-14 21:06:50 -05:00
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
f80ff5266d Fix Papouch detection too generic (#11540) 2020-05-13 23:38:00 -05:00
306630a8c8 Filter on sensor class as expected and documented (#11592) 2020-05-13 09:02:30 -05:00
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
f66b16932a Update requirements.txt (#11600) 2020-05-12 23:11:59 +02:00
804bb22a5a Correct options for IBMC version polling (#11587)
* Correct options for version polling

* Update ibmc.json
2020-05-12 16:09:18 -05:00
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
e305a39d31 Sort Health table alphabetic (#11586) 2020-05-12 15:51:30 -05:00
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
5e6d371e42 Added example for the alerta transport (#11596) 2020-05-12 15:45:00 -05:00
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
7a2424c524 Correct sensor ignore documentation (#11591) 2020-05-12 09:22:47 -05:00
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
c9155bf5ea disable auto-refresh for notifications and alert history (#11589) 2020-05-11 23:07:14 +02:00
38abff264a Show Hardware Details on Network Adapters in Inventory (#11545) 2020-05-11 20:28:42 +02:00
e37cf6fc64 Typo Fix (#11588) 2020-05-11 17:44:21 +02:00
55e70be6ba Send to PHP 71/Python2 support branch 2020-05-10 23:09:03 -05:00
0900f9513e Add serial for QTECH QSW-3400 (#11569) 2020-05-10 22:08:07 +02:00
3b79ca0e79 Added warmStart trap handler (#11583)
* Added warmStart Trap

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

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

* change to macro
2020-05-09 08:47:32 -05:00