Commit Graph

2280 Commits

Author SHA1 Message Date
Tony Murray
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
Zane C. Bowers-Hadley
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
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
Justin Lentz
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
Peter Childs
e48897c881 clarify okta claim configuration requirement (#16142) 2024-06-19 10:27:10 -05:00
Slashdoom
91ea72c766 doc fixes (#16140) 2024-06-18 14:39:31 -05:00
Tony Murray
5b6125cf6d Changelog for 24.6.0 2024-06-16 11:23:36 -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
Zane C. Bowers-Hadley
7879b450ff note the suffix/prefix stuff for ldap (#16091) 2024-06-04 23:15:08 -05:00
Zane C. Bowers-Hadley
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
Ashwath Venkataraman
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
Tony Murray
b322610216 Changelog for 24.5.0 2024-05-19 22:53:53 -05:00
Santiago Z
1e3e60d59b [DOC] Update Customizing-the-Web-UI.md (#16025) 2024-05-08 22:17:05 -05:00
systeembeheerder
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
Tony Murray
ceb0bf70a8 Revert "[DOC] Install LibreNMS: add Icons (#16017)" (#16021)
This reverts commit d3e5b0da3b.
2024-05-07 23:26:45 -05:00
Santiago Z
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
Félix Bouynot
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
Santiago Z
8ae66a3bb8 Update Dockerfile (#15996) 2024-04-30 14:35:29 +02:00
Tony Murray
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
Santiago Z
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
Santiago Z
f63560bcf1 remove duplicate changelog 24.1.0 (#15987) 2024-04-27 13:48:39 +02:00
hatboxen
443bfdb3b7 Update Welcome-to-Observium-users.md (#15981)
updated due to link rot
2024-04-26 07:48:03 -05:00
Justin Lentz
51fa1887f9 remove poller_name (#15979) 2024-04-25 15:32:19 -05:00
Tony Murray
1c33cb4d2e Update packet_loss docs (#15962) 2024-04-22 23:22:19 -05:00
Tony Murray
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
Tony Murray
e1c6c54dbd Changelog for 24.4.0 2024-04-19 20:52:34 -05:00
Joe Clarke
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
Alexander Moisseev
7e33e09146 Add missing p5-File-Slurp dependency (#15955) 2024-04-19 21:11:04 +02: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
Melhuig
36dc9d3c05 Update Network-Map.md (#15949)
Fix "lnms config:set" command syntax
2024-04-16 09:23:35 -05:00
mr_lollbrant
5db5435cc3 Update Graylog.md (#15938)
I am using LibreNMS and graylog and it always bugged me that the api user have to be admin in graylog.
So i found out how you fix that :)
2024-04-11 20:51:59 -05:00
CTV
73d8e2cc79 Documentation - opcache issue on Debian 12 (#15870)
* Update Performance.md

Documentation : Opcache issue on Debian 12 with default php stable version (8.2.7)

* Update Performance.md

* Update Performance.md

Typo
2024-04-10 15:43:33 -05:00
Tony Murray
d8769760a2 Changelog for 24.3.0 2024-04-01 10:18:43 -05:00
PipoCanaja
8c4205c614 refactor - remove unused entPhysicalIndex_measured (#15892)
* remove unused entPhysicalIndex_measured
* tests
* tests
* doc
* entPhysicalIndex_measured must be ports OR null currently
* Should not pass tests
* tests
* back to normal
2024-03-19 10:24:07 +01: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
blknight88
6798a43e4a Fix @signedGraphTag documention (#15853)
The @signedGraphTag section is wrong, it should not be "device_id" that fails to load, it needs to just be "device"
The server link below that is also wrong, it should not be "id", it should be "device"
2024-03-03 22:51:25 +01:00
David Rickard
165af75419 Update RRDCached.md (#15864)
Added additional lines for selinux config to work with RHEL8
2024-03-01 00:29:53 +01:00
Tony Murray
ec9d040669 Changelog for 24.2.0 2024-02-27 12:54:09 -06:00
bnerickson
00f06c0cfb Applications.md formatting update for better readability. (#15849)
* Applications.md formatting update for better readability.

* update to restart testing
2024-02-26 14:03:42 -06: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
Zane C. Bowers-Hadley
56471e63d7 add dhcp-stats tests and update for v3 of the extend (#15378)
* update dhcp polling for version 3 of the extend

* add initial lease display for dhcp

* note where I copied it from

* document the new ISC DHCP stuff

* add in displaying pool and subnet info

* finalize the docs the new dhcpd stuff

* rework the dhcp page to display more information in a cleaner manner

* now display port and device info if known for a lease

* minor comment cleanup for the dhcp page

* add tests

* do not display the optionbar if the extend is not 3+

* update dhcp-stats doc for -w

* poke includes/html/functions.inc.php with php-cs-fixer

* poke includes/html/pages/device/apps/dhcp-stats.inc.php with php-cs-fixer

* derp... add the tests and not the snmprec twice

* strftime -> date

* fix naming of the linux dhcp-stats test data files

* minor tweaks to the rest results

* test fix

* more test cleanup

* minor test fix

* set the data value for v3

* minor test tweak

* add sortable_table blade template

* no longer need render_table

* formatting fix

* add regexp to make sure the mac is sane

* style fix

* formatting cleanup

* some more formatting fixes
2024-02-21 21:33:17 +01:00
bnerickson
7c59e64b7a Socket Statistic Application cleanup and application page graph fixes. (#15845) 2024-02-21 21:31:51 +01:00
Rudolf Kleijwegt
179c6e74c3 Update http port information for virtualbox documentation (#15824)
The default port is not 8080, but 80.
2024-02-17 23:33:55 +00:00
Joel Messerli
94d3e040f5 docs: more precise OAuth group/role claim information (#15817)
While configuring SSO with Keycloak we were trying to send the scope 'roles' and were expecting libreNMS to use the returned 'groups' claim, but when reading the code we discovered that the scope name is used to access the claims.
2024-02-12 19:10:08 +01:00
eskyuu
cb09ae0d54 Additional custom map features (#15806)
* Added options on edges for a label and to show graphs as bps as well as percentages

I think that vis.js needs to be updated to allow both bps and percentages at the same time.

* Add database migration

* Try to avoid putting multiple mid points in the same position

* Added a URL parameter for screenshot mode, where node labels are blanked out
Also fixed up the node labels in the editor

* Added legend to the editor as well as database options for reversing arrows and adjusting the edge separation

All features have been implemented in the editor, but need to be implemented in the viewer

* Fix missing defaults on the edit map list page
Added arrow reverse code to the viewer
Added legend code to the viewer
Added code to the editor to correclty handle moving the legend

* Formatting fixes and DB schema update

* Remove view from database schema
2024-02-07 11:42:35 -06:00
richard-ririe
08ae2fdbc0 Add API endpoints to update and delete Device Groups (#15774)
* API: Update device groups

* API: Delete device groups
2024-02-05 13:02:36 -06:00
richard-ririe
4277c3387a API: Add/Remove devices from static devicegroups (#15775) 2024-01-31 13:09:14 -06:00
eskyuu
30953c386f Add functionality for custom maps (weathermaps) (#15633)
* Initial commit with editor.

* Added custom map models and database migrations.
Modified the controller and view to support saving the custom map settings to the database

* Added menu items and sorted out access permissions for maps and nodes

* Cleaned up some of the conditions in the javascript section of the blade

* Started work on the map data save

* Save of map nodes and edges is complete

* Got the map to load data on page load and added the delete functionality

* Fixed a typo and made link colour black if intertface is down

* Various usability fix-ups

* Show the save button on node and edge delete

* Fixed up access for users without global read

* Increase typeahead search size and standardised the way modals are triggered.

* Update data fetch to copy values into array so I can add more fields

* Convert blank array check to use count()

* Formatting changes

* More formatting fixes

* Formatting again

* DB schema update

* Revert previous commit

* Pass device id to pages

* Remove bad characters from javascript

* Re-add the - character in search results

* Update to avoid background colour being set to the current colour for offline devices

* Fixed a bug in speed detection when no suffix is given

* Fixed up the speed colour calculation and added comments

* Update default edge font size to 12

* Reduce arrow size

* Formatting fix

* Update the custom map controller to handle null interface speeds

* Alter JSON columns to be longtext instead

* Only refresh map data on successful save

* Update labels on default settings to make it clear that they are not saved

* Added timestamps to all custom map tables
Use HasFactory instead of static definitions for custom map tables
convert JSON DB fields to longtext and updated PHP to do the appropriate JSON decoding as a result

* Added missing vis.js images for the editor

* Split the custom map blade into different pages

* formatting fixes

* Initial commit with editor.

* Added custom map models and database migrations.
Modified the controller and view to support saving the custom map settings to the database

* Added menu items and sorted out access permissions for maps and nodes

* Cleaned up some of the conditions in the javascript section of the blade

* Started work on the map data save

* Save of map nodes and edges is complete

* Got the map to load data on page load and added the delete functionality

* Various usability fix-ups

* Show the save button on node and edge delete

* Fixed up access for users without global read

* Increase typeahead search size and standardised the way modals are triggered.

* Convert blank array check to use count()

* Formatting changes

* More formatting fixes

* Formatting again

* DB schema update

* Revert previous commit

* Pass device id to pages

* Remove bad characters from javascript

* Re-add the - character in search results

* Update to avoid background colour being set to the current colour for offline devices

* Reduce arrow size

* Only refresh map data on successful save

* Update labels on default settings to make it clear that they are not saved

* Added timestamps to all custom map tables
Use HasFactory instead of static definitions for custom map tables
convert JSON DB fields to longtext and updated PHP to do the appropriate JSON decoding as a result

* Added missing vis.js images for the editor

* Split the custom map blade into different pages

* Updated the custom maps to use the select2 searches for ports and devices

* Fix port search clearing with select2

* Update DB schema to add timestamps

* Add the ability to set a node alignment value where nodes will align to a grid

* Add a checkbox to re-center edge lines

* Schema update for node alignment

* Removed unused route

* Fixups after rebase

* Remove DevicePortSearchController

* Rebase fixups

* Remove unneeded controller

* Formatting fixes

* Update all network map documentation

* Fixed typo in doc

* Change background imgae database migration

* Update migration for custom map background to fix schema error

* Place a try/catch around the BLOB->MEDIUMBLOB migration

* Formatting fix

* Moved custom map background image location and added some SVG images to test as image options

* Updated the editor to use a static set of device images

* Update the image logic in the editor and added to the viewer

* DB Schema update

* Formatting

* remove svg height/width attributes

* Added some more icon options for arrows

* Added database migration to allow nodes to link to another custom map
Fixed an error in the image migration

* Added the ability to link a node to another custom map

* Formatting fixes

* DB Schema update

* Remove images-custom directory

* Explicitly cast map ID to int

* Made the image selection list dynamic based on the contents of the custom map icons directory

* Formatting fix

* Double-clicking on a link will take you to the link

* Remove whitespace

* Add translations
fix an xss and hopefully not add any new ones
refactor node image to use translations with fallback

* split modals out into separate files
return width/height to avoid js scope issues

* Formatting fixes

* refactor edit select page into a "manage" page
Still left:
validation/custom request
Controller refactor
ui tweaks

* MapSettingsRequest

* Refactor more routes, policy, controller
I think this is the last refactor. Everything is now organized in a standard way.
Missing a method to check if a user has access to a map

* Fix booleans and style

* Add versioning to the background image to prevent browser caching

* Fixed the background image update by splitting it into a separate modal
Changed the delete button on the map editor screen to return to the map list

* Formatting fix

* Added double-click actions in editor to edit nodes and edges

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2024-01-31 08:56:59 -06:00