19558 Commits
Author SHA1 Message Date
Tony MurrayandGitHub d5656d826e Tests dont include empty tables (#13619)
* Do not include empty tables in test data

* empty data is simpler to check now

* Update test data

* revert comment options that block update all test data

* clean existing data

* fixes

* another fix

* remov extra sensors???

* why is that using that ip...

* missed an empty table

* missed one

* restore ftos

* revert another ftos

* revert ird

* restore timos

* restore timos_7705

* oops

* double oops

* timos mpls

* timos_hc

* another timos_hc fix
2021-12-15 19:48:44 -06:00
Tony MurrayandGitHub 478f3d80d9 Fix axiscam serial format (#13620) 2021-12-14 23:45:57 -06:00
Denny FriebeandGitHub e24862545d Fix the displayed unit for frequency and distance in the wireless section (#13614)
* Fix the displayed unit for frequency and distance in the wireless menu

* Small style fix
2021-12-13 08:30:57 -06:00
Peca NesovanovicandGitHub fefeceb0d0 Luminato: CPU, HW type, HW ver, Fan state discovery (#13608)
* Luminato: CPU, HW type, HW ver, Fan state discovery

* CPU / yaml

* test data
2021-12-12 23:22:03 -06:00
Tony MurrayandGitHub a0de9083b5 Fix Cisco WLC AP cleanup (#13615)
* Fix Cisco WLC AP cleanup

* missing space
2021-12-12 22:33:54 -06:00
Tony MurrayandGitHub edd645264c Regenerate app.js (#13613) 2021-12-10 22:28:20 -06:00
martinbergandGitHub 9e6590104b Add more device fields to oxidized map configuration (#13604)
* fixed typo and added sources

* Updated app.js

* Add mix-manifest.json
2021-12-09 13:45:00 -06:00
Tony MurrayandGitHub bc2be0efc1 Remove accidental dump() (#13607) 2021-12-09 08:53:34 -06:00
JellyfrogandGitHub e803fa57ac use http for proxy urls via guzzle (#13601)
Fixes #13598
2021-12-08 08:22:20 -06:00
Tony MurrayandGitHub a046420888 Revert "RRD Allow specifying a source file and ds to fill data (#13480)" (#13602)
This reverts commit 29328b2e9a.
2021-12-06 12:34:46 -06:00
Tony MurrayandGitHub a95efd6d2a Global search: search device display (#13583)
* Global search: search device display
Add display field to search (also port_desc_descr, portName, and bgpPeerDescr)
Rewrite backend
update typeahead bundle
update devices and ports indexes
reduce some port field sizes so we can index them

* Style fixes

* remove nonsense
2021-12-06 16:12:24 +01:00
Tony MurrayandGitHub 29328b2e9a RRD Allow specifying a source file and ds to fill data (#13480)
* Allow specifying a source file and ds to fill data

* Need to check if rrd file exists, so delay processing until __toString

* Update RrdDefinition.php
2021-12-06 08:04:57 -06:00
Peca NesovanovicandGitHub 528d8e55b4 initial Eltex-mes IPv6 address discovery (#13594)
* initial Eltex-mes IPv6 address discovery

* styleci

* add Eltex-mes devices in group: radlan

* merge two OIDs

* styleci

* ipv6 normalize
2021-12-03 15:48:48 -06:00
Tony MurrayandGitHub b32524294c collect-snmp-data.php can now capture snmp context test data (#13596)
* collect-snmp-data.php can now capture snmp context test data
This is helpful for devices that use context for multiple data sets such as VLANs and VRFs.  Allows us to test things that use those now, but does make more snmprec files :/

* update typehints on affected methods and baseline
2021-12-03 13:27:06 -06:00
Tony MurrayandGitHub ef8dd82bc9 Create SECURITY.md 2021-12-03 08:06:33 -06:00
NocturrandGitHub e0774fc677 Add Initial Support for VMware SD-WAN / Velocloud (#13536)
* Add Initial Support for VMware SD-WAN / Velocloud

* change os name to velocloud

* update test data

* rename os definition file

* missed one
2021-12-02 15:27:41 -06:00
Tony MurrayandGitHub ccda5472c0 Add additional type tag for Bind metrics (#13581)
* Add additional type tag for Bind metrics
Fixes data getting clobbered when exported to external TSDB.
Fixes 13539

* Update bind.inc.php
2021-12-02 08:05:04 -06:00
carranzamarioagustinandGitHub 1675cd8c17 SmartAX supports IF-MIB, skip custom polling and fix polling GPON ports (#13579)
* Smartax supports IF-MIB, skip custom discovery and fix polling GPON ports in and out traffic

* This file seems to break GPON port polling on SmartAXes firmware versions R017 and R018, deleting the file fixes GPON polling

* Added necessary test files so that polling tests do not fail
2021-12-01 22:54:12 -06:00
Peca NesovanovicandGitHub d4022e2d4e ipv6 discovery switch to new DB syntax (#13591)
* ipv6 discovery switch to Laravel

* styleci

* cleanup

* last dbfetch removed

* styleci & unneeded IF

* switched to updateOrCreate
2021-12-01 22:52:37 -06:00
Simon SmithandGitHub c7d00ccc92 Update Applications.md (#13573)
add step to add debian-snmp user to docker group
2021-12-01 07:46:24 -06:00
e23ad7947d q-bridge-mib, discover missing VLANs, v2 (#13569)
* q-bridge-mib, discover missing VLANs v2

* copy/paste typo fix

* Use SnmpQuery

* Switch from Vlan_x to VLAN x

* Cleanup
Revert accidental change
Incorrect table depth (even though the outcome is the same)
And test data that was explicitly Vlan_

* fix test data

* update routeros_vlans

Co-authored-by: Tony Murray <[email protected]>
2021-12-01 07:24:35 -06:00
Tony MurrayandGitHub 5ce7a5ad0e snmp.unescape setting (#13590)
* snmp.unescape setting
Works around issue with (I think net-snmp < 5.8.0) where it adds backslashes.

* Updated test data
2021-11-30 21:33:18 -06:00
Tony MurrayandGitHub d69674b36e Correct graph row component responsive layout for linked graphs (#13587)
* Correct graph row component responsive layout for linked graphs
Enable pass through height and legend.  Probably need more, but this is just for a start.
Switch Poller performance page

* revert accidental change

* Update Graph.php
2021-11-30 19:21:41 -06:00
Denny FriebeandGitHub 12a262744e Fix nototal graph option (#13589) 2021-11-30 19:21:09 -06:00
mathieu-articandGitHub 49587cccf1 Add better support for Eaton UPS (#13588)
* fix eaton ups

* add serial number

* regex
2021-11-30 22:59:32 +01:00
f9444a14d0 Bump symfony/http-kernel from 5.3.9 to 5.4.0 (#13585)
Bumps [symfony/http-kernel](https://github.com/symfony/http-kernel) from 5.3.9 to 5.4.0.
- [Release notes](https://github.com/symfony/http-kernel/releases)
- [Changelog](https://github.com/symfony/http-kernel/blob/5.4/CHANGELOG.md)
- [Commits](https://github.com/symfony/http-kernel/compare/v5.3.9...v5.4.0)

---
updated-dependencies:
- dependency-name: symfony/http-kernel
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-30 10:16:59 +01:00
JellyfrogandGitHub 29bdfe40a3 Use phpstan-deprecation-rules instead (#13582)
* Replace deprecated functions

* Use phpstan-deprecation-rules instead
2021-11-30 09:33:14 +01:00
Tony MurrayandGitHub 9d2633bf09 Escape net-snmp unformatted strings, try 2 (#13584)
* Escape net-snmp unformatted strings, try 2

* Add some tests
2021-11-30 00:12:42 -06:00
twelch24andGitHub 4a99b798b5 update Customizing the Web UI doc (#13564) 2021-11-30 02:42:39 +01:00
Martin22andGitHub 5c62115486 Ray3 - Added memory chart (#13557)
* Memory graph added

* Added test data

* New test data
2021-11-30 02:34:39 +01:00
Tony MurrayandGitHub 0959df53e5 Don't use @lang() it doesn't escape the string (#13566)
* Don't use @lang() it doesn't escape the string
Found an issue where a string contained a single quote and broke the page.

* fix regex errors

* fix another style of mis-replacement

* found another issue
2021-11-28 21:17:11 -06:00
SourceDoctorandGitHub 5e4e2c423c Availibility Map - show Display Name if set (#13574) 2021-11-28 12:08:44 +01:00
Tony MurrayandGitHub 99fbdeef02 Do not show location in device overview if location is not found (#13572) 2021-11-26 18:54:29 +01:00
Lucas DousseandGitHub 22531bee5d update netapp mib (#13571) 2021-11-26 09:15:14 +01:00
82d008ca95 Added support for Himoinsa gensets status state sensors (#13456)
* Fix missing mib_dir in definition

* Added state sensors

* snmprec data

* json data

* delete unused snmprec

* License and Author

* remove unused json data

* Fix style issues

* Fix more style issues coz im blind

* Fix more style issues coz im blind last

* Refactored

* Why do we loop?

* Fix style issues

* Update polling

* Refactor to use methods

* Fix a pair of style issues

* Updated test files

* Convert to yaml

* Wrong description on Mode

* Added another state + fixed some indexes

* Dunno what happened

* Fix for phpstan level 6

* Fix forstyleci

Co-authored-by: Tony Murray <[email protected]>
2021-11-26 01:18:49 -06:00
David GirónandGitHub 364fa540cc Add discovery for APC EPDU1132M (#13545)
* Initial discovery for APC EPDU1132M

* Rename current APC ePDU model to specific

* Add more conditions to test

* Ignore APC ePDU

* Add version field

* Update version in test file

* Add JSON test data

Also remove hostname (was literal question mark), was causing issues
2021-11-25 22:40:33 +01:00
Claude BrownandGitHub 6bf97c6ac9 API 'list_parents_of_host' - mostly doco, but one small code enhancement (#13567)
* Allow 'list_devices' to query by exact device-id

* Remove 'http://' prefix from --dev-addr in doco for 'mkdocs serve'

* Document 'list_parents_of_host' API call by reference to 'list_devices' call

* Remove possibility of SQL injection attacks

* Remove possibility of SQL injection attacks
2021-11-25 22:38:50 +01:00
Tony MurrayandGitHub b94f08cfdb Remove color markers when logging to files (#13541)
* Remove color markers when logging to files

* Update lint

* safety checks

* back to simple formatters, but two of them

* more correct comment
2021-11-24 23:33:02 +01:00
Peca NesovanovicandGitHub 21edc086ca split Eltex-mes OS to mes21xx / mes23xx. + few improvements (#13544)
* split Eltex OS to 21xx and 23xx

* styleci & typo

* yaml cleanup

* removed MIBs from first release

* tidy up yaml

* test data
2021-11-24 21:34:48 +01:00
Tony MurrayandGitHub 61eae8fb6a Mark OID not increasing as invalid (#13548)
* Mark OID not increasing as invalid

* Provisional test data

* verified return code is 1
2021-11-24 18:22:15 +01:00
WheelandGitHub 42fdbea126 Veeam SNMP traps fix and extend (#13549)
* Veeam fix and extend part 1

* Veeam SNMP traps

* StyleCI

* StyleCI

* Fix typo

* Lint

* Fix tests

* Fix tests :fingerscrossed:

* Think i get it now

* This is it?

* gotta be it

* Final

* Again
2021-11-24 18:20:56 +01:00
Martin22andGitHub 382ef6219b Fix discovery and pooling Racom Ray2 (#13553)
* Fix discovery and pooling

* Added test data

* Removed author

* Fix

* Discovery transcribed into json

* Fix

* Fix2

* Fix3
2021-11-24 18:18:12 +01:00
Tony MurrayandGitHub e32685b54e Workaround don't poll WLC on IOSXE (#13563) 2021-11-24 18:13:27 +01:00
Tony MurrayandGitHub cf0e2a0f55 Add back areca secondary hardware oid. (#13562) 2021-11-24 17:25:08 +01:00
Feras Al-KassarandGitHub 35a6905092 Fix security vuls (#13554)
* Fix XSS vulnerabilities

* fix XSS vulnerabilities in alerts.inc.php

* fix XSS vulnerability in poller-groups.inc.php

* small fix for the integration

* another fix for the inegration

* another fix for the inegration

* change the sanitizer at sources instead of json_encode sinks

* another change sanitizer at sources instead of json_encode sinks

* another change sanitizer at sources instead of common_output and current_config sinks

* fix path manipulation vulnerability
2021-11-24 10:00:25 -06:00
ottoreiandGitHub 214f92359c Fix Cisco APs polling (#13560) 2021-11-24 10:40:32 +01:00
banachtarski-91andGitHub 68fa373b77 ios-fdb-table-fix -- Fixed misnamed dictionary keys for dot1dTpFdbPort data (#13559) 2021-11-23 23:50:55 +01:00
cdd1ae0d1e Add version for ironware (#13551)
* Add version for ironware

Add version for ironware

* Update ironware.yaml

* Ironware Version test data

* Delete ironware_ironware.snmprec

Co-authored-by: Jellyfrog <[email protected]>
2021-11-23 17:33:29 +01:00
twelch24andGitHub 9ce249c97a Update winbox launcher doc (again) (#13558)
My bad. goofed the format.
2021-11-23 16:55:22 +01:00
Tony MurrayandGitHub 4a5836f64e Catch all module errors (#13542)
* Catch all module errors
As of PHP 7.1, we can now catch errors and exceptions by catching throwable.
Also, log the errors in a consistent way with the entire stack trace

* Log event and improve messages

* call from facade because event might not exist on logger
2021-11-23 09:52:52 +01:00