Page 1 of 1

OK event when 1 of 2 services are running

Posted: Wed Jan 04, 2012 5:09 am
by GeorgePastoor
Hi,

I have a problem that I have to monitor different services but not all of them needs to be running at the same time.
For example service1 is stopped but it doesn't matter as long as service2 is running.
Is it possible to still get an OK event even though service1 is stopped ?
I was looking at service dependencies but I don't think it can be done that way.

Re: OK event when 1 of 2 services are running

Posted: Wed Jan 04, 2012 10:23 am
by LHammonds
It sounds like you need to script the logic into a new function which is custom-tailored to that server.

Re: OK event when 1 of 2 services are running

Posted: Wed Jan 04, 2012 10:29 am
by GeorgePastoor
LHammonds wrote:It sounds like you need to script the logic into a new function which is custom-tailored to that server.
Thanx for your reaction.
That's my last option because I like to keep Nagios as standard as possible.
Don't know if something like that is possible with servicegroups I'm lookin in to it right now.

Re: OK event when 1 of 2 services are running

Posted: Wed Jan 04, 2012 11:53 am
by mguthrie
I wrote this addon specifically for situations like this : )
Nagios BPI
http://exchange.nagios.org/directory/Ad ... 29/details

Re: OK event when 1 of 2 services are running

Posted: Thu Jan 05, 2012 2:08 am
by GeorgePastoor
@mguthrie

Great, I think this is the answer to my problem.
Thank you :D

Re: OK event when 1 of 2 services are running

Posted: Thu Jan 05, 2012 11:52 am
by mguthrie
You bet!