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