使用nagios 配合 twsms 監測系統
# 'notify-by-sms' command definitiondefine command{
command_name notify-by-sms
command_line /usr/bin/printf "%b" "pw:yourpasswd\nmobile:09xxxxxxxx" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" yourid.sms@twsms.com
}Reference: http://phorum.study-area.org/index.php?topic=25675.0
頁:
[1]