[ Return To FAQ Index | Search The FAQs ]
|Title:||How do I change the timeout values for service checks?|
|Submitted By:||Ethan Galstad |
If you want to change the timeout values for service checks, there are basically two places you need to look.
First you need to identify where the timeout is occurring. Most plugins time out after 10 seconds of not being able to contact a service (FTP, HTTP, etc). 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.
In addition to plugins having timeouts, Nagios enforces its own timeout value on all service checks that run. By default, this is set to 30 seconds. If the plugin executes for more than 30 seconds, Nagios will automatically kill it off and return a critical error for that service. If you see entries in the log file that say a service check timed out, this may be your problem. You can adjust the maximum timeout value for service checks by using the service_check_timeout directive in the main configuration file.
As a side note, there are also directives in the main config file for setting the maximum timeout for host checks, notifications, event handlers, and the ocsp command.
|Keywords:||timeout checks |