Commit Graph

1556 Commits

Author SHA1 Message Date
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
Tony Murray
1911dcb11f Skip rrd sources that do not exist (#15959)
* Skip rrd sources that do not exist

* Log message will be too noisy, remove it.

* style fix
2024-04-19 15:54:27 -05:00
Tony Murray
49f8269262 Improved Latency graph (#15940)
* Improved Latency graph
Store loss+jitter info in rrd instead of database
New graph icmp_perf (legacy ping_perf still valid referencing part of the newer data)
Delete device_perf table

* Change loss to an area so it is more visible

* Style fixes

* Cleanups from phpstan & tests

* exit_code fix

* Remove alert usage of device_perf

* Don't use magic __get

* Add test for bulkPing
Add host to previous tests

* style fixes

* Fix issue fping error responses
2024-04-18 09:57:01 -05:00
Joe Clarke
d7737b9889 Pretty up Slack formatting. (#15898)
* Pretty up Slack formatting.

* Normalize spaces by turning every instance of two or more spaces into
  one space.
* Allow for custom URL links even when strip_tags() is in effect by
  transformaing "standard" markdown syntax into Slack link markdown
  after strip_tags() is run.

* Document the changes to the Slack transport.

While here, flesh out the Slack docs to match the configuration options
one currently sees in the transport.

* Use backticks to escape things from markdown rendering.

* We don't need this other escaping now.

* Fix custom link due to line break.

* Fix spelling typo.

---------

Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-04-16 11:28:10 -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
Heath Barnhart
d457f92f22 devices - Ciena RLS 6500 (#15909)
* rls definition
* Adding discovery
* Temp Sensor Discovery
* files for discovery
* Adding and updating MIBS
* Add snmpsim
* Modified yaml for unit test
* phpfmt format
* ci changes
* fixing temp sensor
* fix json
* db schema out of date causing bad snmpsim json
* changed temperature discovery to php
* With updated snmpsim data
* index_string restored, YAML for temperature
* style
* Fixed index_string usage in JUNOS files
* Update YamlDiscovery.php
Allow filtering on "index" in skip_values
* Move DBM to YAML as well
* style
* schema update
* Slot XX Yyyyyy
remove unwanted dot
* matching tests
* schema, round 2
* states in YAML
* put temp sensor back in yaml
* enable default poll and discovery modules
---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2024-04-01 18:52:03 +02:00
Tony Murray
af2f953c7f Bump version to 24.3.0 2024-04-01 10:18:44 -05:00
Walkablenormal
c855d6c2fe Support for InfluxDB V2 API (#15861)
* Addition of influxdb-client-php to Composer.

* Addtion of InfluxDBv2 support.

* Addition of front-end options.

* Addition of documentation.

* Addition of the acknowledgement of the PHP library used.

* Fixed a unneeded bracket.

* Addition of a basic datastore test.

* StyleCI fixes.

* StyleCI fixes.

* StyleCI fixes.

* Fixed exception class.

* Revert accidental change.

* Fix to composer lock to not update all packages.

* Fix to composer lock to not update all packages, but still include the new Influx lib.

* Another attempt at getting Composer to behave the way I think it should work.

* Fixed merge-conflict in Composer due to #15869.

* Update composer.json

* Update composer.lock

* Update composer.json

* Update composer.lock

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-03-07 12:26:21 -06: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
Jellyfrog
4039d88b3b Update dependencies (#15869)
* Update dependencies

* fix new phpstan errors

* Update phpstan.neon
2024-03-03 22:45:09 +01:00
Tony Murray
f362746224 Bump version to 24.2.0 2024-02-27 12:54:10 -06: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
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
Skylark
851f682155 Transport - Jira transport rewrite (#15561)
* Add custom Field to Jira Payload

Allmost every Jira setup is diffenerent and requires customise information to be added to the API post.

This change will allow you add a custom fields to the '"fields": {   }' using json format.
Examples: are provided in the TransportUI

* applying StyleCI fixes

* Updating Jira transport

* Updating Jira transport

* Updating Jira transport

* styleci fixes

* Renaming variables to align with existing conventions

* Fixing imput checks to make sure values are legit

* style

* Fix minor typo

---------

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Justin Lentz <monkeybrains7@gmail.com>
2024-02-22 11:07:49 -06:00
PipoCanaja
36a3e39981 Fix for linkDown/linkUp ifOperStatus (#15835)
* linkDown

* LinkUp

* linkUp

* revert linkUp
2024-02-22 03:06:51 +01:00
Nick Hilliard
800053c7f7 Add support for Cadant E6000 (#15813) 2024-02-09 22:52:32 +01:00
Personwho
df54ff072c Remove dumpRawSql() function in AlertUtil.php (#15803)
It caused fail to execute alert/transports/{transport}/test
2024-02-05 14:13:27 +01:00
Ville Hukkamäki
e6a0006ed0 Add build 22631 as Windows 11 23H2. (#15800) 2024-02-05 00:22:06 +01:00
Joe Clarke
31e8557930 transport - enforcing Webex max message length. (#15789)
* Add support for Webex max message length.

Webex limits messages to just over 7 KB.  Some alerts might be longer
than this.  So truncate the message with ellipses.

While here switch to using the new API URL.

* Use spaces.

Formatting got messed up on the transfer from test to dev.

* Do the truncation after the message is massaged.

This may yield a few more allowed characters.

---------

Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-02-04 17:20:36 +01:00
Ville Hukkamäki
391a918e2e refactor - Use ->table(2) rather than ::pivotTable function. (#15796) 2024-02-03 22:32:07 +01:00