Nagios Disable service check if host unreachable

hostinterfacenagiosserviceweb

When I've declared the host, I specified a command to check if my host is alive (simple ping) :

hostgroups              hostgroup-WIN
check_interval          1
retry_interval          1
max_check_attempts      3
check_command           check-host-alive
check_period            24x7
contact_groups          contact-WIN

I also got a bunch of services that monitor this server.

I want to disable theses services when the host is down (the command "check-host-alive" failed), since, of course, all services will lead to an error and to some annoying display on the web interface.

Thank you.

Best Answer

What you describe is the default behavior; services have implicit dependencies on their hosts.

This is why you don't get notifications for services on hosts that are down. They will still show in the web interface, though.

You can apply filters, at the top, to only show services on hosts that are up.

Related Topic