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

354 commits

Author SHA1 Message Date
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
Lars Kruse
3bc9396918 Unify file encodings to UTF8 2020-08-25 17:44:17 +02:00
Lars Kruse
3674882662 Fix spelling mistakes 2020-08-25 17:44:17 +02:00
Olivier Mehani
e254623ba1 [plugins/transmission] Fixups for consistency
Use standard colours for the transmission_activity plot (but keep a
darker one for paused torrents).

Also, remove the ${host} from the graph_title, and add it in the
graph_info, for better groupability.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2020-05-27 18:02:28 +10:00
Lars Kruse
f776b7e04f Fix spelling mistakes in variable names
Thanks, codespell!
2020-03-26 04:23:21 +01:00
Lars Kruse
8713eb3722 Fix spelling mistakes in comments and descriptions
Thanks, codespell!
2020-03-26 04:23:21 +01:00
corbolais
561da1a3f1 typo: retransmited -> retransmitted
Signed-off-by: corbolais <corbolais@gmail.com>
2020-02-29 00:33:15 +01:00
Olivier Mehani
6ad466b10e [network/upnpc_] Add missing vlabel
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-13 16:59:03 +02:00
Olivier Mehani
6ca9f65af9 [transmission] Show counts as stacked areas
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-13 16:59:03 +02:00
Olivier Mehani
cfe070ea38 [network/hostsdeny] Refactor to support any blocked service
The HostDenied field is renamed to ssh. To preserve existing data,

	# cd /var/lib/munin/example.net
	# mv hostname-hostsdeny-HostsDenied-g.rrd hostname-hostsdeny-sshd-g.rrd

This refactor incidentally also fixes a bug where empty or commented-out
lines where also counted.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-13 16:59:03 +02:00
Olivier Mehani
e926acaf5f Fix titles of similar plugins so they are better grouped in category views
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-13 16:59:03 +02:00
Olivier Mehani
cf74793230 [router/upnpc] Fix autoconf
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Olivier Mehani
282b32b0e5 [network/upnpc_] Add support for host_name
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Olivier Mehani
01edaf0086 [network/upnpc] Add hostname in graph titles
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Olivier Mehani
076545b5f6 [network/upnpc_] Add multigraph support
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Olivier Mehani
3212af2eed [network/upnpc_traffic] Show max bitrate
Deprecate bitrate mode in suggest, but keep support for it so as not to
break existing installations.

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Olivier Mehani
5382722fdb [network/upnpc_] Add dirtyconfig support
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Olivier Mehani
81bf32a5a5 [network/upnpc_] Cleanup shell code and centralise call to upnpc
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-10-03 17:28:04 +02:00
Lars Kruse
be192b5226 Fix multiple python code issues (detected by flake8) 2019-08-13 05:16:13 +02:00
Olivier Mehani
92db831bc3
[network/upnpc_] don't let the shell expand ${graph_period}
Also, update license and add SPDX identifier

Signed-off-by: Olivier Mehani <shtrom@ssji.net>
2019-06-06 20:20:11 +10:00
Lars Kruse
6995742e59 Plugins tc_*: check existence of "tc" during autoconf 2018-09-18 03:07:05 +02:00
Lars Kruse
272220c61a Merge branch 'fix-autoconf-exitcode'
Various plugins still followed the old (before 2009?) convention of using
a non-zero exitcode for indicating "no". Most of these (obvious) occasions
should be fixed now.
2018-09-16 15:18:01 +02:00