How to increase service_check_timeout value

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cskang
Posts: 68
Joined: Sat Mar 05, 2011 4:13 pm

How to increase service_check_timeout value

Post 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.
Michalux
Posts: 10
Joined: Wed Jun 01, 2011 3:36 am

Re: How to increase service_check_timeout value

Post 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
cskang
Posts: 68
Joined: Sat Mar 05, 2011 4:13 pm

Re: How to increase service_check_timeout value

Post by cskang »

Thanks.
I have increased the service check time to 90 seconds and it worked!!!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to increase service_check_timeout value

Post by mguthrie »

Glad it's working for you, thanks for the follow up!
Locked