1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-24 18:07:20 +00:00

Add source HOST to graph_title

This commit is contained in:
Lee Clemens 2016-02-05 23:03:21 -05:00
parent 39976312f7
commit dc129c541b

View file

@ -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