From f5857c2b0394baa78cf494219b88ba928c2a1ae5 Mon Sep 17 00:00:00 2001 From: Andreas Kreisl Date: Thu, 16 Feb 2017 06:40:07 +0100 Subject: [PATCH] Update avm-fritzbox-wan-traffic to remove spikes Switched from COUNTER to DERIVE and added .min = 0 to remove spikes on re-connect of the WAN port (which cause a reset of the counter). --- plugins/network/avm-fritzbox-wan-traffic | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/network/avm-fritzbox-wan-traffic b/plugins/network/avm-fritzbox-wan-traffic index 04a2b949..adda3a73 100755 --- a/plugins/network/avm-fritzbox-wan-traffic +++ b/plugins/network/avm-fritzbox-wan-traffic @@ -27,15 +27,17 @@ if(isset($argv[1]) && $argv[1] == "autoconf") { echo "graph_category network\n"; echo "graph_info This graph shows the traffic of the AVM Fritz!Box WAN network interface. Please note that the traffic is shown in bits per second, not bytes.\n"; echo "down.label received\n"; - echo "down.type COUNTER\n"; + echo "down.type DERIVE\n"; echo "down.graph no\n"; echo "down.cdef down,8,*\n"; + echo "down.min 0\n"; echo "down.max 1000000000\n"; echo "up.label " . $data_prop['NewWANAccessType'] . " (" . $data_prop['NewPhysicalLinkStatus'] . ")\n"; - echo "up.type COUNTER\n"; + echo "up.type DERIVE\n"; echo "up.negative down\n"; echo "up.draw AREA\n"; echo "up.cdef up,8,*\n"; + echo "up.min 0\n"; echo "up.max 1000000000\n"; echo "up.info Traffic of the WAN interface.\n"; echo "maxdown.label received\n";