diff --git a/plugins/network/mtr100_ b/plugins/network/mtr100_ index 2e439519a..ec07888d8 100755 --- a/plugins/network/mtr100_ +++ b/plugins/network/mtr100_ @@ -5,7 +5,7 @@ # # Version: 1.0 # Author: tobias.geiger@vido.info -# Please email me bugs/suggestions +# Please email me bugs/suggestions # # Version: 1.1 # Author: charlie@evilforbeginners.com @@ -63,7 +63,7 @@ total+=$6 } END { - for (x=1; x<=count; x++) { + for (x=1; x<=count; x++) { value=(val[x]/total)*100 if ( C != "config" ) { printf "%s.value %2.2f\n","hop_" lab[x],value } if ( C == "config" ) { print "hop_" lab[x] ".label " name[x] } @@ -73,8 +73,7 @@ END { } if [ "$1" = "config" ]; then - - echo 'graph_title Traceroute (%) to '$totrace + echo "graph_title Traceroute `mtr -nrc 1 localhost | grep -E '^HOST' | awk '{print $2}'` to "$totrace echo 'graph_args --base 1000 -l 0 -u 100 -r' echo 'graph_vlabel ms (percentage)' echo 'graph_category network' @@ -86,4 +85,3 @@ if [ "$1" = "config" ]; then else dotrace; fi -