Modification de ping_ pour être indépendant de l'hôte

darcs-hash:20080907152538-ffbb2-61f639561787b354a146423479f10fd48ef0b51b.gz
This commit is contained in:
Nicolas Dandrimont 2008-09-07 17:25:38 +02:00
parent e771f28cd1
commit b09c1a25a7

View file

@ -32,12 +32,13 @@
# #
#%# family=manual #%# family=manual
hostname=`hostname --fqdn`
file_host=`basename $0 | sed 's/^ping_//g'` file_host=`basename $0 | sed 's/^ping_//g'`
host=${host:-${file_host:-www.google.com}} host=${host:-${file_host:-www.google.com}}
if [ "$1" = "config" ]; then if [ "$1" = "config" ]; then
echo host_name $host echo host_name $host
echo graph_title Ping times from sila echo graph_title Ping times from $hostname
echo 'graph_args --base 1000 -l 0' echo 'graph_args --base 1000 -l 0'
echo 'graph_vlabel seconds' echo 'graph_vlabel seconds'
echo 'graph_category network' echo 'graph_category network'