ping的简单监控
时间:2010-10-06 来源:jing494485758
#!/bin/bash
ping -c 10 192.168.1.100
core=$?
if (( $core != 0 ))
then
echo "XXserver can not ping!!!" | mail -s "XXserver alarm!" lawrancejing[at]126.com
fi
相关阅读 更多 +