[smokeping-users] Re: How to increase probe timeout for curl?

Niko Tyni ntyni+smokeping-users at mappi.helsinki.fi
Wed Jul 27 14:32:10 MEST 2005


On Wed, Jul 27, 2005 at 02:00:46PM +0200, Marc Haber wrote:

> > *** Probes ***
> >  
> > + Curl
> >  
> > binary = /usr/bin/curl
> > timeout = 7
> > 
> > 
> > The 100 s in your example is this timeout multiplied by 20 (the # of
> > pings in the Database section) .
> 
> Actually, the multiplication doesn't take place, so setting the
> timeout = 10 resulted in the probe being killed after 10 seconds
> instead of the default 100. Setting the timeout to 150 seems to have
> had the desired effect.

Oops, you're right of course. Seems like a documentation bug in 1.x.

> Can the Curl timeout be set on a per-target base?

Yes, but there's a catch at least with the 1.x versions: the timeout
variable in the target's PROBE_CONF section appears to have a totally
different meaning than the timeout variable in the '*** Probes ***'
section.

If you specify 'timeout=x' in a target's PROBE_CONF section, it will be
passed as the '-m' argument (maximum seconds) to the curl command line. 
OTOH, the probe-specific timeout property means how soon an unresponsive
curl process should be killed.

There are probably going to be incompatibilities here when upgrading to 2.x.
I'll have to check on that.

(This is all from reading the code, I haven't tried any of these lately.
Hope this helps anyway.)
-- 
Niko

--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list