Commit Graph

8314 Commits

Author SHA1 Message Date
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
Peca Nesovanovic
05ad1fd242 [ipv4] fix /32 addresses discovery (#15863) 2024-03-01 00:27:32 +01:00
Tozz
d456e78109 YAMLized version of previous PR for Ericsson SSR 80xx routers (#15834)
* 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
2024-02-28 14:42:50 -06:00
fabriciotm
a38bd4d363 Changed the mouse-over graphs to temperature and humidity (#15851)
* Changed the mouse-over graphs to temperature and humidity
2024-02-27 18:47:52 +01:00
VoipTelCH
f7fc272843 Fixed graphs for icmp service showing PL 4 times (#15856) 2024-02-27 15:24:31 +01:00
Peca Nesovanovic
eb6006248f Rewrite ups-nut discovery to SnmpQuery:: (#15850)
* modernize and move ups-nut to unix

* fix test data (group and invalid runtime)

* add Battery Temperature to test data

* lnms dev:check style
2024-02-26 17:48:40 +01:00
Justin Lentz
80e0ee44f5 Update Port Real Time Graph error (#15846)
* Update graph-realtime.php

Fix Typo

* Update realtime.inc.php
2024-02-22 03:04:32 +01:00
Zane C. Bowers-Hadley
56471e63d7 add dhcp-stats tests and update for v3 of the extend (#15378)
* 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
2024-02-21 21:33:17 +01:00
bnerickson
7c59e64b7a Socket Statistic Application cleanup and application page graph fixes. (#15845) 2024-02-21 21:31:51 +01:00
Peca Nesovanovic
a9befd3b98 fix tp-link jetstream FDB discovery (#14321)
* jetstream fdb discovery

* ci
2024-02-21 12:29:43 -06:00
Peca Nesovanovic
8f2444f782 Rewrite lmsensors discovery to SnmpQuery:: (#15833)
* rewrite lmsensors discovery to SnmpQuery::

* change group name to lowercase (lmsensors)
2024-02-21 12:15:14 -06:00
Peca Nesovanovic
bfdc2c472f Rewrite ipv4 address discovery to Eloquent (#15830)
* rewrite ipv4 discovery to Eloquent

* style ci
2024-02-21 12:10:00 -06:00
eskyuu
3d94c53438 Modify the date selector to use the session timezone (#15783)
* 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
2024-02-21 11:45:12 -06:00
Tozz
4d3149497b Correctly identify FS Datacenter Switch N8560-48BC (#15837)
* Correctly identify N8560-48BC as FS-Switch-DC

* Add files via upload

* Add files via upload

* Add files via upload
2024-02-19 13:16:03 +01:00
Dirk-Willem van Gulik
f0934b53c5 Add kelvin to celcius conversion; as (liquid gas) coolant monitors report in Kelvin. (#15836) 2024-02-18 17:30:42 +00:00
Justin Lentz
7ebc469e06 Stop Oxidized page from refreshing (#15831) 2024-02-17 15:32:21 +00:00
Peca Nesovanovic
07ba563ed2 konica printers additional counters (#15826) 2024-02-14 06:51:21 -06:00