2301 Commits

Author SHA1 Message Date
4dd369294e Fix Discord Transport when Fields to Embed Left Empty (#16439)
* Add PHPUnit test for LibreNMS Discord transport

* Style

* Adding comments for methods and others.

* Refactor title, color, embedFields and footer to its own methods.
Renaming and comments.

* testDiscordDelivery includes img and html tags.

* testDiscordDelivery tests INI options

* renamed getter methods for clarity.
Refactor to includeINIFields() method.

* refactor attribute $discord_message;

* Discord.php: Bugfix "Error: Invalid Field" when discord-embed-fields is left empty.
Discord.php: Removed DEFAULT_EMBEDS (defaults are not working with text fields).

DiscordTest.php: transport config tests improved.

* Transport.md: Documented options, images and ebed fields. Better examples.

* typos

* styleCI and PHPStan

* StyleCI

* StyleCI
2024-10-06 21:40:08 +01:00
76050e3b3c Update docs for Opensearch for the newest version of the extend (#16482) 2024-10-03 08:12:22 +01:00
d2720d9d2b Changelog for 24.9.0 2024-09-29 16:47:36 -05:00
e08571c38c Transceiver Support (#16165)
* Add transceivers module

Move os specific code to OS

Fix errors and updated connector names

Add RouterOS, a lot less data there.

Add Comware

Add Exa, required a transformer function (mw to dBm)

Add Junos, revision was too short

Just starting on ui

Graphs, and more ui
some polling fixes

collapse header for small screens

refactor a bit

Missed graphs

Transceivers icon inline

Use @once on popup javascript

update db_schema.yaml

Don't show transceivers in basic view
basic view could use a review

Apply fixes from StyleCI

API functions

Comware don't fail if port is missing

Apply fixes from StyleCI

Add alert rules to collection

Device Overview

Attempt to fix bad alert rule, probably needs more

Fix up Comware and remove old sensors

Mark transceiver metrics without thresholds as Unknown

Routeros cleanup

Exa cleanup

Handle missing port

Graph allow filter by channel

More translations

Add transceiver graphs to port graphs

Add Cisco support, use entPhyscial module data if available

Fix OcNos divisors

Labels on transceiver page

Show encoding if available

Hacky OcNos port mapping

Fix up Junos optics and remove old sensors

FS switch support
Metric casts to prevent thrashing
Extra transform_function support

Add link to transceivers page from overview

Change default sort to group by type, then channel
move some code out of overview blade template
Fix bad type ocnos

Apply fixes from StyleCI

Add scales to graphs

Add some test data

Default sort order for metrcis in SQL applied by default

Transceiver metrics threshold manual settings via WebUI and API

Fixes to channels verbiage

Fix severity calculations

Add cable field for SM/MM/Copper

Apply fixes from StyleCI

update test data

Show DDM

Update DB schema file

Extend serial field to 32, even though devices shouldn't be able to have one longer than 16

Missing import

Add status field to database, that way we can support snmp implementations that only return an enum

Add missing files

Fix db_schema

Fix style

Fixes

Style fix

Work around phpstan issue

Update transceivers.blade.php

Missed getStatus() call

Prevent extra dots when channels are not changed

Update module to match upstream

Save ocnos metrics as sensors

Move to regular sensors

add entity physical index

Update UI to sensors WIP

Apply fixes from StyleCI

Forgot one change

Update ui to use sensors

Remove transceiver metrics

Remove metric os discover code
fs-switch pending

Remove transceiver metrics for fs-centec

Exa link up

Revert all test data

Fix up transceiver module interface

Remove unused Convert class

comware cache and transceiver type

Fix some transceiver metrics filtering and formatting issues

Consolidate display formatting

Coalesce commare hh3cTransceiverTable walks to prevent double walk

Use group to identify transceiver sensors

Fixup routeros

Fix up cisco

update db_schema

Small addition to docs

Improve overview layout and add graph popup

Update Junos

update css files

ddm should be nullable

Increase the field length for type and model

Cisco Improve detection when there is an intermediary container

Add transceiver test data

Apply fixes from StyleCI

Fix incorrect test data

Improve display formatting

Fix test data

Apply fixes from StyleCI

Fix up more data

Fix up more data

Fix incorrect return type in routeros

Update ocnos data

* Remove some remaining references to transceiver_metrics table
2024-09-29 11:05:44 -05:00
375903025d Bump minimum PHP version to 8.2 (#16413) 2024-09-20 02:22:24 +02:00
f7142980d2 python3-command-runner is only available in Ubuntu 24.04 (#16390) 2024-09-11 15:12:11 -05:00
40d0f68e3a Add full python dependencies to Ubuntu 22.04 and 24.04 install docs (#16354) 2024-09-04 09:55:39 -05:00
f15f8fa63a Sensors remove reliance on global variable (#16344)
* Sensors remove reliance on global variable

* Apply fixes from StyleCI

* Clear the instance instead of reset.
Remove $valid['sensors'] from docs

---------

Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
2024-09-03 21:04:34 -05:00
4fd528c95d Update RRDCached Tune version (#16352) 2024-09-03 17:05:59 +02:00
02a40ebfd5 feat: add Ubuntu 24.04 installation method (#16334) 2024-08-30 08:11:27 -05:00
61ad4bfbbf Plugins v2 cleanup (#16298)
* cleanup

* use Illuminate\Support\Facades\Auth;

* style

* add route:cache and revert

* add route:cache and revert

* fix   in pluginExample

* fix Example plugin

* style

* fix other Hooks with Illuminate\Contracts\Auth\Authenticatable

* style

* whitespace

* whitespace2

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-08-26 19:45:12 +02:00
a412845b22 VisJS: fix link (#16315) 2024-08-26 15:57:21 +02:00
7b98721e32 Poudriere support (#16229)
* add the poller

* save text status stuff

* add initial app page stuff

* add history table and start work on graphs

* checkpoint

* re-work the poudriere graph bits a bit more

* fix the poller and start work on the graphs

* polling fix

* more work on the poudriere stuff

* poke stuff with php-cs-fix

* add some more graphs

* more style fixes

* another style fix

* add more graphs

* add Poudriere docs

* add tests data

* some minor tests fixes

* a test tweak

* more test tweaks

* some more test tweaks

* tweak .data.build_info data .data.build_info to make the app data test saner

* derp... missed a item

* add app data
2024-08-21 01:27:26 -05:00
e5838ebf1f Remove indentation causing faulty rendering (#16301) 2024-08-19 19:52:23 +02:00
d786f6ef40 Changelog for 24.8.0 2024-08-15 15:14:09 -05:00
7ba06e090f Update Devices.md (#16252)
Fix typos
2024-07-31 09:35:52 -05:00
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
1f01d7e627 Docs Update: Large Scale LNMS Deployment Example (#16226)
* Update Distributed-Poller.md

* Update Distributed-Poller.md

* Rename librenms-distributed-diagram.png to librenms-distributed-diagram-openstack.png

* Update Distributed-Poller.md

* Add files via upload

* Update Distributed-Poller.md

* Update Distributed-Poller.md

* Update Distributed-Poller.md
2024-07-21 14:30:17 +02:00
e64f5be06f Changelog for 24.7.0 2024-07-17 01:35:07 -05:00
8738e978ce extend update for wireguard, correct is_int to is_numeric for polling purposes, and clean up the app page (#16182)
* replace is_int with is_numeric

* update the docs for wireguard for the new extend

* relocate the app data bit

* update the data for the wireguard test

* start reworking the wg app page... details part done

* app page mostly done

* finish the wireguard app page

* style fix

* now sorted

* add additional info to the peer page

* style fixes

* a small fix for the links

* style fix

* make the pubkey column in details link to the peer page

* escape the pubkey
2024-07-14 22:58:41 -05:00
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
60fa0d8479 Changelog cleanup (#16154)
* Changelog cleanup
Split out previous years and try to exclude from search index

* Update test exception
2024-07-05 09:02:11 -05:00
1b5f5cee37 PHP-FPM app update to handle multiple pools (#16122)
* checkpoint work for now

* polling should be good now

* re-work php-fpm some more

* re-work the php-fpm app page

* add php-fpm_v1_combined.inc.php

* add more graphs

* more work

* add last request cpu

* fix stats for pools

* more graph work

* update the docs for php-fpm

* more graph work

* more graph stuff

* graph stuff now done

* some style fixes

* another style fix

* remove a unneeded use line

* add new tests

* add some missing items to the test

* json fix

* remove start time and add data
2024-07-04 15:03:45 -05:00
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
8ac1e9a408 Fortigate append-index doc (#16153)
* Create Fortigate.md

* Update mkdocs.yml

* Update Fortigate.md

* Update mkdocs.yml

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-06-25 09:02:16 -05:00
e48897c881 clarify okta claim configuration requirement (#16142) 2024-06-19 10:27:10 -05:00
91ea72c766 doc fixes (#16140) 2024-06-18 14:39:31 -05:00
5b6125cf6d Changelog for 24.6.0 2024-06-16 11:23:36 -05:00
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
7879b450ff note the suffix/prefix stuff for ldap (#16091) 2024-06-04 23:15:08 -05:00
370a91a4d3 remove mention of not using cron and really that tends to break more than it works... use /bin/cat to get the cache (#16086) 2024-06-04 11:06:28 +02:00
c89023bd55 Update Transports.md (#16058)
Added documentation to configure transport for AlertOps
2024-05-22 21:59:01 -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
b322610216 Changelog for 24.5.0 2024-05-19 22:53:53 -05:00
1e3e60d59b [DOC] Update Customizing-the-Web-UI.md (#16025) 2024-05-08 22:17:05 -05:00
0ac1414905 Update Dispatcher-Service.md (#15705)
* Update Dispatcher-Service.md

Removed the CRON part.

Scheduler is handled with a systemd service now. See https://docs.librenms.org/Installation/Install-LibreNMS/#enable-the-scheduler

* Update Dispatcher-Service.md

remove the "Debian 12 Bookworm is not available".

It was released june 10th 2023

* Update Dispatcher-Service.md

as requested by https://github.com/librenms/librenms/pull/15705#pullrequestreview-2003870339

* Update Dispatcher-Service.md

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-05-08 07:33:47 -05:00
ceb0bf70a8 Revert "[DOC] Install LibreNMS: add Icons (#16017)" (#16021)
This reverts commit d3e5b0da3b.
2024-05-07 23:26:45 -05:00
d3e5b0da3b [DOC] Install LibreNMS: add Icons (#16017)
* [DOC] Install LibreNMS: add Icons

* Update mkdocs.yml

* Update Customizing-the-Web-UI.md
2024-05-07 22:45:21 -05:00
58883278cf doc(selinux): set httpd_cache_t type to /opt/librenms/cache (#16000)
This is to avoid the following error when trying to poll: 
```
file_put_contents(/opt/librenms/cache/os_defs.cache): Failed to open stream: Permission denied {"exception":"[object] (ErrorException(code: 0): file_put_contents(/opt/librenms/cache/os_defs.cache): Failed to open stream: Permission denied at /opt/librenms/LibreNMS/Util/OS.php:113)"} 
```
2024-05-01 11:21:55 +02:00
8ae66a3bb8 Update Dockerfile (#15996) 2024-04-30 14:35:29 +02:00
4530b3e54c Revert "[DOC] Update for mkdocs-material 9.5.19 and icons added to Install-Li…" (#15995)
This reverts commit 20bd5a3163.
2024-04-29 14:24:53 -05:00
20bd5a3163 [DOC] Update for mkdocs-material 9.5.19 and icons added to Install-LibreNMS.md (#15989)
* Configuration

* Update Install-LibreNMS.md

* Update mkdocs.yml

* Update doc.yml

* test

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update doc.yml

* Update Dockerfile

* Update Dockerfile

* Update Dockerfile

* test v 9.5.19
2024-04-29 09:34:18 -05:00
f63560bcf1 remove duplicate changelog 24.1.0 (#15987) 2024-04-27 13:48:39 +02:00
443bfdb3b7 Update Welcome-to-Observium-users.md (#15981)
updated due to link rot
2024-04-26 07:48:03 -05:00
51fa1887f9 remove poller_name (#15979) 2024-04-25 15:32:19 -05:00
1c33cb4d2e Update packet_loss docs (#15962) 2024-04-22 23:22:19 -05:00
613fd18511 packet_loss macros quick fix (#15961)
* packet_loss macros quick fix
Due to device_perf table going away, this macro no longer functions as it did.
Use device status to make it somewhat functional until a better solution can be found.

* remove space
2024-04-20 09:26:51 -05:00
e1c6c54dbd Changelog for 24.4.0 2024-04-19 20:52:34 -05:00
018597e7bb Add support for a maintenance boolean in API results. (#15904)
* Add support for a maintenance boolean in API results.

If a device is under maintenance, it would be nice to see that from the
API. This can help drive other automation workflows where LibreNMS forms
a cornerstone in the management source of truth.

* Revert changes made by VSCode formatting.

* Revert two more formatting changes.

* Create a new API endpoint for GETing maintenance status.

This uses the same endpoint name as for setting a device to maintenance
but with a GET verb.

---------

Co-authored-by: Joe Clarke <jclarke@cisco.com>
2024-04-19 19:52:22 -05:00
7e33e09146 Add missing p5-File-Slurp dependency (#15955) 2024-04-19 21:11:04 +02:00