Page 1 of 1

howto change service status when "master service" is OK?

Posted: Wed Feb 24, 2021 5:29 am
by iam33
Hi!
Thanks in advance!

I have 2 hosts that have a service each, which are in active / passive mode, in such a way that when it is active in one node, in the other it must be stopped.
To monitor it I have tried a dependency:

Code: Select all

	define servicedependency {
			host_name host1
			service_description ServiceA
			dependent_host_name host2
			dependent_service_description ServiceB
			execution_failure_criteria or
			notification_failure_criteria or
	}
But it shows me the status of the last check that is UNKNOWN, for which I have to send a "Submit passive check result for this service" to this service and clear the alarm.

Is there any other way to remove the UNKNOWN status from this service when the other is OK?

thanks!