Server IP : 85.214.239.14 / Your IP : 3.15.202.169 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/3/cwd/proc/3/root/usr/share/doc/rrdtool/html/ |
Upload File : |
<?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>rrdtune</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>rrdtune - Modify some basic properties of a Round Robin Database</p> <h1 id="SYNOPSIS">SYNOPSIS</h1> <p><b>rrdtool</b> <b>tune</b> <i>filename</i> <span style="white-space: nowrap;">[<b>--heartbeat</b>|<b>-h</b> <i>ds-name</i>:<i>heartbeat</i>]</span> <span style="white-space: nowrap;">[<b>--minimum</b>|<b>-i</b> <i>ds-name</i>:<i>min</i>]</span> <span style="white-space: nowrap;">[<b>--maximum</b>|<b>-a</b> <i>ds-name</i>:<i>max</i>]</span> <span style="white-space: nowrap;">[<b>--data-source-type</b>|<b>-d</b> <i>ds-name</i>:<i>DST</i>]</span> <span style="white-space: nowrap;">[<b>--data-source-rename</b>|<b>-r</b> <i>old-name</i>:<i>new-name</i>]</span> <span style="white-space: nowrap;">[<b>--deltapos</b>|<b>-p</b> <i>scale-value</i>]</span> <span style="white-space: nowrap;">[<b>--deltaneg</b>|<b>-n</b> <i>scale-value</i>]</span> <span style="white-space: nowrap;">[<b>--failure-threshold</b>|<b>-f</b> <i>failure-threshold</i>]</span> <span style="white-space: nowrap;">[<b>--window-length</b>|<b>-w</b> <i>window-length</i>]</span> <span style="white-space: nowrap;">[<b>--alpha</b>|<b>-x</b> <i>adaption-parameter</i>]</span> <span style="white-space: nowrap;">[<b>--beta</b>|<b>-y</b> <i>adaption-parameter</i>]</span> <span style="white-space: nowrap;">[<b>--gamma</b>|<b>-z</b> <i>adaption-parameter</i>]</span> <span style="white-space: nowrap;">[<b>--gamma-deviation</b>|<b>-v</b> <i>adaption-parameter</i>]</span> <span style="white-space: nowrap;">[<b>--smoothing-window</b>|<b>-s</b> <i>fraction-of-season</i>]</span> <span style="white-space: nowrap;">[<b>--smoothing-window-deviation</b>|<b>-S</b> <i>fraction-of-season</i>]</span> <span style="white-space: nowrap;">[<b>--aberrant-reset</b>|<b>-b</b> <i>ds-name</i>]</span> <span style="white-space: nowrap;">[<b>--step</b>|<b>-t</b> <i>newstep</i>]</span> <span style="white-space: nowrap;">[<b>--daemon</b>|<b>-D</b> <i>address</i>]</span> <span style="white-space: nowrap;">[<b>DEL:</b><i>ds-name</i>]</span> <span style="white-space: nowrap;">[<b>DS:</b><i>ds-spec</i>]</span> <span style="white-space: nowrap;">[<b>DELRRA:</b><i>index</i>]</span> <span style="white-space: nowrap;">[<b>RRA:</b><i>rra-spec</i>]</span> <span style="white-space: nowrap;">[<b>RRA#</b><i>index</i>:[+-=]<number</span>]></p> <h1 id="DESCRIPTION">DESCRIPTION</h1> <p>The tune option allows you to alter some of the basic configuration values stored in the header area of a Round Robin Database (<b>RRD</b>).</p> <p>One application of the <b>tune</b> function is to relax the validation rules on an <b>RRD</b>. This allows you to fill a new <b>RRD</b> with data available in larger intervals than what you would normally want to permit. Be very careful with tune operations for COMPUTE data sources. Setting the <i>min</i>, <i>max</i>, and <i>heartbeat</i> for a COMPUTE data source without changing the data source type to a non-COMPUTE <b>DST</b> WILL corrupt the data source header in the <b>RRD</b>.</p> <p>A second application of the <b>tune</b> function is to set or alter parameters used by the specialized function <b>RRAs</b> for aberrant behavior detection.</p> <p>Still another application is to add or remove data sources (DS) or add / remove or alter some aspects of round-robin archives (RRA). These operations are not really done in-place, but rather generate a new RRD file internally and move it over the original file. Data is kept intact during these operations. For even more in-depth modifications you may review the <span style="white-space: nowrap;"><b>--source</b></span> and <span style="white-space: nowrap;"><b>--template</b></span> options of the <b>create</b> function which allow you to combine multiple RRD files into a new one and which is even more clever in what data it is able to keep or "regenerate".</p> <dl> <dt id="filename"><i>filename</i></dt> <dd> <p>The name of the <b>RRD</b> you want to tune.</p> </dd> <dt id="heartbeat--h-ds-name:heartbeat"><span style="white-space: nowrap;"><b>--heartbeat</b>|<b>-h</b> <i>ds-name</i>:<i>heartbeat</i></span></dt> <dd> <p>modify the <i>heartbeat</i> of a data source. By setting this to a high value the RRD will accept things like one value per day.</p> </dd> <dt id="minimum--i-ds-name:min"><span style="white-space: nowrap;"><b>--minimum</b>|<b>-i</b> <i>ds-name</i>:<i>min</i></span></dt> <dd> <p>alter the minimum value acceptable as input from the data source. Setting <i>min</i> to 'U' will disable this limit.</p> </dd> <dt id="maximum--a-ds-name:max"><span style="white-space: nowrap;"><b>--maximum</b>|<b>-a</b> <i>ds-name</i>:<i>max</i></span></dt> <dd> <p>alter the maximum value acceptable as input from the data source. Setting <i>max</i> to 'U' will disable this limit.</p> </dd> <dt id="data-source-type--d-ds-name:DST"><span style="white-space: nowrap;"><b>--data-source-type</b>|<b>-d</b> <i>ds-name</i>:<i>DST</i></span></dt> <dd> <p>alter the type <b>DST</b> of a data source.</p> </dd> <dt id="data-source-rename--r-old-name:new-name"><span style="white-space: nowrap;"><b>--data-source-rename</b>|<b>-r</b> <i>old-name</i>:<i>new-name</i></span></dt> <dd> <p>rename a data source.</p> </dd> <dt id="deltapos--p-scale-value"><span style="white-space: nowrap;"><b>--deltapos</b>|<b>-p</b> <i>scale-value</i></span></dt> <dd> <p>Alter the deviation scaling factor for the upper bound of the confidence band used internally to calculate violations for the FAILURES <b>RRA</b>. The default value is 2. Note that this parameter is not related to graphing confidence bounds which must be specified as a CDEF argument to generate a graph with confidence bounds. The graph scale factor need not to agree with the value used internally by the FAILURES <b>RRA</b>.</p> </dd> <dt id="deltaneg--n-scale-value"><span style="white-space: nowrap;"><b>--deltaneg</b>|<b>-n</b> <i>scale-value</i></span></dt> <dd> <p>Alter the deviation scaling factor for the lower bound of the confidence band used internally to calculate violations for the FAILURES <b>RRA</b>. The default value is 2. As with <b>--deltapos</b>, this argument is unrelated to the scale factor chosen when graphing confidence bounds.</p> </dd> <dt id="failure-threshold--f-failure-threshold"><span style="white-space: nowrap;"><b>--failure-threshold</b>|<b>-f</b> <i>failure-threshold</i></span></dt> <dd> <p>Alter the number of confidence bound violations that constitute a failure for purposes of the FAILURES <b>RRA</b>. This must be an integer less than or equal to the window length of the FAILURES <b>RRA</b>. This restriction is not verified by the tune option, so one can reset failure-threshold and window-length simultaneously. Setting this option will reset the count of violations to 0.</p> </dd> <dt id="window-length--w-window-length"><span style="white-space: nowrap;"><b>--window-length</b>|<b>-w</b> <i>window-length</i></span></dt> <dd> <p>Alter the number of time points in the temporal window for determining failures. This must be an integer greater than or equal to the window length of the FAILURES <b>RRA</b> and less than or equal to 28. Setting this option will reset the count of violations to 0.</p> </dd> <dt id="alpha--x-adaption-parameter"><span style="white-space: nowrap;"><b>--alpha</b>|<b>-x</b> <i>adaption-parameter</i></span></dt> <dd> <p>Alter the intercept adaptation parameter for the Holt-Winters forecasting algorithm. This parameter must be between 0 and 1.</p> </dd> <dt id="beta--y-adaption-parameter"><span style="white-space: nowrap;"><b>--beta</b>|<b>-y</b> <i>adaption-parameter</i></span></dt> <dd> <p>Alter the slope adaptation parameter for the Holt-Winters forecasting algorithm. This parameter must be between 0 and 1.</p> </dd> <dt id="gamma--z-adaption-parameter"><span style="white-space: nowrap;"><b>--gamma</b>|<b>-z</b> <i>adaption-parameter</i></span></dt> <dd> <p>Alter the seasonal coefficient adaptation parameter for the SEASONAL <b>RRA</b>. This parameter must be between 0 and 1.</p> </dd> <dt id="gamma-deviation--v-adaption-parameter"><span style="white-space: nowrap;"><b>--gamma-deviation</b>|<b>-v</b> <i>adaption-parameter</i></span></dt> <dd> <p>Alter the seasonal deviation adaptation parameter for the DEVSEASONAL <b>RRA</b>. This parameter must be between 0 and 1.</p> </dd> <dt id="smoothing-window--s-fraction-of-season"><span style="white-space: nowrap;"><b>--smoothing-window</b>|<b>-s</b> <i>fraction-of-season</i></span></dt> <dd> <p>Alter the size of the smoothing window for the SEASONAL <b>RRA</b>. This must be between 0 and 1.</p> </dd> <dt id="smoothing-window-deviation--S-fraction-of-season"><span style="white-space: nowrap;"><b>--smoothing-window-deviation</b>|<b>-S</b> <i>fraction-of-season</i></span></dt> <dd> <p>Alter the size of the smoothing window for the DEVSEASONAL <b>RRA</b>. This must be between 0 and 1.</p> </dd> <dt id="aberrant-reset--b-ds-name"><span style="white-space: nowrap;"><b>--aberrant-reset</b>|<b>-b</b> <i>ds-name</i></span></dt> <dd> <p>This option causes the aberrant behavior detection algorithm to reset for the specified data source; that is, forget all it is has learnt so far. Specifically, for the HWPREDICT or MHWPREDICT <b>RRA</b>, it sets the intercept and slope coefficients to unknown. For the SEASONAL <b>RRA</b>, it sets all seasonal coefficients to unknown. For the DEVSEASONAL <b>RRA</b>, it sets all seasonal deviation coefficients to unknown. For the FAILURES <b>RRA</b>, it erases the violation history. Note that reset does not erase past predictions (the values of the HWPREDICT or MHWPREDICT <b>RRA</b>), predicted deviations (the values of the DEVPREDICT <b>RRA</b>), or failure history (the values of the FAILURES <b>RRA</b>). This option will function even if not all the listed <b>RRAs</b> are present.</p> <p>Due to the implementation of this option, there is an indirect impact on other data sources in the RRD. A smoothing algorithm is applied to SEASONAL and DEVSEASONAL values on a periodic basis. During bootstrap initialization this smoothing is deferred. For efficiency, the implementation of smoothing is not data source specific. This means that utilizing reset for one data source will delay running the smoothing algorithm for all data sources in the file. This is unlikely to have serious consequences, unless the data being collected for the non-reset data sources is unusually volatile during the reinitialization period of the reset data source.</p> <p>Use of this tuning option is advised when the behavior of the data source time series changes in a drastic and permanent manner.</p> </dd> <dt id="step--t-newstep"><b>--step</b>|<b>-t</b> <i>newstep</i></dt> <dd> <p>Changes the step size of the RRD to newstep.</p> <p>TODO: add proper documentation</p> </dd> <dt id="daemon--D-address"><b>--daemon</b>|<b>-D</b> <i>address</i></dt> <dd> <p><b>NOTE</b>: Because the <b>-d</b> (small letter 'd') option was already taken, this function (unlike most other) uses the capital letter 'D' for the one-letter option to name the cache daemon.</p> <p>If given, <b>RRDtool</b> will try to connect to the caching daemon <a href="./rrdcached.html">rrdcached</a> at <i>address</i> and will fail if the connection cannot be established. If the connection is successfully established the data for the <i>filename</i> will be flushed before performing the copy/modify operation. Afterwards the <i>filename</i> will be forgotten by the cache daemon, so that the next access using the caching daemon will read the proper structure.</p> <p>This sequence of operations is designed to achieve a consistent overall result with respect to RRD internal file consistency when using one of the <b>DS</b> or <b>RRA</b> changing operations (that is: the resulting file should always be a valid RRD file, regardless of concurrent updates through the caching daemon). Regarding data consistency such guarantees are not made: Without external synchronization concurrent updates may be lost.</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="DEL:ds-name"><b>DEL:</b><i>ds-name</i></dt> <dd> <p>Every data source named with a DEL specification will be removed. The resulting RRD will miss both the definition and the data for that data source. Multiple DEL specifications are permitted.</p> </dd> <dt id="DS:ds-spec"><b>DS:</b><i>ds-spec</i></dt> <dd> <p>For every such data source definition (for the exact syntax see the <b>create</b> command), a new data source will be added to the RRD. Multiple DS specifications are permitted.</p> </dd> <dt id="DELRRA:index"><b>DELRRA:</b><i>index</i></dt> <dd> <p>Removes the RRA with index <i>index</i>. The index is zero-based, that is the very first RRA has index 0.</p> </dd> <dt id="RRA:rra-spec"><b>RRA:</b><i>rra-spec</i></dt> <dd> <p>For every such archive definition (for the exact syntax see the <b>create</b> command), a new RRA will be added to the output RRD. Multiple RRA specifications are permitted.</p> </dd> <dt id="RRA-index:---number"><b>RRA#</b><i>index</i>:[+-=]<number></dt> <dd> <p>Adds/removes or sets the given number of rows for the RRA with index <index>. The index is zero-based, that is the very first RRA has index 0.</p> </dd> </dl> <h1 id="EXAMPLE-1">EXAMPLE 1</h1> <p><code>rrdtool tune data.rrd -h in:100000 -h out:100000 -h through:100000</code></p> <p>Set the minimum required heartbeat for data sources 'in', 'out' and 'through' to 100'000 seconds which is a little over one day in data.rrd. This would allow to feed old data from MRTG-2.0 right into RRDtool without generating *UNKNOWN* entries.</p> <h1 id="EXAMPLE-2">EXAMPLE 2</h1> <p><code>rrdtool tune monitor.rrd --window-length 5 --failure-threshold 3</code></p> <p>If the FAILURES <b>RRA</b> is implicitly created, the default window-length is 9 and the default failure-threshold is 7. This command now defines a failure as 3 or more violations in a temporal window of 5 time points.</p> <h1 id="EXAMPLE-3">EXAMPLE 3</h1> <p><code>rrdtool tune some.rrd DEL:a RRA#0:+10</code></p> <p>Delete the data source named <b>a</b> and extend the very first archive by 10 rows. This will in fact replace the input RRD with a new RRD keeping all existing data. For most practical use cases this is identical to a real in-place modification.</p> <h1 id="AUTHORS">AUTHORS</h1> <p>Tobias Oetiker <tobi@oetiker.ch>, Peter Stamfest <peter@stamfest.at></p> </body> </html>