Hi there,
I am using a perl script as a service check and this check takes more then 60 seconds to run.
Is there a way to individualy extend the service check timeout, rather then to extend the default of 60 seconds for all service checks?
Cheers
Sjoerd
Service Check Timeout
Re: Service Check Timeout
If you want to set up the plugin's timeout to a value greater than 60 sec, you will need to also increase the "default" timeout in the nagios.cfg file, i.e.
and restart nagios:
Code: Select all
service_check_timeout=120Code: Select all
service nagios restartBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Service Check Timeout
Thanks for the response.
I can set this default timeout. However sometimes my perl script would take 2/3 minutes. If I set this default timeout then all service checks can potentially cause long timeouts.
Isn't there another way?
I can set this default timeout. However sometimes my perl script would take 2/3 minutes. If I set this default timeout then all service checks can potentially cause long timeouts.
Isn't there another way?
Re: Service Check Timeout
Setting up the "global" timeout to let's say 120 doesn't mean that ALL of your scripts will be running for 120 sec. You have a granular control as most of the plugins provide a timeout option. Individual scripts won't run longer than their timeout value.
Be sure to check out our Knowledgebase for helpful articles and solutions!