Service timed out change

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Service timed out change

Post by sharding »

I have a service check that is timing out (according to op center view) as it does not get an answer within 60 seconds, I timed the check and need 4 or 5 mins, where is this found?

I looked all around the service check and did not see 60 anywhere? to be able to change it

-- mod edit --
Fixed spelling error in subject so that the topic is easily searchable in the future.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Serive timed out change

Post by lmiltchev »

I don't know what plugin you are using. Most of the plugins have an option to specify the timeout, i.e. "-t". There is also a setting in the "nagios.cfg" file for the timeout on service checks. It's set to 60 sec by default.

Code: Select all

service_check_timeout=60
Be sure to check out our Knowledgebase for helpful articles and solutions!
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Service timed out change

Post by jdalrymple »

This is in the main nagios.cfg. You can edit this here:

Configure --> Core Configuration Manager --> Advanced --> Nagios Core Main Config

find "service_check_timeout" and change it to suit your needs.

Be aware that changing this can have performance implications. Also your plugin may have its own timeout settings that may need to be adjusted.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Service timed out change

Post by jolson »

Please let us know which plugin you are using to make this check - most plugins have a 'timeout' argument that can be set - '-t 60' 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. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service timed out change

Post by sharding »

it's a custom script does snmp walk on a layer 3 switch on a large network segment, it just takes that long, so can I still use a -t with custom scripts ? or is there a tab & field in the other tabs in the gui check?
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Service timed out change

Post by jdalrymple »

You can just add "-t 300" into your snmpwalk command. That is how this would be dealt with in the most simple manner.

Although if memory serves me snmpwalk won't timeout unless it stops receiving data, so that is probably even unnecessary.
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service timed out change

Post by sharding »

still says (Service check timed out after 60.01 seconds), the script runs fine from cmd and from TEST in the service,

should I e-mail a ticket ? as I would really like someone to remote in to find why
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Service timed out change

Post by jdalrymple »

Did you restart Nagios after changing the configuration in nagios.cfg?
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Service timed out change

Post by tgriep »

In the nagios.cfg file there is a service timeout setting which has the default timeout of 60 seconds.
This is what it is called.

Code: Select all

service_check_timeout=60
If any service check takes longer than 60 seconds, it will timeout and be stopped by the above timeout setting.
You can adjust this setting higher but it may cause other issues, you need to monitor the Nagios system to see if there are any problems.
Be sure to check out our Knowledgebase for helpful articles and solutions!
sharding
Posts: 140
Joined: Thu Nov 08, 2012 11:08 am

Re: Service timed out change

Post by sharding »

I e-mail a case in, I only want to change these 3 service checks not the whole system and I tried the -t <time> didn't make any difference
Locked