Page 1 of 1

Service dependancy perhaps...

Posted: Fri Feb 14, 2014 8:49 am
by Evoxer
Hi

Hoping someone on here can help me out. I run a Nagios install with several hundred service checks etc but have come across something that's trumped me..

I have a service ($$) that can be run by one of two systems (A or B) and want a smart way of monitoring it.

Currently the service is monitored individually on each system so one always appears in alarm as it isn't running.

I'm wondering if there is a way for me to code (using something like dependencies) a check so that as long as ($$) is OK on (A) or (B) nagios doesn't alert. Nagios should only alert if ($$) is down on both (A) and (B)..

Is this something that would be possible inside native nagios or would i need to look into a custom written check script?

Thanks in Advance
Evo

Re: Service dependancy perhaps...

Posted: Fri Feb 14, 2014 11:33 am
by abrist
A custom wrapper or an event handler may be the best option. Each of the two checks could include an event handler that checks the status of the other check and only alerts if both checks are failing.

Re: Service dependancy perhaps...

Posted: Fri Feb 14, 2014 11:33 am
by slansing
This sounds like a great use case for an event handler, here is some documentation, let us know if you have questions or need help!:

http://nagios.sourceforge.net/docs/3_0/ ... dlers.html