三里屯摇滚 发表于 2011-12-12 22:05

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

在我心中舞动 发表于 2011-12-21 22:12

学习鸟

fengyun530 发表于 2012-03-19 23:17

楼上的是只能针对win系统。linux呢?

不过nagios确实不容易看懂。除非有比较好的英文基础!:-L

ding_0112 发表于 2012-05-30 11:49

查看 服务配置 的设置

alonerhu 发表于 2012-06-01 09:28

check_nrpe
这个命令的定义呢

z2344683 发表于 2012-06-01 15:11

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