yum -y install sendmail
23 vi /home/a.log 24 cat /home/a.log 25 cat /home/a.log |mail -s"585" 88@163.com
vi /home/mail.sh
#!/bin/bashdate >> /home/a.logmaddr=88@163.comfor IP in 192.168.1.2 192.168.1.5donc -w5 $IP 80if [ $? -ne 0 ]thencat /home/a.log|mail -s"$IP -stop" ${maddr}fidone
crontab -e
#*/1 * * * * /home/mail.sh