After check_mk is integrated with icinga, all hosts are down.

Source: Internet
Author: User
Tags icinga

Service status, and host is down.

Carefully read the log:

The first idodb service is not started:

service ido2db start service icinga restartservice apache2 restart

Visit the website, host or down.
Check the log again:

[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!

The correct check_icmp path is:

/usr/local/icinga/libexec/check_icmp

The problem is that the check_mk installation script installs the check_mk_templates.cfg file to the/usr/local/icinga/etc/CONF. d/directory.

Modify the configuration as follows:

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

Then restart icinga. Everything is OK.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.