SNMP Service Check Timeout

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

SNMP Service Check Timeout

Post by andrewatmacys »

Right now, in my Nagios.cfg file, I have the service check timeout set to 90 seconds, but when I look in XI, the service checks are resetting every 10 seconds.

I was wondering If I'm missing something simple or if this is something that needs more than just the .cfg file needing change.

Thank you!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: SNMP Service Check Timeout

Post by tmcdonald »

The service_check_timeout option is used as a last-ditch effort to keep checks from running too long. From the documentation:
This is the maximum number of seconds that Nagios will allow service checks to run. If checks exceed this limit, they are killed and a CRITICAL state is returned. A timeout error will also be logged.

There is often widespread confusion as to what this option really does. It is meant to be used as a last ditch mechanism to kill off plugins which are misbehaving and not exiting in a timely manner. It should be set to something high (like 60 seconds or more), so that each service check normally finishes executing within this time limit. If a service check runs longer than this limit, Nagios will kill it off thinking it is a runaway processes.
There may be per-check or per-plugin timeouts built-in that are much shorter than this limit, in which case the plugin or check itself determines the timeout value. 10 seconds is a fairly common default. Without seeing the configs for the checks in question it is hard to say, but look into any checks with a -t flag - this usually indicates a timeout value, typically 10 seconds.
Former Nagios employee
andrewatmacys
Posts: 114
Joined: Tue Feb 06, 2018 9:25 am

Re: SNMP Service Check Timeout

Post by andrewatmacys »

Thank you for the prompt reply, I'll look into the plugins and see if that's what's happening.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: SNMP Service Check Timeout

Post by npolovenko »

@andrewatmacys, Which plugins are timing out? Can you upload their service definitions?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked