Service check time out modification

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
b.trichter
Posts: 8
Joined: Sun Jun 02, 2013 5:18 am

Service check time out modification

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service check time out modification

Post 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.
b.trichter
Posts: 8
Joined: Sun Jun 02, 2013 5:18 am

Re: Service check time out modification

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Service check time out modification

Post 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.
rchavan
Posts: 4
Joined: Wed Jul 29, 2015 9:54 am

Re: Service check time out modification

Post 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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Service check time out modification

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