Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d97b4c58d8763adc61a7b020afdfd868 > files > 63

smokeping-2.4.2-9mdv2010.0.noarch.rpm

<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Smokeping/probes/Curl</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body style="background-color: white">

<p><a name="__index__"></a></p>
<!-- INDEX BEGIN -->
<!--

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#overview">OVERVIEW</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#variables">VARIABLES</a></li>
	<li><a href="#authors">AUTHORS</a></li>
	<li><a href="#notes">NOTES</a></li>
	<li><a href="#see_also">SEE ALSO</a></li>
</ul>
-->
<!-- INDEX END -->

<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Smokeping::probes::Curl - a <code>curl(1)</code> probe for SmokePing</p>
<p>
</p>
<hr />
<h1><a name="overview">OVERVIEW</a></h1>
<p>Fetches an HTTP or HTTPS URL using curl(1).</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
 *** Probes ***</pre>
<pre>
 +Curl</pre>
<pre>
 binary = /usr/bin/curl
 forks = 5
 offset = 50%
 step = 300</pre>
<pre>
 # The following variables can be overridden in each target section
 agent = User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c
 extraargs = -6 --head --user user:password
 extrare = / /
 follow_redirects = yes
 include_redirects = yes
 insecure_ssl = 1
 interface = eth0
 pings = 5
 ssl2 = 1
 timeout = 20
 urlformat = <a href="http://%host%/">http://%host%/</a> # mandatory</pre>
<pre>
 # [...]</pre>
<pre>
 *** Targets ***</pre>
<pre>
 probe = Curl # if this should be the default probe</pre>
<pre>
 # [...]</pre>
<pre>
 + mytarget
 # probe = Curl # if the default probe is something else
 host = my.host
 agent = User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c
 extraargs = -6 --head --user user:password
 extrare = / /
 follow_redirects = yes
 include_redirects = yes
 insecure_ssl = 1
 interface = eth0
 pings = 5
 ssl2 = 1
 timeout = 20
 urlformat = <a href="http://%host%/">http://%host%/</a> # mandatory</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>(see <code>curl(1)</code> for details of the options below)</p>
<p>
</p>
<hr />
<h1><a name="variables">VARIABLES</a></h1>
<p>Supported probe-specific variables:</p>
<dl>
<dt><strong><a name="item_binary">binary</a></strong>

</dt><dd>
<p>The location of your curl binary.</p>
<p>Default value: /usr/bin/curl</p>

</dd><dt><strong><a name="item_forks">forks</a></strong>

</dt><dd>
<p>Run this many concurrent processes at maximum</p>
<p>Example value: 5</p>
<p>Default value: 5</p>

</dd><dt><strong><a name="item_offset">offset</a></strong>

</dt><dd>
<p>If you run many probes concurrently you may want to prevent them from
hitting your network all at the same time. Using the probe-specific
offset parameter you can change the point in time when each probe will
be run. Offset is specified in % of total interval, or alternatively as
'random', and the offset from the 'General' section is used if nothing
is specified here. Note that this does NOT influence the rrds itself,
it is just a matter of when data acqusition is initiated.
(This variable is only applicable if the variable 'concurrentprobes' is set
in the 'General' section.)</p>
<p>Example value: 50%</p>

</dd><dt><strong><a name="item_step">step</a></strong>

</dt><dd>
<p>Duration of the base interval that this probe should use, if different
from the one specified in the 'Database' section. Note that the step in
the RRD files is fixed when they are originally generated, and if you
change the step parameter afterwards, you'll have to delete the old RRD
files or somehow convert them. (This variable is only applicable if
the variable 'concurrentprobes' is set in the 'General' section.)</p>
<p>Example value: 300</p>

</dd></dl>
<p>Supported target-specific variables:</p>
<dl>
<dt><strong><a name="item_agent">agent</a></strong>

</dt><dd>
<p>The ``-A'' <code>curl(1)</code> option.  This is a full HTTP User-Agent header including
the words ``User-Agent:''. Note that it does not need any quotes around it.</p>
<p>Example value: User-Agent: Lynx/2.8.4rel.1 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.6c</p>

</dd><dt><strong><a name="item_extraargs">extraargs</a></strong>

