Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- source /etc/hostmonitor.conf
- while :;do
- if ping -c 1 $host > /dev/null 2>&1; then
- echo "El host $host esta caido" | mail -s "Estado de $hosts" $usermonitor
- fi
- sleep $interval
- done
Add Comment
Please, Sign In to add comment