mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 18:38:30 +00:00
Add source HOST to graph_title
This commit is contained in:
parent
39976312f7
commit
dc129c541b
1 changed files with 3 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
#
|
#
|
||||||
# Version: 1.0
|
# Version: 1.0
|
||||||
# Author: tobias.geiger@vido.info
|
# Author: tobias.geiger@vido.info
|
||||||
# Please email me bugs/suggestions
|
# Please email me bugs/suggestions
|
||||||
#
|
#
|
||||||
# Version: 1.1
|
# Version: 1.1
|
||||||
# Author: charlie@evilforbeginners.com
|
# Author: charlie@evilforbeginners.com
|
||||||
|
@ -63,7 +63,7 @@ total+=$6
|
||||||
}
|
}
|
||||||
|
|
||||||
END {
|
END {
|
||||||
for (x=1; x<=count; x++) {
|
for (x=1; x<=count; x++) {
|
||||||
value=(val[x]/total)*100
|
value=(val[x]/total)*100
|
||||||
if ( C != "config" ) { printf "%s.value %2.2f\n","hop_" lab[x],value }
|
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" ) { print "hop_" lab[x] ".label " name[x] }
|
||||||
|
@ -73,8 +73,7 @@ END {
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$1" = "config" ]; then
|
if [ "$1" = "config" ]; then
|
||||||
|
echo "graph_title Traceroute `mtr -nrc 1 localhost | grep -E '^HOST' | awk '{print $2}'` to "$totrace
|
||||||
echo 'graph_title Traceroute (%) to '$totrace
|
|
||||||
echo 'graph_args --base 1000 -l 0 -u 100 -r'
|
echo 'graph_args --base 1000 -l 0 -u 100 -r'
|
||||||
echo 'graph_vlabel ms (percentage)'
|
echo 'graph_vlabel ms (percentage)'
|
||||||
echo 'graph_category network'
|
echo 'graph_category network'
|
||||||
|
@ -86,4 +85,3 @@ if [ "$1" = "config" ]; then
|
||||||
else
|
else
|
||||||
dotrace;
|
dotrace;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue