check_mk集成icinga后所有host为down
check_mk集成icinga后所有host为down
check_mk集成icinga后所有host为down
service状态都状态,host为down。
仔细看了日志:
第一idodb服务没有启动:
[plain]
service ido2db start
service icinga restart
service apache2 restart
访问网站,host还是down.
再检查日志:
[plain]
[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正确路径是:
[plain]
/usr/local/icinga/libexec/check_icmp
问题出在check_mk安装脚本安装了一个文件check_mk_templates.cfg文件到/usr/local/icinga/etc/conf.d/ 目录下
修改配置如下:
[plain]
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.
评论暂时关闭