How to suppress UNKNOWN service alerts when host check is down

Icinga Web 2 Version: 2.8.2
Git commit: 8a89839af94a247ee2149b2336c73b8251b477c0
PHP Version: 7.2.24-0ubuntu0.18.04.7
Director plugin: 1.7.2

Question: How do I suppress service check notifications in the state of UNKNOWN if the host is reporting DOWN?

I have an ec2 host with an associated service check. When the host is down or terminated, the service check changes state to UNKNOWN and alerts. Reading through the documentation, service check notifications only seem to be suppressed if the service check is an CRITICAL or WARNING state, not UNKNOWN. This seems like it should be an FAQ, but searching with google and on this site didn’t turn up the answer.

Hello @arr

the service state will change to UNKNOWN because the service checks are still exectued even if the host is down. The following dependency mentioned in the docs will stop this behaviour.

apply Dependency "disable-host-service-checks" to Service {
  disable_checks = true
  assign where true