Page 1 of 1

How to increase service_check_timeout value

Posted: Mon Jun 06, 2011 7:45 pm
by cskang
Hi,
I create a service which invokes a custom command which calls a custom plugin.
The custom plugin is written in perl script and takes longer than 60 seconds to complete.
It does http operations over a slow wireless link.

Is there anyway to increase service_check_timeout value to longer than the default value (i.e. 60 seconds) for the service that I created?
If it is not available to tune the timer for my service, then is it possible to change the service_check_timeout value globally for all services?

I could not find any option to change service_check_timeout value in Services web page under Core Config Manager web page.

Re: How to increase service_check_timeout value

Posted: Tue Jun 07, 2011 4:39 am
by Michalux
You can change it in nagios.cfg (service_check_timeout) and than in particular Command configuration as a parameter to the check_nrpe (-t) - of course if You use check_nrpe to run the check.

Michalux

Re: How to increase service_check_timeout value

Posted: Wed Jun 08, 2011 3:27 pm
by cskang
Thanks.
I have increased the service check time to 90 seconds and it worked!!!

Re: How to increase service_check_timeout value

Posted: Wed Jun 08, 2011 4:44 pm
by mguthrie
Glad it's working for you, thanks for the follow up!