* Fix XSS in default example plugin
on* html fields are hard to escape properly, avoid putting user input there
* Apply fixes from StyleCI
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Update cisco.inc.php - Add REP Segment state sensor
* Create ios_cisco.snmprec
* JSON files for REP support test data
* Rename to IE2000 and add matchin JSON
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Fixing memory scale for datacom-dmos devices
Fixing memory scale for datacom-dmos devices
* Update datacom-dmos.yaml
Removing the line "index: 1" because the MIB shall provide the existent indexes.
* Uploading updated snmprec files
Uploading updated snmprec files after changing the datacom-dmos.yaml in order to fix the memory scale.
* Uploading updated json files
Uploading updated json files after changing the datacom-dmos.yaml in order to fix the memory scale.
* datacom-dmos updated snmprec files
* snmprec files
* Updated datacom-dmos test files (snmprec and json)
Updated datacom-dmos test files (snmprec and json). I had problems generating these files, so please ignore the commits without files I did earlier.
* Fix Tests
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* New utility Number::constrainInteger()
Fixes a bug with Number::unsignedAsSigned() and implements signed support as well.
* cleanup
* Apply fixes from StyleCI
* Remove default cases
---------
Co-authored-by: StyleCI Bot <bot@styleci.io>
* Fix wrong as discovery. if peer has no bgp enabled, the bgp as was miss-discovered
* Update includes/discovery/bgp-peers.inc.php
Co-authored-by: Tony Murray <murraytony@gmail.com>
* tests
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Added Zhone health and reduced ports to only physical ports.
* Liniting
* Move MIBs out of folder, doesn't work
* Add testing data.
* Added test data, sorry for delay
* Added test data again
* Move MIBs to folder
* Unsupported dirrective
Entities are html encoded so this will cause them to be displayed correctly in pushover alerts
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Cisco CSCvj53634
tests
change RRD minimas to accept negative dbm output power
unnecessary tests
* unsignedAsSigned function
* use new function Number::unsignedAsSigned
* negative power for Vdsl as well
* style
* style
* Add types
* simplify and exception if over max value
* Add tests
* Style fixes
* Tell phpstan to shut up
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Add support for Forcepoint NGFW 6.10 and older
* Update forcepoint_forcepoint-ngfw-330.json
* Proc. discovery fix
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* nokia null check for discovery proto
* nokia null check for discovery proto
* fix for Nokia discovery + reindent
* fix for Nokia discovery + reindent
* style
Draytek use a custom OID to define their devices memory usage, defined here: https://www.draytek.com/support/knowledge-base/5517
This commit includes a mempool definition with the new memory OID `1.3.6.1.4.1.7367.3.7` and relevant LibreNMS tests