OK event when 1 of 2 services are running

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
GeorgePastoor
Posts: 3
Joined: Tue Jan 03, 2012 10:05 am

OK event when 1 of 2 services are running

Post 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.
LHammonds
Posts: 23
Joined: Mon Jan 02, 2012 9:03 pm
Location: Behind you!!!

Re: OK event when 1 of 2 services are running

Post by LHammonds »

It sounds like you need to script the logic into a new function which is custom-tailored to that server.
GeorgePastoor
Posts: 3
Joined: Tue Jan 03, 2012 10:05 am

Re: OK event when 1 of 2 services are running

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: OK event when 1 of 2 services are running

Post by mguthrie »

I wrote this addon specifically for situations like this : )
Nagios BPI
http://exchange.nagios.org/directory/Ad ... 29/details
GeorgePastoor
Posts: 3
Joined: Tue Jan 03, 2012 10:05 am

Re: OK event when 1 of 2 services are running

Post by GeorgePastoor »

@mguthrie

Great, I think this is the answer to my problem.
Thank you :D
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: OK event when 1 of 2 services are running

Post by mguthrie »

You bet!
Locked