Service Time out

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
sumit
Posts: 5
Joined: Thu Jun 27, 2013 4:07 am

Service Time out

Post by sumit »

Hi Team,

We have got a shell script configured on Linux box having a query which checks for count of records in a DB table as per some given condition. The query takes more than 2 mins to return response when we ran it in DB2 console.
The response from the script is then feed to Nagios so that it can show the the status of response i.e. say if the count is less than 100, show OK, if the count is 100<count<1000, show Warning, if count>2000, show critical.

It appears that Nagios service doesn't wait for 2 mins or more for script to respond. It started showing us Critical status after 3 attempts stating 'no response'.

May I know if we can configure a service at Nagios (URL probably) to wait it for some given time so that it can receive the script output?

Regards,
Sumit Sharma
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Service Time out

Post by jsmurphy »

NRDP does exactly this, it's a web services interface for Nagios that you can use to submit passive check input... and it waits for an indefinite amount of time ;)

http://exchange.nagios.org/directory/Ad ... or/details

Alternatively you can use NSCA it's harder to set up but it is more secure if that's a concern.
sumit
Posts: 5
Joined: Thu Jun 27, 2013 4:07 am

Re: Service Time out

Post by sumit »

Thanks jsmurphy.
I will read the link and other online details available on this.

Regards,
Sumit Sharma
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service Time out

Post by slansing »

Let us know if you need help!
Locked