歡迎您光臨本站 註冊首頁

nagios 監控的疑難雜症,請教 nagios 高手

←手機掃碼閱讀     火星人 @ 2014-03-03 , reply:0

nagios 監控的疑難雜症,請教 nagios 高手

結貼


我nagios 監控裡面做了設置:用飛信 發送故障通知;
contacts.cfg 文件按配置包含下面:

host_notification_options       d,u,r,f,s
        service_notification_options    w,u,c,r,f,s
       service_notification_commands   notify-service-by-email,notify-service-by-sms
       host_notification_commands      notify-service-by-email, notify-host-by-sms



現在情況是 主機 宕了 可以正常發送簡訊,IIS 服務停止了 不會發送通知, 不過發現 C盤滿了會發簡訊通知, 請教高手

誰碰到過這種情況啊,請指點?

[ 本帖最後由 dongfangmn 於 2009-1-13 00:02 編輯 ]
《解決方案》

您好:
   1、我以前遇到過的一個問題是,notify-service-by-sms可以正常發簡訊,notify-host-by-sms不可以,你可以先測試一下,這倆各是否都可以正常發送簡訊。(可以找一台主機,只有一個services的應用試一下,這種情況使用的是notify-host-by-sms。看看是否正常。
   2、把你iis的services.cfg貼出來看看!!
《解決方案》

多謝 solaris小兵
我是 nagios 3.0,編輯的是 默認的  windows.cfg
下面是我主機的配置 和 IIS 的配置
-------------------主機---------------------------
define host{
   use          windows-server  ; Inherit default values from a template
   host_name    winserver ; The name we're giving to this host
   alias         My Windows Server      ; A longer name associated with the host
   address       192.168.24.31  ; IP address of the host
        check_command              check-host-alive
        max_check_attempts         1
   notification_options        d,u,r,f
        }

--------------------IIS--------------------
define service{
   use           generic-service
   host_name     winserver
   service_description  W3SVC
   check_command        check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
   max_check_attempts         1
        notification_options    w,u,c,r,f,s
        }

-----------------------------------------------------
本來 notification_options  通知狀態沒有寫這麼多,不過狀態改變 一直不發簡訊通知,我就把各種狀態都 配置裡面了,不過還是不發: w,u,c,r,f,s
《解決方案》

把nagios的Notifications貼出來看看!!
《解決方案》

你說的  Notifications  是自己編輯的 通知文件么?我沒有編輯這個,都是系統默認的.

[ 本帖最後由 dongfangmn 於 2009-1-12 12:56 編輯 ]
《解決方案》

你 的服務配置有點問題。你可以喲哦那個check——http
《解決方案》

結貼,看了下文檔,原來處於抖動狀態不發通知...靠~,我一直測的是IIS服務,一直處於抖動狀態.崩潰了
《解決方案》

解決就好!!

[火星人 ] nagios 監控的疑難雜症,請教 nagios 高手已經有404次圍觀

http://coctec.com/docs/service/show-post-3567.html