> What about something like this?
>
> object Dependency "1" {
> parent_host_name = "Host"
> parent_service_name = "ServiceCheckA"
> child_host_name = "Host"
> child_service_name = "ServiceCheckB"
>
> states = [ Warning, Unknown, Critical ]
> disable_checks = true
> }
>
>
> When I set this up in my test instance, I can see only ServiceCheckA
> executing when it returns OK.
> But when it returns non-OK, I can see both ServiceCheckA & ServiceCheckB
> executing.
>
> When I bring up the host to have ServiceCheckA return OK, the monitoring goes
> back to it's original state of only running ServiceCheckA.
>
> Are there any drawbacks to using this configuration instead?
If it works then I say that is clearer and more concise than my
original suggestion. I don't have a lot of deps so it slipped my
mind to use them, nice catch.
jlc
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users