Page 1 of 1

Service Time out

Posted: Mon Sep 02, 2013 7:01 am
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

Re: Service Time out

Posted: Mon Sep 02, 2013 6:27 pm
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.

Re: Service Time out

Posted: Tue Sep 03, 2013 5:29 am
by sumit
Thanks jsmurphy.
I will read the link and other online details available on this.

Regards,
Sumit Sharma

Re: Service Time out

Posted: Tue Sep 03, 2013 9:36 am
by slansing
Let us know if you need help!