Page 1 of 1

Force Check on Passive Service Issue

Posted: Thu Dec 19, 2013 8:02 am
by jend
I am a software developer working on various applications which send status to Nagios via Passive Services. I do this from various languages using NSCA. The services use Freshness checks which can vary for 15 minutes to 26 hours. The Passive Services are on hosts which also contain various Active Services.

The issue I have occurs when a host has been down and numerous Active Services are Critical on the host. When these are believed to be resolved our IT guy always selects the Host, followed by 'Schedule a check of all services on this host'. He then issues a 'Force Check'. This of course forces Active Checks of the Passive Services on that host and results in 'CRITICAL: Results not updated!'. The passive services then stay in this state until my code sends the next passive update which in some cases is up to 24 hours. The IT guy wants us to stop using Passive checks for this reason but we have a lot of development time invested in it.

Is there a way to configure a Passive service so that it is ignored when a 'Force Check' is executed. If possible I'm looking for an automated configuration option rather than a manual process to go through before and after initiating the Force Check.

Thank you in advance,

Jason

Re: Force Check on Passive Service Issue

Posted: Thu Dec 19, 2013 3:50 pm
by slansing
It sounds like this may be what you are looking for?:

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

Please correct me if I'm wrong.

Re: Force Check on Passive Service Issue

Posted: Thu Dec 19, 2013 3:57 pm
by tmcdonald
He is already using freshness, but wants to be able to exclude passive services from being checked actively when Force Check is used.

http://assets.nagios.com/downloads/nagi ... ith_XI.pdf

Bottom of page 2, submitting test data. This isn't automated but will get you on the right track. I'll try and come up with a way to script this.

Re: Force Check on Passive Service Issue

Posted: Thu Jan 02, 2014 8:11 am
by jend
Sorry, I have been on leave but thank you for your responses. I was aware that it was possible to manually send a Passive Check from the Nagios Interface but this appears to be far too difficult for our IT Department. I think that I will end up having to create an application that can force a Passive update for any of our services and make this available to IT.

Thanks,

Jason

Re: Force Check on Passive Service Issue

Posted: Thu Jan 02, 2014 10:14 am
by tmcdonald
jend wrote:Sorry, I have been on leave but thank you for your responses. I was aware that it was possible to manually send a Passive Check from the Nagios Interface but this appears to be far too difficult for our IT Department. I think that I will end up having to create an application that can force a Passive update for any of our services and make this available to IT.

Thanks,

Jason
Sorry that didn't work for you. I had tried a few things but not being a developer I did not get very far. If it works out well for you, would you mind sharing the script on our Nagios Exchange?