1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-29 20:34:51 +00:00
Commit graph

8 commits

Author SHA1 Message Date
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