Attached is a patch to manually specify the interface speed for situations
when it can't be determined automatically (Xen virtual machines):

[if_eth0]
env.speed 1000

Withouth this patch machine reboot causes a PB spike making the rest
of the data invisible.

Please include it in Debian packages and forward it upstream.

-- 
Valentin
--- /usr/share/munin/plugins/if_	2010-10-05 15:39:09.000000000 +0200
+++ if_eth0	2011-09-09 15:10:27.000000000 +0200
@@ -133,6 +133,10 @@
 	    ;;
     esac
 
+    if [ "$speed" ]; then
+        SPEED=$speed
+    fi
+
     case $SPEED in
 	U) echo "up.info Traffic of the $INTERFACE interface. Unable to determine interface speed.  Please install ethtool, wireless-tools (or mii-tool), whatever is appropriate for the interface."
 	   return;;

Reply via email to