* 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>
* 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>
* 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>
* add the poller
* save text status stuff
* add initial app page stuff
* add history table and start work on graphs
* checkpoint
* re-work the poudriere graph bits a bit more
* fix the poller and start work on the graphs
* polling fix
* more work on the poudriere stuff
* poke stuff with php-cs-fix
* add some more graphs
* more style fixes
* another style fix
* add more graphs
* add Poudriere docs
* add tests data
* some minor tests fixes
* a test tweak
* more test tweaks
* some more test tweaks
* tweak .data.build_info data .data.build_info to make the app data test saner
* derp... missed a item
* add app data
* Initial entity-physical code
* Split out Entity-MIB trait
* Cisco Cellular inventory
* Fix bad test data
* alfo80hd - we now include all entPhysical entries
* Correct aos7 test data
* Add entPhysicalClass as last resort for label in ui
* aos add previously filtered data
* Fixup arista-eos data
* Update ariast_eos data
* Arris, clean garbage in Rev fields
* Aruba Instant custom inventory ported
* ArubaOS CX add vendor type mib
* aviat-wtm test data refresh
* axos add shelf fix data fields a bit
* ciena-rls
* ciena-sds
* Skip cimc for now... no test data
* Cisco updates
* Comware data update
* Update dnos
* Clean Edgeos garbage, make code from Arris shareable
* Relaxed ifIndex match, some devices cheat and send back static strings instead of formatted OIDs
* Regex refinement and updated edgeos with new clean data
* Update edgeswitch data
* Update eltex-mes21xx data
* eltex-mes23xx
* Guess at eltex-mes24xx since there is no test data
* Update eurostor, fix firmware version
* Apply fixes from StyleCI
* fixes
* Update fortigate data
* Update fortiweb, ftd, and fusion
* Update linux LSI
* Fix hexToAscii null removal with different seperator handling
* icotera add final snmprec data to avoid snmpsim bug
* Update IOS data
* Update mrv-od
* Add junos translation
* Generic data updates n-r
* ruijie workaround snmpsim bug
* Port saf-cfm
* Recode Schleifenbauer, and fix entPhysicalIndex values
* SmartAX fixes
* sm-os and tait-infra93
* timos inventory was not right, fix it up
* ubiquoss-pon
* VRP, has custom data collection on top of normal
adapt port ifIndex lookup to handle it
* VRP exceeded the string length specified in ENTITY-MIB...
* data updates
* Final data update and code cleanup
* Apply fixes from StyleCI
* Lint fixes
* Add missing SnmpResponse->pluck() code
* Update db_schema.yaml
* Fix bad test data
* Another instant-on update
* oops
* Remove some unused code
# Conflicts:
# includes/html/pages/device/overview.inc.php
---------
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
* add the infortrend logo
* Delete tests/snmpsim/infortrend_test.snmprec
* 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
* Fix infortrend.yaml
* Remove mibs/IFT-SNMP-MIB
* Create infortrend_infortrend.json
* Update infortrend_infortrend.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
This adds a MIB from the Baicells website, lightly modified
(s/BAICELLS-MIB/BAICELLS-CPE-MIB), and yaml files for LibreNMS. Currently OS
detection works, but sensors are reporting '0'.
I can easily get the data with snmpget, so I know that part is working. The
issue I'm seeing looks like the {{ $index }} substitution in my sensor yaml
isn't being filled out. Here's some example output from poller.php that backs
this up:
```
.1.3.6.1.4.1.53058.2.2.7.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.8.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.12.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.13.: Unknown Object Identifier ()
```
* adjustments to baicells od04
* undo modification to mib
* add original unmodified mib, tweak yaml, add time conversion function
* added baicells od04 snmprec
* skip invalid values
* Rename baicells-od04.snmprec.txt to baicells-od04.snmprec
* Update and rename BaiCE-BM-2.5.23_SNMP_MIB-CAT4.txt to BAICELLS-MIB
* Update baicells-od04.yaml
* Create BaicellsOd04.php
* move userfunc into OS
* style
* squash php casting warning
* missing static
* style
* fix {{ $index }}
* Create baicells-od04.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* On branch f5-cert-expiration-check
Changes to be committed:
modified: app/Http/Controllers/Device/Tabs/LoadBalancerController.php
modified: includes/discovery/loadbalancers/f5-ltm.inc.php
modified: includes/html/pages/device/loadbalancer.inc.php
new file: includes/html/pages/device/loadbalancer/f5-cert.inc.php
modified: includes/polling/loadbalancers/f5-ltm.inc.php
These patches extend the F5-Loadbalancer module to support an expiration check of
the installed certificates.
* some minor corrections to (hopefully) pass the style-check
* a few more impovements to pass the style-chek
On branch f5-cert-expiration-check
Your branch is up to date with 'origin/f5-cert-expiration-check'.
Changes to be committed:
modified: includes/discovery/loadbalancers/f5-ltm.inc.php
modified: includes/polling/loadbalancers/f5-ltm.inc.php
* more style-check adaptions...
* Fix expandable sizing
* Temp fix: port_id_{low,high} is actually ifIndex
* new PortsStack discovery module, store actual port_ids
* Show 4 rows of ports by default
* Add test data
* Fix up the single port view too
* Apply fixes from StyleCI
* Update db_schema.yaml
* Update base migration because sqlite cannot add primary keys
* Fix phpstan failures
---------
Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
* Add link on alert-rules page to display active alerts for rule
* replace ? with / per convention
* make the alert icon clickable too
* Lower the brightness of the warning rows
* Create a case for routeros.
RouterOS doesn't support the bgpPeerInUpdateElapsedTime object, so when
LibreNMS does to insert a peer update into the database from a MikroTik
router, you see the following error:
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column `librenms`.`bgpPeers`.`bgpPeerInUpdateElapsedTime` at row 2 (Connection: mysql, SQL: UPDATE `bgpPeers` set `bgpPeerAdminStatus`=start,`bgpPeerInUpdateElapsedTime`=...
To fix this, special-case routeros and note that the object is not yet
supported.
* Use spaces, not tabs.
* Use set_numeric() to ensure bgpPeerInUpdateElapsedTime is a number.
---------
Co-authored-by: Joe Clarke <jclarke@cisco.com>