icinga2服务依赖关系检查

我有一个非常简单的用例,我想在httpd服务closures时禁用我的check_cert服务。 这是我的httpd服务模板:

apply Service "httpd" { import "generic-service" check_command = "check_httpd_service" command_endpoint = host.vars.client_endpoint assign where host.vars.client_endpoint && host.vars.myserver }

这是证书检查服务:

apply Service "check_cert" { import "generic-service" check_command = "check_ssl_certificate" command_endpoint = host.vars.client_endpoint assign where host.vars.client_endpoint && host.vars.myserver }

我尝试过,但仍然从check_cert得到一个警报:

apply Dependency "cert_http_depend" to Service { parent_service_name = "httpd" disable_checks = true disable_notifications = true assign where host.vars.client_endpoint && host.vars.myserver }

我在这里错过了什么?