service_check_timeout for a service?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TSCAdmin
Posts: 155
Joined: Wed Apr 14, 2010 3:00 pm
Location: India

service_check_timeout for a service?

Post 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
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: service_check_timeout for a service?

Post 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.
Nicholas Scott
Former Nagios employee
Locked