Page 1 of 1

Service check time out modification

Posted: Wed Jun 26, 2013 6:38 am
by b.trichter
Hi,

I have several long checks, i.e. stored procedures which run for long period of time, some of them for more then 10 min.

Currently, the "Service check time out" parameter is defined for 60 sec. after which the the check will fail.

I don't wish to modify (increase) this parameter for all checks but rather for sporadic checks.

Is there a way to do that?

Thanks,

Benny

Re: Service check time out modification

Posted: Wed Jun 26, 2013 9:41 am
by slansing
Depending on the plugin you are using you may be able to increase it's timeout rate, try looking at the plugins help text. Plugins like check_nrpe can use a "-t" flag to increase timeout, such as "-t 30" for 30 seconds.

Re: Service check time out modification

Posted: Thu Jun 27, 2013 3:29 am
by b.trichter
Thanks for this,

The thing is that the "Service check time out" prohibit you from passing 60 sec duration, even if you use check_nrpe, this is for all Nagios checks.
You may increase the duration but it will impact all checks, while i am interesting in extending the check duration for specific checks.

I am looking for a way to bypass the "Service check time out" parameter constraint, as i am running an SQL query that takes 3 min to complete.

Any clue?

Re: Service check time out modification

Posted: Thu Jun 27, 2013 10:11 am
by slansing
You are talking about the value in the nagios.cfg file correct? Yes, this does not extend the individual plugin's timeout, unless of course it has no timeout function. If it did not have this function it would go against our developer guidelines.

There is no workaround besides either increasing this value, and the "-t / timeout" value of the plugin.

Re: Service check time out modification

Posted: Wed Jul 29, 2015 12:08 pm
by rchavan
Hi slansing/users ,

I'm facing the similar issue of service time out for table space can allocate next-->please guide me if anybody resolved similar issue.

Re: After upgrade to Nagios XI 2014R1.0 - problem Oracle

Postby slansing ยป Thu Jun 05, 2014 1:17 pm
Does the listener that your oracle DBA gave you to use have access to view that specific metric? The listener service that your XI server's address connects to will need to have access on all of those fronts if you want to use those checks.

Re: Service check time out modification

Posted: Wed Jul 29, 2015 2:11 pm
by jdalrymple
Is the issue specifically the timeout? This is to be adjusted by the plugin and also the "service_check_timeout" directive in the main configuration file.

https://assets.nagios.com/downloads/nag ... gmain.html