Commit Graph

2137 Commits

Author SHA1 Message Date
Tony Murray
b753cdaf98 Changelog for 22.7.0 2022-07-20 21:53:15 -05:00
Félix Bouynot
8e841a8296
Add SELinux configuration for RRDCached on Centos8 in the documentation (#14092)
* Add SELinux configuration for RRDCached on Centos8

* Change file creation to EOF style

* Remove spacing
2022-07-15 22:15:02 -05:00
Félix Bouynot
88ff9e2455
Add SELinux configuration for Smokeping on Centos8 in the documentation (#14093)
* Add SELinux configuration for Smokeping on Centos8 in the documentation

* Change file creation to EOF style

* Add heading to SELinux block and move it...

for the change to be clear.
2022-07-15 22:14:44 -05:00
Félix Bouynot
d3b43d608a
Add SELinux configuration for LDAP/AD authentication on Centos8 in the documentation (#14094) 2022-07-15 22:14:26 -05:00
Félix Bouynot
1f41d6b16f
Add SELinux configuration for SNMPd on Centos8 in the documentation (#14095)
* Add SELinux configuration for SNMPd on Centos8 in the documentation

* Change file creation to EOF style
2022-07-15 22:14:07 -05:00
wrongecho
afb5fb7eea
Small documentation typos (#14101)
* Update Templates.md

withing > within

* Update index.md

Small typos correction

* Update Performance.md

Typos/Rewording

* Update Performance.md

* Update Syslog.md

recieving > receiving

* Update Entities.md

Remove rogue `

* Update Dashboards.md

embeded > embedded

* Update Interface-Description-Parsing.md

infor > information

* Update Network-Map.md

genrated > generated
2022-07-10 11:46:01 +02:00
wrongecho
060c87c535
Documentation typos (#14099)
* Update Templates.md

withing > within

* Update index.md

Small typos correction

* Update Performance.md

Typos/Rewording

* Update Performance.md
2022-07-09 09:32:59 -05:00
rhinoau
d53d9b3b89
Corrected curl creation examples (#14081) 2022-07-01 10:45:58 +02:00
Paul Gear
6c0e30baa7
Minor grammar fix (#14078)
Just noticed this in a recent commit
2022-06-30 12:42:48 +02:00
ottorei
8ea8a97f68
Add documentation for Chrony application monitoring (#14066)
Adds instructions for setting up monitoring for Chrony application with SNMP Extend.
2022-06-26 09:19:55 -05:00
Tony Murray
a93df1a052 Changelog for 22.6.0 2022-06-14 21:53:40 -05:00
Zach Biles
e8cd08c1e2
Okta saml (#14038)
* add okta oauth instructions

* add additional clarity

* spacing

* fix spacing and indentation

* fix spacing and indentation
2022-06-14 16:46:37 +02:00
Tony Murray
a63166dd0e
Remove traceroute6, it is unused (#14019)
* Remove traceroute6, it is unused
LibreNMS just uses traceroute -6, which is supported on all supported OS, and then some.

* missed some items
2022-06-08 08:52:33 +02:00
Tony Murray
b8f2002150
Procurve hardware description cleanup (#14007)
* Procurve hardware description cleanup
Include part number and other details where available
Covers 100% of known sysDescr
Adds Aruba Instant On parsing
adds string replacements for OS fields

Could use hardware: ENTITY-MIB::entPhysicalDescr.1, but strings contain a lot of fluff and some are just "HP", I leave that for another PR

* restore .gitignore.........

* less specific

* Change regex cosmetically
2022-06-07 09:27:32 +02:00
Tony Murray
78583a4e71
HPE Comware snmp config example (#13997)
* HPE Comware snmp config example

* more detail on fragmentation
2022-05-27 10:55:04 -05:00
Chris A. Evans
5a085f79e5
Feature: Add support to REST API for creating Maintenance Schedules for Device Groups (#13985)
* Add support to REST API for creating Maintenance Schedules for Device Groups

* Update documentation to include the maintenance_devicegroup API endpoint

* Fix quotes

* Fix whitespace

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-05-27 10:38:47 -05:00
Tony Murray
cf6ff5c928 Changelog for 22.5.0 2022-05-21 08:45:23 -05:00
sajiby3k
a7147a17e1
Submitting change to oxidized group api to include device purpose or device notes (#13976) 2022-05-14 12:13:44 -05:00
Francis Booth
ca42c81604
Fix typo in dispatcher service doc (#13979) 2022-05-13 13:44:07 +02:00
Michael Graff
cd114b85ed
use full sudo path (#13975)
Fror some systems, at least Proxmox, the full path is required to find sudo.
2022-05-11 13:12:41 +02:00
twelch24
402163fec9
fix a typo (#13970) 2022-05-10 11:00:37 +02:00
Zane C. Bowers-Hadley
0357d29835
minor formatting cleanups and document json-app-tool (#13949) 2022-04-26 09:38:16 +02:00
Zane C. Bowers-Hadley
1bdcd8fad2
assorted cleanups to alerting docs, primarily to make mdl happier (#13950)
* make mdl more happy for transports.md

* more tweaks for the splunk bits

* minor fix to entities.md

* try that again...

* ...

* okay, just leave that as is

* minor fixes to templates.md

* remote some trailling spaces

* wrap a line macros.md

* cleanup Rules.md reworked the videos section a bit to be more formatting consistent, I hope

* header cleanup for testing.md

* transports.md cleanup part 2
2022-04-26 09:37:39 +02:00
Zane C. Bowers-Hadley
cdf457fbc5
add Suricata monitoring (#13942)
* add poller

* add a generic alert graph

* add support for .total

* add the initial work on the suricata app page

* add applayer flow sources

* more rrd work and add more fields

* add a missing graph to the suricata page

* add suricata to the apps page

* all working now for suricata

* add some suricata alert examples

* all done with the php

* update the application docs for Suricata

* add another note about Suricata stats in the docs

* add the test file

* add the test JSON

* remove a unneeded newline from the appication docs

* correct the type uptime type

* packets graph should by packets/sec

* minor formatting cleanup

* one more minor formatting cleanup

* shot in the dark to see if something fixes the angry linter

* fix snmpsim file

* add metrics

* add values to the metrics

* add a missing comma to the json

* add a missing line to snmprec and cleanup json a bit

* a few more minor changes to see if this makes it happy... regened via scripts/json-app-tool.php

* see if this will make it happy

* add suricata to app discovery and hope that fixes it... take a shot in the dark as to why the linter errors strangely on two of the files

* fix json

* add a missing ] to the json

* rename two graphs so it does not trigger one alert and add a missing metric

* whoops, *_alertString is not a metric
2022-04-25 20:30:49 -05:00
Philipp Fromme
4a98dc69e3
Add LDAP bind and userlist filter support to ldap-authorization (#13788)
* Add userlist filter to ldap-authorization

* Add LDAP bind user to ldap-authorization

* Type hint getFullDn parameter of ldap-authorization

* docs: add missing options of ldap

* docs: add available options of ldap-authorization
2022-04-22 01:28:29 -05:00
IVI053
3a379431a5
Added --ping-only to snmp-scan.py (#13810)
* added --ping-only and --ping-fallback; deprecated -P

* Updated help text for snmp-scan.py

* format fixes

* appease lint again
2022-04-22 01:27:40 -05:00
Tony Murray
67a7aa932f Changelog for 22.4.0 2022-04-21 21:13:46 -05:00
Santiago Z
02b5ef797b
Docs, fix code block in oxidized group (#13908) 2022-04-12 09:18:48 +02:00
Santiago Z
712ba23657
[DOC] Fix Code blocks Step 2 Installing Network-WeatherMap (#13905) 2022-04-11 09:40:25 +02:00
Tony Murray
75ba74fe5b
Migrate addhost.php to lnms device:add (#13870)
* Migrate addhost.php to lnms device:add
Have snmp-scan.py call lnms device:add (make exit codes line up so this works)
Fix issue with ping only devices trying to detect os via snmp
Reorder options in device:add help and improve formatting
Update docs to remove references to addhost.php
Fix a bit of code that was in functional code

* fixes

* fix snmp version message
2022-04-04 10:41:18 -05:00
Santiago Z
bd1b0d1929
Stylize the word .env in documentation (#13889) 2022-04-03 14:01:41 +01:00
geg347
ef12e5f980
Added Basic authentication capability to Alertmanager Transport (#13867)
* Adding Basic authentication capability to Alertmanager's Transport

* Fix PHPStan linting error

* Fix StyleCI error

* Fix StyleCI error part 2
2022-03-31 21:45:44 +01:00
Tony Murray
6214157e9b
Docs, fix Linux SNMP example only listening on ::1 (#13882) 2022-03-30 22:24:21 +01:00
Tony Murray
3de9df54bd Changelog for 22.3.0 2022-03-17 23:00:09 -05:00
Tony Murray
8df92a5f2b
API: device_add support display field (#13846)
* API: device_add support display field
remove legacy code path
update docs
A few improvements to the new code too

* some fixes, port_association_mode was not available

* hand version -> snmpver translation
2022-03-15 06:54:02 -05:00
geg347
9036fd53b4
Added extra dynamic values alerttransport alertmanager (#13828)
* Add extra dynamic values to Alert transport for Alertmanager

* Add description to explain how extra dynamic values for Alertmanager works in the WebUI

* Add _ in dynamic label name + fix continuous-itegration error

* Fix continuous-itegration error part 2

* Updating AlertManager docs with explanation of how dynamic variables works
2022-03-14 21:39:00 +00:00
Josh Silvas
a9e111f3eb
Adds API call to update port notes on devices. (#13834)
* Adds API call to update port notes on devices.

* Lint fixes.

* Fixes file permissions to proper values.
2022-03-10 22:29:08 +01:00
Jellyfrog
09929bd686
Implement OAuth and SAML2 support (#13764)
* Implement OAuth and SAML2 support via Socialite

* Add socialite docs

* fixes

* Additional information added

* wip

* 22.3.0 targeted version

* Allow mysql auth as long as there is a password saved

Co-authored-by: laf <gh+n@laf.io>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-02-20 22:05:51 +01:00
Neil Lathwood
39dde372d9
Added 22.2.0 changelog (#13797) 2022-02-16 10:10:32 +00:00
Jellyfrog
681c994ca1
Docs tweaking (#13792)
* Tweak updating page

* Cleanup docs
2022-02-16 02:43:48 +01:00
Knut Petter Ølberg
3926f1aaff
Update Switching.md (#13786)
Fix typo in example
2022-02-14 23:05:20 +01:00
Jellyfrog
f93f8a02e6
Add better default sensor alert template (#13703) 2022-02-08 23:18:13 +00:00
Jellyfrog
8f474dd4d4
Rework documentation (#13709)
* Rework documentation

* Slightly adjust theme

* wip

* fixes

* Remove unneeded header

* Re-added Acknowledgement.md file

* Added Acknowledgement.md to mkdocs.yml

Co-authored-by: Neil Lathwood <gh+n@laf.io>
2022-02-08 23:02:28 +00:00
SourceDoctor
28567e1cf0
rename DHCP Stats to ISC DHCP Stats (#13756)
* rename DHCP Stats to ISC DHCP Stats

* .
2022-02-08 11:51:30 +01:00
Simon Smith
b2f8a53cab
Update install instructions to add pip3 package (#13746)
* Update Install-LibreNMS.md

include pip3

* Update Install-LibreNMS.md
2022-02-07 22:17:51 +00:00
Santiago Z
71bb7bd82f
[DOC] validate-config-icon better positioning in the text (#13744) 2022-02-03 11:30:46 +01:00
PipoCanaja
c67850c782
doc - Typo in FAQ (#13736) 2022-01-31 15:06:42 +01:00
Tony Murray
29bd6789cb
Stp module rewrite (#13570)
* STP module rewrite WIP

* Finish rewrite

* Ignore disabled and log root/topology changes

* Remove interfaces for now

* fix style

* Lint fixes

* Document ResolvesPortIds and hide map functions

* whitespace fixes

* Revert to stpInstances in case someone writes mstp support

* missed one

* phpstan fixes

* Handle table and oids separately

* forgot to register observer

* Test data and correct non-table handling in SnmpResponse->table()

* update test

* test data

* revert aos7 silly things

* minimal polling

* Update test data

* order ports_ntp and rename new field to port_index

* forgot the db_schema

* revert ciena-sds port things

* MSTP support, maybe

* Adding test data

* Filter bad lines instead of discarding the entire snmp response
and capture fixes and test data

* fresh data

* add os data

* update data, ignore unfound ports, obviously bad device implementation.

* fixes

* Ignore context files in os detection test

* Remove empty table data

* add ciena-sds vlan

* designatedCost column is too small

* Update stp webui

* Refactor code to interfaces, to allow vendor mibs

* update schema

* fix issues added by abstraction

* STP fixes

* Default to no context for vlan 1

* never store vlan 1

* Update test data

* remove eltex brokenness

* fix style

* fix stan

* Fix Rewrite MAC to Hex padding with floats

* fix sqlite migration
2022-01-30 16:28:18 -06:00
Wheel
2dbfdda717
Ubiquiti Airfiber60 (#13680)
* Add ubiquiti Airfiber 60

* New AF60 data and MIB

* Stylci fix and small additions

* Update test data

* Stylefix

* Remove the weird ubiquity oids containing encoded mac addresses

* Updated test data

* Remove more complex sensors for now to be added after the conflict airos airos-af60 is solved

* Fix hardware and OS

* To be verified is this is the most practical / clean way of doing it

* Advanced wireless and MCS state sensor

* Fix link capacity multiplier and active link

* Test data update fix lint

* Maybe better
2022-01-29 21:10:45 -06:00
Matt Peterson
e8497cdfc6
Debian missing pip3 install (#13721) 2022-01-28 10:21:52 +01:00
Josh Jameson
0b85bceb34
Fix Temperature Sensor for AirOS 8.7.4+ (#13655)
* Fix Temperature Sensor for AirOS 8

* Update airos_airos8.json

* Update airos.json

* Add new skip_values feature to deal with Ubiquiti nonsense.
Tweak test data to test the change
fix not_regex

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-26 16:02:57 -06:00
Jellyfrog
7734113594
Move 2020 changelog (#13708) 2022-01-26 13:43:20 +01:00
Tony Murray
a42c0da9c5 Changelog for 22.1.0 2022-01-23 08:47:40 -06:00
twelch24
3c75d87f53
update rrdcached link (#13692)
* update rrdcached link

* Update Applications.md
2022-01-20 17:41:29 +01:00
Andrea Beccaris
0fc2f9e4c9
Add API-routes for listing MPLS SAPs and services (#13561)
* add apis for mpsl services and saps

* updated docs

* removed dbFetch, orm instead

* changed queries

* Removed unused variables

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

* Update api_functions.inc.php

Co-authored-by: laf <gh+n@laf.io>
2022-01-20 08:15:23 -06:00
tkjaer
407e6838bc
Add missing python3-pip installation dependency for debian11 (#13691) 2022-01-19 20:13:01 +01:00
Peca Nesovanovic
592a0efa51
added oids.no_bulk os setting (#13666)
* forcewalk param

* [snmp][no_bulk]

* var names, test, schema

* Key off OIDs, not mibs

luminato is POC and needs to be reverted before merge.

* fix up os schema

* docs

* remove luminato arbitrary changes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2022-01-15 09:59:23 -06:00
Henne Van Och
8f8872520a
Add supervisord application (#13673) 2022-01-13 18:19:27 +01:00
Peca Nesovanovic
2d57e49caf
Teleste Luminato ports & qam/asi output sensors & yaml (#13616)
* Luminato: bitrate sensor

* bitrate sensor Eloquent

* luminato ports

* luminato ports styleci

* luminato QAM/ASI sensor

* luminato QAM/ASI sensor styleci

* YAML & test

* drop debug $ver from sensor type

* mess with Teleste ifExtPhysInterface/ifExtLogiInterface

* styleci

* test data

* mistake in port discovery

* left out Graphs->Health->Overview->Bitrate label

* fixed Bitrate graph, copy/paste errors
2022-01-08 18:17:08 +01:00
Tony Murray
3c0831c821
Use display name in alerts (#13650)
* Use display name in alerts

* remove error from baseline
2022-01-04 23:40:42 +00:00
Tony Murray
4b64d33d13
API detect if new location should be fixed by default (#13637) 2021-12-27 17:32:50 -06:00
VTS
1ac60e3b1d
set fixed_coordinates via api (#13593)
* set fixed_coordinates via api

* update api doc

* fix style problem

* Update Locations.md

* Update api_functions.inc.php

* Update api_functions.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-12-23 15:32:02 -06:00
Tony Murray
137644e404 Changelog for 21.12.0 2021-12-21 19:57:44 -06:00
Simon Smith
c7d00ccc92
Update Applications.md (#13573)
add step to add debian-snmp user to docker group
2021-12-01 07:46:24 -06:00
twelch24
4a99b798b5
update Customizing the Web UI doc (#13564) 2021-11-30 02:42:39 +01:00
Claude Brown
6bf97c6ac9
API 'list_parents_of_host' - mostly doco, but one small code enhancement (#13567)
* Allow 'list_devices' to query by exact device-id

* Remove 'http://' prefix from --dev-addr in doco for 'mkdocs serve'

* Document 'list_parents_of_host' API call by reference to 'list_devices' call

* Remove possibility of SQL injection attacks

* Remove possibility of SQL injection attacks
2021-11-25 22:38:50 +01:00
twelch24
9ce249c97a
Update winbox launcher doc (again) (#13558)
My bad. goofed the format.
2021-11-23 16:55:22 +01:00
twelch24
87951d28fd
Add more detailed instructions to winbox launcher (#13552) 2021-11-22 20:27:32 +01:00
Tony Murray
2f478d04cb
Oxidized: elaborate on feeding Oxidized (#13514) 2021-11-17 15:31:37 +01:00
Tony Murray
4c948691be Changelog for 21.11.0 2021-11-12 11:03:28 -06:00
PipoCanaja
29f1cb53ab
Added TOS support for fping (#13496)
* TOS support for fping in LibreNMS/Data/Source/Fping.php

* TOS support for fping in app/Jobs/PingCheck.php

* Doc

* Improve doc
2021-11-11 22:33:01 +01:00
Deltawings
905918f2e5
Update Applications.md (#13495)
Adding a line telling how to configure the snmp extend for MySQL
2021-11-10 23:39:37 +01:00
Federico Cuello
5aa69d3250
Update Ports.md (#13493)
Fix ports_with_associated_mac output block (missing closing)
2021-11-10 19:23:21 +01:00
Denny Friebe
f23c5c0e7b
Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header (#12749)
* Raspberry Pi: Add SNMP extend to monitor IO pins or sensor modules connected to the GPIO header

* Raspberry Pi: Add new test data

* Raspberry Pi: Make styleci happy

* Raspberry Pi: Fix some more style issues

* Raspberry Pi: Use d_echo for array debug

* Raspberry Pi: Prevent processing if the extension is not present

* Raspberry Pi: Make styleci happy

* Raspberry Pi: Update test data

* Raspberry Pi: Remove debugging
2021-11-04 21:38:15 -05:00
Nocturr
7d25897d3e
Fix typo in filepath (#13440) 2021-10-27 13:44:19 +02:00
Peca Nesovanovic
08dd8a07db
Mikrotik vlans discovery, v2 (#13427)
* Mikrotik vlans discovery, v2

* styleci cleanup

* added Routeros entry in mkdocs.yml

* fixed typo in mkdocs.yml

* Better Vlan Eloquent Model

* Missed one

* Use new SnmpQuery code

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-26 18:31:44 -05:00
SourceDoctor
d211944f4e
Debian 11 Install Docs (#13430) 2021-10-26 23:15:44 +02:00
nq5
5854244f5a
Syslog hook examples and documentation for Procurve devices (#13397)
* Add support for Procurve devices

Syslog hook support added for automatic Oxidized backups of devices running Procurve

* Add documentation for HPE/Aruba Procurve devices

Update documentation to support configuration of example Syslog hooks for HPE and Aruba devices running Procurve
2021-10-21 09:45:16 +02:00
Kevin Zink
98ed6bb9dc
New plugin system based on Laravel Package Development (#12998)
* use Blade view and Eloquent models for plugins

* move views

* fix style

* fix style

* revert mistake

* Update Plugin.php

delete test property "name"

* rename plugin function to settings

* last but not least - rename in Test.php

* Rename Test to Example

* fix typo

* fix style

* fix style

* fix style

* fix style - I hate tabs...

* Extract view calls

* fix method calls and style

* Move Models the the abstract class

* fix style

* Convert to traits

* Change the Example description

* Fix style

* Fix style

* Fix style

* Convert plugin function to Model static methods and delete .inc.php

* fix style

* fix style

* Use scope

* final methods blows up legacy code

* Config > \LibreNMS\Config

* convert the static string to a static method

* Correct placement in the page

* fix tabs

* fix style

* Rename from tait to hook

to make it easier to understand and be complient

* rename file

* Typo

* Started to change the docu

* change to a more usefully Device_Overview example

* and activate of course

* PluginManager

* fix .gitignore

* only php files in the root folder

* corrected .gitignore with all files :)

* Rename the Hooks and ExampleClass for better readability

* Fix style

* Fix style

* Exception handling (especially if DB is not present)

* Fix style and update schema

* fix indentation

* actually correct indent

* fix migration collation check include utf8mb4_bin

* stop phpstan whining

* A view lines documentation

* add typeHints

* Allow return null on handle

* lint

* fix return types

* fix logic of column collation check

* Fix MenuEntryHook

* switch to longtext instead of json type for now :D

* try phpstan on PHP 7.3

* set phpstan target version to 7.3

* all the typehints

* optional

* more

* Use namespace to prevent view collisions
disambiguate plugin and hook
no magic guessing of names in PluginManager, bad assumptions
remove unused plugins from the DB

* cleanup plugin menu

* cleanup on shutdown and ignore but log query error on cleanup

* instanceof must be called against an instance

* Allow multiple hooks per plugin

* Port plugin ui code to Laravel

* page instead of settings for v1 plugins

* actually working settings pages
a little url cleanup plugin/admin -> plugin/settings

* fix style

* Add page hook

* PHPstan

* Try to fix Illuminate\Http\RedirectResponse

* typehint

* Rewrite the doc

* Fix style

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-10-19 06:53:28 -05:00
Tony Murray
2d5d7e14ed
Don't suggest running validate.php as root (#13378) 2021-10-19 00:57:19 -05:00
Nathan Manzi
fb7d89c4c3
Add get_ports_by_group API function (#13361)
* implement api route get_ports_by_group

* Update API docs for new get_ports_by_group

* Fix misspelling of function names and routes
2021-10-18 20:47:37 -05:00
Tony Murray
a9a1c6f2b7 Changelog for 21.10.0 2021-10-16 08:02:33 -05:00
Tony Murray
351674a305
Change "move" to "migrate" to make it easier to find (#13365)
I think most people consider moving an install to a new server as migrating.  Update the text to make it easier to search for.
2021-10-16 01:59:27 +02:00
Matthew McTague
4742dd034a
Updated link to Dan Brown's migration scripts (#13354) 2021-10-11 21:02:18 -05:00
Tony Murray
0d9cd86350
Docs: edit existing install url (#13342)
* Docs: edit existing install url
not blank

* did not define superfences correctly
2021-10-07 11:47:21 +02:00
Tony Murray
e33ec8b390
Oxidized doc update, links and ignore groups (#13341) 2021-10-06 19:30:39 +02:00
ottorei
114d1403e2
Update Dispatcher-Service.md (#13339) 2021-10-06 07:30:42 -05:00
Tony Murray
0b8b97bb68
Push Notifications (Mobile and PC) (#13277)
* Update manifest and add service worker
cleanup icons a bit

* Push notifications WIP

* navigate working

* cleanup

* acknowledge wired up

* Set VAPID keys on composer install

* Component to control notification permissions.

* Allow all user option to validate

* Enable on browser load if transport exists.

* Check for transport before showing user permissions
translations

* Documentation

* style fixes

* access via the attribute model

* fix alerting test

* update schema

* cleanup subscription on disable

* non-configurable db and table for webpush subscriptions (respect system connection)

* revert AlertTransport change
hopefully phpstan can figure it out

* phpstan fixes

* Support custom details display

* Match transport names to brand's preferred display

* less duplicate id errors

* Tests are done in Laravel code now so
remove legacy function usage... could be better, but ok

* Style fixes

* Style fixes 2

* Fix alert test

* Doc updates requires HTTPS and GMP

* unregister subscription when permission is set to denied

* cleanup after user deletion

* delete the right thing

* fix whitespace

* update install docs to include php-gmp

* suggest ext-gmp

* update javascript

* Update functions.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-10-06 07:29:47 -05:00
Tony Murray
d443d2b4b1
Use built in trusted proxy functionality (#13318)
* Use built in trusted proxy functionality
instead of fideloper/proxy

* my favorite style rule...

* hello braindead ide

* restore space
2021-10-03 14:13:20 -05:00
Tony Murray
d0f90bdf24
Send security researchers to Discord (#13319)
* Send security researchers to discord
The email is non-functioning

* fix brain-dead ide
2021-10-03 18:20:26 +02:00
Simon Smith
9f14740a91
Update Applications.md (#13312)
tiny fix to puppet snmp extend formatting
2021-10-02 15:16:55 +02:00
Nash Kaminski
cb56ae5f46
Improvements to SSO Authorization and logout handling (#13311)
* Improvements to SSO Authorization and logout handling

Changes:
* Adds support for a default access level in the SSO authorization
  plugin when group mapping is enabled.
* Restore functionality of the auth_logout_handler configuration option,
  allowing the user to be redirected to a configured URL to complete
  logout from an external IdP.
* Documentation and test coverage updates

* Set sso.static_level to 0 in AuthSSOTest:testGroupParsing()

* Simplify implementation to use default values in Config::get()
2021-10-02 08:02:42 -05:00
Cathal Mooney
50f766476c
Update formatting of Prometheus extension doc (#13291)
* Modified Prometheus extension to allow for a configurable prefix on metric names.

* Added reference in config_definitions.json and updated docs.

* Fixed whitespace in config_definitions.json.

* Added reference to prometheus.prefix in settings.php

* Defined prefix var as private in Prometheus.php

* Formatting changes to doc for Prometheus extension.
2021-09-29 10:04:23 +02:00
Cathal Mooney
6bfe1555be
Modified Prometheus extension to support adding a prefix to metric names (#13272)
* Modified Prometheus extension to allow for a configurable prefix on metric names.

* Added reference in config_definitions.json and updated docs.

* Fixed whitespace in config_definitions.json.

* Added reference to prometheus.prefix in settings.php

* Defined prefix var as private in Prometheus.php
2021-09-28 19:30:28 -05:00
SourceDoctor
708d1ebb87
API Call to set instant Maintenance mode (#13237)
* API Call to set instance Maintenance mode

* .

* remove unused code

* update query

* Use recent code

* remove accidental line return

* fix duration in success string

* style fix

* Try to fix bad code merge

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-28 21:54:52 +02:00
Tony Murray
9b5684da4e
Missing config seeder docs (#13279) 2021-09-27 12:49:52 -05:00
SourceDoctor
11dfbc02b7
API Call to assign/remove a Portgroup to Ports (#13245)
* API Call to assign/remove a Portgroup to Ports

* .

* .
2021-09-21 08:41:01 -05:00
SourceDoctor
0d499b538b
API port search by arbitrary field (#13231)
* DB Field specific Port Search

* .

* seperate function for API Call

* second parameter now optional

* code adjustments

* Update api_functions.inc.php

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-09-19 19:28:42 -05:00
SourceDoctor
a8ca79152c
API add_device: respond with more device information (#13251)
* Advanced Response Information API add_device

* .
2021-09-19 18:47:50 -05:00
Kevin Zink
c984cdbebc
MegaRaid controller in Linux (Broadcom/LSI) (#12999)
* Add power consumed

* Revert "Add power consumed"

This reverts commit 424554ac04bd340de2fd962cb6808045024ef783.

* Start with tempsensorts aus some states

* Inventory data

* Convert plugins to Blade

* Revert "Convert plugins to Blade"

This reverts commit 8d1d3ff5b1.

* fix style

* Add FANs and Powersupplies

* fix style

* add test data

* add a short description for the doc

* refresh Testfile
2021-09-19 18:31:23 -05:00
Tony Murray
e8ba3af4d5 Changelog for 21.9.0 2021-09-16 22:45:06 -05:00
Orsiris de Jong
d42444b4ae
Add security context service (#13218)
* Make sure we add bin_t type to service for restricted SELinux policies

* Make sure we add bin_t type to service for restricted SELinux policies
2021-09-10 08:19:35 -05:00
Jellyfrog
4f50c3c05d
Rename nobulk -> snmp_bulk (#13098) 2021-09-01 19:01:41 -05:00
Simon Smith
272713f95d
Update Applications.md (#13183)
fix numbering in application docs
2021-08-29 17:19:22 +02:00
Tony Murray
94ee737f3d
Allow device actions to appear in device list and improve docs (#13177)
* Improve Device menu links and documentation

* device list actions functionality

* phpstan :/
2021-08-27 22:48:57 -05:00
Tony Murray
1ec694595e
Docs link to webui settings in user's install (#13176)
* Docs link to webui settings in user's install

* Add note to re-assure users
2021-08-27 06:48:17 -05:00
SourceDoctor
1544eadd37
default port_group for new ports (#13166)
* default port_group for new ports

* .

* adding Docs, default Value, change keyname

* .

* Update Configuration.md

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-24 20:28:18 +02:00
Tony Murray
dc1b5bd2d7
Update configuration docs to use lnms config:set (#13157)
* Update configuration docs to use lnms config:set
don't show slashes input
still need to test them all

* fixup broken commands
os array type a little broken

* bash

* fix lnms config:set os append

* enable os append test
(and small correction)

* fix whitespace
2021-08-23 19:07:26 -05:00
Tony Murray
93180ce4f0 Changelog for 21.8.0 2021-08-22 15:49:44 -05:00
Tony Murray
e2d1bfff54
lnms config:set ability to set os settings (#13151)
* lnms config:set works for os settings
validate against os schema (gives us path and value validation)
fix unset in config:set
json formatted output in config:get to match input parsing

* inline errors

* Check that OS exists

* Fix lock file

* Set param type

* correct method name, it no longer returns a boolean

* rename --json to --dump
tests and fixes

* fix whitespace

* missed one whitespace

* typehints

* add connection typehint

* try again
2021-08-19 18:34:19 -05:00
Tony Murray
3c6f9fd60f
Update docs for controlling modules (#13147)
* update docs for controlling modules

* text update

* clarify

* typo

* add missing word
2021-08-19 17:32:08 +02:00
geg347
6dbefd4a61
Adding API route to set bgpPeerDescr field (#13056)
* Adding API route to set bgpPeerDescr field

* Fixing CI test

* Fixing CI test part 2

* Adding validation of bgpPeerId as integer and changing SQL request with question mark syntax.

* Fixing CI test

* Following murrant's advices to protect against SQL injection

* Use built in json function

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-08-13 00:58:47 +02:00
ottorei
35dbb3e9cb
Update docs: Example for optional data on templates (#13128) 2021-08-12 12:55:36 +02:00
Kevin Zink
93209a0fc8
API mac search (#12964)
* API find a switchport with the mac from device

* fix style

* convert SQL to Eloquent

* convert SQL to Eloquent

* git mistake

* Global use App\Models\Port

* git mistake partII

* Refractor Eloquent - Not finish but easier to help for others

* Better Eloquent Query without filter option

* Validation

* fix style

* Add filter option and DOC

* convert to the better macToHex method

* add a maxToHex unit test

* fix style

* fix style

* fix syle - seems my dev:check is running again :-)

* Fix phpStan

* phpStan #2
2021-08-09 19:33:04 -05:00
ottorei
1dce74f54c
Update FAQs for large groups (#13110)
* Update FAQs for large dynamic groups

Added a workaround for error messages when editing large dynamic groups

* Review fixes

* Add example value
2021-08-06 16:36:39 +02:00
Jellyfrog
39eea7bdc7
Remove links to freenode (#13101)
* Remove links to freenode

* Add funding links

* Sort composer
2021-08-05 10:33:23 -05:00
adamus1red
ae40865200
Document optional ups-nut arg1 (#13072)
As added in librenms/librenms-agent#371 the ups-nut script can take an optional argument for overriding the default UPS name.
2021-07-27 10:25:24 +02:00
Bennet Gallein
574eb1f0f0
Billing: add peak in and out (#13006)
* feat(api): added max in/out per bill_history period

* chore(Docs): updated docs to include in/out max values

* chore(formatting): style-ci

* chore(db): update db-schema

* fix(db): reverted wrong changes in schema

* fix: wrong table name in migration

* feat(billing-history-frontend): added max in/out values to frontend bill-history

* chore: renamed to peak instead of min/max
2021-07-26 10:37:52 -05:00
Sean
747506172a
Update cleanup options document (#13026)
- Add missed units for config definition
  - And remove units from translate strings
- Change values in the document to the actual default value
- Sort configs in the document by order
- Replace redundant text with "please refer to"
- Add instruction to use Web GUI setting
2021-07-25 09:50:25 +02:00
O Palivan
754276ba89
Extend REGEX filtering option by sensor_class (#13066) 2021-07-23 23:46:12 +02:00
Simon Smith
710cc3cef9
fix numbering and extra spaces (#13052) 2021-07-18 08:31:09 +02:00
Simon Smith
13ca67495e
Formatted applications docs for copy/paste (#13049)
* formatted applications for copy and paste

* Update Applications.md

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-17 23:07:43 +02:00
Tony Murray
02f9baaff9 Changelog for 21.7.0 2021-07-16 17:28:20 -05:00
djamp42
a7cb75ba2d
Support multiple db servers (#12963)
* add multiple db servers

* formating fixes

* add documentation, mysql_cluster

* add laravel db sticky

* fix formating

* fix space

* updated docs

* Fix whitespace

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-07-14 10:24:18 -05:00
rhinoau
ccb267bb4d
Two-factor UI config and status display (#13012)
* two-factor UI config and status display additions

* force test re-run

* removal of blade foreach via keyBy

* remove where clause against all()

* attempt where filtering with keyBy

* use @config and getPref in blade

* another forgotten @config changed

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-09 21:36:08 +02:00
rhinoau
02c2cd47b3
Documentation cleanup of Basic Setup, Advanced Setup, 3rd Party Integration sections (#13018)
* TOC cleanup of Basic Setup, Advanced Setup, 3rd Party Integration sections
2021-07-09 21:34:01 +02:00
rhinoau
fbf653f02e
Documentation cleanup of General, Install, Getting Started sections (#13013)
* doc cleanup of general, install, getting started sections

* force tests re-run

Just to force tests re-run

Co-authored-by: PipoCanaja <38363551+PipoCanaja@users.noreply.github.com>
2021-07-08 23:10:05 +02:00
Gregory Bers
141653cc01
Added support for the Rittal LCP DX Chiller (#12995)
* Added support for the Rittal LCP DX Chiller connected to a Carel pCOWeb card. A custom MIB is also provided.

* removed .mib extension from CAREL-RITTAL-LCP-3311-MIB

* Added snmp test data
2021-07-04 17:52:40 +02:00
martinberg
131f5c7e87
Option to filter Oxidized groups (#12966)
* Add support for Liebert humidity setpoint and UPS powerfactor

* Option to ignore groups so they are not sent to Oxidized

* Revert "Add support for Liebert humidity setpoint and UPS powerfactor"

This reverts commit c338528aba.

* Updated docs

* Added ignore_groups option

* Added descriptions and updated translations

* Update settings.php

* Fixed typo

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-06-28 12:53:16 +02:00
Adam
824a4e4d42
Squid can return OIDs out of order (#12987)
Squid can return OIDs out of order, without -Cc the proxy doesn't pass through correctly.

Solution found via this link - http://www.squid-cache.org/mail-archive/squid-users/200411/0622.html
Currently testing with CERN Frontier Squid Fork.
2021-06-26 10:41:56 +02:00
Tony Murray
62192f81a3 Changelog for 21.6.0 2021-06-17 23:35:44 -05:00
Kevin Zink
d0d8a9024b
Add Signal CLI transport support (#12954)
* Add Signal CLI support

* Update Signal.php

* fix style

* fix style

* fix CI style

* fix CI style

* escapeshellarg

* fix style

* fix style

* fix style
2021-06-18 00:38:09 +02:00
Sean
bcedc0ed77
Improve Markdown syntax in Document (#12949)
* Use GitLab instead of Gitlab

Only change text part, the Alert.Transport.Gitlab class left as is.

* Fix href in document

* Move section in document

The agent list in this document is sorted by alphabetical order,
"SDFS info" is the only exception.

* Remove trailing spaces in document

* Align code in document

* Fix Markdown in document

- Escape underline
- Add syntax highlight
- Add two space in the end of line to make it a newline
- Add newline before list or code section

* Update LibreNMS/Alert/Transport/Gitlab.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-06-16 21:16:21 +02:00
Misha Komarovskiy
e670097bf6
API: Add api call to list OSPF ports (#12955)
Signed-off-by: Misha Komarovskiy <zombah@gmail.com>
2021-06-16 20:31:05 +02:00
Tony Murray
f7b95b92d8
Add info about lnms config:set at top of Configuration page (#12939)
* Update Configuration.md

* Update Configuration.md

* Update Configuration.md
2021-06-09 17:49:38 +02:00
Paul Dee
fdde13af90
Documenting spelling (#12919)
setup / set up

Update Style-Guidelines.md

sp/gram

Update SNMP-Trap-Handler.md

Update RRDCached.md

setup = noun
set up = verb/idiom
2021-05-25 21:44:57 +02:00
Tony Murray
5f3537c52e
Fix duplicate changelog (#12892) 2021-05-18 10:22:26 +02:00
Tony Murray
ccaf669fe3 Changelog for 21.5.0 2021-05-17 19:17:52 -05:00
Tony Murray
2d752925b0
Oxidized improvements (#12773)
* Oxidized API cleanup
Import more settings to the UI
use lnms config:set

* validate os and type exist

* map settings WIP

* oops

* editing working.  Needed to add new property to pass update state to child

* implement deleting and handle text overflow a little better.

* Update app/Models/Device.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* Update app/Models/Device.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>

* revert change

* fix style

* add return

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-05-11 08:08:59 -05:00
Simon Smith
b44ee32b78
add mysql skip slave (#12826) 2021-05-06 18:22:04 +02:00
Tony Murray
76910e4180
Debug and collect-snmp-data.php fixes (#12837)
Fix output so it can be captured and typo in collect-snmp-data.php
2021-05-05 10:27:10 -05:00
Kevin Zink
193a102b4e
Update Plugin-System.md (#12810)
Have to be a static function. Throws execption since update to PHP8
2021-04-29 09:41:15 -05:00
Tony Murray
3401013477
Fix docs custom graph rrd functions (#12803) 2021-04-28 09:45:36 -05:00
PipoCanaja
07900ccc08
Discovery - Refactor num_oid computing (#12576)
* Test the num_oid generation

* Refactor num_oid discovery

* cnt

* Cache the value to avoid unnecessary snmptranslate

* desc of function

* typo

* Negative caching as well

* Negative caching

* style

* Str::before

* Str::before

* Str::before

* Fix key,  and model Devices

* types

* types

* doc update

* re-run tests

* Use Cache class

* Simplify caching and do it into oidToNumeric

* Simplify caching and do it into oidToNumeric

* style

* Extend to 3 hours

* and not ->cache_time

* force re-run tests

* only one OID for num_oid test

* rerun tests

* typo in MD

* restore

* Exemple

* Exemple

* light change

* test

* test

* test

* back to PR

* phpstan + suggestions from Tony

* fix firebrick num_oid

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-22 14:40:45 -05:00
Sean
d32e62479e
Use GitHub instead of Github (#12781) 2021-04-22 14:34:03 -05:00
m4rkov
dd2a8f23f0
Update Smokeping.md (#12775)
It is necessary to install fcgiwrap, for CGI wrapper interact with Nginx, if you dont have installed the page doesn't work.

Regards
2021-04-21 21:57:59 -05:00
Tony Murray
cea6f13bf5
Document sub index references (#12767) 2021-04-20 11:26:17 +02:00
Tony Murray
6bcba7833b Changelog for 21.4.0 2021-04-17 23:04:56 -05:00
Jake
21dcd3eed9
Update Dashboards.md (#12733)
Corrected a couple typos.
2021-04-09 11:11:03 +02:00
SourceDoctor
4b9e480118
Define Port Groups (#12402)
* Define Port Groups

* .

* .

* .

* API Calls

* .

* .

* .

* minor changes

* .

* update forms

* remove link

* .

* change column settings

* change migration

* change update position

* db migration fix

* .

* .

* .

* add missing doc reference

* update test data

* update test data

* update test data

* .

* .

* .

* .

* .

* .

* .

* .

* port group association in seperate table

* .

* .

* show all found groups on port

* select multiple Portgroups per Port

* change on migration file

* change query to eloquent

* Code changes

* move port group menu to ports main menu

* port group update to eloquent

* .

* .

* update to new setting way

* add missing merge parameter

* Use select2 and port some things to Laravel
some fixes, hopefully no new added bugs

* schema

* don't use on update restrict unfortunately

* remove unused import and revert changes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-04-06 17:25:08 -05:00