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?
Thanks,
James
On 11 March 2015 at 16:35, Joseph L. Casale <[email protected]>
wrote:
> > To be clear, I only want ServiceCheckB to run if ServiceCheckA fails.
> >
> > Is this possible in Icinga2?
>
> Attach an event to ServiceCheckA with the condition you need.
> The docs explain how to control invocation based on tests against
> runtime macros.
>
>
> http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/monitoring-basics#event-commands
>
> jlc
>
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users