Page 1 of 1

service_check_timeout for a service?

Posted: Thu Aug 02, 2012 2:46 pm
by TSCAdmin
Greetings of the day!

On our Nagios XI installation the service_check_timeout is set to default, 60. We have got some servers which is usually very busy and require time to respond to a service checks and there are few services which needs atleast 4 minutes to calculate and send the result back. These particular service checks tend to timeout all the time.

I was wondering if there is a way to set service_check_timeout for a particular service?

Thanks

Re: service_check_timeout for a service?

Posted: Thu Aug 02, 2012 2:58 pm
by nscott
There is no way to set this for individual services. The snippet from the Nagios Core docs here:
If the plugins are timing out after a short period of time, increase the timeout value for the plugin using the appropriate command line argument for that plugin. This may be done in either the command definition, or in individual service definitions.
Indicate that only the commands can set themselves a timeout if you want a shorter timeout than the globally set timeout, however, a longer timeout is not possible.

Generally, when a check requires a very long amount of time to check something, its generally turned into a passive check. So you would basically have that check kicked off by a cron job or some other scheduled means.