From 08b889d9dcc6f4ceb26e7288e9f04f1cf3d90de0 Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 8 Jun 2022 02:03:36 +0200 Subject: [PATCH] min *not* max value of fields needs to be 0 Ensure graph is not showing negative values when counters are reset. --- plugins/network/nft_counters | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/network/nft_counters b/plugins/network/nft_counters index 5858af46..d03d4eba 100755 --- a/plugins/network/nft_counters +++ b/plugins/network/nft_counters @@ -231,10 +231,10 @@ class MuninNftCountersPlugin(MuninPlugin): if self.envCheckFilter("counters", counter["name"]): if not (count_only == "bytes"): - graph_packets.addField(counter["name"], counter["name"], max=0, + graph_packets.addField(counter["name"], counter["name"], min=0, type="DERIVE", info=field_info) if not (count_only == "packets"): - graph_bytes.addField(counter["name"], counter["name"], max=0, + graph_bytes.addField(counter["name"], counter["name"], min=0, type="DERIVE", info=field_info) if not (count_only == "bytes"):