for munin a . is a delimeter, so replacing . with _
authorMarcel Haerry <haerry@puzzle.ch>
Wed, 16 Jul 2008 14:41:05 +0000 (16:41 +0200)
committerMarcel Haerry <haerry@puzzle.ch>
Wed, 16 Jul 2008 14:41:05 +0000 (16:41 +0200)
files/plugins/xen_traffic_all

index 73eb504..55740f0 100644 (file)
@@ -58,7 +58,7 @@ for dom in $DOMAINS; do
     name=$real_name
     for dev in $devs; do
             if [ ${#devs} -gt 1 ]; then
-                name=$real_name"_"$dev
+                name=$real_name"_"`echo $dev | sed 's/\./\_/'`
             fi
             awk -v name="$name" -v interface="$dev" \
                 'BEGIN { gsub(/\./, "\\.", interface) } \