* Linux MegaRAID SAS fixes
- Updated disk error threshold from 1 to 0.1 because we need to know when
it reaches 1, not when it exceeds 1. It would ideally be set to 0, but
it needs to evaluate to true in order for the threshold to be set.
- Fixed the OID for the virtual disk failure check, which also removes the
duplicate check on the predictive failure OID
* Updated the LSI test output
* Another update to the SNMP results
* Update all thresholds to 0
The warning and error thresholds work correctly when set to 0, so I have updated these values
* Change back to the original sensor OID, with the correct MIB OID and description
* Further re-classification of degraded LSI disk check
* Merge duplicate toBytes functions
Replace other duplicate code and add tests
* Allow space between similar to formatSI output
* Style fixes
* Match previous behavior in Docker app
* Add support for a maintenance boolean in API results.
If a device is under maintenance, it would be nice to see that from the
API. This can help drive other automation workflows where LibreNMS forms
a cornerstone in the management source of truth.
* Revert changes made by VSCode formatting.
* Revert two more formatting changes.
* Create a new API endpoint for GETing maintenance status.
This uses the same endpoint name as for setting a device to maintenance
but with a GET verb.
---------
Co-authored-by: Joe Clarke <jclarke@cisco.com>
* Improved Latency graph
Store loss+jitter info in rrd instead of database
New graph icmp_perf (legacy ping_perf still valid referencing part of the newer data)
Delete device_perf table
* Change loss to an area so it is more visible
* Style fixes
* Cleanups from phpstan & tests
* exit_code fix
* Remove alert usage of device_perf
* Don't use magic __get
* Add test for bulkPing
Add host to previous tests
* style fixes
* Fix issue fping error responses
* Added support for new device OS Westermo WeOS
updated high limits
* Removed config regarding discovery and polling modules
* First test with moving sensor discovery to YAML
* Updates to discovery snr sensor, new test data, deleted sensors written in php
* Fix for SNR discovery sensor descr
* Removed shdsl from bad_iftype
---------
Co-authored-by: OSIRIS-REx <sphinxes@protonmail.com>
* rls definition
* Adding discovery
* Temp Sensor Discovery
* files for discovery
* Adding and updating MIBS
* Add snmpsim
* Modified yaml for unit test
* phpfmt format
* ci changes
* fixing temp sensor
* fix json
* db schema out of date causing bad snmpsim json
* changed temperature discovery to php
* With updated snmpsim data
* index_string restored, YAML for temperature
* style
* Fixed index_string usage in JUNOS files
* Update YamlDiscovery.php
Allow filtering on "index" in skip_values
* Move DBM to YAML as well
* style
* schema update
* Slot XX Yyyyyy
remove unwanted dot
* matching tests
* schema, round 2
* states in YAML
* put temp sensor back in yaml
* enable default poll and discovery modules
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* OcNOS: add health sensors
Add Health Sensors
Update MIBs
Break out current sensors due to missing thresholds on _IIN sensors
* Add test data
* Wrong processors data
* Update Huawei MIBs
* Add YunShan OS definition and discovery
* Add YunShan OS snmpsim and test data
* Update discovery according to newer MIBs
* OS test data update
* OS test data update
* OS test data update
* Move sentry3 current and voltage sensors to YAML, add power to YAML, fix voltage for three-phase
* Sentry3: add systemTotalPower and systemPowerFactor
* sentry3: note that voltage and power factor are configured, not measured
* sentry3: group names to indicate sensors which are configured, rather than measured; prefix current index with infeedID to match previous PHP discovery
* sentry3: add ouprefix to outlet current to match previous PHP discovery index
* sentry3: restrict to recording voltage to only the first feed of each tower, to match previous indices
* sentry3: add snmprec from 3-phase CS-24V4-P32MA
* sentry3: attempt to fall back to Infeed
* sentry3: laravel blade fallback fix
* update tests instead of trying to fall back to old-style descriptions
* sentry3: update expected voltage in test, too
* typo
* fix test
* fix outlet OIDs ; update snmp test data with missing names ; regenerate test output
* add missing num_oids for power
* num_oid requires index, even for system-wide values
* remove unused entPhysicalIndex_measured
* tests
* tests
* doc
* entPhysicalIndex_measured must be ports OR null currently
* Should not pass tests
* tests
* back to normal
* Increase the column width of entPhysicalIndex and entPhysicalIndex_measured
* Update schema
* Remove unchanged change
* Update test data
* Remove migration and update test data
* Fix hirschmann and junos
* One too many
* Potentially incorrect usage
* Another potentially incorrect usage
* Revert changes to cisco and dell
* Test data changes for loop-telecom and ups-nut
* Update entity-sensor.inc.php
* FSW Test data
* FSW Test data JSON
* StyleCI
* Update fortiswitch.yaml - Correct state sensor index
* Update fortiswitch.yaml
* Add files via upload
* Fix sensor value at discovery
* merge templates
* fix merge issues
* fix bad merge
* adding snmprec for x11 variant
* better description for psu and vbat sensors + update overview
* oid name
* adding snmp_bulk: false back in so as to not break older hardware
* make atenpdu more specific so it does not match supermicro-bmc devices
* update x10 variant json
* updated supermicro logo and fixed data json
* updated supermicro logo
* json and snmprec got out of sync somehow
* A10 ACOS version, state and cout sensors
* A10 ACOS version, state and count sensors
* A10 ACOS version, state and count sensors
* A10 ACOS version, state and count sensors
* A10 ACOS version, state and count sensors
* A10 ACOS version, state and count sensors
* Ericsson IPOS Yaml
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Ericsson IPOS MIBs
* Ericsson IPOS - Serial & Hardware detection
* Ericsson IPOS - Remove mempool from overview
* SSR8020 SNMPrec
* Ericsson IPOS SSR 8020 Test
* Delete tests/snmpsim/ericsson-ipos_ssr8020.snmpwalk
* SSR8020 SNMPrec
* Add storage to overview
* Move to new SnmpQuery
* SnmpQuery() instead of snmp_*
* Delete mibs/ericsson directory
* Create ERICSSON-TOP-MIB
* Add files via upload
* update dhcp polling for version 3 of the extend
* add initial lease display for dhcp
* note where I copied it from
* document the new ISC DHCP stuff
* add in displaying pool and subnet info
* finalize the docs the new dhcpd stuff
* rework the dhcp page to display more information in a cleaner manner
* now display port and device info if known for a lease
* minor comment cleanup for the dhcp page
* add tests
* do not display the optionbar if the extend is not 3+
* update dhcp-stats doc for -w
* poke includes/html/functions.inc.php with php-cs-fixer
* poke includes/html/pages/device/apps/dhcp-stats.inc.php with php-cs-fixer
* derp... add the tests and not the snmprec twice
* strftime -> date
* fix naming of the linux dhcp-stats test data files
* minor tweaks to the rest results
* test fix
* more test cleanup
* minor test fix
* set the data value for v3
* minor test tweak
* add sortable_table blade template
* no longer need render_table
* formatting fix
* add regexp to make sure the mac is sane
* style fix
* formatting cleanup
* some more formatting fixes
* Modified the date selector to use the session timezone
* Set the timezone in the datetime picker and make sure it is always passed a moment date object, then altered the submit javascript function to use the existing moment object instead of creating its own
* Update the poll log to display in the correct timezone
* Fix the poll log to make the search work and be timezone aware
* Fix the displayed time on the device overview event log
* Style fixes
* Add Cisco HSRP State sensor support
* Cisco IOS Updated test data
* Restore ios_nac.json test data
* New ios_nac.json from a freshly reinstalled Libre!
* Cat 3560 Test
* Cat 3560 Test
* Add files via upload
* Add files via upload
* Support for new OS - CTS
* Added test data for CTS
* Added sensors support, new test data
* Fixed POETotalPower num_oid
* Removed comment
---------
Co-authored-by: OSIRIS-REx <sphinxes@protonmail.com>
* Create ARUBAWIRED-AAA-MIB
* ArubaOS-CX MIBs
* ArubaOS-CX Test data
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Style CI
* Style CI
* New test data
* Add files via upload
* Add files via upload
* Only translate the VSF sensors
* Style CI
* Update arubaos-cx.inc.php
* Add files via upload
* Initial support for webpowersmart II snmp UPS card
* missing test json
* move MIB file to separate folder
* ensure that old webpower OS does not cick in
* move MIB file to ingrasys folder
* Lancom SNMPrec
* Lancom test data
* Lancom MIBS
* Lancom discovery
* Lancom LX/SX support
* Lancom
* Style CI
* Delete tests/snmpsim/lcossx_gs3510xp.snmprec
This device returns all possible vlans as interfaces, so we get roughly 4k interfaces. This makes the test file too big (>25M). Deleting this device as test data
* Update Lcossx.php
* New Lancom logo
* Remove height/width attribute
* SVG
* Add files via upload
* search improvement for PortNac
* rename func
* style
* DB migration for timestamps
* style
* rules
* fix manually db_schema
* remove vlan only search for now
* add a bool column to ident historical nac entries
* add columns to the table
* queryByOui renamed everywhere
* age value instead of delete
* style
* style
* use Illuminate\Support\Facades\DB;
* tests fix
* module_tables.yaml
* dump model instead of tests/module_tables.yaml
* tests
* testVrp
* daily
* config
* display historical NAC entries in global view
* same for NAC device page
* nac tab on device/port view
* and display the tab link if necessary
* filter by port as well
* historical data in port tab
* formatters
* add a new notes field to the rule editor. use a bigger text field for sql queries to avoid mistakes...
* add api doc
* allow notes field from the collection
* add a sample notes to the collection
* lint and db schema
* unmix some schema changes from a nother PR
* unmix schema update No°2
* unmix schema update No°3 - silly me
* add strip_tags, minor optimisation, db default value
* apply linting
* db_schema empty '' as default
* update db_schema.yaml
* default value changed as 'BLOB, TEXT, GEOMETRY or JSON column 'notes' can't have a default value'
* better keep the migration in 2023...
* Update 2023_12_12_171400_alert_rule_note.php
* Update create-alert-item.inc.php
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* add borgbackup poller
* add borgbackup app page
* add graphs for borg backup
* minor borgbackup graph fixes and cleanups
* don't use custom colors for borg backup
* add metrics
* add borgbackup to the apps page
* add borgbackup snmprec for v1
* add test file for borgbackup v1
* add borg backup docs
* various style fixes
* add a missing key to the test data
* $total_vars -> $to_total
* remove a accidentally added space to applications.md
* test tweaks
* add no_hourly option to generic_stats
* add some more options to generic stats and don't display hourly since it is not really useful for borg backup
* style fix
* Add PSU State sensor support for FortiSwitch
* FortiSwitch 424E-Fiber test data
* FortiSwitch 424E-Fiber test data
* num_oid fix
* Set graph to 0
No clue wat ' graph' parameter does, but 0 seems to be the default
* Fixed test data after num_oid fix
* Fixed test data after num_oid fix
* Test data fix after yet another fix
* Test data fix after yet another fix
* Cant seem to get test data to change state_draw_graph to 0
* ArubaOS-CX PSU & OS & serial support
- PSU state sensor support
- Add OS/software detection
- Improve serial number detection. Aruba doesn't (always) present a serialnumber on index .1. Seems to have been replaced to .101001
# snmpget -v2c -c public 192.168.178.200 -m HOST-RESOURCES-MIB -M /opt/librenms/mibs:/opt/librenms/mibs/arubaos-cx ENTITY-MIB::entPhysicalSerialNum.1 ENTITY-MIB::entPhysicalSerialNum.101001
ENTITY-MIB::entPhysicalSerialNum.1 = STRING:
ENTITY-MIB::entPhysicalSerialNum.101001 = STRING: SG30LMP0WD
# cat /root/aruba/all-oke-mib | grep 101001
ENTITY-MIB::entPhysicalDescr.101001 = STRING: 6300M 24-port SFP+ and 4-port SFP56 Switch
ENTITY-MIB::entPhysicalVendorType.101001 = OID: ARUBAWIRED-NETWORKING-OID::arubaWiredSwitchJL658A
* ArubaOS-CX 6300M test data
* ArubaOS-CX 6300M test data
* num_oid fix
* Update fortigate.inc.php
* Add percent sensors for DHCP Pool usage (per vDOM)
* FortiGate 40F JSON Test Data
* FortiGate 40F JSON Test Data for DHCP Usage sensor
* Style-CI Fix
* Style-CI Fix
* FortiGate 40F JSON Test data
* FortiGate 40F SNMPrec Test Data
* Add license expiration days state sensor
* Add FortiGate license expiration count sensors
* Update FORTINET-FORTIGATE-MIB
Update to version 2023-07-21
* 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>
* 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
* 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
* Added models in hirshmann definition file
* Added Hirschmann_ms4128.snmprec to ~/tests/snmpsim
* Generic SysObjectID
* Some devices are not replying with all the table data
* fix tests accordingly
* add more sensors
* Move Temperature to YAML
Discovery and polling are currently buggy, this will fix it and make it capable of handling more than one temp sensor.
History of temperatures will be lost here.
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* fix regex for hardware and version
* updated test data
* Update hwg-ste2.snmprec
* Create hwg-ste2.json
---------
Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
* Added support of new OS for NTP/PTP systems:
- support of Meinberg microSync OS (mbg-meinbergos)
- support of Safran (Orolia) SecureSync OS (orolia-securesync)
- support of Adva OSA (5401 and 5412) OS (adva_fsp150cm)
* Fix Safran (Orolia) images
* Added Test-unit JSON files
* Changed SVG images
* Changed SVG images
* Changed SVG images