Service Check Timeout

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sjoerd
Posts: 2
Joined: Wed Mar 16, 2016 4:17 am

Service Check Timeout

Post by sjoerd »

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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Check Timeout

Post by lmiltchev »

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.

Code: Select all

service_check_timeout=120
and restart nagios:

Code: Select all

service nagios restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
sjoerd
Posts: 2
Joined: Wed Mar 16, 2016 4:17 am

Re: Service Check Timeout

Post by sjoerd »

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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Service Check Timeout

Post by lmiltchev »

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!
Locked