找回密碼
 註冊
搜索
查看: 3889|回復: 0

使用nagios 配合 twsms 監測系統

[複製鏈接]
發表於 2010-3-30 17:09:31 | 顯示全部樓層 |閱讀模式
  1. # 'notify-by-sms' command definition
  2. define command{
  3.         command_name    notify-by-sms
  4.         command_line    /usr/bin/printf "%b" "pw:yourpasswd\nmobile:09xxxxxxxx" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" yourid.sms@twsms.com
  5.         }
複製代碼
Reference: http://phorum.study-area.org/index.php?topic=25675.0
您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則

Archiver|手機版|彩色筆小沛的知識庫

GMT+8, 2024-4-29 19:39 , Processed in 0.015503 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回復 返回頂部 返回列表