Open glaszig opened 8 years ago
Same problem on Ubuntu 16.04 Patch worked.
Same problem on Ubuntu 16.04 for me. Patch worked.
I am sad to say that applying this patch did NOT work for me on a fresh Ubuntu 16.04 instance on Digital Ocean. I ended up putting:
SPEED=1000
on line 130 of /usr/share/munin/plugins/if_
.
I don't know the Munin project (or its source) all that well--if anyone here has suggestions for how a change could be made to force Munin to treat Ethernet devices at 1 Gigabit to prevent this sort of breakage, I'm all for it--and I'll even help write the patch.
-- Doug
The patch fixed the issue on my Ubuntu 16.04 nodes.
Big thanks for the patch! Worked on my 14.04 and 16.04 Ubuntu nodes
Thank you for the patch! Ubuntu 16.04.
Also this patch did not help me directly, but pointed me in a good way. I added (after the patch) on line 97 the following:
else
echo "1000"
return
and now finally one of my graphs is created! I think the reason the patch didn't work at first time is that the result of cat /sys/class/net/ens3/speed
is " -1 " :(. Running a VPS with Leaseweb NL.
This is a common problem for virtual network devices. In these cases you can also manually set the interface speed with ethtool (if your distro is recent enough), e.g.
ethtool -s eth0 speed 1000 duplex full
See these links: https://serverfault.com/questions/738840/get-link-speed-of-an-virtio-net-network-adapter https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1581132
i'm running on a ubuntu 14.04 droplet on digitalocean.
munin did show missing graphs for eth0 traffic. a quick lock into
/var/log/munin/munin-update.log
revealed some issue with how the rrd configuration was being created.i then ran the if_eth0 plugin manually which yielded a negative value for the DS MAX value of the rrd config - see
down.max -1000000
andup.max -1000000
then i went to munin on github and looked at the plugin's history just to find 2 commits around this issue:
applying munin-monitoring/munin@f982751a manually to the plugin on my machine resolved the issue. the following is the diff which might be helpful to others and maybe should be integrated with mailinabox by way of just applying the patch or maintaining a seperate ppa or somehow pulling in a version of munin newer than 2.0.19 (which was released in 2014).
if you trust the internet, you can apply this patch with this one-liner:
(be root before doing so)