I'm trying to graph the cummulative bandwidth on an interface using Munin.
Apparently there is a bandwidth_
plugin for this (see http://munin-monitoring.org/browser/munin-contrib/plugins/network/bandwidth_), which I installed and is running since a few weeks now.
I was expecting to see some nice graphs, but everything is set to '0'.
When doing a munin-run
, I get null values as well:
# munin-run bandwidth_br0
average.value 0
monthly.value 0
30dayusage.value 0
So I tried to have a look what the code says:
open( my $rx, "<", "/sys/class/net/$interface/statistics/rx_bytes" )
|| die "Unable to read: $!";
$counter_input = <$rx>;
chomp $counter_input;
... and that outputs an ever increasing value like it should:
# cat /sys/class/net/br0/statistics/rx_bytes
2095478809
My state
file contains following info:
pst0^D^H^H12345678^D^H^H^H^C+
^@^@^D^C^B^@^@^@^H<80>^E^@^@^@input^H<80>^F^@^@^@output
^@^@^@1398125584^D^C^B^@^@^@^H<80>^E^@^@^@input^H<80>^F^@^@^@output
^@^@^@1398037387^D^C^B^@^@^@^H<80>^E^@^@^@input^H<80>^F^@^@^@output
^@^@^@1398331077^D^C^B^@^@^@^H<80>^E^@^@^@input^H<80>^F^@^@^@output
^@^@^@1397950990^D^C^B^@^@^@^H<80>^E^@^@^@input^H<80>^F^@^@^@output
Would anyone know where the issue lays or how to debug this further?
Using munin 2.0.17 on Ubuntu Saucy.