Commit Graph

1526 Commits

Author SHA1 Message Date
Tony Murray
50ff4fafed
Work around alert with bad data (#16287)
Avoid trying to count null by making sure it is an array
2024-08-15 18:21:50 -05:00
Tony Murray
f6fe0cf2da Bump version to 24.8.0 2024-08-15 15:14:10 -05:00
Tony Murray
9455173edc
Fix alert bug when key missing (#16281) 2024-08-12 12:21:14 -05:00
Tony Murray
f296464dae
validate.php proper exit code (#16274)
some fixes around database & poller checks
2024-08-08 20:00:56 -05:00
Tony Murray
cc971b6233
Fix runtime cache (#16272)
Fix runtime cache when redis is enabled, but not running
2024-08-06 13:11:44 -05:00
Tony Murray
a61cd16f86
Nac polling improvement (#16265)
* Nac polling improvement
Was loading all nac entries from the DB, then filtering them. Now it only loads non-historical entries off the bat.
All this because the filter was returning the wrong type...

* Add missing get
2024-08-02 20:44:47 -05:00
Cody Harris
d67df039e3
device - Added Baicells Atom OD04 CPE support (#14838)
This adds a MIB from the Baicells website, lightly modified
(s/BAICELLS-MIB/BAICELLS-CPE-MIB), and yaml files for LibreNMS. Currently OS
detection works, but sensors are reporting '0'.

I can easily get the data with snmpget, so I know that part is working. The
issue I'm seeing looks like the {{ $index }} substitution in my sensor yaml
isn't being filled out. Here's some example output from poller.php that backs
this up:

```
.1.3.6.1.4.1.53058.2.2.7.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.8.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.12.: Unknown Object Identifier ()
.1.3.6.1.4.1.53058.2.2.13.: Unknown Object Identifier ()
```

* adjustments to baicells od04

* undo modification to mib

* add original unmodified mib, tweak yaml, add time conversion function

* added baicells od04 snmprec

* skip invalid values

* Rename baicells-od04.snmprec.txt to baicells-od04.snmprec

* Update and rename BaiCE-BM-2.5.23_SNMP_MIB-CAT4.txt to BAICELLS-MIB

* Update baicells-od04.yaml

* Create BaicellsOd04.php

* move userfunc into OS

* style

* squash php casting warning

* missing static

* style

* fix {{ $index }}

* Create baicells-od04.json

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-08-02 19:18:17 +02:00
PipoCanaja
4777247327
Cleanup - Ensure percentage is calculated out of positive values only (#16250)
* Percentage and positivity

* fix bug victims hpe-ilo
2024-07-31 09:37:07 -05:00
Tony Murray
b41d1b7ffb
Fix Port Channels take 2 (#16246)
* Resubmit of #16227

* Add missing new files
2024-07-26 08:45:34 -05:00
Jellyfrog
e45dd59f77
Revert "Fix Port Channel (#16227)" (#16245)
This reverts commit 0d201c44c9.
2024-07-26 15:26:04 +02:00
Tony Murray
0d201c44c9
Fix Port Channel (#16227)
* Fix expandable sizing

* Temp fix: port_id_{low,high} is actually ifIndex

* new PortsStack discovery module, store actual port_ids

* Show 4 rows of ports by default

* Add test data

* Fix up the single port view too

* Apply fixes from StyleCI

* Update db_schema.yaml

* Update base migration because sqlite cannot add primary keys

* Fix phpstan failures

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-07-25 23:39:36 -05:00
Tony Murray
6dbcdceab2
Fix poller wrapper debug option (#16214)
* Fix poller wrapper debug

* fix lint failure
2024-07-25 23:13:17 -05:00
Tony Murray
55f603c30c
Refactor SnmpResponse mapTable (#16238)
Replace previous code with a couple of foreach loops
2024-07-22 21:23:10 -05:00
Joe Clarke
e6f02ea7ff
Add support for Prometheus pushgateway basic auth (#16230)
Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-07-21 20:03:32 +02:00
Frederik Kriewitz
23965cee49
Add support for memory, power status and transceiver monitoring to Fiberstore S3900 series switches (#16225) 2024-07-19 19:39:39 +02:00
Tozz
090611f6c1
Add support for FortiNet FortiExtender (#16219)
* Add support for FortiExtender - Wireless Sensors

* Add support for FortiExtender - Discovery YAML

* Add support for FortiExtender - YAML Sensors

* FortiExtender 201E SNMPsim

* FortiExtender 201E - Test Data

* FortiExtender MIB

* StyleCI

* Fix StyleCI

* Better now?

* Whoops

* Update fortiextender_201e.json

* Update fortiextender_201e.json

* Add files via upload

* Delete mibs/fortinet/FORTINET-FORTIEXTENDER-MIB.mib
2024-07-18 22:47:40 +02:00
Tony Murray
1cceafb887
Improve Snmpsim usage to ease testing (#15471)
* Snmpsim use python venv
Patch to enable listening while minimizing output
Update lnms dev:simulate, tests, and ./scripts/save-test-data.php
removed old option to start snmpsim from older scripts, use lnms dev:simulate

* Apply fixes from StyleCI

* various fixes

* Remove patch official package is updated

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
2024-07-17 16:05:07 -05:00
Tony Murray
f3227c3727 Bump version to 24.7.0 2024-07-17 01:35:08 -05:00
Tony Murray
04101c2c6f
SnmpQuery default improvements (#16204)
Always ignore underscores. Vendors constantly break this rule and it doesn't seem to have any side effects to enable -Pu.
translate respect hideMib() option
2024-07-15 08:52:37 -05:00
TridTech
a87ed6dcc5
Add NAC to Arubaos-CX (#16194)
* Create ArubaosCx.php

* Create arubaos-cx_nac.snmprec

* Remove un-needed "use" lines

* Add spaces for formatting

* Add blank default values if information is not present

For table entries that do not have a value, add a fallback to a blank string, following the lead of other OS files

* Changing return types for vlan to match column type

* Delete indents on blank lines to please the formatter

* Create arubaos-cx_nac.json

* Update arubaos-cx_nac.json

* fix authz_status missing value

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-07-15 14:04:34 +02:00
Walkablenormal
99f72823bb
InfluxDBv2 allow filter by group and disable debug by default (#16186)
* CHG: Dynamic debug flag and ability to exclude networks.

* Update config_definitions.json

* Update settings.php

* Update documentation.

* FIX: StyleCI Fixes.

* FIX: StyleCI Fixes.

* CHG: Changed excluding by network to by group membership

* Update settings.php

* Update config_definitions.json

* Update documentation.

* FIX: StyleCI Fixes.

* FIX: StyleCI Fixes.

* FIX: Fetch device data from cache.

* Add a check to see if we are trying to exclude by group before fetching groups.

* remove whitespace

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-07-14 18:17:02 -05:00
Tony Murray
ac8a69fa3b
Fix null in sensors discovery (#16201) 2024-07-14 17:30:43 -05:00
Tony Murray
711a0f9af9
Add entity physical test data (#16183)
* Add entity physical test data

* Fix voss_8608 accidental character

* Non-ascii character... unsure about this one.

* Fix bad types on test data.

* Fix bad types on test data.

* Updated test data since snmprec is repaired a bit

* More fixes

* Fixup more bad data

* Extra null byte removed

* Add missing info

* Fix bad data
2024-07-10 04:04:26 -05:00
Blair H
991424e543
Fix up the Siteboss571 discovery yaml to split pdnOutputCurrentValue and pdnMainCurrentValue indexes (#16181)
* Update siteboss571.yaml - Tidy up descriptions and fix current sensors

Fix issue with current sensors 1.1 and 200.1 - these were being overwritten with the per-module sensors due to overlapping IDs. insert extra index definition for each type. this is a breaking change that will cause new RRD files to be created for the current sensors with the new index names.

* Update siteboss571_siteboss571.snmprec

update test data

* Update siteboss571_siteboss571.json

* Revert "Update siteboss571_siteboss571.snmprec"

This reverts commit b767dbc91b.

* Revert "Update siteboss571_siteboss571.json"

This reverts commit a144078ed8.

* Create siteboss571_siteboss571-2.snmprec

* Remove Siteboss571 PHP detection, add new json test output

* Update siteboss571_siteboss571.json with new discovery

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-07-09 23:02:40 +02:00
f7naz
85268d0db6
SnmpTrap Handler for Cisco IOS LDP Session UP and DOWN (#16107)
* SnmpTrap Handler for Cisco IOS LDP Session UP and DOWN

* Indentation correction

* Indentation correction 2

* Indentation correction 3

* MIB correction in snmptraps.php

* Added test file and mib

* Added test file and mib - v2

* Added test file and mib - v3

* Added test file and mib - v4

* Added test file and mib - v5

* Added test file and mib - v6

* Added test file and mib - v7

* Added test file and mib - v8

* Added test file and mib - v9

* Added test file and mib - v10

* Added test file and mib - v11

* Added test file and mib - v12

* Added test file and mib - v13

* Added test file and mib - v14

* Added test file and mib - v15

* Added test file and mib - v16

* Added test file and mib - v17

* Added test file and mib - v18

* Added test file and mib - v19

* Added test file and mib - v20

* Added test file and mib - v21

* Added test file and mib - v22

* Added test file and mib - v23

* Added test file and mib - v24

* Add ifAlias in logs messages and change type to interface for message

* Add ifAlias in logs messages and change type to interface for message

* Add ifAlias in logs messages and change type to interface for message

* Add ifAlias in logs messages and change type to interface for message

* Add ifAlias in logs messages and change type to interface for message

* Add ifAlias in logs messages and change type to interface for message
2024-07-04 15:16:12 -05:00
Tony Murray
fd3e786987
Fix incorrect get_class call (#16179) 2024-07-04 14:30:32 -05:00
Tony Murray
3aedfb4f3b
Fix some testing issues (#16174)
* Fix some testing issues
index doesn't exist in ModuleTestHelper
Cache issue in NetSnmpQuery (specifically affects testing)

* Apply fixes from StyleCI

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-07-02 09:21:39 -05:00
Zane C. Bowers-Hadley
75d4da325a
add generic and improved NFS support with initial support for both FreeBSD and Linux (#15906)
* add nfs-shared.inc.php

* add nfs poller

* polling now works

* add nfs.inc.php page

* mount options works now

* format cleanup

* add some missing items to the stats

* commit work from last night so I can swap over to ldap

* add gauge support

* save the OS type for it

* more work on NFS stuff

* more nfs work

* display cleanup some

* more nfs work

* update docs for NFS

* add nfs_server_rpc

* style fix

* add snmprec file

* more test stuff

* data cleanup

* style cleanup

* more style fix

* another style fix

* add deleted_at

* add client_rpc_info_calls

* more test tweaks

* more tweaks

* set two items as gauges that should be gauges

* convert a few more things from counters to gauges

* a few more tweaks for NFSv4
2024-06-30 19:36:58 -05:00
Frederik Kriewitz
39a1a6e30b
add support for snmpsim-lextudio (#16161) 2024-06-29 11:29:41 -05:00
Tony Murray
473cbcc508
Handle ad/ldap authorizer search error (#16139)
* Handle ldap authorizer search error

* Update LdapAuthorizationAuthorizer.php

* More ldap failure checks
2024-06-24 19:49:34 -05:00
Justin Lentz
338e0acbe4
Alertmanager Striptag Dynamic Variables (#16141) 2024-06-20 09:37:34 -05:00
Tony Murray
075ba4c932
Ports UI update (#16115)
* WIP Device Ports porting to Laravel

* WIP port links

* Port Links WIP

* Port Links

* in_array -> isset

* Add request to DeviceTab data

* Add initial Pagination

* Missing select component

* Collapsed and expandable port neighbors
New expandable component

* Port sorting

* Fix port transfer

* Use menu entries to filter ports

* Add translatable strings

* style fixes and cleanup

* update css

* graph views and tidy controller
basic port link view

* cleanup

* port row blade to reuse in legacy port view

* Legacy tab url handling
work properly in subdirectory
remove includes from sub tab directory to prevent oddity

* fallback to detail list when the view doesn't exist

* Use named variable to simplify

* Fix issue from file that was a symlink

* Submenu handle sub items and query string urls

* extract pageLinks to improve readability

* fix typo

* Apply fixes from StyleCI

* phpstan was not happy using the relationship HasMany query

* Don't allow *bps etc to be on a second line

* Improve table on small screens

* Fix sort

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-06-16 11:29:06 -05:00
Tony Murray
a717e084f0 Bump version to 24.6.0 2024-06-16 11:23:37 -05:00
PipoCanaja
d48fa27fbd
Rename index_string to str_index_as_numeric (#15916)
* rename index_string to index:str2num

* rename to str_index_as_numeric
2024-06-13 10:00:03 -05:00
Tony Murray
0cdb58fab9
Don't run poller validations when there are no devices (#16088)
* Don't run poller validations when there are no devices

* Missing import
2024-06-04 21:55:24 +02:00
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
8bf40c5eef
Fix fping bulk (#16085)
* Fix Fping bulk
When an ICMP unreachable message was returned (stderr), the output processing would save it as if it were a partial line, breaking parsing.
Only save a line if it is the last line of the output (not ending in a new line)

* Add test case

* safer logic
2024-06-03 21:29:29 -05:00
Nicolas
c777d5429e
Fix duplication of processor entries & limit length of type (#16075)
* Fix duplication of processor entries & limit length of type

* delete duplicate processor entry

* added maxLength to processor type

* shorter processor type

* forgot to regen test data
2024-05-29 14:42:05 -05:00
Tony Murray
d92004f4a8
Fix error in riverbed (#16066)
variable is overwritten
2024-05-26 18:50:17 -05:00
Ashwath Venkataraman
c7708922ab
Create Alertops.php (#16050)
* Create Alertops.php

This is a request to add this Transport publicly, so alerts can be sent to AlertOps' webhook endpoint - AlertOps is an alerting/notification tool.

* Update Alertops.php

* Update Alertops.php
2024-05-22 22:03:51 -05:00
Ron
79184e8345
SIGNL4 Alert Transport (#16037)
* SIGNL4 Alert Transport

SIGNL4 alert transport added.

* Update Transports.md

* Update Signl4.php
2024-05-22 10:16:35 -05:00
Tony Murray
2a42bf714f Bump version to 24.5.0 2024-05-19 22:53:54 -05:00
Tony Murray
34032723c4
Revert "Fix for AD Lookup in our environment (#16001)" (#16035)
This reverts commit 250c3e32c3.
2024-05-14 09:57:07 -05:00
Tony Murray
cdd7d9a0ba
Rrd source does not work with rrdcached (#15974)
Skip file migration, but at least the rrdcreate will succeed now.
2024-05-07 23:17:32 -05:00
ottorei
07afbe8b7a
Use null coalescing on Panos.php (#16019) 2024-05-06 19:56:24 -05:00
sonic45132
250c3e32c3
Fix for AD Lookup in our environment (#16001) 2024-05-01 06:56:47 -05:00
Heath Barnhart
11142d349b
SNMP Traps - Ciena AAA (#15998)
* Ciena AAA snmp trap handler

* Removed IP from log message

* Added unit test

* Fixed unit test

* Removing reference from handler
2024-05-01 11:25:46 +02:00
Tony Murray
07655c24af
Merge duplicate toBytes functions (#15994)
* Merge duplicate toBytes functions
Replace other duplicate code and add tests

* Allow space between similar to formatSI output

* Style fixes

* Match previous behavior in Docker app
2024-04-30 14:40:08 +02:00
Warren Ashcroft
1aa712e189
Fix graph_type variable (svg / png) (#15972) 2024-04-26 08:33:08 -05:00
Tony Murray
9088a34299 Bump version to 24.4.0 2024-04-19 20:52:35 -05:00