</dt><dd>
<p>Any extra arguments you might want to hand to curl(1). The arguments
should be separated by the regexp specified in ``extrare'', which
contains just the space character (`` '') by default.</p>
<p>Note that curl will be called with the resulting list of arguments
without any shell expansion. If you need to specify any arguments
containing spaces, you should set ``extrare'' to something else.</p>
<p>As a complicated example, to explicitly set the ``Host:'' header in Curl
requests, you need to set ``extrare'' to something else, eg. ``/;/'',
and then specify <code>extraargs = --header;Host: www.example.com</code>.</p>
<p>Example value: -6 --head --user user:password</p>

</dd><dt><strong><a name="item_extrare">extrare</a></strong>

</dt><dd>
<p>The regexp used to split the extraargs string into an argument list,
in the ``/regexp/'' notation.  This contains just the space character 
(`` '') by default, but if you need to specify any arguments containing spaces,
you can set this variable to a different value.</p>
<p>Example value: / /</p>
<p>Default value: / /</p>

</dd><dt><strong><a name="item_follow_redirects">follow_redirects</a></strong>

</dt><dd>
<p>If this variable is set to 'yes', curl will follow any HTTP redirection steps (the '-L' option).
If set to 'no', HTTP Location: headers will not be followed. See also 'include_redirects'.</p>
<p>Example value: yes</p>
<p>Default value: no</p>

</dd><dt><strong><a name="item_include_redirects">include_redirects</a></strong>

</dt><dd>
<p>If this variable is set to 'yes', the measurement result will include the time
spent on following any HTTP redirection steps. If set to 'no', only the last
step is measured. See also 'follow_redirects'.</p>
<p>Example value: yes</p>
<p>Default value: no</p>

</dd><dt><strong><a name="item_insecure_ssl">insecure_ssl</a></strong>

</dt><dd>
<p>The ``-k'' <code>curl(1)</code> option. Accept SSL connections that don't have a secure
certificate chain to a trusted CA. Note that if you are going to monitor
https targets, you'll probably have to either enable this option or specify
the CA path to curl through extraargs below. For more info, see the
<code>curl(1)</code> manual page.</p>
<p>Example value: 1</p>

</dd><dt><strong><a name="item_interface">interface</a></strong>

</dt><dd>
<p>The ``--interface'' <code>curl(1)</code> option.  Bind to a specific interface, IP address or
host name.</p>
<p>Example value: eth0</p>

</dd><dt><strong><a name="item_pings">pings</a></strong>

</dt><dd>
<p>How many pings should be sent to each target, if different from the global
value specified in the Database section. Note that the number of pings in
the RRD files is fixed when they are originally generated, and if you
change this parameter afterwards, you'll have to delete the old RRD
files or somehow convert them.</p>
<p>Example value: 5</p>

</dd><dt><strong><a name="item_ssl2">ssl2</a></strong>

</dt><dd>
<p>The ``-2'' <code>curl(1)</code> option.  Force SSL2.</p>
<p>Example value: 1</p>

</dd><dt><strong><a name="item_timeout">timeout</a></strong>

</dt><dd>
<p>The ``-m'' <code>curl(1)</code> option.  Maximum timeout in seconds.</p>
<p>Example value: 20</p>
<p>Default value: 10</p>

</dd><dt><strong><a name="item_urlformat">urlformat</a></strong>

</dt><dd>
<p>The template of the URL to fetch.  Can be any one that curl supports.
Any occurrence of the string '%host%' will be replaced with the
host to be probed.</p>
<p>Example value: http://%host%/</p>
<p>This setting is mandatory.</p>

</dd></dl>
<p>
</p>
<hr />
<h1><a name="authors">AUTHORS</a></h1>
<pre>
 Gerald Combs &lt;gerald [AT] ethereal.com&gt;
 Niko Tyni &lt;ntyni@iki.fi&gt;</pre>
<p>
</p>
<hr />
<h1><a name="notes">NOTES</a></h1>
<p>You should consider setting a lower value for the <a href="#item_pings"><code>pings</code></a> variable than the
default 20, as repetitive URL fetching may be quite heavy on the server.</p>
<p>The URL to be tested used to be specified by the variable 'url' in earlier
versions of Smokeping, and the 'host' setting did not influence it in any
way. The variable name has now been changed to 'urlformat', and it can
(and in most cases should) contain a placeholder for the 'host' variable.</p>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>curl(1), <a href="http://curl.haxx.se/">http://curl.haxx.se/</a></p>

</body>

</html>