Is it possible to set service_check_timeoutparameter per service?

Marc Powell marc at ena.com
Thu Jun 14 16:20:50 CEST 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Vitaly Karasik
> Sent: Thursday, June 14, 2007 9:02 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Is it possible to set
> service_check_timeoutparameter per service?
> 
> One of my nagios  services  runs ~  one hours, so I have to set
> service_check_timeout   to one hour in the nagios.cfg.

You should probably consider making this a passive check.

> But for other services I'd like to leave timeout = 60 seconds. How I
can
> do it?

Most standard plugins support a -t switch to specify a timeout. You'll
need to modify all your commands to specify that switch for the plugins
that support it. If the plugin doesn't honor the -t switch, ignores it,
fails to timeout or fails to exit for whatever reason, it will continue
to run until nagios aborts it at the 1 hour mark. This should be a rare
case though as plugins should run and end themselves in a timely manner
normally.

--
Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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