check_mk 集成 icinga后所有host为down

service状态都状态,host为down。

仔细看了日志:

第一idodb服务没有启动:

service ido2db start 
service icinga restart
service apache2 restart


访问网站,host还是down.
再检查日志:

[1368754991] error executing command '/usr/lib/nagios/plugins/check_icmp': No such file or directory. Make sure that the file actually exists (in PATH, if set) and is executabl\
e!
check_icmp正确路径是:

/usr/local/icinga/libexec/check_icmp

问题出在check_mk安装脚本安装了一个文件check_mk_templates.cfg文件到/usr/local/icinga/etc/conf.d/ 目录下

修改配置如下:

define command {
  command_name  check-mk-ping
#  command_line  /usr/lib/nagios/plugins/check_icmp $ARG1$ $HOSTADDRESS$                                                                                                         
  command_line  /usr/local/icinga/libexec/check_icmp $ARG1$ $HOSTADDRESS$
}

# Check for clusters: it is UP if at least one node is up                                                                                                                        
define command {
  command_name check-mk-ping-cluster
#  command_line /usr/lib/nagios/plugins/check_icmp -m 1 $ARG1$ $_HOSTNODEIPS$                                                                                                    
  command_line /usr/local/icinga/libexec/check_icmp -m 1 $ARG1$ $_HOSTNODEIPS$
}


然后重新启动icinga,一切OK.



你可能感兴趣的:(check_mk 集成 icinga后所有host为down)