Code

a961ee86f35fd7dfa7bfbcd62628d59b91ae73aa
[pkg-rrdtool.git] / doc / rrdtune.1
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.32
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
29 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
30 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
31 .\" nothing in troff, for use with C<>.
32 .tr \(*W-
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 .    de IX
57 .    tm Index:\\$1\t\\n%\t"\\$2"
58 ..
59 .    nr % 0
60 .    rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .if n .na
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "RRDTUNE 1"
132 .TH RRDTUNE 1 "2008-02-17" "1.2.27" "rrdtool"
133 .SH "NAME"
134 rrdtune \- Modify some basic properties of a Round Robin Database
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 \&\fBrrdtool\fR \fBtune\fR \fIfilename\fR
138 [\fB\-\-heartbeat\fR|\fB\-h\fR\ \fIds-name\fR:\fIheartbeat\fR]
139 [\fB\-\-minimum\fR|\fB\-i\fR\ \fIds-name\fR:\fImin\fR]
140 [\fB\-\-maximum\fR|\fB\-a\fR\ \fIds-name\fR:\fImax\fR]
141 [\fB\-\-data\-source\-type\fR|\fB\-d\fR\ \fIds-name\fR:\fI\s-1DST\s0\fR]
142 [\fB\-\-data\-source\-rename\fR|\fB\-r\fR\ \fIold-name\fR:\fInew-name\fR]
143 [\fB\-\-deltapos\fR\ \fIscale-value\fR]
144 [\fB\-\-deltaneg\fR\ \fIscale-value\fR]
145 [\fB\-\-failure\-threshold\fR\ \fIfailure-threshold\fR]
146 [\fB\-\-window\-length\fR\ \fIwindow-length\fR]
147 [\fB\-\-alpha\fR\ \fIadaption-parameter\fR]
148 [\fB\-\-beta\fR\ \fIadaption-parameter\fR]
149 [\fB\-\-gamma\fR\ \fIadaption-parameter\fR]
150 [\fB\-\-gamma\-deviation\fR\ \fIadaption-parameter\fR]
151 [\fB\-\-aberrant\-reset\fR\ \fIds-name\fR]
152 .SH "DESCRIPTION"
153 .IX Header "DESCRIPTION"
154 The tune option allows you to alter some of the basic configuration
155 values stored in the header area of a Round Robin Database (\fB\s-1RRD\s0\fR).
156 .PP
157 One application of the \fBtune\fR function is to relax the
158 validation rules on an \fB\s-1RRD\s0\fR. This allows to fill a new \fB\s-1RRD\s0\fR with
159 data available in larger intervals than what you would normally want
160 to permit. Be very careful with tune operations for \s-1COMPUTE\s0 data sources.
161 Setting the \fImin\fR, \fImax\fR, and  \fIheartbeat\fR for a \s-1COMPUTE\s0 data source
162 without changing the data source type to a non-COMPUTE \fB\s-1DST\s0\fR \s-1WILL\s0 corrupt
163 the data source header in the \fB\s-1RRD\s0\fR.
164 .PP
165 A second application of the \fBtune\fR function is to set or alter parameters
166 used by the specialized function \fBRRAs\fR for aberrant behavior detection.
167 .IP "\fIfilename\fR" 8
168 .IX Item "filename"
169 The name of the \fB\s-1RRD\s0\fR you want to tune.
170 .IP "\fB\-\-heartbeat\fR|\fB\-h\fR\ \fIds-name\fR:\fIheartbeat\fR" 8
171 .IX Item "--heartbeat|-hds-name:heartbeat"
172 modify the \fIheartbeat\fR of a data source. By setting this to a high
173 value the \s-1RRD\s0 will accept things like one value per day.
174 .IP "\fB\-\-minimum\fR|\fB\-i\fR\ \fIds-name\fR:\fImin\fR" 8
175 .IX Item "--minimum|-ids-name:min"
176 alter the minimum value acceptable as input from the data source.
177 Setting \fImin\fR to 'U' will disable this limit.
178 .IP "\fB\-\-maximum\fR|\fB\-a\fR\ \fIds-name\fR:\fImax\fR" 8
179 .IX Item "--maximum|-ads-name:max"
180 alter the maximum value acceptable as input from the data source.
181 Setting \fImax\fR to 'U' will disable this limit.
182 .IP "\fB\-\-data\-source\-type\fR|\fB\-d\fR\ \fIds-name\fR:\fI\s-1DST\s0\fR" 8
183 .IX Item "--data-source-type|-dds-name:DST"
184 alter the type \fB\s-1DST\s0\fR of a data source.
185 .IP "\fB\-\-data\-source\-rename\fR|\fB\-r\fR\ \fIold-name\fR:\fInew-name\fR" 8
186 .IX Item "--data-source-rename|-rold-name:new-name"
187 rename a data source.
188 .IP "\fB\-\-deltapos\fR\ \fIscale-value\fR" 8
189 .IX Item "--deltaposscale-value"
190 Alter the deviation scaling factor for the upper bound of the
191 confidence band used internally to calculate violations for the
192 \&\s-1FAILURES\s0 \fB\s-1RRA\s0\fR. The default value is 2. Note that this parameter is
193 not related to graphing confidence bounds which must be specified as a
194 \&\s-1CDEF\s0 argument to generate a graph with confidence bounds. The graph
195 scale factor need not to agree with the value used internally by the
196 \&\s-1FAILURES\s0 \fB\s-1RRA\s0\fR.
197 .IP "\fB\-\-deltaneg\fR\ \fIscale-value\fR" 8
198 .IX Item "--deltanegscale-value"
199 Alter the deviation scaling factor for the lower bound of the confidence band
200 used internally to calculate violations for the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR. The default
201 value is 2. As with \fB\-\-deltapos\fR, this argument is unrelated to the scale
202 factor chosen when graphing confidence bounds.
203 .IP "\fB\-\-failure\-threshold\fR\ \fIfailure-threshold\fR" 8
204 .IX Item "--failure-thresholdfailure-threshold"
205 Alter the number of confidence bound violations that constitute a failure for
206 purposes of the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR. This must be an integer less than or equal to
207 the window length of the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR. This restriction is not verified by
208 the tune option, so one can reset failure-threshold and window-length
209 simultaneously. Setting this option will reset the count of violations to 0.
210 .IP "\fB\-\-window\-length\fR\ \fIwindow-length\fR" 8
211 .IX Item "--window-lengthwindow-length"
212 Alter the number of time points in the temporal window for determining
213 failures. This must be an integer greater than or equal to the window
214 length of the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR and less than or equal to 28. Setting
215 this option will reset the count of violations to 0.
216 .IP "\fB\-\-alpha\fR\ \fIadaption-parameter\fR" 8
217 .IX Item "--alphaadaption-parameter"
218 Alter the intercept adaptation parameter for the Holt-Winters
219 forecasting algorithm. This parameter must be between 0 and 1.
220 .IP "\fB\-\-beta\fR\ \fIadaption-parameter\fR" 8
221 .IX Item "--betaadaption-parameter"
222 Alter the slope adaptation parameter for the Holt-Winters forecasting
223 algorithm. This parameter must be between 0 and 1.
224 .IP "\fB\-\-gamma\fR\ \fIadaption-parameter\fR" 8
225 .IX Item "--gammaadaption-parameter"
226 Alter the seasonal coefficient adaptation parameter for the \s-1SEASONAL\s0
227 \&\fB\s-1RRA\s0\fR. This parameter must be between 0 and 1.
228 .IP "\fB\-\-gamma\-deviation\fR\ \fIadaption-parameter\fR" 8
229 .IX Item "--gamma-deviationadaption-parameter"
230 Alter the seasonal deviation adaptation parameter for the \s-1DEVSEASONAL\s0
231 \&\fB\s-1RRA\s0\fR. This parameter must be between 0 and 1.
232 .IP "\fB\-\-aberrant\-reset\fR\ \fIds-name\fR" 8
233 .IX Item "--aberrant-resetds-name"
234 This option causes the aberrant behavior detection algorithm to reset
235 for the specified data source; that is, forget all it is has learnt so far.
236 Specifically, for the \s-1HWPREDICT\s0 \fB\s-1RRA\s0\fR, it sets the intercept and slope
237 coefficients to unknown. For the \s-1SEASONAL\s0 \fB\s-1RRA\s0\fR, it sets all seasonal
238 coefficients to unknown. For the \s-1DEVSEASONAL\s0 \fB\s-1RRA\s0\fR, it sets all seasonal
239 deviation coefficients to unknown. For the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR, it erases
240 the violation history. Note that reset does not erase past predictions
241 (the values of the \s-1HWPREDICT\s0 \fB\s-1RRA\s0\fR), predicted deviations (the values of the
242 \&\s-1DEVPREDICT\s0 \fB\s-1RRA\s0\fR), or failure history (the values of the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR).
243 This option will function even if not all the listed \fBRRAs\fR are present.
244 .Sp
245 Due to the implementation of this option, there is an indirect impact on
246 other data sources in the \s-1RRD\s0. A smoothing algorithm is applied to
247 \&\s-1SEASONAL\s0 and \s-1DEVSEASONAL\s0 values on a periodic basis. During bootstrap
248 initialization this smoothing is deferred. For efficiency, the implementation
249 of smoothing is not data source specific. This means that utilizing
250 reset for one data source will delay running the smoothing algorithm
251 for all data sources in the file. This is unlikely to have serious
252 consequences, unless the data being collected for the non-reset data sources
253 is unusually volatile during the reinitialization period of the reset
254 data source.
255 .Sp
256 Use of this tuning option is advised when the behavior of the data source
257 time series changes in a drastic and permanent manner.
258 .SH "EXAMPLE 1"
259 .IX Header "EXAMPLE 1"
260 \&\f(CW\*(C`rrdtool tune data.rrd \-h in:100000 \-h out:100000 \-h through:100000\*(C'\fR
261 .PP
262 Set the minimum required heartbeat for data sources 'in', 'out'
263 and 'through' to 10'000 seconds which is a little over one day in data.rrd.
264 This would allow to feed old data from \s-1MRTG\-2\s0.0 right into
265 RRDtool without generating *UNKNOWN* entries.
266 .SH "EXAMPLE 2"
267 .IX Header "EXAMPLE 2"
268 \&\f(CW\*(C`rrdtool tune monitor.rrd \-\-window\-length 5 \-\-failure\-threshold 3\*(C'\fR
269 .PP
270 If the \s-1FAILURES\s0 \fB\s-1RRA\s0\fR is implicitly created, the default
271 window-length is 9 and the default failure-threshold is 7. This
272 command now defines a failure as 3 or more violations in a temporal
273 window of 5 time points.
274 .SH "AUTHOR"
275 .IX Header "AUTHOR"
276 Tobias Oetiker <tobi@oetiker.ch>