Check all the servers

travelly-project

This script will notify you if the server is still online

#!/bin/bash
host="/home/bill/scripts/hosts"
for server in $(cat $host)
do
ping -c1 $server &> /dev/null
if [ $? -eq 0 ]
then
echo $server is ok
else
echo $server IS NOT OK
fi
done

Hosts file add as much as you need

192.168.1.1
192.168.1.123
192.168.1.23