Commit Graph

20485 Commits

Author SHA1 Message Date
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
Tony Murray
4622742629
Misc device column cleanups (#15518)
* Misc device column cleanups
Update last_ping on poll

* Revert inserted change for now
2023-11-02 01:51:52 -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
Tim de Boer
d5c6d0aaf4
Fixed BGP Remote peer link and graph in Routing Overview, or just static text when not a device in LibreNMS (#15535)
* Fixed BGP Remote peer link and graph in Routing Overview, or just static text when not a device in LibreNMS

* Added extra space

* Reverted back to overlibLink (due to BGP update graphs on hover)

* Added extra space

* Remove graph for remote peer, as it is falsely (showed earlier the Updates Graph for local peer)

* Removed unnecessary/unused code

* Remove graph for remote peer, as it is falsely (showed earlier the Updates Graph for local peer), replaced with just a DeviceLinks

* Change Url::deviceLink to return $text if the device doesn't exist.  Default to ''
Import some of the things to improve readability.

* update phpdoc

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 00:41:19 -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
Oritorius(Denis Rykov)
6999a6a102
Add support eltex more devices (#15108)
* Add support eltex more devices

* Add support eltex more devices

* Update eltex-olt.yaml

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-02 00:21:23 -05:00
jaannnis
28e817b7e9
Update renamehost include more logging (#15280)
Added logging output to renamehost() if an RRD Folder already exists for the new hostname.
Before: NOT renamed: Renaming of 10.4.0.146 failed
Now: NOT renamed: Renaming of 10.4.0.146 failed due to existing RRD folder forDEVICE
2023-11-02 00:09:59 -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
Wheel
f0bbab2419
Minor fix and tweak for graylog integration (#15455)
* Minor fix and tweak for graylog integration

* More flexible in other use cases

* fix again?
2023-11-01 22:35:44 -05:00
Wheel
9ca95a9ba5
Dark mode fix routing tabs & pages (#15485)
* Dark mode fix routing tabs

* Fix styling

* Fix styling

* move tbody

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-01 22:34:09 -05:00
VTS
47c6842b01
API: get poller group (#15493)
* API: get poller group

* missed string in doc

* return all poller groups if name/id aren't specified

* add missing doc link

* style fixes

* more style

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-11-01 22:33:35 -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
Peter Childs
828be4bb52
add auth_ldap_cacertfile and auth_ldap_ignorecert options (#15526)
* add auth_ldap_cacertfile and auth_ldap_ignorecert options

* style-ci
2023-11-01 20:48:44 -05:00
bnerickson
a8b4068922
[bugfix] Passing $device into data_update_helper functions instead of declaring it as global. (#15542)
* Passing @device into data_update_helper functions instead of declaring it as global.

* Style fixes
2023-11-01 20:32:41 -05:00
Tony Murray
95eab0d42e
Fix health temperature degree display (#15541)
* Fix health temperature degree display
It will be converted to html later. (otherwise it was double converted)

* Remove all &deg; it will only cause troubles
2023-11-01 20:35:35 +01:00
Tony Murray
183f9559f4
New command: lnms report:devices (#15539)
* New report:devices command
Print out a list of devices with user specified fields, optionally in csv format

* Polish

* Apply fixes from StyleCI

* Use spaces instead of tab for none type

* Fix method call

* other commands use whereDeviceSpec

* Apply fixes from StyleCI

* update command help and back to tab for separator

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-11-01 13:52:21 -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
PipoCanaja
dde970ddcf
bug - Fix missing device_id in NAC tab view, round 2 (#15537)
* Revert "Fix missing device_id (#15534)"

This reverts commit f678f4c540.

* fix
2023-10-31 19:21:09 -05:00
PipoCanaja
f678f4c540
Fix missing device_id (#15534)
Missed a commit in #15329
2023-10-31 16:09:38 -05:00
PipoCanaja
63f33642b8
string VS array (#15533) 2023-10-31 15:22:18 -05:00
Tim de Boer
bcf700c5fe
Added BGP Remote peer link and graph in Routing Overview (#15532) 2023-10-31 13:27:21 -05:00
Tony Murray
ef12cef6aa
Respect web_mouseover setting in popup component (#15530)
* Respect web_mouseover setting in popup component
fixes #15496

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-31 10:12:17 -05:00
Tony Murray
9c2d2cd412
OSPF tables fix integer types (#15528)
All Counter32 and Gauge32 types should be unsigned integers to match the range that can be returned via snmp
2023-10-31 10:11:56 -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
Dominik Riva
6134d9c153
Prefetch devices in group to avoid cost of subquery (#15511)
* prefetch devices in group to avoid cost of subquery

As proposed in https://community.librenms.org/t/librenms-getting-slow-and-eventlog-widget-gets-canceled-or-504/22270/4?u=slalomsk8er

* remove unnecessary implode & explode

* replace whereIn with whereIntegerInRaw

This is needed as whereIn has a default limit of 1000.
2023-10-31 08:34:42 -05:00
Tony Murray
e1f6b77204
Fix Ciscowlc error when bsnApIfNoOfUsers is not present (#15529)
fixes #15517
2023-10-31 08:25:35 -05:00
Nick Peelman
88b9744e02
Add sysObjectIDs for other models of PSS shelves (#15525) 2023-10-30 22:13:28 +01: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
Neil Lathwood
840cda00ff
Fix Bill using the wrong field for join (#15524) 2023-10-30 13:50:57 -05:00
helppp
f7c9b230db
Changed log item, source(s_sys) to source(s_src) (#15521)
This is based on the existing bug report: https://community.librenms.org/t/syslog-not-working-with-librenms-conf/20727

Proposed fix is tested and works
2023-10-30 09:28:07 -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
Tony Murray
6bc8a504bb
Plugin update (breaking) (#15498)
* Plugin update (breaking)
A couple breaking changes regarding property types and method arguments.
Add a setting to allow plugin errors to be shown instead of automatically disabling the plugin.
All default hooks now use Dependency Injection to make it easy to get access to whatever you need (such as settings)
Add a ton of comments and examples in the PHP code.
Expand a bit on the documentation, it could still use more help
Fix a bug in the settings and page view where the included blade file was output before the page headers, etc

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-29 22:45:23 -05:00
dependabot[bot]
37334e9abc
Bump browserify-sign from 4.2.1 to 4.2.2 (#15510)
Bumps [browserify-sign](https://github.com/crypto-browserify/browserify-sign) from 4.2.1 to 4.2.2.
- [Changelog](https://github.com/browserify/browserify-sign/blob/main/CHANGELOG.md)
- [Commits](https://github.com/crypto-browserify/browserify-sign/compare/v4.2.1...v4.2.2)

---
updated-dependencies:
- dependency-name: browserify-sign
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-28 23:45:58 +02:00
Tony Murray
f5b21047a1
Print stack trace in error dumps (#15514) 2023-10-28 23:34:56 +02:00
Nick Peelman
30c95b7a76
Add Support for Samlex America PSR-1200-48 Inverters (#15515) 2023-10-28 23:34:16 +02:00
Tony Murray
c22b74d46b Bump version to 23.10.0 2023-10-26 22:47:36 -05:00
Tony Murray
496071dbd7 Changelog for 23.10.0 2023-10-26 22:47:35 -05: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
db17036f5d
Ospf metrics fix (#15508)
* Ospf metrics fix
If the device gave an invalid IP for metrics, it would fail.
Fix this issue, and optimize the sql queries so less are needed.

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-10-26 11:21:08 -05:00