Commit Graph

8180 Commits

Author SHA1 Message Date
Tony Murray
0c35b7dc4f Device location map zoom out when location N/A (#16034) 2024-05-14 10:11:52 -05:00
Jarod2801
9ee7139f68 Added FibroLAN devices (#15967)
* Added FibroLAN devices

* Added FibroLAN devices including json files

* removed FibroLAN uFalcon-S
2024-05-07 22:55:55 -05:00
eskyuu
d7119fbc30 Linux MegaRAID SAS fixes (#15566)
* 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
2024-05-07 22:54:07 -05:00
Nicolas
8efa3370f7 powewalker improvements/fixes + test-data (#15999) 2024-05-01 11:23:37 +02:00
Tony Murray
07655c24af Merge duplicate toBytes functions (#15994)
* 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
2024-04-30 14:40:08 +02:00
Jarod2801
acd92e822b Add support for ULAF+ (#15997) 2024-04-30 14:38:01 +02:00
Sarabveer Singh
b14a86ecf6 Fix systemd graphs using wrong rrd filename variable (#15988) 2024-04-27 13:47:41 +02:00
Tony Murray
1dc62454fc Show custom maps in device overview (#15985)
* Show custom maps in device overview

* remove extra line return

* Sort by name
2024-04-26 15:10:24 -05:00
jthiltges
3f4bd69718 Correct swapped SET and WHERE parameters in bgp-peers/dell-os10.inc.php (#15983)
When the code was refactored in daa8c757f6, the selectors and updated columns were reversed.
2024-04-26 08:48:47 -05:00
Warren Ashcroft
1aa712e189 Fix graph_type variable (svg / png) (#15972) 2024-04-26 08:33:08 -05:00
paulierco
b7f4f14b30 New velocloud devices (#15958)
* aos7 tests

* Revert "aos7 tests"

This reverts commit fc9da4cced.

* Add more VeloCloud devices

* remove
2024-04-20 10:28:45 -05:00
Joe Clarke
018597e7bb Add support for a maintenance boolean in API results. (#15904)
* 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>
2024-04-19 19:52:22 -05:00
Tony Murray
36d14480f9 Fix Graph date selector (#15956)
It did not handle strings like now and -2d
2024-04-19 10:22:06 -05:00
Zane C. Bowers-Hadley
03e9b52295 only call stripslashes if it is not compressed, compressed is already protected against munging by snmpd (#15953) 2024-04-19 08:03:34 -05:00
Tony Murray
49f8269262 Improved Latency graph (#15940)
* 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
2024-04-18 09:57:01 -05:00
Tarek
4cce4f082e Fix typ (#15952)
Fixed a typo `Backlog Lenght` -> `Backlog Length`
2024-04-18 14:15:31 +02:00
Tony Murray
d29201fce1 Fix SQL injection issues in packages search (#15950)
https://github.com/librenms/librenms/security/advisories/GHSA-cwx6-cx7x-4q34
2024-04-17 02:32:35 +02:00
Jellyfrog
83fe4b10c4 Improve order validation in list_devices function to prevent SQL injection (#15885) 2024-04-16 10:38:17 -05:00
Tony Murray
1c4d92341f fix null in services (#15945) 2024-04-14 16:48:13 -05:00
Tony Murray
3d810970fb Fix PDNS recursor error (#15942) 2024-04-14 18:43:35 +02:00
OSIRIS-REx
393e954664 Added support for new device OS Westermo WeOS (#15674)
* 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>
2024-04-10 18:14:11 +02:00
Holger Hees
9df48647bb fix malformed snmp data parsing (#15931) 2024-04-10 15:40:22 +02:00
Hidde
f1070108e8 Add Fortigate HA state sensor definition (#15924)
* Add Fortigate HA state sensor definition

* Add SNMP test data to test FortiGate HA state sensor
2024-04-04 14:33:27 +02:00
PipoCanaja
84e11bcdfe typo for request rate + sanity on numerical not_null values (#15919) 2024-04-02 12:45:32 +02:00
Félix Bouynot
c220adce28 Cumulus mellanox discovery (#15732)
* Update cumulus.yaml
* Create cumulus_melanox.snmprec
* Update cumulus_cumulus.json
* Update cumulus_edgecore-as4610-54p.json
* Test file cumulus_melanox.json
* Rename cumulus_melanox.json to cumulus_mellanox.json
* Rename cumulus_melanox.snmprec to cumulus_mellanox.snmprec
* Fix cumulus_cumulus.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-04-02 01:00:54 +02:00
Heath Barnhart
d457f92f22 devices - Ciena RLS 6500 (#15909)
* 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>
2024-04-01 18:52:03 +02:00
d-k-7
dd6ac92f18 fix catos discovery (#15915) 2024-03-29 10:30:17 +01:00
Justin Lentz
4ddbf8baad Fix Vrf Table (#15912)
* Update vrf.inc.php

* Update vrf.inc.php
2024-03-28 22:50:12 +01:00
Tony Murray
05f06bafc1 OcNOS: add health sensors (#15910)
* 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
2024-03-27 12:23:44 -05:00
czarnian
f6d67c1cd8 Add support for Huawei YunShan OS (#15903)
* 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
2024-03-25 17:17:53 +01:00
Guy Lowe
3f6958706d Move sentry3 current/voltage/power sensors to YAML (#15715)
* 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
2024-03-24 16:47:42 +01:00
PipoCanaja
8c4205c614 refactor - remove unused entPhysicalIndex_measured (#15892)
* remove unused entPhysicalIndex_measured
* tests
* tests
* doc
* entPhysicalIndex_measured must be ports OR null currently
* Should not pass tests
* tests
* back to normal
2024-03-19 10:24:07 +01:00
Vadim Rõbalko
8aee02e03f Add support for Ubiquiti Unifi USP-RPS device (#15900) 2024-03-18 15:29:54 -05:00
Vadim Rybalko
418e860485 Add support for Ubiquiti Unifi LTE devices. (#15899) 2024-03-18 13:27:25 -05:00
Justin Lentz
c3a95cdda9 Revert "Fixed interfaces descriptions for multiport_bits_separate graphs type…" (#15894)
This reverts commit 2928b51c3d.
2024-03-13 00:06:26 +01:00
AdamB
d90a704fcb bug - Fix OSes 'Junos' and 'Hirschmann' misuse of entPhysicalIndex (#15886)
* 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
2024-03-12 08:15:15 +01:00
dmbokhan
2928b51c3d Fixed interfaces descriptions for multiport_bits_separate graphs type (#15893) 2024-03-11 16:52:29 -05:00
pjordanovic
d3f4fcfd30 device - EPSON DS-860 + Network Interface Unit DSBXNW1 (#15420)
* Create epson-scanner.yaml

add support for epson network scanner

* Create epson-scanner.yaml

add discovery info

* Add files via upload

epson_scanner_ds-860.snmprec

* Update epson-scanner.yaml

added snmp_bulk: false

* Update epson-scanner.yaml

* Update epson_scanner_ds-860.snmprec

change from snmbulkwalk to snmpwalk

* fix epson_scanner_ds-860.snmprec

* Rename epson_scanner_ds-860.snmprec to epson-scanner_ds-860.snmprec

* Create epson-scanner_ds-860.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-03-11 22:49:06 +01:00
bnerickson
d7c31e0ae3 Wireguard application graph cleanup and new wireguard interface/global metrics. (#15847) 2024-03-07 12:27:26 -06:00
PipoCanaja
4975a984b6 bug - fix unexisting fields in DB entry create/update (#15883) 2024-03-07 18:59:22 +01:00
Rafael Pardim
6b6b623e71 Checkpoint Gaia PowerSupply state sensor (#15882)
* Checkpoint Gaia PowerSupply state sensor

* Checkpoint Gaia PowerSupply state sensor
2024-03-06 12:00:14 +01:00
Michael Saringer
13552270fa Add support for Cisco FTD 3105 (#15881)
Add sysObjectID definition for Cisco Secure Firewall 3105
2024-03-06 00:08:19 +01:00
Rafael Pardim
a6809e4dcf Fix for Checkpoint Gaia VPN state sensor (#15878) 2024-03-05 02:20:25 +01:00
Tozz
718abd47de Fix for FortiSwitch RPM/percentage fans (#15829)
* 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
2024-03-05 00:11:04 +01:00
bnerickson
0998592e1f Systemd Application Code Cleanup and new Systemd Unit State Metrics. (#15848) 2024-03-04 23:58:28 +01:00
Jeff Engleman
c83d362e59 supermicro bmc updates (#15862)
* 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
2024-03-04 23:54:46 +01:00
Didr
1fedffbfe6 Remove config_bgp check in bird2 app (#15877) 2024-03-04 21:21:44 +01:00
Rafael Pardim
10c3f7ae94 F5 BIG-IP state and count sensors (#15865)
* F5 BIG-IP state and count sensors

* F5 BIG-IP state and count sensors
2024-03-03 22:48:21 +01:00
Ville Hukkamäki
c771726ef5 Forcepoint NGFW 6.11 and later; also known as Forcepoint FlexEdge Secure SD-WAN Engine after version 7.0. (#15872) 2024-03-03 22:43:46 +01:00
Rafael Pardim
7961e8156c A10 ACOS version, state and count sensors (#15871)
* 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
2024-03-02 11:59:16 +01:00