Commit Graph

301 Commits

Author SHA1 Message Date
Peca Nesovanovic
390baa73fb add initial support for socomec-ups (#16018)
* [wip] add initial support for socomec-ups

based on: https://community.librenms.org/t/add-socomec-ups-with-netvision-snmp-card/24139

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>

* ci

* drop cache/precache

* drop MIB definition

---------

Signed-off-by: Peca Nesovanovic <peca.nesovanovic@sattrakt.com>
2024-06-04 11:24:30 +02:00
Tony Murray
d92004f4a8 Fix error in riverbed (#16066)
variable is overwritten
2024-05-26 18:50:17 -05:00
ottorei
07afbe8b7a Use null coalescing on Panos.php (#16019) 2024-05-06 19:56:24 -05:00
PipoCanaja
e19861c770 bug - Cisco NAC key error (#15934)
* fix https://github.com/librenms/librenms/issues/15933

fixing https://github.com/librenms/librenms/issues/15933

* nullables are now null
2024-04-11 20:59:05 -05:00
PipoCanaja
6b2be73a33 fix disabled radio returning 255, overloading tinyint signed (#15917) 2024-04-02 14:06:25 +02: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
Peter Reinhold
a5fec082e7 Updated SLA poller for Cisco Nexus 9000 (#15855)
* Handled rttMonLatestJitterOperPacketOutOfSequence and rttMonLatestJitterOperPacketMIA not being present on Cisco Nexus9000 routers by defaulting to null value when not found.

Non-existance of OIDs confirmed here: https://cisco.github.io/cisco-mibs/supportlists/nexus9000/Nexus9000MIBSupportList.html

* Added snmp test data

* Removed superfluous comments

* Fixed sla number in test data

* Removed spacing

* Removed ?
2024-02-27 12:46:28 +01:00
Nick Hilliard
800053c7f7 Add support for Cadant E6000 (#15813) 2024-02-09 22:52:32 +01:00
Ville Hukkamäki
e6a0006ed0 Add build 22631 as Windows 11 23H2. (#15800) 2024-02-05 00:22:06 +01:00
Ville Hukkamäki
391a918e2e refactor - Use ->table(2) rather than ::pivotTable function. (#15796) 2024-02-03 22:32:07 +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
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
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
craig-nokia
c97fd4e6f5 bug - "null" checks for SAR 7705 release 8.X (#15657)
Added null for SAR 7705 release 8.X
2023-12-18 16:40:06 +01:00
PipoCanaja
b12ee04bda bug - timos MPLS - more poller fixes (#15624)
* fix 1, ErrorException: Undefined array key sdpFarEndInetAddress in /opt/librenms/LibreNMS/OS/Timos.php:584

* fix2: don't try mplsSdpBinds polling if prerequisites not met

* fix 3: ErrorException: Attempt to read property lsp_path_id on null in /opt/librenms/LibreNMS/OS/Timos.php:790

* style

* fix phpstan

* schema_update

* schema

* migration_style

* migration drops and recreate

* migration drops and recreate

* migration drops and recreate

* style
2023-12-17 20:15:46 -06:00
Adam James
66cc34dbd2 Add support for Fortinet FortiAPs (#15641) 2023-12-14 11:29:02 -06:00
PipoCanaja
b0a355e8ba ?? null (#15613) 2023-12-04 03:54:19 +01:00
PipoCanaja
f59388d7f9 vrp - 'unknown (huawei)' state and change hwWlanRadioFreqType to hwWlanRadioType (#15564) 2023-11-11 20:19:42 +01: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
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
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
Tony Murray
b9881bbf36 Cisco WLC: fetch LWAPP SSIDs for client counts (#15531)
* Cisco WLC: fetch LWAPP SSIDs

* Apply fixes from StyleCI

* no need to check twice

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-11-01 11:21:11 -05:00
Tony Murray
e1f6b77204 Fix Ciscowlc error when bsnApIfNoOfUsers is not present (#15529)
fixes #15517
2023-10-31 08:25:35 -05: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
5b77dfc75c Huawei VRP AP controller fixes (#15450) 2023-10-13 22:26:33 -05:00
Tony Murray
afc78d7890 Timos MPLS nullables round 2 (#15448) 2023-10-12 18:53:05 -05:00
Tony Murray
2f33421aed Stop libvirt ssh attempts (#15438)
If enable_libvirt is not enabled, do not attempt to ssh to the target device.
2023-10-11 18:49:16 -05:00
Tony Murray
b7ab5be347 Fix VRP polling (#15428)
Was using deprecated database functions.
Use current methods
2023-10-11 18:36:35 -05:00
Tony Murray
6e3261f801 Fix timos mpls, add checks (#15430) 2023-10-11 09:56:09 -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
Tony Murray
c1258320f8 Availability module fixes (#15369)
* Refactor poller to allow modules to run even if the device is down
Include core in config (but not webui) to avoid silly shenanigans
Inject datastore into polling

* Needed to split datastore interface

* Cleanup some data_udpate() references

* Apply fixes from StyleCI

* Fix legacy poller :D

* Output to the correct stream

* Fix lint issues

* Apply fixes from StyleCI

* Fix discovery not including core and submodule handling

* Use whereRaw

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-04 10:32:59 -05:00
I-FGSD
e89f97057a Update Windows.php (#15350)
I added Server 2022 and Windows 10/11 22H2 (and a few other popular but older windows builds that people might still have in use).

I also propose changing the naming of windows machines to better reflect the release and version of windows. This naming is derived from this page: https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions

For example, for Windows Server it was previously set to something like 'Windows Server 2019 1809 (NT 6.3)' which is incorrect as MS stopped using NT 6.3 since Windows 10 version 1507. Now it'll display as 'Windows Server 2019 (1809)'. The kernel/version is in parentheses and isn't also in the main part of the name as it's redundant/duplicated information.
2023-09-26 20:54:57 -05: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
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
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
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
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
Mathias Bøhn Grytemark
204abe0cf2 add advantech icr-os for advantech routers (#14171) 2023-04-25 07:54:41 -05:00
Dan Baker
a340672e86 Added graphing of DDoS-protection related OIDs for PAN-OS (#14847) 2023-04-06 19:11:16 -05:00
Jellyfrog
68e0b3df28 Apply fixes from StyleCI (#14899)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-03-13 22:32:22 +01:00
GeantRA
2da5d4505b Refactored Juniper SLA to include support for TWAMP and remove ambigu… (#14787) 2023-02-24 13:09:52 +01:00
carbinefreak
d869b879d1 Nokia PMC Microwave Improvements (#14761) 2023-01-19 23:31:57 +01:00