Commit Graph

18994 Commits

Author SHA1 Message Date
Tony Murray
ef8dd82bc9 Create SECURITY.md 2021-12-03 08:06:33 -06:00
Nocturr
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 Murray
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
carranzamarioagustin
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 Nesovanovic
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 Smith
c7d00ccc92 Update Applications.md (#13573)
add step to add debian-snmp user to docker group
2021-12-01 07:46:24 -06:00
Peca Nesovanovic
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 <murraytony@gmail.com>
2021-12-01 07:24:35 -06:00
Tony Murray
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 Murray
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 Friebe
12a262744e Fix nototal graph option (#13589) 2021-11-30 19:21:09 -06:00
mathieu-artic
49587cccf1 Add better support for Eaton UPS (#13588)
* fix eaton ups

* add serial number

* regex
2021-11-30 22:59:32 +01:00
dependabot[bot]
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] <support@github.com>

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

* Use phpstan-deprecation-rules instead
2021-11-30 09:33:14 +01:00
Tony Murray
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
twelch24
4a99b798b5 update Customizing the Web UI doc (#13564) 2021-11-30 02:42:39 +01:00
Martin22
5c62115486 Ray3 - Added memory chart (#13557)
* Memory graph added

* Added test data

* New test data
2021-11-30 02:34:39 +01:00
Tony Murray
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
SourceDoctor
5e4e2c423c Availibility Map - show Display Name if set (#13574) 2021-11-28 12:08:44 +01:00
Tony Murray
99fbdeef02 Do not show location in device overview if location is not found (#13572) 2021-11-26 18:54:29 +01:00
Lucas Dousse
22531bee5d update netapp mib (#13571) 2021-11-26 09:15:14 +01:00
TheGreatDoc
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 <murraytony@gmail.com>
2021-11-26 01:18:49 -06:00
David Girón
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 Brown
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 Murray
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 Nesovanovic
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 Murray
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
Wheel
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
Martin22
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 Murray
e32685b54e Workaround don't poll WLC on IOSXE (#13563) 2021-11-24 18:13:27 +01:00
Tony Murray
cf0e2a0f55 Add back areca secondary hardware oid. (#13562) 2021-11-24 17:25:08 +01:00
Feras Al-Kassar
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
ottorei
214f92359c Fix Cisco APs polling (#13560) 2021-11-24 10:40:32 +01:00
banachtarski-91
68fa373b77 ios-fdb-table-fix -- Fixed misnamed dictionary keys for dot1dTpFdbPort data (#13559) 2021-11-23 23:50:55 +01:00
wkamlun
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 <Jellyfrog@users.noreply.github.com>
2021-11-23 17:33:29 +01:00
twelch24
9ce249c97a Update winbox launcher doc (again) (#13558)
My bad. goofed the format.
2021-11-23 16:55:22 +01:00
Tony Murray
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
RockyVod
69b49d0eff Add all Aviat WTM4k family devices (#13556)
Added all AVIAT WTM4k family devices to be discovered
2021-11-23 09:41:43 +01:00
twelch24
87951d28fd Add more detailed instructions to winbox launcher (#13552) 2021-11-22 20:27:32 +01:00
wkamlun
d7d880b72d Add ICX 7150 description (#13550)
Add ICX 7150 description
2021-11-22 09:27:29 +01:00
Tony Murray
4399450746 Skip invalid OSPF data (#13547)
Check if ospfRouterId exists, if not, then the data is bad
2021-11-21 13:28:42 +01:00
paulierco
53d3495b7e Add Alcatel Omniswitch Traps Handlers (#13492)
* first

* style1

* lint

* add another trap

* add another trap

* change juniper to alcatel

* style

* style

* style
2021-11-20 09:10:19 -06:00
Tony Murray
716725758d Fix bug in Device::name() (#13543) 2021-11-19 12:21:56 -06:00
Tony Murray
790c4b3402 Configurable device display name (#13528)
* Configurable device display name
You can just set the display name in device settings.

It also accepts simple template format with  the variables: hostname, sysName, sysName_fallback, ip

Default controlled by device_display_default, (set from old force_hostname_to_sysname and force_ip_to_sysname settings

* remove second argument to format_hostname()

* Style fixes

* Update schema

* update phpstan baseline

* Improved settings strings (and add for translation)
2021-11-18 15:46:22 -06:00
Tony Murray
69d0753ec4 lnms snmp:fetch query multiple devices (#13538)
* lnms snmp:fetch query multiple devices
Allows regex and all device spec input

* Fix lint

* fix regexp
2021-11-18 15:35:19 -06:00
Tony Murray
f12d1f98cb Arista EOS, use sysObjectID for detection (to include vEOS) (#13534)
Also, simplify regex
2021-11-18 09:28:47 +01:00
Tony Murray
c79b187d72 Poller rewrite (Try 2) (#13525)
* core WIP

* try to finish up

* trim space too
and a couple of cleanups

* update test data

* put escapes back

* another net-snmp difference

* correct copy paste error

* WIP

* Use new code YAY

* a tiny bit more

* Kind of working

* Handle manual modules correctly

* convert core to modern module

* Only save metrics if modules is not overridden

* correct module exists check

* database error handling

* debug handling

* restore bad changes

* Introduce Actions
 RunAlertRulesAction
 UpdateDeviceGroupsAction

* tweaks to output

* Fix some issues in outside code

* Style fixes

* fixes to module status checks

* typehints!

* Use logger only and DI

* OS module not named correctly

* Work on quiet output a bit more

* generically don't change output when disabling debug if the driver is already stack

* Fix missing $device variable for legacy os polling
Fix missing dbFacile functions when no legacy modules polled in RunAlertRulesAction

* restore legacy os module shim

* use the new poller code for tests

* PollingDevice event

* Fix some issues and enable/disable error reporting around legacy modules

* typehints

* fully update baseline

* Use Process for version commands so we don't leak debug output.

* don't detect rrdtool version in ci every time

* style fixes

* Warning fixes

* more fixes

* re-update baseline

* remove diff noise

* fix up alerts

* Catch exceptions in device ip lookup

* Revert accidental snmp.inc.php poller target change
(should have been ?: not ??)
2021-11-17 19:23:55 -06:00
Tony Murray
7893b8bebe OSPF issue when devices don't support OSPF-MIB::ospfIfTable (#13530)
* OSPF devices return wrong ospfIfTable index

* Handle "End of MIB" string
2021-11-17 16:26:50 -06:00
Tony Murray
c05a7a57a0 Remove unused buggy arp_discovery code (#13529) 2021-11-17 22:10:54 +01:00
Tony Murray
562af58c7f Fix plugin_active check when plugin is not found (#13531)
* Fix plugin_active check when plugin is not found

* update baseline

* revert incorrect commit
2021-11-17 22:08:56 +01:00
Tony Murray
31c9d9c307 Link for can't check Python dependencies validation (#13520)
* Link for can't check Python dependencies validation
Hopefully gives the user some direction

* Fix style
2021-11-17 17:23:37 +01:00