歡迎您光臨本站 註冊首頁

nagios配置問題

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

nagios配置問題

nagios配置問題










/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg 出現以下錯誤,不知問題出在那
Error: Service check command 'check_nrpe' specified in service 'SYS_Memory' for host 'gzserver178' not defined anywhere!

已經在 hosts.cfg定義了主機define host{
          host_name                      gzserver178
          alias                               gzserver178
          address                          192.168.2.178
          check_command             check-host-alive
          max_check_attempts        5
          check_period                    24x7
          contact_groups                  mbillions
          notification_interval           10
          notification_period             24x7
          notification_options            d,u,r
          }

service.cfg配置如下
define service {
        use                             generic-service
        host_name                       gzserver178
        service_description             SYS_Memory
        contact_groups                  mbillions
        contacts                        huangzhaoyi
        check_interval                  5
        retry_interval                  1
        max_check_attempts              5
        check_command check_nrpe!check_mem
}
~
《解決方案》

謝謝分享....學習鳥
《解決方案》

    host_name                      gzserver178
在你nagios 伺服器的# cat /etc/host.conf  添加 「192.168.2.178  gzserver178 」
《解決方案》

command.cfg配置文件裡面沒有配置check_nrpe命令~

[火星人 ] nagios配置問題已經有1350次圍觀

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