Commit Graph

20076 Commits

Author SHA1 Message Date
Marek Wobst
0e952b9c98 Add module support for wrapper script calls (#14055)
* Add module support for wrapper script calls

The scripts poller.php and discovery.php offer a module
option (-m), which may be used to specify specific modules
for polling/discovery, possibly for special (and then faster) testing
or for example rediscovering the fdb table (on all hosts).

Until now, this was not possible with the python wrapper scripts.
Now they support a '-m' option, where comma separated module names
may be passed. This will currently only work with poller and discovery, though.

* Replace single quotation signs with double ones (empty strings only)

* Fix more code lines (quotation signs, indentation)

Also 'reduced' if-else-clause size at end of LibreNMS/wrapper.py
(do not call method at each branch, instead prepare a value for modules)

* Add commas after last parameter of dict+methode

Also an additional comment sign before #

* Fix two leftover single quot. signs …

* doc: Add documentation for module support
2023-07-19 23:09:57 -05:00
Zane C. Bowers-Hadley
54a38dd4cd add the Mojo CAPE Submit app (#15140)
* add poller for mojo cape submit

* mojo_cape_submit poller now works

* add app page for mojo_cape_submit

* add basic generic stat graphs for mojo cape submit

* general size stats graph for mojo_cape_submit

* make sure we update slugs that did not see anything submitted for them

* sort the slugs by sub count

* add app protos graph and sub top 12 graphs

* add mojo cape submit docs

* add tests for mojo_cape_submit

* add mojo_cape_submit to the apps page

* add string helper for mojo_cape_submit

* poke lots of stuff with php-cs-fixer

* remove a unneeded line

* add a missing metric and app data to test
2023-07-19 22:41:51 -05:00
eggbeater98
510d5dc94b Update dark.css (#15155)
Change text for services to white for visibility.
2023-07-19 22:22:42 -05:00
richard-ririe
4c8e5fc783 Add API endpoint to get service graphs (#15138)
* Add API endpoint to get service graphs

* Docs: Add missing title to get_graph_by_service
2023-07-19 22:19:43 -05:00
hirose003
7cdb81b2e9 change display query to pattern match (#15147) 2023-07-19 22:17:28 -05:00
Zane C. Bowers-Hadley
2ac9a634b4 Logsize monitoring for LibreNMS (#15137)
* add logsize poller

* add set size info

* add more stats

* add min size

* more logsize files

* add logsize

* fix creating log file links

* add two new graphs

* add some graphs

* add no_minus_d

* add no minus d to app page

* add count of log files

* save logsizes in app data

* rename title log sizes

* only show top 12

* add mean median and mode

* cleanup naming a bit

* the values for the files hash is now a int instead of another hash

* add new stats and correct median name

* now properly handle unseen

* fix logsize bits

* add combined

* update metrics and add some tests

* add logsize graphs to apps page

* add the logsize bit

* add logszie docs

* add some example alert rules

* style cleanup

* more style cleanup

* fix a few things for metrics and update the test

* fix a variable name in the test and update the data
2023-07-19 22:02:23 -05:00
Tony Murray
b3574ee282 Update Ziggy (#15151) 2023-07-17 09:56:24 -05:00
Tony Murray
1d7d241894 Add Calix E7 (EXA) PON port sensors (#15145)
* Add Calix E7 (EXA) PON port sensors

* oops

* remove space

* skip sensors on down ports

* fix state generic values

* 10 oid was breaking... change to 8 max

* Add initial divisors... need to double check

* change power to dbm as it is more useful

* Add bias and limits

* Test data

* change skip value
2023-07-17 08:54:04 -05:00
Tony Murray
13547225b4 Dependency Updates (#15149)
* symfony/finder (v6.2.7 => v6.3.0)
symfony/var-dumper (v6.2.10 => v6.3.1)
symfony/css-selector (v6.2.7 => v6.3.0)
symfony/uid (v6.2.7 => v6.3.0)
symfony/routing (v6.2.8 => v6.3.1)
symfony/process (v6.2.10 => v6.3.0)
symfony/mime (v6.2.10 => v6.3.0)
symfony/service-contracts (v3.2.1 => v3.3.0)
symfony/event-dispatcher-contracts (v3.2.1 => v3.3.0)
symfony/event-dispatcher (v6.2.8 => v6.3.0)
symfony/mailer (v6.2.8 => v6.3.0)
symfony/polyfill-php83 (v1.27.0)
symfony/deprecation-contracts (v3.2.1 => v3.3.0)
symfony/http-foundation (v6.2.10 => v6.3.1)
symfony/error-handler (v6.2.10 => v6.3.0)
symfony/http-kernel (v6.2.10 => v6.3.1)
symfony/string (v6.2.8 => v6.3.0)
symfony/console (v6.2.10 => v6.3.0)
symfony/translation-contracts (v3.2.1 => v3.3.0)
symfony/translation (v6.2.8 => v6.3.0)
nesbot/carbon (2.66.0 => 2.68.1)
monolog/monolog (3.3.1 => 3.4.0)
doctrine/inflector (2.0.6 => 2.0.8)
laravel/framework (v10.11.0 => v10.15.0)
phpstan/phpdoc-parser (1.21.0 => 1.22.1)
doctrine/deprecations (v1.0.0 => v1.1.1)
phpdocumentor/type-resolver (1.7.1 => 1.7.2)
nikic/php-parser (v4.15.5 => v4.16.0)
doctrine/dbal (3.6.2 => 3.6.4)
composer/class-map-generator (1.0.0 => 1.1.0)
barryvdh/reflection-docblock (v2.1.0 => v2.1.1)
symfony/filesystem (v6.2.10 => v6.3.1)
composer/ca-bundle (1.3.5 => 1.3.6)
composer/composer (2.5.5 => 2.5.8)
fakerphp/faker (v1.22.0 => v1.23.0)
symfony/stopwatch (v6.2.7 => v6.3.0)
symfony/options-resolver (v6.2.7 => v6.3.0)
friendsofphp/php-cs-fixer (v3.17.0 => v3.22.0)
laravel/dusk (v7.7.1 => v7.8.0)
psy/psysh (v0.11.18 => v0.11.19)
mockery/mockery (1.5.1 => 1.6.2)
filp/whoops (2.15.2 => 2.15.3)
phpstan/phpstan (1.10.15 => 1.10.25)
phpmyadmin/sql-parser (5.7.0 => 5.8.0)
nunomaduro/larastan (v2.6.0 => v2.6.3)
nunomaduro/laravel-console-summary (v1.9.1 => v1.10.0)
phpseclib/phpseclib (3.0.19 => 3.0.21)
php-amqplib/php-amqplib (v3.5.3 => v3.5.4)
php-flasher/flasher (v1.13.1 => v1.15.3)
php-flasher/flasher-laravel (v1.13.1 => v1.15.3)
phpunit/phpunit (9.6.8 => 9.6.10)
predis/predis (v2.1.2 => v2.2.0)
laravel/socialite (v5.6.1 => v5.8.0)
spatie/backtrace (1.4.0 => 1.5.3)
spatie/flare-client-php (1.3.6 => 1.4.1)
spatie/ignition (1.7.0 => 1.9.0)
spatie/laravel-ignition (2.1.2 => 2.2.0)
symfony/yaml (v6.2.10 => v6.3.0)

* Typehint update

* update baseline for fixed issues
2023-07-17 08:18:10 -05:00
Tony Murray
6edb3b5046 Bump version to 23.7.0 23.7.0 2023-07-16 23:42:41 -05:00
Tony Murray
fdfa95a932 Changelog for 23.7.0 2023-07-16 23:42:40 -05:00
PipoCanaja
dbe0f7f2ca Fixed invalid IP data in arp-table module (#15142)
Check to catch boggus reply from snmpwalk
2023-07-15 20:45:22 +01:00
Peter Childs
fca941c1a4 Update Graylog.md (#15146)
* Update Graylog.md

Formatting twiggle

* Update Graylog.md

and TLS certificate section
2023-07-15 20:26:31 +01:00
Neil Lathwood
798ad4dc57 Skip hostnames which are blank when generating the smokeping config (#15144) 2023-07-14 16:50:37 -05:00
eggbeater98
0eebe7a255 Update dark.css (#15141)
Fix device name and drop-down text color for availability.
2023-07-11 13:10:48 +03:00
AdamB
b27dfa5891 Add support for PrimeKey Software Appliance (#15059)
* Add PK-SOFTWARE-APPLIANCE-V2 MIB

* Add support for PrimeKey Software Appliance

* Move file to correct path

* Make the OS detection more specific

* Thanks vscode

* Sync filename with osname

* Not supported

* Track SQL database size as volume

* Two fixes
2023-07-07 23:35:53 -05:00
tarik
3ad19607d0 adding human readable version of /api/v0/fdb/{mac}/detail (#15045)
* adding human readable version of /api/v0/fdb/{mac}/detail

* adding last seen field in human readable format

* fixing styling issue

* fixing another styling issue

* removing stale variable

* adding a limit to number of results returned in order to limit memory issues

* adding the documentation for fdb_detail api

* Wording fix

* wording fix again. smh

---------

Co-authored-by: Justin Lentz <monkeybrains7@gmail.com>
2023-07-07 23:24:50 -05:00
Antonio Perretta
8c8b877ba4 Alert transport slack config (#15131)
* Fixing webform - Icon field was referencing slack-author and causing issues when writing to database

* Fixing validation - slack-username no longer used, changed to slack-author

* Fixed typo in previous update to Slack.php
2023-07-07 12:36:34 -05:00
Peter Childs
b655eb7feb change chunk to chunkById (#15139) 2023-07-07 11:53:15 -05:00
Peter Childs
7e22b1276a fix for hrStorageIndex agility (#15028)
* fix for hrStorageIndex agility

* test for array

* Handle not found data

* Handle description changed correctly

* remove debug

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-07-07 11:41:13 -05:00
Garcia MICHEL
9c6541f3a4 Fix validation: memcached required only if it is configured in .env (#15122)
* Fix validation: memcached required if it is configured in .env

* Remove unuse namespace
2023-07-05 08:29:32 -05:00
Peter Childs
2fada03570 use lock ports_purge in ports_purge rather than syslog_purge lock (#15135) 2023-07-05 08:10:23 -05:00
Nick Peelman
e486ef4c22 Fix MPLS Tab Display for Nokia devices using LDP and not RSVP (#15128) 2023-07-03 13:08:58 +03:00
Elian Manzueta
91acfcc017 Update delhost.inc.php (#15130)
Fixed typo:

monitered->monitored
2023-07-01 14:17:40 -05:00
Sander Blomvågnes
8081a3f3c8 Change state value for unplugged linecard (#15126) 2023-06-28 14:24:59 +02:00
VP
6901884d45 Added missing zh-tw translation. (#15125)
Signed-off-by: VP <51seer.vincent@gmail.com>
2023-06-27 22:26:01 -05:00
Justin Lentz
2fb73e5f14 Add parenthesis Regex (#15124) 2023-06-27 16:22:40 -05:00
Garcia MICHEL
afe0a25d32 Exit non-zero if composer bin not found (#15120) 2023-06-26 17:25:42 +02:00
Zane C. Bowers-Hadley
00cf300d1a add Suricata Extract submission stats app (#15105)
* add suricata_extract

* convert from dervive to gauge and use delta

* add suricata_extract to includes/html/pages/apps.inc.php

* graph cleanup

* add sub_size

* add sub_size graph

* add docs for suricata extract

* add tests for suricata_extract

* add rules for suricata extract

* minor test tweaks
2023-06-25 20:48:26 +02:00
Garcia MICHEL
17f503b40a Update openwrt doc following PR #15096 (#15119) 2023-06-25 17:17:02 +02:00
Cyril LAVIER
dc7b702bd8 Add regex for Supermicro switches running firmware 2.0 or newer, now called "SuperSwitch" (#15083)
* Add regex for Supermicro switches running firmware 2.0 or newer, now called "SuperSwitch".

* Add test data for Supermicro MBM switch
2023-06-24 12:22:59 -05:00
Tony Murray
32b5bcbba5 More comforting generic os message (#15089) 2023-06-24 12:12:16 -05:00
Tony Murray
0a3678d11a Convert several JunOS sensors to yaml (#15118)
* Convert several JunOS sensors to yaml
Fixes some issues with the php code and reduces extra snmp fetches

* Convert several JunOS sensors to yaml
Fixes some issues with the php code and reduces extra snmp fetches

* Convert BER as well
Allow divisor and multiplier to be set from oid

* use fillValues

* fix

* sort snmprec, fix divide by 0, add more context
2023-06-24 11:52:36 -05:00
KITAHARA SETSUNA
2e2d1bb7d1 Sort port by interface name while list ports. (#15093)
* Sort port by interface name while list ports.

* Remove sql sort

* use ksort instead of sort manually

* Update ajax_listports.php

---------

Co-authored-by: Tony Murray <murraytony@gmail.com>
2023-06-24 18:17:37 +02:00
Zane C. Bowers-Hadley
f84fca697c add Privoxy stats support (#15114)
* add privoxy

* various style fixes

* cleanup option bar

* save metrics for privoxy now

* add instructions for privoxy

* add privoxy test data

* regen the test data

* add a few missing depends to the instructions

* add apps.inc.php entry for privoxy

* note the required log settings for privoxy

* style fix
2023-06-23 15:27:28 -05:00
Wheel
741c26dd2f Transport Messagebird voice message API (#15115)
* Messagebird voice message API

* Reverse permission change on rrd/.gitignore

* Name string
2023-06-23 15:19:26 -05:00
Wheel
106219d9cb APC new sensors (#15090)
* APC Emu dry contacts

* EMU test files

* Added energy and power sensors

* Revert "Added energy and power sensors"

This reverts commit b27b4a3ac2.

* Total energy sensor
2023-06-23 15:08:48 -05:00
mtentilucci
278890ce0a update mlos-nsp discovery (#15117) 2023-06-23 14:43:03 -05:00
Tony Murray
63fd62ca12 Yaml value filling improvements (#15116)
* Yaml value filling improvements
search all data for fully qualified oids (to prevent incorrect matches)
Reduce searches when not needed
subindex code optimization

* fix aos7

* fix e3meterdc

* Cleanups

* fix hpe-mapdu

* fix timos add note to dev:check

* remove inconsistent Str::contains usage
2023-06-23 13:57:44 -05:00
Tony Murray
eaf0253412 Bump version to 23.6.0 23.6.0 2023-06-23 08:25:03 -05:00
Tony Murray
03e577f174 Changelog for 23.6.0 2023-06-23 08:25:01 -05:00
Albert Siersema
f4c739c179 Fixes #14975 (Widget part) (#15076) 2023-06-18 22:22:41 -05:00
Simon Smith
0d187c802f add archlinux example (#15113) 2023-06-17 20:38:18 +02:00
Zane C. Bowers-Hadley
623d77fafe aboslute -> absolute (#15111) 2023-06-16 19:03:49 +02:00
ch
8e3a521244 Update MIKROTIK-MIB to v7.10 release (#15110) 2023-06-16 09:31:06 -05:00
Zane C. Bowers-Hadley
5da8e70bf4 add Sneck support, making it very trivial to use Nagios style checks in a NRPE like manner (#13954)
* code stuff done for Sneck

* whoops, correct the abs value post adding it post rrd update

* return a array for getting the sneck data and nicely print the raw return value

* add test stuff and freeze time at 1650911765 for tests

* move the freezeTime

* add use Illuminate\Support\Carbon;

* more test changes

* rework freezeTime a bit more

* more test stuff

* another test

* rework it a bit again

* correct variable spelling for $time_diff

* remove freezeTime as we are using a old version of Laravel

* finalize graphs

* misc

* finalize sneck page

* mve the sneck tests as it needs a newer version of laravel than we are using

* add documents for sneck

* finalize the poller

* formatting cleanup

* correct comment type

* correct the spelling of description

* more documentation

* save the check returns as metrics

* add some more examples

* fix some of the sneck alerts and add a few more examples

* turn off time to polling by default

* suggest using ntp if enabled

* since we are zeroing time_to_polling by default, this now works

* backout some suggested changes for once we change to larval 9

* remove del_sneck_data as it is no longer used

* add more docs on the metrics

* php-cs-fixer to fix a few things

* update and fix sneck tests

* remote a metric from the test

* another minor tweak to the test

* one more minor change

* ahh! derp! think I found it finally... hopefully hanging this for the last time...

* now use app data

* now logs check changes

* add a missing )

* add a missing )

* some style fixes

* update the sneck page use to the app data stuff

* update the poller to use the new app data

* misc

* update sneck to log check status changes

* correct alert log messages

* correct a comment

* fix metrics

* derp, another fix

* test fix

* re-order to avoid warning

* poller update

* update sneck graphs

* update sneck graphs

* remove a unneeded line

* test update for discovery

* minor tweaks to the test and fix update the polling a bit

* style fix

* fix return data printing

* fix the test data to include app data

* attempted test fix

* add config def to apps.sneck.polling_time_diff

* cleanup docs a bit

* minor config tweaks

* minor doc cleanup
2023-06-15 09:06:28 -05:00
Justin Lentz
b0ddd4ef15 Extend Avocent Support (#14914)
* Add files via upload

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Rename ACS6000-MIB to ACS-MIB

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Update avocent.yaml

* Create avocent_acs6048.snmprec

* Create avocent_acs6048.json

* Delete avocent_acs6048.json

* Same as avocent_6000

* Point at ACS MIB

ACS-MIB::acsSerialPortTableName

* Update avocent_6000.snmprec

Update avocent_6000 with additional MIB

* Update Test data

* Update avocent_6000.snmprec

* Update avocent_6000.snmprec

* Update avocent_6000.json
2023-06-14 22:50:44 -05:00
Jellyfrog
b14e2d4609 Apply fixes from StyleCI (#15101)
Co-authored-by: StyleCI Bot <bot@styleci.io>
2023-06-13 13:35:00 +02:00
Garcia MICHEL
e547945985 Improve OpenWRT detection (#15096)
* Improve OpenWRT detection

* Add test data

* Remplace openwrt date with new one
2023-06-12 13:59:24 +02:00
Zane C. Bowers-Hadley
0ed68e33de add Linux Softnet Stat app (#15094)
* add linux_softnet_stat poller

* add graphs and app page for linux_softnet_stat

* fix polling

* rename a few items, clean up the app specific page, and add to the apps page

* convert from derive to counter

* save the budget and budget_usecs to app data

* display current value of the budgets

* now track budget values

* add tests data

* rename it

* add docs for Linux Softnet Stat

* re-order and add budget for app page graph order

* style fix

* correct data location

* fix metrics for the json
2023-06-11 16:37:55 +02:00