* Fix sensor state translations
* Fix up lint/style
* Set state_index_id
* Apply fixes from StyleCI
* Wrong call
* just use a loop
* Wrong id column
* Missing fillable
* Handle sensors missing state translations
* Before making a state index
* Can't map to a state index if it doesn't exist
* Apply fixes from StyleCI
* ies5000 overflowing tinyint
* Accept state translations directly add that in the translation
* handle duplicate state names, but with different case (skip no way to work there)
* Apply fixes from StyleCI
* Fix type stuffs
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Save guessed limits
Previous code was guessing, then not saving the guess
* Move to creating, which revealed that limits were swapped
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Update Matrix.php
Changing 'm.text' to 'm.notice' so that when an alert is issued, you get notified on your Matrix client.
The current 'm.text' parameter will silently send you the message, whereas 'm.notice' will send you a message with an alert.
* Enabling notifications on Matrix client
Changing 'm.text' to 'm.notice' (line 47) so that when an alert is issued, you get notified on your Matrix client.
The current 'm.text' parameter will silently send you a message, whereas 'm.notice' will send you a message with an alert.
* Update Matrix.php
* Update Matrix.php
---------
Co-authored-by: Tony Murray <murraytony@gmail.com>
* Convert Config to a singleton
Continuation of #14364 by @Jellyfrog
This time, make the old class a shim for the facade. Will update references in a separate PR.
* Remove logging config call
* Apply fixes from StyleCI
* Fix bad Git constructor call
* Fail on config table does not exist instead of throw exception
* Inline LibrenmsConfig::isRegistered()
* Debug call in case there are more issues,
remove before merge.
* Fix up config tests
* Allow config cache controlled by CONFIG_CACHE_TTL (disabled by default for now)
* Enable config cache for tests
* Remove debug statement and deprecation phpdoc
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Modification of the MIB name and extension to support all LS and PS backup power sources, including the addition of hardware, firmware, and serial number.
* Fix os name
* Improved module controls
Ability to clear device module overrides from webui
Ability to clear all database data for a module (helpful for module you have disabled that still have data)
Database reset only works for modern modules.
* Update functions.php
* Added snmprec file from ISE SNS-3595K9
For Cisco ISE SNS-3595K9 Support
* Create ise_3595.json
For support for Cisco ISE SNS 3595-K9
* ISE: added Support for SNS-3595-K9
Added sysObjectID from SNS-3595-K9
* More cisco state fixes
Turns out it was fetching values as strings. Swap to SnmpQuery and fetch the data numeric as expected
* Apply fixes from StyleCI
* update MIB too
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Adding support to Infortrend DS3016
* Adding snmprec for Infortrend DS3016
* Delete tests/snmpsim/DS_3016.snmprec
* change of the infortrend logo
* change of the infortrend logo
* add the infortrend logo
* Delete tests/snmpsim/infortrend_test.snmprec
* again another logo replacment
* again another logo replacment
* again another logo replacment
* update yaml file to display sensor state
* Delete includes/definitions/discovery/infortrend_orig
* typo missed the . at start of oid
* change logo based on req. from PipoCanaja
* on req of PipoCanaja to fix the structure of the folder
* replacing the logo as req. from PipoCanaja
* adding temperature sensor and serial number
* improving sensors
* removed wrongly added chars
* removed MIB from wrong place
* Murrant's request for snmprec file
* adding Voltage sensor monitoring
* Skipped the value that are irrelevant. Yay!
* Update .gitignore
* Fix infortrend.yaml
* Create infortrend_ds3016.json
* fix infortrend.yaml
* Update infortrend_ds3016.json
* Update infortrend.yaml
* Update infortrend_ds3016.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* save-test-data.php improvements
Message when snmprec data is not found
Output when venv setup fails
* Apply fixes from StyleCI
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Update CISCO-LWAPP-TC-MIB
Uploaded latest version from Cisco Feature Navigator
From the original Cisco MIB:
Deleted duplicate END in line 868
Change the names “dot11_6ghz” and “dot11_xor_5_6ghz” by removing the underscore (example: “dot11-6ghz” “dot11-xor-5-6ghz”)
* Update Iosxe.php
Added Wireless Controller module
* Update iosxe.yaml
Added AP count and Wireless Client
Credit to @AllanHahn
* Create iosxewlc.yaml
Added IOS-XE WLC. Need to add sysObjectID for the future devices beyond WLC9800.
System description has IOS-XE in it
* Update iosxe.yaml
* Update iosxe.yaml
WLC 9800 not included, have own YAML file
* Create iosxewlc.php
* Update Iosxe.php
Remove WLC Module
* Rename iosxewlc.php to Iosxewlc.php
* C9800 WLC detection
* Update iosxewlc.yaml
* Remove CiscoWLC notes
* Remove ISIS
* Update Iosxewlc.php
* Fix syntax
* Remove Cisco WLC notes
Need some cleanup since already created new PHP file for Cisco IOS-XE WLC
* Update Iosxewlc.php
* Update CISCO-LWAPP-AP-MIB
Downloaded the latest from Cisco MIBS to support AP count for Cisco WLC C9800 models.
* Update Copyright
* Change type from network to wireless
* Patterned with AirOS Cisco WLC
* Create iosxewlc_c9800.snmprec
Added test file
* styleci compliance
* styleci compliance
* styleci compliance
* Uploaded data from actual device
* styleci compliance
* styleci compliance - remove space
* Merge iosxe and iosxewlc
As discussed
* Merhe iosxewlc.yaml to iosxe.yaml
No over graphs for Number of Clients and AP Count or IOSXE WLCs but still can view via Tabs
* remove iosxewlc.yaml
Covered by iosxe.yaml
* Delete iosxewlc.php
Covered by iosxe.php
* Rename iosxewlc_c9800.snmprec to iosxe_c9800.snmprec
due to removal of iosxewlc template which was merged.
* styleci compliance
* styleci compliance
* Update iosxe_c9800.snmprec
* Update iosxe_c9800.snmprec
* rerun-tests
* Remove pollOS block from Iosxe
* Check before polling and add additional IP discovery
* lint fix
* Added raw data from actual device
Convert sensitive data to <private>
* Create iosxe_c9800.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
buildCommand needs to be public access for show command, reverted to protected because I thought it was only for tests, and that doesn't require it to be public anymore.
* Sensors remove reliance on global variable
* Apply fixes from StyleCI
* Clear the instance instead of reset.
Remove $valid['sensors'] from docs
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* add handling of zero value for entSensorThresholdValue for dbm sensor type
this addresses https://github.com/librenms/librenms/issues/16335
* Update cisco-entity-sensor.inc.php
* safe check for $key['entSensorThresholdValue']
* style
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>