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
}
~ 学习鸟 楼上的是只能针对win系统。linux呢?
不过nagios确实不容易看懂。除非有比较好的英文基础!:-L 查看 服务配置 的设置 check_nrpe
这个命令的定义呢 command.cfg配置文件里面没有配置check_nrpe这个命令吧~
页:
[1]