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.
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.
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.
* 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)
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.
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>
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>
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>