1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 02:51:03 +00:00

increase the ds-name to be prefixed by hop_ so newer munins wont try to store everything datapoint in "_"

This commit is contained in:
Charlie Allom 2012-04-17 22:47:55 +01:00
parent fae716b478
commit 7c3ecf1bc5

View file

@ -65,9 +65,9 @@ total+=$6
END {
for (x=1; x<=count; x++) {
value=(val[x]/total)*100
if ( C != "config" ) { printf "%s.value %2.2f\n",lab[x],value }
if ( C == "config" ) { print lab[x] ".label " name[x] }
if ( C == "config" ) { if ( x == 1 ) { print lab[x]".draw AREA" } else { print lab[x]".draw STACK" } }
if ( C != "config" ) { printf "%s.value %2.2f\n","hop_" lab[x],value }
if ( C == "config" ) { print "hop_" lab[x] ".label " name[x] }
if ( C == "config" ) { if ( x == 1 ) { print "hop_" lab[x]".draw AREA" } else { print "hop_" lab[x]".draw STACK" } }
}
}'
}