歡迎您光臨本站 註冊首頁

請教nagios問題

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

請教nagios問題

nagios已經配置完成但是監控的時候Status Information 報(Return code of 127 is out of bounds - plugin may be missing)

請教這是何問題,如何解決,謝謝


《解決方案》

plugin may be missing,看看nagios的插件有沒有安裝了。看看/usr/local/nagios/libexec/的文件夾下有么有文件,如果沒有的話估計是沒有裝nagios-plugins
《解決方案》

我裝了
《解決方案》

我這邊都搞過了,還是有問題,我check了下日誌,在不停得報
Warning: Return code of 127 for check of host 'windows-xp' was out of bounds. Make sure the plugin you're trying to run actually exists.
Warning: Return code of 127 for check of service 'check_C_disk' on host 'windows-xp' was out of bounds. Make sure the plugin you're trying to run actually exists.
而我現在的客戶端配置文件(我把host和server寫一起了)為
define host {
       host_name windows-xp
       alias windows
       address 10.1.4.159
       contact_groups  admins
       check_command   check_nt!check-host-alive
       max_check_attempts 5
       notification_interval 10
       notification_period 24x7
       notification_options d,u,r
}
define service {
       host_name windows-xp
       service_description  check_C_disk
       check_command        check_nt!USEDDISKSPACE!-l c -w 80 -c 90
       check_period 24x7
       max_check_attempts 3
       normal_check_interval 2
       retry_check_interval 2
       contact_groups admins
       notification_interval 10
       notification_period 24x7
       notification_options w,u,c,r

contacts.cfg配置文件內容為
define contact{
        contact_name                    nagiosadmin               
        use                             generic-contact        
        alias                           Nagios Admin   
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-service-by-email
        host_notification_commands      notify-host-by-email
        email                           shelly.li@argos.cn   
        }
       define contactgroup{
                  contactgroup_name       admins
                  alias                   Nagios Administrators
                   members                 nagiosadmin
        }
求解啊。。。。。。。。。。。。。。。。。。。
《解決方案》

求求上山達人啊!!!!!!!
《解決方案》

你的NT被監控機器,得有這幾個插件吧。伺服器有沒用。
《解決方案》

回復 1# shelly850815


    許可權問題或者是配置文件的問題,多試試 !
《解決方案》

呵可,不錯,我們也在監控C盤
你是用email notify, 有用過 fetion 嗎

[火星人 ] 請教nagios問題已經有1180次圍觀

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