1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 10:28:36 +00:00

Fixed the other ipvs plugins too regarding UDP detection

This commit is contained in:
Tom Hendrikx 2013-06-17 12:09:53 +02:00
parent 267c45f904
commit f349130b3f
3 changed files with 5 additions and 5 deletions

View file

@ -75,8 +75,8 @@ ipvsadm -l -n --rate| nl > $F1
for IP in $IPLIST; do
COUNT1=`cat $F1 | grep TCP | grep $IP | awk '{print $7}'`
COUNT2=`cat $F1 | grep TCP | grep $IP | awk '{print $8}'`
COUNT1=`cat $F1 | grep -e TCP -e UDP | grep $IP | awk '{print $7}'`
COUNT2=`cat $F1 | grep -e TCP -e UDP | grep $IP | awk '{print $8}'`
NM=`echo $IP | md5sum | cut -d - -f1 | sed 's/ //g' | cut -b 5-9`
echo down$NM.value $COUNT1
echo up$NM.value $COUNT2