Commit Graph

2067 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
Ville Hukkamäki
0611f81b14
device - Add Procurve NAC support (#15794)
* Update to new HP-DOT1X-EXTENSIONS-MIB

* Add NAC support to Procurve OS

* Fix code style issues.

* Fix more code style issues.

* Fix code style issues. For real this time.

* Update HP-DOT1X-EXTENSIONS-MIB dependencies.

* use ::table(2) rather than reinventing the wheel.

* Fix the code style issues.
2024-02-03 20:42:12 +01: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
Ville Hukkamäki
133cf294b4
Add NAC support for Powerconnect (#15778)
* Add NAC support for Powerconnect

* Fix code style issues

* Fix more code style issues

* Rename mibs
2024-01-27 19:10:12 +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
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
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
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
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
Neil Lathwood
9b7d2f80e6
Removed fortigate tests that are breaking ci/cd (#15743) 2024-01-14 12:33:35 +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
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
Peter Reinhold
8fb94c07c4
Handle icmpjitter SLA parsing for iosxe (#15707)
* Added MIB file CISCO-RTTMON-ICMP-MIB to Cisco collection
Query rttMonLatestIcmpJitterOperTable when polling SLAs
Extended icmpJitter parsing to allow retrieval of jitter related data from multiple locations in MIB tree

Fixes #15658

* Appended snmprec data to testdata

* Update iosxe_c9300.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-01-08 18:42:00 +01:00
Jellyfrog
071ca9bc2a
Apply fixes from StyleCI (#15698)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-01-04 22:39:12 -06: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
Tony Murray
6bea8cffa6
New utility Number::constrainInteger() (#15663)
* New utility Number::constrainInteger()
Fixes a bug with Number::unsignedAsSigned() and implements signed support as well.

* cleanup

* Apply fixes from StyleCI

* Remove default cases

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-12-20 09:21:40 -06: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
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
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
PipoCanaja
a54a82aa36
device - McAfee Web Gateway -> SkyHigh Web Gateway (#15596)
* Trellix

* Trellix

* logos

* tests

* mibs
2023-12-15 10:22:30 -06:00
PipoCanaja
648a5ea7d3
bug - XDSL adslAtucCurrOutputPwr exception (Cisco CSCvj53634) (#15614)
* Cisco CSCvj53634

tests

change RRD minimas to accept negative dbm output power

unnecessary tests

* unsignedAsSigned function

* use new function Number::unsignedAsSigned

* negative power for Vdsl as well

* style

* style

* Add types

* simplify and exception if over max value

* Add tests

* Style fixes

* Tell phpstan to shut up

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-12-15 10:06:52 -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
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
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
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
Leo-FJ
149ecad745
Update entity-sensor.inc.php for xos' os (#15552)
* Update entity-sensor.inc.php for xos' os

* Update entity-sensor.inc.php - removed space

* Test data added
2023-11-21 16:51:16 -06:00
Wheel
3768e59448
Actual state of alarm contact beside config state (#15576) 2023-11-14 19:20:23 -03:00
Gerald VINCENT
11903150c8
Zyxel AP wireless client discovery enhancement (#14704)
* Update Zyxelnwa.php

Discovering wireless clients on all bands

* Update ZYXEL-ES-WIRELESS

Replace '_' by '-' as it is a bad practice to use underscores in values

* Update Zyxelnwa.php

* Update ZYXEL-ES-WIRELESS

* Update zyxelnwa.snmprec

* Create zyxelnwa.json

* Update Zyxelnwa.php

* Update zyxelnwa.snmprec

* Update ZYXEL-ES-WIRELESS

* Update Zyxelnwa.php

* Update zyxelnwa.snmprec

* Update Zyxelnwa.php

* Update Zyxelnwa.php

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-06 00:43:59 -06:00
RandGH
6534c8ebce
Add liebert detailsv2 (#14746)
* Restored abbreviated item labels

* Added receptions details on Liebert MPH pdus (non abbreviated)

* Fix whitespace

* Create liebert_mph2rg.json

* Update liebert.json

* Update liebert_mph2rg.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-04 13:03:01 -05:00
ottorei
531009983c
Fix Fortinet HA-status polling state translations (#14921)
* Fix Fortinet HA status polling

* Test data

* Update fortigate.inc.php

* Update fortigate.inc.php

* Update all test data

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-04 12:56:40 -05:00
Janno Schouwenburg
5b63f109c6
Dantherm hostname (#14223)
* Support for configured hostname to override sysName

* Update and add test data

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 19:25:56 -05:00
ottorei
e8ec4722f7
Add Panorama log collection write rate (#13864)
* Add Panorama log collection write rate

* Add index

* Add synthetic test data

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 19:02:42 -05:00
iNuc1ear
7a72f81ee6
Add disk sensors for Oceanstor (#15010)
* Update oceanstor.yaml

Adding Huawei Storage State Sensors

* Create oceanstor-dorado3k.snmprec

* Rename oceanstor-dorado3k.snmprec to oceanstor_dorado3k.snmprec

* Update oceanstor_dorado3k.snmprec

* Create oceanstor_dorado3k.json

* Remove extra fields

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 01:34:43 -05:00
Luis Wolfarth
0321e22f86
Adding basic support for Datacom DmOS devices. (#15436)
* Adding basic support for Datacom DmOS devices.

Adding basic support for Datacom DmOS devices. These devices includes OLTs and Switches developed by Datacom (Teracom Telematica Ltda):

https://www.datacom.com.br/en/produtos/dmos

All the product models which uses this OS (DmOS) have the same specific sysObjectID = .1.3.6.1.4.1.3709.1.2.137 So new future devices will also have this OID.

* Rename DMOS-SYSMON-MIB.mib to DMOS-SYSMON-MIB

removing extension ".mib" from the filename

* Rename DMOS-TC-MIB.mib to DMOS-TC-MIB

removing extension ".mib" from the filename

* JSON files

json files related to the snmprec files sent in an earlier commit.

* Update dm4770 test data

* Fix mib_dir

* Update datacom-dmos.yaml

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 01:33:25 -05:00
tydal-borge
24bf21049b
Axis: Add support for Security Radar (#15053)
* Update axiscam.yaml

Added 'Security Radar' to discovery regex

* Create axiscam_d2110ve

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 01:02:29 -05:00
Chris Adams
05a5fbc5b5
Add support for FiberStore "data center" switches (#15445)
* Add support for FiberStore "data center" switches

FiberStore has two different model lines of switches, and this adds
support for the "data center" line.  This was configured and tested
against the N5860-48SC model.

The MIBs are from FiberStore's website, with the exception of the
FS-FIBER-MIB (the website version is a little behind the software, so
support sent me an updated version and should be getting it published
soon).

This does not currently handle 4x10 or 4x25 QSFP+ light levels, as I
don't currently have any to test against.

* Add test data for fs-switch-dc

This is from a production switch, with data filtered to just the
FiberStore enterprises OID.

* Update fs-switch-dc_fs-switch-dc.json

* correct processors warn field name

* Update fs-switch-dc_fs-switch-dc.json

* Update fs-switch-dc.yaml

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 00:33:29 -05:00
Kevin Zink
c1abbdc2c2
Add Quantum Scalar I6000 Tape Library (#14915)
* Add Quantum Scalar I6000 Tape Library

* Update quantum.yaml

Poller  deactivation removed

* Update quantum_scalari6000.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 00:29:08 -05:00
Lasse Luttermann
691f64a90e
Added values from SFP DDM values for awplus switches (#15522)
* Added values from SFP DDM's

* Added tempreture as well

* Fixed indention and generel code style

* Update awplus.inc.php

* Fixed coding style

* More code style fixes

* More style fixes

* Test data

* Test data that only contains/matches the sensors added.
2023-11-01 23:31:15 -05:00
Fehler12
12c88f4af0
rework: Cisco SB Switch Temp and Fanspeed fix (#15225)
* rework

Sorry for the long waiting time. I've made some tests and found that the value 0 should be ignored anyway because some Cisco switches report a non-existing fan with a speed of 0 which causes several errors when adding e.g. a fanless switch. Therefore I would like to suggest to keep the skip_value for this case.

I've also seen no more fan flapping with the most recent switch firmware so maybe Cisco has fixed something internally.

* Fix Test Data sg350x-24p

* Corrected other ciscoSB-Test data

Corrected other ciscoSB-Test data

* Removed ciscosb generic test data

This snmprec behaves different for my test system and the git checks. In addition the model is missing.

* Reverted cbs250 testfile

For some reason the generated test file contains errors. Reverting

* Weired fix

* Fixed weired update

* Recreated snmp data for cbs250

Recreated snmp data for cbs250

* updatet test data

Reworked Test data with most recend version

* Removed unused SNMPsim-Data

the ciscosb_x snmpsim Data are not used. Most device types are covered with the other test data. SRW-Switch line is currently not fully working. I have such an old device I'll add test data in the future.

* Recaptured cbs250 Test Data

* Renamed cbs250 test data

I have the impression that the online test somehow does not reload the snmprec data correctly. Therefore I rename it to make sure it handles it as a new device

* Removed VLANs

* Removed Farenheit to Celsius conversion

It seems that with the most recent version cisco reports the temperature in C. https://community.librenms.org/t/cisco-cbs-350-reads-wrong-temperature/22038

* Fixed wrong copied data

* Altered warning limit to CLI-values

* Added snmprec data back

Added snmprec data back
2023-11-01 23:28:57 -05:00
Mark Westerterp
ba1d3ff9bd
Add FortiGate Environment stats (#15464)
* Add FortiGate Environment stats

Adding Temperature, Fanspeed and Voltage sensors

* Fix test data

* New test data

* Update fortigate test data

* 500d ospf ifIndex

* 60f3g4g bgpPeerIface null

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-01 23:27:16 -05:00
kmodzel
f535a9192e
Initial support for Moxa EDS-4000 Series switches (#15293)
* Create MOXA-DEVICE-IO-MIB

* Add files via upload

MIBS for EDS-G4000 Series

* Add files via upload

discovery for Moxa-eds-4000-series

* Add files via upload

definitions for Moxa-eds-4000-series

* Delete mibs/moxa4000. directory

* MOXA-GENERAL-MIB

* Delete mibs/moxa4000 directory

* MOXA 4000 Mibs

* Add files via upload

* SNMP data for MOXA EDS-4012-4GC

* Update moxa-eds-4000-series.yaml

* Update moxa-eds-4000-series.yaml

* Update moxa-eds-4000-series.yaml

* Update moxa-eds-4000-series.yaml

* Delete mibs/moxa4000/SNMP-VACM-MIB

* Delete mibs/moxa4000/NET-SNMP-VACM-MIB

* Moxa EDS-4000 MIBS

* Delete mibs/moxa4000 directory

* Update moxa-eds-4000-series.yaml

* Create moxa-eds-4000-series_eds-4012-4gc.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-01 23:23:40 -05:00
Wooboy
3cf5a6ceae
Add definition fujifilmprinter (#15381)
* Add support for Fujifilm printer

* Add support for Fujifilm printer

* fix Fujifilmprinter.yaml

* Add Fujifilm printer test unit

* remove snmprec supply descr contains utf8 character

* fix discovery yaml
2023-11-01 23:03:45 -05:00
Alexis Vézina
fc79d6b157
Wip/apc ap 7900b (#1) (#15392)
* skip negative values on power/power_consumed

* skip negative values on voltage for apc.inc.php
  adds comment in apc.yaml definition.

* add test data
2023-11-01 23:02:24 -05:00
Tony Murray
ce02f001ce
TrueNAS no longer supports zpool space usage (#15490)
* Freenas zpool improvement
Don't try to multiply two strings (cast units to int)
No need to double fetch database entries to check if it exists.
Only poll zpoolUsed to speed up polling

* Block zpool usage on new devices, they dropped support.
TRUENAS-MIB included for reference

* Fix polling, update test data
2023-11-01 23:00:58 -05:00
Galileo77
0fb72b39a2
vertiv pdu mg02e4w1 (#15484)
* Update vertiv-pdu.yaml

Detection of Vertiv Geist PDU type MG02E4W1

* Add files via upload

Testfile for Vertiv Geist PDU MG02E4W1

* Add files via upload

Testfile

* Update vertiv-pdu.yaml

* Update vertiv-pdu_mg02e4w1.json

* Add missing sensors from OP

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-01 22:33:09 -05:00
Tony Murray
44521ab2f1
UCD buffers and cache discovered with inverted free/used values (#15538)
* UCD buffers and cache discovered with inverted free/used values
(polling was correct)

* UCD Discovery was also double calculating "available"

* update test data

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-11-01 11:22:04 -05:00
Félix Bouynot
7a6ef2491e
Smokeping menu and title use device displayname (#15387)
* Menu and title use displayname

* Fix empty strings

* Fix array creation

* Use groupby instead of loop

* Change one forgotten var

* Revert to working simple changes

* Change test data to include displayname

* Fix bad copy paste in test data
2023-10-31 08:38:51 -05:00
Nick Peelman
f1c0d312ae
Add support for Nokia 1830 PSS Optical gear (#15516)
* Add support for Nokia 1830 PSS Optical gear

Tested against 1830 PSS-8 Chassis, in single and multi-chassis configurations
Supports Optical Power, temperature, current, power, and a variety of card states, alarms, and trail status.

Of note: With multi-chassis nodes, reading values from the non-master can be a "slow" process, slow in that the default timeout Libre ships with can cause the SNMP client to begin issuing retries.  This can result in the chassis daemon rate limiting and/or blocking the client.  The solution here is to raise the SNMP timeout within each device's configuration; unfortunately those values are not configurable on a per-OS basis (at least not at this time).

* Removing Unused / Duplicate MIBs
2023-10-30 13:53:22 -05:00
Tony Murray
7c542d70af
SnmpQuery runtime cache (#15512)
* SnmpQuery runtime cache
Optionally cache the SnmpResponse from queries for the rest of the runtime.
It would be nice to have cache hits for these to help prevent wasting memory caching data that is only used once.
Key data must match: device, context, options, oids

* Apply fixes from StyleCI

* Add command to the cache key

* Caching in the wrong spot, cache individual commands...

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-29 22:46:04 -05:00
Nick Peelman
30c95b7a76
Add Support for Samlex America PSR-1200-48 Inverters (#15515) 2023-10-28 23:34:16 +02:00
Peter Childs
520e53c4cd
add Wrong Type work around to snmp_get function (#15509)
* add Wrong Type work around to snmp_get function

* style-ci
2023-10-26 21:32:27 -05:00
Tony Murray
7e0b41a05a
IP::fromHexString handle ascii (#15504)
* IP::fromHexString handle ascii
Some bad MIBs convert the hex to ascii on display.
Attempt to decode that if the situation is detected.

fixes #15501

* add ascii tests
2023-10-26 10:03:03 -05:00
Tony Murray
f0aa80e73d
ports ifPhysAddress use MAC helper (#15478)
* Ports min polled period of 1
Prevent divide by 0
Use Mac utility

* fix bad snmprec for airos-af-ltu

* Update a large amount of invalid mac addresses
either the script is capturing them wrong or users are mangling them

* More updated test data

* Update test data with bad input

* Fix ones using encoded <private> and attempt to fix capture

* Update awplus data

* restore missing data

* update other DNOS

* Fix ones using encoded <private> and attempt to fix capture

* Fix ones using encoded <private> and attempt to fix capture

* fix typo

* Update some data

* update data

* update ruijie
2023-10-19 20:10:52 +02:00
metrojworthington
7bd1a57c3e
Mcc valere (#14753)
* modifications needed for update of VALERE-DC-POWER-MIB with new file ELTEK-BC2000-DC-POWER-MIB

* add test results for BC2000 post update

* updated test file data

* re-upload of updated files

* reverted valere.json to defaults and recreated with proper varient .json

* replace vpwrShelfIndex with vpwrBayIndex

* updated test data

* Update test data

* try again valere_bc2000.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-10-19 07:22:46 -05:00
Tony Murray
78a85fe3ef
Ports module: fix nulls not updating (#15467)
* Ports module fix nulls not updating

* Fix broken test data
I'd like to see how it came out broken in the first place, but I don't have access

* Update json data

* Fix fortivoice snmprec

* Fix scs-ks

* Fix bad siteboss550 data
2023-10-18 01:59:18 -05:00
bnerickson
78a4bfb9d9
Adding Socket Statistic Application Support (#15307) 2023-10-13 22:45:03 -05:00
cwispy
c30c24e22c
Fortimail add mail queues message count (#15444)
* Update fortimail.yaml

Added mail queues message count

* Update fortimail.snmprec

Update test data for FortiMail queues

* Add sensors fortimail.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-10-13 22:24:47 -05:00
Tony Murray
0540c56d0f
Add application metrics model and relationships (#15417)
* Add application metrics model and relationships

* update schema check file

* Add missed index

* Update testing definition

* sqlite can't create the id later

* update schema dumps

* update testing_persistent schema

* update baseline
2023-10-12 02:24:27 -05:00
Tony Murray
7c5b0e3612
Fix port module wrong null (#15431)
* Fix port module wrong null

* Update test data

* revert incidental data changes
2023-10-11 20:42:05 -05:00
Tony Murray
f21b2b3318
Fix datacom test data (#15437) 2023-10-11 18:23:32 -05:00
Tony Murray
c87c6e8b8e
Remove legacy addhost code (#15376)
* Remove legacy addhost code
Update webui addhost
Update device snmp settings page
Update discovery protocols device discovery (no longer force full new device discovery in process)

* remove baseline exceptions

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-07 22:02:45 -05:00
Tony Murray
d8c372bbf4
Refactor MAC utilities into a single class (#15379)
* Refactor MAC utils to a new utility class

* Apply fixes from StyleCI

* Inline functions
Add tests
Handle bridgeid format

* Apply fixes from StyleCI

* Dedicated code path for stp bridge parsing, and improve STP output a bit

* Correctly parse dot1dBaseBridgeAddress and don't store int in bool field

* trim any unexpected character from bridge addresses, add extra test data.

* better comment

* barsBridge can handle dot1dBaseBridgeAddress correctly now

* parseBridge, check for properly formatted mac first.

* update test data, empty data = empty mac

* Fix new usage after rebase

* import

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-06 07:34:14 -05:00
Tony Murray
087d588102
Vmware vminfo modernize (#15008)
* Vmware vminfo
Remove legacy file and migrate to OS discovery

* tighter

* ios_stp-vlans working correctly now

* Make vmwVmGuestOS nullable

* Discover os info too

* VM Info module

* Apply fixes from StyleCI

* Fix log severity

* Fix log severity (more)

* VM Info module

* Poll with ESXi too because it is lightweight
add test data

* poller data now too

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-05 19:49:26 -05:00
Tony Murray
be24993cbb
Remove snmp functions that are barely used (#15377)
* Remove snmp functions that are barely used
Replace them with SnmpQuery calls

* Apply fixes from StyleCI

* Fix missing namespace

* Import Oid

* No more variables left may be repeated multiple times at the end with snmpsim, remove them all

* update data fixed by SnmpResponse bugfix

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-05 01:29:22 -05:00
rolfbergheim
008efe41cd
eNexus: added some groups and corrected some references (#15129)
* Added grouping on the Voltage displays

Added groupings to better show which voltage and current variables that belongs together.

* Update enexus.json

* Update enexus_eltek-smartpack2-syst.json

* Update enexus_enexus.json

* Update enexus_smartpacks.json

* Update enexus_smartpacks2.json

* Update enexus_sp2touch.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-10-04 16:26:32 -05:00
Tony Murray
4211b1c46f
Remove unused functions (#15371)
* Remove unused functions
inline other legacy functions

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-04 10:17:34 -05:00
Noah Roufus
d472c5cbff
Added support for Cambium cnMatrix switches (#15351)
* Added support for Cambium cnMatrix switches

* Fixed styling issues

* Fixed styling issues

* Fixed duplicate, incorrectly labeled LLDP-EXT-DOT3-MIB and LLDP-EXT-DOT1-MIB

* Corrected MIB with the same name but with different OIDs configured: LLDP-EXT-MED/-CAMBIUM/-MIB

* Removed my added duplicate MIBs

* Removed unused MIBs
2023-10-04 01:50:41 -05:00
Justin Lentz
470dcbe9bf
Update aviat-wtm.json (#15368) 2023-10-03 16:47:45 -05:00
Noah Roufus
ca5b75a200
Added support for Cambium cnWave60 gear (#15358) 2023-09-27 18:07:08 -05:00
Cyril LAVIER
f9ef5fe3fe
Add model for Christie Digital projectors (#15088) 2023-09-25 18:39:20 -05:00
PipoCanaja
584768549a
Improve "count" graphs for F5OS (#15335)
* fix rrd_type: COUNTER and change index to force new graphs

* tests

* remove number in index
2023-09-25 18:28:40 -05:00
Noah Roufus
57e1d3ff48
Calix AXOS Sensor Changes (#15343)
* Sync'd up MIB changes

* Added new ONT sensors: admin/oper state, rx/tx levels
2023-09-25 15:30:30 -05:00
James
3e3d15c297
Adding Active Power in Watts to APCs (#15337)
* Adding oid upsAdvOutputActivePower

Adding oid upsAdvOutputActivePower under the power section as this value is in watts.

* Create apc_smx750.json

Adding test JSON data for APC changes

* Create apc_smx750.snmprec

Adding snmpsim test data for APC changes

* Update apc_smx750.json

* Update apc_smx750.snmprec

* Update apc_smx750.json
2023-09-23 16:35:40 -05:00
Wheel
52bc8dc7de
Device stulz WIB8000 (#15271)
* Device stulz WIB8000

* Fix multiplier oid is in bar + 1 decimal

* Fixed multiplier

* More stulz sensors
2023-09-20 06:41:31 -05:00
Justin Lentz
a1eb90fe69
Fix smartos-dcp-m.yaml (#15295)
* Update smartos-dcp-m.yaml

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Remove bogus 0 values

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update DCP-INTERFACE-MIB

* Update SO-TC-MIB

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m.yaml

* Test data update

* Update smartos-dcp-m.yaml

* Update smartos-dcp-m_dcp-m40-pam4-zr.json

* Remove Grouping

* Update Test
2023-09-12 10:05:08 +02:00
Tony Murray
0f8fb0aea3
RouterOS: use mtxrGaugeTable instead of mtxrHealthGroup (#15289)
* RouterOS: use mtxrGaugeTable instead of mtxrHealthGroup
Should now exactly match System > Health
Historical data will be lost

* fix yaml

* Fix numeric oid

* Update test data, add table to crs317

* Add groups and cleanup yaml

* revert state_name as it is used in the rrd file name

* Except the gauge table state sensor

* Group Health -> System

* update json

* update json
2023-09-08 13:55:51 -05:00
Zane C. Bowers-Hadley
2618a99be5
Application Soft Delete (#15270)
* add the softdeletes migrations for applications

* add working migration file

* add deleted_at to db schema.yaml for applications

* update includes/html/forms/application-update.inc.php to work with softdeletes

* update includes/html/pages/device/edit/apps.inc.php for softdelete

* update includes/discovery/applications.inc.php to work with softdelete

* minor updates to application-update.inc.php for disabling

* style cleanup

* set discovered when running discovery

* update application tests to include deleted_at

* add deleted_at to a missed test

* a few more tweaks for opensips

* add a missing deleted_at for linux_suricata_extract-v1

* fix fillable for Application model

* massive cleanup of the application update widget thingy

* improve the code for discovery and using Laravel

* add a missing line to app/Models/Application

* add a missing include to app/Models/Application.php

* record includes for Application model

* remove apps from the applications table when a device is deleted

* revert to using upcert and where for discovery to fix CI

* make discovered fillable and set it when running discovery... convert back to firstOrNew

* clean up application discovery a bit and use observer

* style fix

* spelling fix... disablaed -> disabled

* rever removal to just use where

* cleanup app removal on delete

* add restored to ModuleModelObserver

* delete -> forcedelete fix

* apply the suggested changes

* use murrants other suggestion

* style fix
2023-09-06 16:34:39 -05:00
eskyuu
298d217a8b
Added support for Nutanix VM count, disk state, CPU usage and RAM usage (#15252)
* Added support for Nutanix VM count, disk state, CPU usage and RAM usage

* Added num_oid values required for pull request

* Fixes for Nutanix AOS graphs
2023-08-30 21:11:04 +02:00
Tony Murray
2cd207028a
Implement RBAC (only built in roles) (#15212)
* Install bouncer

* Seeder and level migration

* Display and edit roles

* remove unused deluser page

* Update Radius and SSO to assign roles

* update AlertUtil direct level check to use roles instead

* rewrite ircbot auth handling

* Remove legacy auth getUserlist and getUserlevel methods, add getRoles
Set roles in LegacyUserProvider

* Small cleanups

* centralize role sync code
show roles on user preferences page

* VueSelect component WIP and a little docs

* WIP

* SelectControllers id and text fields.

* LibrenmsSelect component extracted from SettingSelectDynamic

* Handle multiple selections

* allow type coercion

* full width settings

* final style adjustments

* Final compiled assets update

* Style fixes

* Fix SSO tests

* Lint cleanups

* small style fix

* don't use json yet

* Update baseline for usptream package issues

* Change schema, not 100% sure it is correct
not sure why xor doesn't work
2023-08-28 00:13:40 -05:00
Félix Bouynot
93d7286381
Initial support for f5os (#15241)
* Create F5-COMMON-SMI-MIB

* Create F5-PLATFORM-STATS-MIB

* Create f5os.yaml

* Create f5os.yaml

* Create f5os_f5os.snmprec

* Create f5os_f5os.json

* Remove remaining test line

* Add mandatory num_oid

* Add num_oid for fanspeed

* Force use of index for fanspeed

* Force index for temperature + add snmp_flags to make it work

* Update test data

* Update test data
2023-08-25 01:53:21 +02:00
Tony Murray
6e4d124619
Misc fixes 2 (#15190)
* Fix error when missing poller data

* Apparently impossible to detect regex without error, so require regex always.  Update docs.

* Apparently this adva code is garbage :D

* Missing count sensor type

* Processor handle missing input

* Handle missing ifName a little better

* Yep, ports module is a dumpster fire.  Attempt to clean up some.

* apparently os yaml trying to replace on non-existent fields

* Might as well define all sensor type units

* revert previous fix, real issue was vlans module does not have polling.
2023-08-13 18:43:52 +02:00
Wheel
8bd8682bae
APC new sensors and fix (#15179)
* APC last input failure & display outlet name

* SNMP data & test files

* fix total energy divisor

* fix ap8853

* fix ap8959eu3

* test fixes

* Adjust sensor descr new format #{outletid} : {outletlabel}
2023-08-10 20:10:31 -05:00
Tony Murray
e100d17665
Netscaler, don't use 0 divisor (#15204) 2023-08-05 12:12:53 -05:00
Tony Murray
d1b7004fef
Severity Enum (#14620)
* Severity Enum
Replace old Alert constants

* Fix whitespace

* Additional uses

* style fixes

* Fix test too

* More missed locations

* More
2023-08-05 12:12:36 -05:00
Tony Murray
9382959c8c
Set mibs explicitly in SnmpQuery (#15199)
* Set mibs explicitly in SnmpQuery
Always override system mibs, so we have consistency
New method to control mibs

* Lint fixes
2023-08-05 14:45:15 +02:00
Tony Murray
523e76db71
Fix sensor discovery fetch issue (#15193)
* Fix sensor discovery fetch issue

* value is not in an array

* Fix type

* remove exception...

* Update HarmonyEnhanced

* update test data
2023-08-04 13:25:19 +02:00
jgelinas
65b4db8172
Openmanage enterprise modular (#14408)
* Add support for OpenManage Modular devices.

* Update dell-ome-m.yaml

Remove commented out dmmGlobalSystemStatus num_oid 
Change Max/Min Power to Peak/Min Usage

* json test file for open manage modular support

* Update dell-ome-m_dell-ome-m.json

* Update dell-ome-m_dell-ome-m.snmprec

* Update dell-ome-m_dell-ome-m.json

* Update dell-ome-m_dell-ome-m.snmprec

* Update dell-ome-m_dell-ome-m.json

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-08-03 19:55:09 -05:00
Jellyfrog
5a56e9081e
Use Laravel schema migration command directly (#14039)
* Add new schema migration command

* Apply fixes from StyleCI
2023-08-03 19:26:48 -05:00
fufroma
c030b0c00e
RFC1628 - Force cast on some values before doing arithmetic (#14613)
* Force cast on some values before doing arithmetic

Some devices (like Delta InsightPower G3 Mini SNMP Card) return STRING instead of numerical value.

A few lines after, when doing a division on it, everything go bad ( / $divisor).

I added force casting, no more crash and the values are OK.

* Using helper cast_number() instead of intval()

* Fix style

* Add test data

* Stop using deprecated function cast_number
2023-07-31 22:18:26 -05:00
Tony Murray
3908bddb49
Miscellaneous fixes (#15162) 2023-07-26 01:08:10 +02:00
Janno Schouwenburg
ffffdd2663
Fix Timos SAR Cellular RSRP and RSSI sensors (#15163)
* Fix Timos SAR Cellular RSRP and RSSI sensors

* For some reason test data generated on dev machine double quoted backslashes, fixed
2023-07-26 01:04:35 +02:00
Slashdoom
1f7d5451a2
Add VLAN Discovery for arubaos-cx (#15055)
* add vlan discovery for arubaos-cx

* style fixes

* style fixes

* string interpolation fix

* status walk not used

* add snmprec for 10.10 + vlans

* Create arubaos-cx_10.10.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2023-07-24 21:47:46 -05:00
Zane C. Bowers-Hadley
40cceee8b4
update SMART monitoring to the use JSON (#15132)
* rework into a json app and support the old style

* working now

* add health checking

* add some datapoints to make writing alerts easy

* add a few missing item for has checks

* rework the app page

* use the right var for id9

* print the self test log if we have it

* add a graph for the max temp

* display the max temp graph

* display the health pass in the disk list if we have the data

* fix legacy handling and set app as ok

* replace id190 and id194 with the more useful maxtemp graph on the apps page

* don't print the additional info area for legacy extends

* add id232

* add id252 graph support

* properly display id232 now

* do not display SSD graphs for non-SSD disks

* for legacy extends, make sure we don't have a bad line

* add missing label for Product value

* fix metrics

* rework the metrics stuff a bit more

* typo fix

* more smart metrics cleanup

* add exit info to metrics

* style cleanup and logic checking for when disks are all now fine

* fix checking for no more health errors

* update the docs for SMART for v1 and remove slightly pointless notes about useSN

* update the docs

* initial test stuff

* add missing tests for the legacy code

* save if it it is legacy or not

* style cleanup

* update the smart legacy test

* style cleanup

* more test tweaking

* some more style cleanup

* more test fixes

* correct the disk ID for the legacy test da0 -> Z304VCFY

* more tests update

* more test cleanup

* begin cleanup of the v1 tests

* more v1 test updates

* more tests for v1

* more test cleanup

* fix exit_nonzero and add unhealthy metric

* add smart alerts

* add the metric unhealthy to the stat test

* use app data for the smart-common.inc.php
2023-07-24 17:03:45 +02:00
fbourqui
a978476cda
Fortigate ipv6 ipsec (#15150)
* Squash Commit
Fortigate Mib updates and ipsc ipv6 tunnels stat
test data to go allong with it

* add optional -Ih flag

* lint fix

* revert changeed on test data 500d

* fix test data on 60f3g4g
2023-07-20 07:50:49 -05:00
Zane C. Bowers-Hadley
54a38dd4cd
add the Mojo CAPE Submit app (#15140)
* add poller for mojo cape submit

* mojo_cape_submit poller now works

* add app page for mojo_cape_submit

* add basic generic stat graphs for mojo cape submit

* general size stats graph for mojo_cape_submit

* make sure we update slugs that did not see anything submitted for them

* sort the slugs by sub count

* add app protos graph and sub top 12 graphs

* add mojo cape submit docs

* add tests for mojo_cape_submit

* add mojo_cape_submit to the apps page

* add string helper for mojo_cape_submit

* poke lots of stuff with php-cs-fixer

* remove a unneeded line

* add a missing metric and app data to test
2023-07-19 22:41:51 -05:00
Zane C. Bowers-Hadley
2ac9a634b4
Logsize monitoring for LibreNMS (#15137)
* add logsize poller

* add set size info

* add more stats

* add min size

* more logsize files

* add logsize

* fix creating log file links

* add two new graphs

* add some graphs

* add no_minus_d

* add no minus d to app page

* add count of log files

* save logsizes in app data

* rename title log sizes

* only show top 12

* add mean median and mode

* cleanup naming a bit

* the values for the files hash is now a int instead of another hash

* add new stats and correct median name

* now properly handle unseen

* fix logsize bits

* add combined

* update metrics and add some tests

* add logsize graphs to apps page

* add the logsize bit

* add logszie docs

* add some example alert rules

* style cleanup

* more style cleanup

* fix a few things for metrics and update the test

* fix a variable name in the test and update the data
2023-07-19 22:02:23 -05:00
Tony Murray
1d7d241894
Add Calix E7 (EXA) PON port sensors (#15145)
* Add Calix E7 (EXA) PON port sensors

* oops

* remove space

* skip sensors on down ports

* fix state generic values

* 10 oid was breaking... change to 8 max

* Add initial divisors... need to double check

* change power to dbm as it is more useful

* Add bias and limits

* Test data

* change skip value
2023-07-17 08:54:04 -05:00
AdamB
b27dfa5891
Add support for PrimeKey Software Appliance (#15059)
* Add PK-SOFTWARE-APPLIANCE-V2 MIB

* Add support for PrimeKey Software Appliance

* Move file to correct path

* Make the OS detection more specific

* Thanks vscode

* Sync filename with osname

* Not supported

* Track SQL database size as volume

* Two fixes
2023-07-07 23:35:53 -05:00
Sander Blomvågnes
8081a3f3c8
Change state value for unplugged linecard (#15126) 2023-06-28 14:24:59 +02:00
Zane C. Bowers-Hadley
00cf300d1a
add Suricata Extract submission stats app (#15105)
* add suricata_extract

* convert from dervive to gauge and use delta

* add suricata_extract to includes/html/pages/apps.inc.php

* graph cleanup

* add sub_size

* add sub_size graph

* add docs for suricata extract

* add tests for suricata_extract

* add rules for suricata extract

* minor test tweaks
2023-06-25 20:48:26 +02:00
Cyril LAVIER
dc7b702bd8
Add regex for Supermicro switches running firmware 2.0 or newer, now called "SuperSwitch" (#15083)
* Add regex for Supermicro switches running firmware 2.0 or newer, now called "SuperSwitch".

* Add test data for Supermicro MBM switch
2023-06-24 12:22:59 -05:00
Tony Murray
0a3678d11a
Convert several JunOS sensors to yaml (#15118)
* Convert several JunOS sensors to yaml
Fixes some issues with the php code and reduces extra snmp fetches

* Convert several JunOS sensors to yaml
Fixes some issues with the php code and reduces extra snmp fetches

* Convert BER as well
Allow divisor and multiplier to be set from oid

* use fillValues

* fix

* sort snmprec, fix divide by 0, add more context
2023-06-24 11:52:36 -05:00
Zane C. Bowers-Hadley
f84fca697c
add Privoxy stats support (#15114)
* add privoxy

* various style fixes

* cleanup option bar

* save metrics for privoxy now

* add instructions for privoxy

* add privoxy test data

* regen the test data

* add a few missing depends to the instructions

* add apps.inc.php entry for privoxy

* note the required log settings for privoxy

* style fix
2023-06-23 15:27:28 -05:00
Wheel
106219d9cb
APC new sensors (#15090)
* APC Emu dry contacts

* EMU test files

* Added energy and power sensors

* Revert "Added energy and power sensors"

This reverts commit b27b4a3ac2.

* Total energy sensor
2023-06-23 15:08:48 -05:00
mtentilucci
278890ce0a
update mlos-nsp discovery (#15117) 2023-06-23 14:43:03 -05:00
Zane C. Bowers-Hadley
5da8e70bf4
add Sneck support, making it very trivial to use Nagios style checks in a NRPE like manner (#13954)
* code stuff done for Sneck

* whoops, correct the abs value post adding it post rrd update

* return a array for getting the sneck data and nicely print the raw return value

* add test stuff and freeze time at 1650911765 for tests

* move the freezeTime

* add use Illuminate\Support\Carbon;

* more test changes

* rework freezeTime a bit more

* more test stuff

* another test

* rework it a bit again

* correct variable spelling for $time_diff

* remove freezeTime as we are using a old version of Laravel

* finalize graphs

* misc

* finalize sneck page

* mve the sneck tests as it needs a newer version of laravel than we are using

* add documents for sneck

* finalize the poller

* formatting cleanup

* correct comment type

* correct the spelling of description

* more documentation

* save the check returns as metrics

* add some more examples

* fix some of the sneck alerts and add a few more examples

* turn off time to polling by default

* suggest using ntp if enabled

* since we are zeroing time_to_polling by default, this now works

* backout some suggested changes for once we change to larval 9

* remove del_sneck_data as it is no longer used

* add more docs on the metrics

* php-cs-fixer to fix a few things

* update and fix sneck tests

* remote a metric from the test

* another minor tweak to the test

* one more minor change

* ahh! derp! think I found it finally... hopefully hanging this for the last time...

* now use app data

* now logs check changes

* add a missing )

* add a missing )

* some style fixes

* update the sneck page use to the app data stuff

* update the poller to use the new app data

* misc

* update sneck to log check status changes

* correct alert log messages

* correct a comment

* fix metrics

* derp, another fix

* test fix

* re-order to avoid warning

* poller update

* update sneck graphs

* update sneck graphs

* remove a unneeded line

* test update for discovery

* minor tweaks to the test and fix update the polling a bit

* style fix

* fix return data printing

* fix the test data to include app data

* attempted test fix

* add config def to apps.sneck.polling_time_diff

* cleanup docs a bit

* minor config tweaks

* minor doc cleanup
2023-06-15 09:06:28 -05:00
Justin Lentz
b0ddd4ef15
Extend Avocent Support (#14914)
* Add files via upload

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Rename ACS6000-MIB to ACS-MIB

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Create avocent_acs6048.snmprec

* Create avocent_acs6048.json

* Delete avocent_acs6048.json

* Same as avocent_6000

* Point at ACS MIB

ACS-MIB::acsSerialPortTableName

* Update avocent_6000.snmprec

Update avocent_6000 with additional MIB

* Update Test data

* Update avocent_6000.snmprec

* Update avocent_6000.snmprec

* Update avocent_6000.json
2023-06-14 22:50:44 -05:00
Jellyfrog
b14e2d4609
Apply fixes from StyleCI (#15101)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-06-13 13:35:00 +02:00
Garcia MICHEL
e547945985
Improve OpenWRT detection (#15096)
* Improve OpenWRT detection

* Add test data

* Remplace openwrt date with new one
2023-06-12 13:59:24 +02:00
Zane C. Bowers-Hadley
0ed68e33de
add Linux Softnet Stat app (#15094)
* add linux_softnet_stat poller

* add graphs and app page for linux_softnet_stat

* fix polling

* rename a few items, clean up the app specific page, and add to the apps page

* convert from derive to counter

* save the budget and budget_usecs to app data

* display current value of the budgets

* now track budget values

* add tests data

* rename it

* add docs for Linux Softnet Stat

* re-order and add budget for app page graph order

* style fix

* correct data location

* fix metrics for the json
2023-06-11 16:37:55 +02:00
Zane C. Bowers-Hadley
3190bdb8b2
add ZFS L2 support (#15095)
* add alerts for ZFS

* add initial l2 bits to the poller for zfs

* more minor tweaks to the ZFS poller

* more zfs bits

* add new ZFS graphs

* begin adding L2 stuff

* add linux_zfs-v3 bits

* update zfs app page

* style fix

* update the data for the zfs legacy test

* test update for zfs v1

* fix some zfs tests

* more zfs v3 test cleanup

* another zfs v3 test data fix

* more zfs v3 test data cleanup

* more test tweaks
2023-06-11 16:32:28 +02:00
Jellyfrog
2b3575a5e9
Laravel 10.x Shift (#14995)
* Apply code style

* Remove explicit call to register policies

* Shift core files

* Shift config files

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them and merged your true customizations -
where ENV variables may not be used.

* Bump Laravel dependencies

* Add type hints for Laravel 10

* Shift cleanup

* wip

* wip

* sync translation

* Sync back config

* Public Path Binding

* QueryException

* monolog

* db::raw

* monolog

* db::raw

* fix larastan collections

* fix phpstan bug looping forever

* larastan errors

* larastan: fix column type

* styleci

* initialize array

* fixes

* fixes

---------

Co-authored-by: Shift <shift@laravelshift.com>
2023-05-24 22:21:54 +02:00
d-k-7
dd3ed41319
add sensor support for cefcModuleOperStatus (#15026)
* add sensor support for cefcModuleOperStatus

* add tests for cefcModuleOperStatus

* revert sensors/state/cisco.inc.php

* add sensor support for cefcModuleOperStatus using yaml

* update tests for cefcModuleOperStatus

* try adding tests again for cefcModuleOperStatus

* include CISCO-ENTITY-FRU-CONTROL mib for cefcModuleOperStatus sensor state discovery
2023-05-24 20:43:37 +02:00
Jellyfrog
153be4d583
Tests: Fix Dusk tests after 13626 (#15057) 2023-05-23 19:23:15 +02:00
Tony Murray
04bb75f5f3
Alert transport cleanup, no_proxy support and other proxy cleanups (#14763)
* Add no_proxy and other proxy related settings
Set user agent on all http client requests
Unify http client usage

* Style fixes

* Remove useless use statements

* Correct variable, good job phpstan

* Add tests
fix https_proxy bug
add tcp:// to the config settings format

* style and lint fixes

* Remove guzzle from the direct dependencies

* Use built in Laravel testing functionality

* update baseline
2023-05-23 09:25:17 -05:00
Nick Peelman
da94ac5a85
Add RoomAlert 12E Switch Sensors, fix Humidity Sensor (#15049)
* Add RoomAlert 12E Switch Sensors, fix Humidity Sensor

* Fix per murrant

* Revert port data generated on older install

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-05-19 10:14:09 -05:00
Tony Murray
38c29e0222
Reduce OS module test noise (#15046)
* Reduce os module test noise
JSON stores 1.0 as 1, so format the actual data in the same way.
Add tests too to make sure this behavior doesn't break

* Only change floats
2023-05-19 09:57:39 -05:00
mtentilucci
e55c4e9e1e
Add support for Trellix NSP devices (#14964)
* Add support for Trellix NSP devices

- Add discovery for mlos NSP devices
- Monitor port statistics from non standard MIBs
- Add Trellix MIBs
- Add test data

* Fix StyleCI findings

* Rename MIB files to match MIB names, remove unused MIBs

* regenerate mlos-nsp_ns9500.json to account for changes from PR#14963
2023-05-16 17:25:29 -05:00
cjsoftuk
635acad7d6
Firebrick CPU Monitoring (#15030)
* Add FB CPU definition.

* Poll in the right OID.

* Add test data for FB CPUs.
2023-05-09 17:32:34 +02:00
bnerickson
56e9fa3742
Adding linux_config_files application support (#14776) 2023-05-09 10:23:49 -05:00
cjsoftuk
927446db7b
Fix Firebrick mempool polling (#15022)
* Add support for Firebrick memory monitoring.

* Add mempool testing for Firebrick.

* We have to specify the OID by numeric, because otherwise it assumes it's some kind of indexed table.

* Specify by OID.

* Fix test result data for the FB mempools.x

* Firebrick reports in KB.

* Fix precision in the tests.
2023-05-02 14:02:50 -05:00