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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
iam33
Posts: 58
Joined: Mon Mar 18, 2013 5:30 am

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

Post 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!
Locked