JDP 發表於 2010-3-30 17:09:31

使用nagios 配合 twsms 監測系統

# 'notify-by-sms' command definition
define 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]
查看完整版本: 使用nagios 配合 twsms 監測系統