Service dependancy perhaps...

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
Evoxer
Posts: 1
Joined: Fri Feb 14, 2014 8:28 am

Service dependancy perhaps...

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Service dependancy perhaps...

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service dependancy perhaps...

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