Commit Graph

8283 Commits

Author SHA1 Message Date
Tony Murray
54ec98cafb
API: return error when no ports found (#16043)
When looking up device ports (get_port_graphs), return an error when no ports are found.

fixes #15964
2024-05-21 22:05:44 -05:00
Zane C. Bowers-Hadley
3491f3d704
fix path related issues for ss and systemd applications (#16045)
* fix path related issues for ss and systemd

* ensure / is before include

* re-order use order
2024-05-21 07:33:02 -05:00
Tony Murray
65d13a742e
Fix icmp ping y-axis over 1000ms (#16039) 2024-05-18 18:32:14 -05:00
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
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
Justin Lentz
95cc27e696
Add HSRP Sensor support for IOSXR (#15821)
* Create iosxr.yaml

* Add files via upload

* Add files via upload
2024-02-13 21:50:27 +00:00
PipoCanaja
48b29db423
fix Counter64 octets value in 32bit column bgpPeerInTotalMessages (#15621) 2024-02-13 14:20:51 -06:00
Tozz
8429cba9f5
Add HSRP state sensors for Cisco IOSXE on L3 switches (#15823)
* Add IOSXE HSRP state sensor support

* C3850 SNMPsim

* IOSXE Test data JSON
2024-02-12 15:44:40 -06:00
Tozz
e7c8ebbc6b
Add support for Cisco IE1000 (#15820)
* Add IE1000 discovery regex to ios.yaml

* Cisco IE1000 Industrial Ethernet Switch - SNMPsim

* IOS Test results

* Update ios.yaml

* Update ios.yaml
2024-02-12 19:09:13 +01:00
Peca Nesovanovic
5769d7356e
initial support for Eltex mes24xx (#15816)
* initial support for Eltex mes24xx

* style ci
2024-02-11 17:54:10 +01:00
Tozz
374482dfcb
Add HSRP state sensors for Cisco IOS on L3 switches (#15809)
* 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
2024-02-10 18:01:41 +01:00
Leonardo Rizzi
b0c0530ec1
Fix "Tempurature" Typo (#15811) 2024-02-10 11:41:27 +01:00
Nick Hilliard
800053c7f7
Add support for Cadant E6000 (#15813) 2024-02-09 22:52:32 +01:00
Nick Hilliard
265f3daed5
Add LRT-C / LCM-B / LRS-D / LCM-B modules to Luminato model (#15812) 2024-02-09 18:32:46 +01:00
OSIRIS-REx
d6ce29c052
Support for new os/devices, CTS (#15790)
* 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>
2024-02-06 16:42:36 +01:00
richard-ririe
08ae2fdbc0
Add API endpoints to update and delete Device Groups (#15774)
* API: Update device groups

* API: Delete device groups
2024-02-05 13:02:36 -06:00
Peca Nesovanovic
6057053963
[rfc1628] Add UPS Test (battery test) status sensor (#15802) 2024-02-05 00:24:47 +01:00
Tozz
3771d995bb
Zyxel ZynOS PoE Budget sensor support (#15798)
* Add PoE power/budget sensors voor Zyxel ZynOS

* Zyxel ZynOS XS1930-12HP SNMPrec

* ZynOS updated test data
2024-02-05 00:23:54 +01:00
Tozz
566619b2a8
device - ArubaOS-CX VSF state sensor support (#15793)
* 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
2024-02-04 17:19:20 +01:00
Peca Nesovanovic
76509bfa09
device - webpower smart II snmp UPS card (#15764)
* 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
2024-02-04 17:18:22 +01:00
tevkar
49977a7fa0
Deliver output for a specific memcached instance (#15759)
To fix issues around 'no memcache output'. Associated with the relevant branch for librenms.
2024-01-31 22:23:40 -06:00
SourceDoctor
11246ca8e1
option to ignore device status (#15697)
* option to ignore device status

* .

* .

* schema update
2024-01-31 13:18:34 -06:00
richard-ririe
4277c3387a
API: Add/Remove devices from static devicegroups (#15775) 2024-01-31 13:09:14 -06:00
Tozz
7228dbfa23
Support for new Lancom devices (#15779)
* 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
2024-01-30 15:03:08 +01:00
PipoCanaja
a7a6e67e87
NAC - Improve search in WebUI - Keep Historical data (#15629)
* 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
2024-01-24 09:15:40 +01:00
Jason Costomiris
bbbdb37a72
Detect UniFi U7 APs as UniFi AP type (#15776) 2024-01-23 12:44:46 -06:00
Nick Lockhart
f3e0f3eb93
Add port description API endpoints and documentation (#15578)
* Add port description API endpoints and documentation

* Change "update_port_description" behaviour to mimic webUI behaviour

* Fix code style issue

* Fix another code style issue
2024-01-22 23:07:13 +00:00
Jellyfrog
0b8413ed96
Revert "bug - Fix API bug causing note updates to fail" (#15767) 2024-01-19 16:14:29 +01:00
Tozz
0406df7691
bug - Fix API bug causing note updates to fail (#15766) 2024-01-19 14:54:21 +01:00
Tozz
2a2ba4ba98
FS.com S5810 Discovery fix (#15765)
* Fix wrong identification S5810-48TS-P switch

* FS.com S5810-48TS-P SNMPrec

* FS.com S5810-48TS-P JSON

* Test data
2024-01-19 11:27:58 +01:00
Peca Nesovanovic
f9fc80966f
initial support for Supermicro BMC (#15750)
* initial support for Supermicro BMC

* removed pre-cache entry

* removed forced disable from yaml
2024-01-17 22:58:08 +01:00
Simon Wüllhorst
f1e993fb76
Update nvidia.inc.php (#15756)
* Update nvidia.inc.php

Handle changed output of newly released nvidia-smi

* improved code style

* Update Nvidia application - fixed a stupid typo

* Update Nvidia application - applied styleci suggestions
2024-01-17 22:57:47 +01:00
Stef
5733942aa2
WebUI - Alert Rule Editor: new notes field (#15631)
* 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>
2024-01-17 09:09:19 +01:00
Tozz
e9725358e3
Support for temp sensors - WUT Thermometers - W57605 and W57614 (#15757)
* WUT Test data
* W&T 57614 & W&T 57605 SNMPsim files
* Add 2 WUT MIBs
* Support for WUT Thermometers - 57605 and 57614

https://community.librenms.org/t/add-wut-thermometers-support-for-w57605-and-w57614-on-librenms/19039
2024-01-17 00:17:18 +01:00
SourceDoctor
ba48a17a45
Sort smart app disks by label (#15686)
* sort smart app disks by label

* .

* .
2024-01-15 23:05:10 +00:00
Justin Lentz
ee114218d4
Add PollerGroup as an option for OxidizedMap (#15696)
* Update SettingOxidizedMaps.vue

* Update api_functions.inc.php

* Update app.js

* Update app.js

* Style

* Update mix-manifest.json
2024-01-15 22:55:20 +00:00
PipoCanaja
598857c6ef
VRP - avoid emptying bgpPeers description at discovery when manually set (#15713)
* avoid clearing BGP peer desc at discovery

* more fix

* more fix
2024-01-15 22:43:53 +00:00
gunkaaa
4effb40294
Fall back to IPV6-MIB IPv6 address discovery if IP-MIB IPv6 address discovery doesn't return any valid addresses (#15714) 2024-01-15 22:41:33 +00:00
Arjit Chaudhary
651be0c4e1
Switch bill notes to textarea (#15749) 2024-01-15 22:35:44 +00:00
Jellyfrog
4fa5cb5cfc
Apply fixes from StyleCI (#15752)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-01-15 22:29:33 +01:00
Zane C. Bowers-Hadley
19e2062893
add BorgBackup monitoring support (#15591)
* 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
2024-01-15 15:39:49 +01:00
Peca Nesovanovic
41d26a0876
Added support for Dlink dgs-1250-28x (#15734) 2024-01-15 10:12:48 +01:00
My Random Thoughts
a1582dd405
Added missing word (#15746)
Service will **be** modified for the specified Device
2024-01-15 10:11:19 +01:00
kakohegyi
4456640e51
Zyxel Wireless Controller OS ( Zyxel NXC series ) (#15694)
* zyxelwlc

* Zyxel Wireless Controller OS

* Zyxel Wireless Controller OS

* Update Zyxelwlc.php

* test data

* sensor count graph

* sensor count graph

* sensor count graph

* sensor count graph

* fix indent

* trailing CR

* Trailing CR

* fix count def

* Delete includes/html/graphs/device/sensor-count-zyxelwlc-sessions.inc.php

Not necessary

* Delete includes/html/pages/device/graphs/sensor-count-zyxelwlc-sessions.inc.php

Not necessary

* fix tests

* fix tests for real

* session graph in core section

* session graph in core section

* session graph in core section

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-01-14 14:02:28 +01:00
Tozz
2fa4435840
Add FortiSwitch PSU state sensor support (#15735)
* 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
2024-01-13 23:37:11 +01:00
Tozz
054d647bfc
ArubaOS-CX PSU state sensor support & OS and serial detection (#15738)
* 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
2024-01-13 19:22:28 +01:00
Justin Lentz
060775b008
Revert "Add ieee754_to_float to custom_oid" (#15733) 2024-01-12 14:04:32 -06:00
i4networks
0351320f4d
Add ieee754_to_float to custom_oid (#15692)
Nokia SROS uses ieee754 in some SNMP OID's
2024-01-12 11:18:53 -06:00
z0d1ac-RU
17a054884c
Update eltex-mes23xx.yaml (#15725)
Added MES 2348B
2024-01-11 09:50:37 -06:00
rudybroersma
7292662038
Add FortiGate DHCP Scope usage percentage sensors (#15727)
* 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
2024-01-11 08:52:06 -06:00
rudybroersma
8d791f5c05
Add FortiGate license status sensors (#15722)
* 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
2024-01-10 09:11:10 -06:00
Jellyfrog
071ca9bc2a
Apply fixes from StyleCI (#15698)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-01-04 22:39:12 -06:00
Ville Hukkamäki
2ed5afc826
Fix Rancid error messages (#15683)
* Fix Rancid error messages

* Fix code style issues.
2023-12-31 13:19:32 +01:00
Justin Lentz
8e62ad53b4
Clarify In/Out (#15680) 2023-12-30 18:48:22 +01:00
Imre Liessens
21628dee0f
Ignore nameless health sensors for Fortigate (#15678) 2023-12-30 18:47:53 +01:00
sarcastic6
c1c20ef1e3
Add support for RoomAlert 32S device (#15676)
* Initial attempt to add AVTECH RoomAlert 32S support

* Add RA32S test units
2023-12-30 18:47:21 +01:00
SourceDoctor
abf8c564b7
fix smart application parsing (#15672)
* fix smart application parsing

* style fix

* test

* test

* test

* .
2023-12-26 22:10:14 +01:00
rudybroersma
7c0103a7bd
device - Add Cisco REP Segment state sensor (#15666)
* 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>
2023-12-21 21:30:53 +01:00
Luis Wolfarth
159b565ad6
Fixing memory scale for datacom-dmos devices (#15640)
* 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>
2023-12-21 19:59:38 +01:00
RobJE
4469df10f4
Use Number::constrainInteger instead of unsignedToSigned in Cisco NTP poller (#15667)
* switch to constrainInteger for cisco ntp too
* correct styleci issue
2023-12-21 19:15:02 +01:00
mtentilucci
b4a61636c1
Fix HPE iLO CPU Status Sensor Description (#15660)
* fix processor# description

* update hpe-ilo test data
2023-12-19 15:45:39 -06:00
Neil Lathwood
f8916842e7
Added better support for some HiveOS Wireless devices (#15661) 2023-12-19 14:32:07 -06:00
Garcia MICHEL
d8eec57690
Fix pagination in alert rules page (#15659) 2023-12-19 10:37:10 -06:00
Stef
0028311e1d
Fix wrong ASN discovery on non-BGP Devices (#14948)
* 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>
2023-12-19 07:07:27 +01:00
PipoCanaja
9fbdcfa96c
missing use (#15656) 2023-12-18 21:16:12 +01:00
PipoCanaja
759390ba4b
WebUI - Filter FDB and ARP tabs in port page if empty (#15653)
Tested OK

---------

* filter FDB and ARP tabs in port page
* style
* Use relationships

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-12-18 08:08:56 +01:00
PipoCanaja
d9595fc90c
bug - bgp-peers error in Timos -> dbFacile cleanup (#15620)
* dbFacile cleanup, step 1

* style

* tests

* tests-more

* tests

* tests
2023-12-17 20:05:02 -06:00
Angel
93baa514c1
Zhone health (#15276)
* 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
2023-12-17 18:52:28 +01:00
Tony Murray
e7114e33f9
API add_device: Add ping_ping fallback option (#15637)
* API add_device: Add ping_ping fallback option
improve docs a little

* More docs refinement
2023-12-17 18:08:37 +01:00
PipoCanaja
fa2919bb78
bug - Fix Cisco NTP values (#15639)
* ntp fix

style

* Number::unsignedAsSigned
2023-12-17 18:02:03 +01:00
PipoCanaja
a54a82aa36
device - McAfee Web Gateway -> SkyHigh Web Gateway (#15596)
* Trellix

* Trellix

* logos

* tests

* mibs
2023-12-15 10:22:30 -06:00
Adam James
66cc34dbd2
Add support for Fortinet FortiAPs (#15641) 2023-12-14 11:29:02 -06:00
Tony Murray
f2856846eb
Fix OcNOS detection for recent firmware versions (#15642)
* Fix OcNOS detection on recent versions
Devices just return the base vendor oid for sysObjectID now.

* add additional test data
2023-12-14 09:21:57 -06:00
Neil Lathwood
3951bbb248
Update query to be more efficient (#15622) 2023-12-14 10:33:01 +01:00
Ville Hukkamäki
624eb5aa09
Add support for Forcepoint NGFW 6.10 and older (#15632)
* 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>
2023-12-13 23:29:53 +01:00
PipoCanaja
8cf721c32f
bug - Nokia discovery protocols (#15606)
* nokia null check for discovery proto

* nokia null check for discovery proto

* fix for Nokia discovery + reindent

* fix for Nokia discovery + reindent

* style
2023-12-11 07:14:36 -06:00
PipoCanaja
efd5eb2a40
fix null exception (#15628) 2023-12-11 07:10:34 -06:00
Sweeny
f6e7795ca1
Add memory readings for Draytek OS (#15618)
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
2023-12-07 12:58:38 +01:00
Mitt
273c6c5b97
fix: grabled characters when oid already UTF-8 (#15615) 2023-12-05 07:13:16 -06:00
Christophe Guillaumie
21ccfa4096
Add and extend support for Hirshmann devices (#15588)
* 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>
2023-12-04 19:33:30 +01:00
Lucas Gasenzer
be1eefc096
Updated regex for HWG STE2 r2 to better detect hardware and software version (#15573)
* 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>
2023-12-03 21:05:51 +01:00
pjordanovic
6dfb9c41d3
Incorrect discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase ups (#15602)
* Add files via upload

* correct discovery of APC UPS as single-phase

False discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase.

* false discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase.

false discovery APC Smart-UPS RT 3000 XL 4.1 ( APC Web/SNMP Management Card (AP9619 MB:v4.1.1 PF:v3.9.4) as multi-phase.

* Delete tests/snmpsim/epson_scanner_ds-860.snmprec

* apc_surt3000xl.snmprec

apc_surt3000xl.snmprec

* json for apc surt3000xl generated by @laf

json for apc surt3000xl generated by @laf

* Fix apc_surt3000xl.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-12-03 21:02:53 +01:00
MaxPecc
afb7a61793
Added support of new OS for NTP/PTP systems: Meinberg OS, Safran (Orolia), Oscilloquartz (Adva) (#15453)
* 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
2023-12-03 00:36:31 +01:00
Neil Lathwood
13c934ab0b
Updated support for HiveOS Wireless newer models (#15610) 2023-12-01 17:34:21 -06:00
jduke-halls
7630983b5d
Add HPE iLO 6 to discovery (#15607)
* add iLO6 sysObjectID

* add test data

* reran tests with new variation name

* fix double extension on test json

* snmpreq file added
2023-11-30 18:54:50 +01:00
Neil Lathwood
3be233af57
Set array before use (#15604) 2023-11-29 16:18:26 -06:00