Thank you all for Helping me with my script, here it is finished, it's not fancy, it's actually very simple, but for monitoring less than 25 servers is ok.
I'll leave it Here if someone else wants to use it.
there are 2 files, servscript and strike1, servscript will be running in the background all day and pinging the hosts every 5 minutes, if the host is alive then it continues scanning a does nothing, if the host is dead it writes it's IP address to the file deadip, when it finish scanning all of the ip's in the ipaddresslist file, then it will start the striek1 script, whose only function is to wait a minute, just to make sure that the host didnt answered because it was busy, then it pings all of the ip's in the deadip file, if they are still dead it sends an email to the sytems administrator, strike1 finishes and control goes back to servscript where it sleeps for 5 minutes to start the scanning all over again...
$ cat servscript
#!/usr/bin/sh
#Sistema de Monitoreo de Servidores
#CENCAR
a=1
while (test "$a"!="0")
do
for ipaddress in `cat ipaddresslist`
do
if ping $ipaddress >> pingout
then
continue
else
echo $ipaddress >> deadip
fi
done
./strike1
sleep 300
rm deadip
rm pingout
done
$ cat strike1
sleep 60
for a in `cat deadip`
do
if ping $a >> pingout
then
continue
else
echo $a" No Respondio al Segundo Intento" | mailx -s "ADVERTENCIA DEL SISTEMA DE MONITOREO"
xxxx@cencar.udg.mx
echo $a" No Respondio al Segundo Intento" | mailx -s "ADVERTENCIA DEL SISTEMA DE MONITOREO"
xxxx@cencar.udg.mx
fi
done