feiyang10086 发表于 2011-12-04 17:40

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
}
~

如果有一天21 发表于 2011-12-22 21:33

谢谢分享....学习鸟

typuc 发表于 2012-03-22 10:24

    host_name                      gzserver178
在你nagios 服务器的# cat /etc/host.conf添加 “192.168.2.178gzserver178 ”

z2344683 发表于 2012-07-03 10:59

command.cfg配置文件里面没有配置check_nrpe命令~
页: [1]
查看完整版本: nagios配置问题