Page 1 of 1

Service Check Timeout

Posted: Fri Mar 03, 2017 8:56 am
by chrisbooth
Is there a way to change the timeout to say 90 seconds for only a few services rather than system wide.

(Service check timed out after 60.01 seconds)

i'm getting the above for a couple of checks

Re: Service Check Timeout

Posted: Fri Mar 03, 2017 10:32 am
by bwallace
Please let us know which plugin you are using to make this check - most plugins have a 'timeout' argument that can be set - '-t 120' or similar, it may be as simple as adding that to the end of your check. We need to know the plugin name to tell you for certain.

You can check this from the CLI by accessing the plugin's help page by using '--help' like so
First navigate to/usr/local/nagios/libexec
then run --h against the plugin in question. I'll use check_nrpe as an example.

[root@XIcent7 libexec]#./check_nrpe --help

*Also, consider the global timeout will always override the timeout settings for a plugin.

Re: Service Check Timeout

Posted: Fri Mar 03, 2017 4:30 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @bwallace's post clear things up or has the issue otherwise been resolved?