Force Check on Passive Service Issue

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
jend
Posts: 2
Joined: Thu Dec 19, 2013 7:15 am

Force Check on Passive Service Issue

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Force Check on Passive Service Issue

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Force Check on Passive Service Issue

Post 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.
Former Nagios employee
jend
Posts: 2
Joined: Thu Dec 19, 2013 7:15 am

Re: Force Check on Passive Service Issue

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Force Check on Passive Service Issue

Post 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?
Former Nagios employee
Locked