- 论坛徽章:
- 0
|
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
- }
- ~
复制代码 |
|