1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00
Commit graph

375 commits

Author SHA1 Message Date
Sandro
b8208b3496
Merge 1da6c8e34b into a9c6242e09 2025-04-27 15:13:05 +00:00
Christian Weiske
68d81b3f9c [dns/dnsperftest] add warning and critical configuration 2025-04-18 17:59:28 +02:00
Christian Weiske
b7402d0dd6 Add dnsperftest plugin to monitor response times of multiple DNS servers 2024-06-25 06:19:21 +02:00
Kim B. Heino
f7a437dfa3 network/nft_counter: add plugin to graph nftables named counters 2024-04-27 21:05:13 +03:00
Cyril Brulebois
e02cf4445a feat: add ipsec plugin
This makes it possible to monitor IPsec security associations (up and
connecting).
2024-03-07 06:19:04 +01:00
Philippe 'Peep' Chaintreuil
7d40cdaf44 network: Fix sscanf format warnings
Compilers warn that "%llu" doesn't match the uint_fast64_t type for all
machines.

These are just being sscanf()'ed to be sprintf()'ed a few lines later,
there's no need for performance.  These can just be vanilla "unsigned
long long"'s to match the existing format specifiers.

Closes: https://github.com/munin-monitoring/contrib/pull/1415
2024-03-02 15:31:58 -05:00
Kim B. Heino
c9cd3469b4 keepalived: plugin to monitor keepalived status and state
Currently this plugin monitors state of VRRP sync groups and
instances. More features, like IPVS, will be added soon.
2023-12-01 14:42:06 +02:00
Andreas Perhab
eb257a9c3c dnsresponse_: enable verifying responses
add option verify to enable graphing the number of successful responses.
if verify is enabled (default it is not) then a warning is emitted when
we do not get a response for all queries and critical if no query
succeeded.

add option timeout to be able to limit the time the plugin takes for
unresponsive servers. old max time was 75 seconds times 20 (25minutes).
new default max is 30 seconds timeout times 20 (10 minutes). with
setting a timeout of a few seconds this can now be reduced even more.

added warnings if average and or mean get close to the timeout.
2023-07-19 12:37:14 +02:00
Robert Kulyassa
2a12025ee5 Remove old "transmission" plugin
It doesn't work (looks like calling outdated python lib) and had the same
    funcionality than the newer transmission_ plugin. It is quite confusing now
    they are in the same directory, but the documentation (README) mentions
    only the other one.
2023-01-31 21:49:43 -08:00
Kenyon Ralph
5d028e8aec
consolidate location of transmission plugins 2023-01-13 21:42:00 -08:00
Kenyon Ralph
479e88f750
move transmission_ratios to the network directory
So that it's next to the other transmission plugin.
2023-01-13 21:34:21 -08:00
Sandro
1da6c8e34b Update example graphs 2022-07-04 10:33:17 +02:00
Sandro
0c02e246d2 Update documentation 2022-07-03 09:50:11 +02:00
Sandro
f537b44b9b Code style (Black) and linting (PyFlakes) changes 2022-06-30 23:20:12 +02:00
Sandro
99dfc5d16e Make plugin behave nicely when running autoconf
Re-raising exceptions will allow PyMunin to decide how to handle
them depending on debug setting.
When in 'autoconf' simply return from __init__ to allow correct
answer to be printed.
2022-06-13 17:53:50 +02:00
Sandro
08b889d9dc min *not* max value of fields needs to be 0
Ensure graph is not showing negative values when counters are
reset.
2022-06-08 02:03:36 +02:00
Sandro
208c41b5fd Make graph_title more descriptive 2022-06-08 01:49:56 +02:00
Sandro
dedc9683b6 Raise ValueError in getCounters()
Only there are we able to determine if counters are present.
nft_cmd() only checks if there is any output at all.
2022-06-08 01:21:42 +02:00
Sandro
24e6888b68 Turn off debugging for __init__ 2022-06-08 01:17:29 +02:00
Sandro
682917ec36 Simplify autoconf method
It's quite bogus, since any exceptions will be thrown during
initialization.
2022-06-07 23:11:53 +02:00
Sandro
fe43112bc5 Use retrieveVals(self) method
This separates graph creation and value retrieval. In case values
need to be computed or retrieved externally, value retrieval will
only happen when needed (e.g. calling the plugin without any
arguments), saving time, I/O and cpu cycles.
2022-06-07 22:58:51 +02:00
Sandro
9b4b5cd9b8 Do proper error/exception handling
* Ensure plugin exits with non-zero status
* Fix formatting of informative output
2022-06-07 22:05:42 +02:00
Sandro
dbc8e511a2 Add nft_counters plugin
Plugin monitors nftables counters and can be configured to show
a subset of counters. Limiting output by type of counter (bytes
or packets) is also possible.

