Stop service checks if host is down

Hello,
is it possible to stop all service checks from the host, if the host if down?
I’ve played around with some dependencies, but it never worked.

I only want one email notification when the host is down and one email notification when the host is again up.
Has someone a idea?

Hi,

Can you please share your attempts?

The default implicit host-service dependency only disables notifications.

Cheers,
Michael

Now it works… when the host goes down, I only receive the up- and down-email. I don’t receive service-emails. But now is another problem… when the Host is up, and only the service goes down, I don’t receive service-mails! What could be the problem?

apply Dependency “HostDownNoService” to Service {
disable_checks = true
disable_notifications = true
ignore_soft_states = true
assign where host.name == “nas”
states = [ Down ]
}

But this dependency is only for one host… I want it for all hosts. Is the following code possible?

assign where host.name == “*”

I found this topic which is the same problem as mine.

I had the similar challenge and also wanted to disable the service checks during the time a host is down.
The following rule solved my problem - and should also solve yours because without service checks there should be no service notifications…

#
# Disable servicechecks on hosts in state DOWN
#
apply Dependency "disable-host-service-checks" to Service {
  disable_checks = true
  assign where true
}

Cheers,
Manfred

1 Like