Timeouts
Marc Powell
marc at ena.com
Wed Jul 12 22:18:27 CEST 2006
> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Sandeep Narasimha Murthy
> Sent: Wednesday, July 12, 2006 11:49 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Timeouts
>
> Hi,
>
> I have a question regarding the various timeout variables.
>
> The service_check_timeout variable in Nagios.cfg hás a value of 99, the
> command that invokes the remote plugin hás the -t flag value as 170 and
> the remote plugin hás a timeout value of 130 s.
>
> Whats happening is that Nagios return a CRITICAL: Service Check Timed Out
> error when the remote plugin sometimes exceeds 120 s. My question is
> which of the timeouts value is being enforced ??
>
> I assume its the 99 s defined in the Nagios.cfg BUT if that is so, how
> does the plugin log indicates that it executed fine untill 120 s ????
The timeouts would work as follows --
1) Nagios will wait for the plugin to respond up to service_check_timeout, then kill it. This is really the upper limit on how long a plugin should be able to run and is there in the event a plugin doesn't terminate in a timely manner.
2) Each plugin may or may not have a built-in timeout option. The plugin should abort itself at that time interval.
3) Remotely executed plugins will either have a limit like (2) and/or the plugin/script executing the remote plugin, whatever that may be, may have a limit (2). Depending on what that script is, it may not be able to terminate the execution of the remote plugin. Most likely, if it's killed by nagios the remote plugin execution becomes a disconnected session. It may or may not complete.
What plugin log are you referring to? I'm not aware of any plugin execution logging. You'd have to provide more specific details about the plugins involved for more specific answers.
--
Marc
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list