Package: munin-node
Version: 1.2.6-10
Severity: wishlist

I ran into a problem with dropped packages on a LTSP server with many
NFS clients.  It would be nice if munin would graph the number of
dropped packages as well as throughtput and error packages.

It is trivial to implement by changing the if_err script, using the
column to the right of the error package count.

Here is a patch to implement it.  Please provide such script as
if_drop, and make it autoconfigure like if_err. :)


--- if_err_eth0 2009-11-25 11:38:05.000000000 +0100
+++ if_drop_eth0        2010-02-05 10:43:10.000000000 +0100
@@ -63,7 +63,7 @@
 #%# family=auto
 #%# capabilities=autoconf suggest

-INTERFACE=`basename $0 | sed 's/^if_err_//g'`
+INTERFACE=`basename $0 | sed 's/^if_drop_//g'`

 if [ "$1" = "autoconf" ]; then
        if [ -r /proc/net/dev ]; then
@@ -86,11 +86,11 @@

 if [ "$1" = "config" ]; then
        echo "graph_order rcvd trans"
-       echo "graph_title $INTERFACE errors"
+       echo "graph_title $INTERFACE drops"
        echo 'graph_args --base 1000'
        echo 'graph_vlabel packets in (-) / out (+) per ${graph_period}'
        echo 'graph_category network'
-       echo "graph_info This graph shows the amount of errors on the 
$INTERFACE network interface."
+       echo "graph_info This graph shows the amount of drops on the $INTERFACE 
network interface."
        echo 'rcvd.label packets'
         echo 'rcvd.type COUNTER'
         echo 'rcvd.graph no'
@@ -107,6 +107,6 @@
     'BEGIN { gsub(/\./, "\\.", interface) } \
     $1 ~ "^" interface ":" {
         split($0, a, /: */); $0 = a[2]; \
-        print "rcvd.value " $3 "\ntrans.value " $11 \
+        print "rcvd.value " $4 "\ntrans.value " $12 \
     }' \
     /proc/net/dev

Happy hacking,
-- 
Petter Reinholdtsen



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to