Plugin requires python3-nftables, which makes use of libnftables
and is part of Netfilter's nftables, but may need to be installed
separately. Plugin will bail out if the nftables module cannot be
loaded.

Plugin is built upon PyMunin, adapted for Python3. The version
listed in PIP is still using Python 2 syntax. Release of a Python 3
compatible version is pending.
2022-06-07 19:58:54 +02:00
Andreas Perhab
a620b1a507 smtp_hello_: reformat metadata 2022-05-30 19:09:40 +02:00
Andreas Perhab
f676ff11e9 smtp_hello_: enable monitoring multiple ports at once 2022-05-30 19:09:40 +02:00
Andreas Perhab
9bf3b9a299 smtp_hello_: improve compatibility
* support systems without time executable
  (if we can use bash time keyword)
* use curl as smtp client if available
* enable specifying different ports from 25
* enable specifying other test commands than "HELO localhost"
  (e.g. HELP, QUIT can also be used to test connections)
2022-05-30 19:09:40 +02:00
Lars Kruse
eba742cea2 Plugin olsrd: port to python3 and support micropython without micropython-lib
The code was python3-compatible before, thus it was just a matter of
changing "python" to "python3".

The micropython approach previously relied on micropython-lib being
installed.  Now the basic micropython package (on OpenWrt) is
sufficient.
2022-04-13 05:11:57 +02:00
Michael Grote
f3c8d9519f Expanded Docs for dnsresponse_ 2022-01-23 13:53:12 +01:00
Olivier Mehani
02451d8f6e [whois] Allow to specificy whois server per domain
Also, clean up some old code that pre-dates multi-domain handling

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-12-31 03:13:12 +01:00
Olivier Mehani
f018bada38 [upnpc_] loan from other graphs in root
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2021-07-19 13:26:35 +02:00
Lars Kruse
2c9121708a Fix some spelling mistakes
Thanks, codespell!
2021-04-05 23:24:50 +02:00
ruliane
7046ba801c typo 2021-02-05 21:53:37 +01:00
ruliane
63505c5060 Add support for multi-domain check 2021-02-05 21:53:37 +01:00
ruliane
f2261ed9d4 Rename whois_ to whois 2021-02-05 21:53:37 +01:00
ruliane
f06ee36a05
Use an environment variable for CACHE_EXPIRY (#1169)
Use an environment variable for CACHE_EXPIRY in whois plugin.
2021-01-31 16:56:43 +01:00
Olivier Mehani
b289ff1f47 [plugins/transmission] Update shebang to use python3
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-11-28 14:07:03 +01:00
Olivier Mehani
d25a9e9428 [plugins/transmission] Python3 compat
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-11-28 14:07:03 +01:00
Olivier Mehani
0ab1e127a2 [plugins/whois_] stop EXTRACT_RE after the first match
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-11-26 15:05:52 +01:00
Lars Kruse
4a6d44a42c Update shebang of Python3-compatible plugins to Python3 2020-11-26 02:38:34 +01:00
Lars Kruse
a7139bcaee Unify shebang for python scripts 2020-10-28 23:38:41 +01:00
Lars Kruse
09b88141b3 Improve documantion of many plugins
Specifically the configuration examples are now indented properly.
2020-10-24 17:29:08 +02:00
Lars Kruse
94888223ff Plugin ipt_basic_: convert documentation to perlpod format 2020-10-05 04:05:50 +02:00
Lars Kruse
cd05363876 Plugin brc_rssi: convert documentation to perldoc header 2020-10-04 05:31:15 +02:00
Lars Kruse
d7f54f3ed2 Fix utf8 encoding of author names 2020-09-23 22:22:54 +02:00
Olivier Mehani
4ce9e74251 [whois_] Plugin to monitor domain registration expiries
This plugin only monitors one domain per instance, but should be easily
extensible to monitor several at once if need be.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-09-11 01:16:01 +02:00
Lars Kruse
81bdedaf42
Merge pull request #1086 from shtrom/transmission-consistency-fixups
[plugins/transmission] Fixups for consistency
2020-09-06 21:56:39 +02:00
Olivier Mehani
92483a045b [plugins/transmission] Lint
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-08-31 12:56:14 +10:00
Olivier Mehani
897de1bbba squash! [plugins/transmission] Fixups for consistency
Only show host in title when not localhost
2020-08-31 12:55:40 +10:00
Lars Kruse
809639ab65 Ruby plugins: apply code changes as suggested by "rubocop --auto-correct" 2020-08-25 17:44:17 +02:00
Lars Kruse
b0b39b018e Ruby plugins: apply style changes as suggested by "rubocop --fix-layout" 2020-08-25 17:44:17 +02:00