Modification de ping_ pour être indépendant de l'hôte
darcs-hash:20080907152538-ffbb2-61f639561787b354a146423479f10fd48ef0b51b.gz
This commit is contained in:
parent
e771f28cd1
commit
b09c1a25a7
1 changed files with 2 additions and 1 deletions
|
@ -32,12 +32,13 @@
|
|||
#
|
||||
#%# family=manual
|
||||
|
||||
hostname=`hostname --fqdn`
|
||||
file_host=`basename $0 | sed 's/^ping_//g'`
|
||||
host=${host:-${file_host:-www.google.com}}
|
||||
|
||||
if [ "$1" = "config" ]; then
|
||||
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_vlabel seconds'
|
||||
echo 'graph_category network'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue