tools- collection of tools for supernets sysadmins |
git clone git://git.acid.vegas/tools.git |
Log | Files | Refs | Archive |
monitor (199B)
1 #!/bin/sh 2 while true; do 3 for i in $(dig irc.supernets.org A irc.supernets.org AAAA +short); do 4 ping -c 1 $i 2>&1 >/dev/null 5 [ $? -ne 0 ] && echo "`date`: ping failed! ($i)" 6 done 7 sleep 300 8 done