Code

Revert "Revert "Merge tag 'upstream/5.5.0'""
[pkg-collectd.git] / src / collectd.conf.5
1 .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
6 .if t .sp .5v
7 .if n .sp
8 ..
9 .de Vb \" Begin verbatim text
10 .ft CW
11 .nf
12 .ne \\$1
13 ..
14 .de Ve \" End verbatim text
15 .ft R
16 .fi
17 ..
18 .\" Set up some character translations and predefined strings.  \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote.  \*(C+ will
21 .\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
24 .tr \(*W-
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
26 .ie n \{\
27 .    ds -- \(*W-
28 .    ds PI pi
29 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
31 .    ds L" ""
32 .    ds R" ""
33 .    ds C` ""
34 .    ds C' ""
35 'br\}
36 .el\{\
37 .    ds -- \|\(em\|
38 .    ds PI \(*p
39 .    ds L" ``
40 .    ds R" ''
41 .    ds C`
42 .    ds C'
43 'br\}
44 .\"
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
46 .ie \n(.g .ds Aq \(aq
47 .el       .ds Aq '
48 .\"
49 .\" If the F register is turned on, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD.  Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
53 .\"
54 .\" Avoid warning from groff about undefined register 'F'.
55 .de IX
56 ..
57 .nr rF 0
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{
60 .    if \nF \{
61 .        de IX
62 .        tm Index:\\$1\t\\n%\t"\\$2"
63 ..
64 .        if !\nF==2 \{
65 .            nr % 0
66 .            nr F 2
67 .        \}
68 .    \}
69 .\}
70 .rr rF
71 .\"
72 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
73 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
74 .    \" fudge factors for nroff and troff
75 .if n \{\
76 .    ds #H 0
77 .    ds #V .8m
78 .    ds #F .3m
79 .    ds #[ \f1
80 .    ds #] \fP
81 .\}
82 .if t \{\
83 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
84 .    ds #V .6m
85 .    ds #F 0
86 .    ds #[ \&
87 .    ds #] \&
88 .\}
89 .    \" simple accents for nroff and troff
90 .if n \{\
91 .    ds ' \&
92 .    ds ` \&
93 .    ds ^ \&
94 .    ds , \&
95 .    ds ~ ~
96 .    ds /
97 .\}
98 .if t \{\
99 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
100 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
101 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
102 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
103 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
104 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
105 .\}
106 .    \" troff and (daisy-wheel) nroff accents
107 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
108 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
109 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
110 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
111 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
112 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
113 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
114 .ds ae a\h'-(\w'a'u*4/10)'e
115 .ds Ae A\h'-(\w'A'u*4/10)'E
116 .    \" corrections for vroff
117 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
118 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
119 .    \" for low resolution devices (crt and lpr)
120 .if \n(.H>23 .if \n(.V>19 \
121 \{\
122 .    ds : e
123 .    ds 8 ss
124 .    ds o a
125 .    ds d- d\h'-1'\(ga
126 .    ds D- D\h'-1'\(hy
127 .    ds th \o'bp'
128 .    ds Th \o'LP'
129 .    ds ae ae
130 .    ds Ae AE
131 .\}
132 .rm #[ #] #H #V #F C
133 .\" ========================================================================
134 .\"
135 .IX Title "COLLECTD.CONF 5"
136 .TH COLLECTD.CONF 5 "2015-05-20" "5.4.2.911.g0c88d3b" "collectd"
137 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
139 .if n .ad l
140 .nh
141 .SH "NAME"
142 collectd.conf \- Configuration for the system statistics collection daemon collectd
143 .SH "SYNOPSIS"
144 .IX Header "SYNOPSIS"
145 .Vb 3
146 \&  BaseDir "/var/lib/collectd"
147 \&  PIDFile "/run/collectd.pid"
148 \&  Interval 10.0
149 \&
150 \&  LoadPlugin cpu
151 \&  LoadPlugin load
152 \&
153 \&  <LoadPlugin df>
154 \&    Interval 3600
155 \&  </LoadPlugin>
156 \&  <Plugin df>
157 \&    ValuesPercentage true
158 \&  </Plugin>
159 \&
160 \&  LoadPlugin ping
161 \&  <Plugin ping>
162 \&    Host "example.org"
163 \&    Host "provider.net"
164 \&  </Plugin>
165 .Ve
166 .SH "DESCRIPTION"
167 .IX Header "DESCRIPTION"
168 This config file controls how the system statistics collection daemon
169 \&\fBcollectd\fR behaves. The most significant option is \fBLoadPlugin\fR, which
170 controls which plugins to load. These plugins ultimately define collectd's
171 behavior. If the \fBAutoLoadPlugin\fR option has been enabled, the explicit
172 \&\fBLoadPlugin\fR lines may be omitted for all plugins with a configuration block,
173 i.e. a \f(CW\*(C`<Plugin\ ...>\*(C'\fR block.
174 .PP
175 The syntax of this config file is similar to the config file of the famous
176 \&\fIApache\fR webserver. Each line contains either an option (a key and a list of
177 one or more values) or a section-start or \-end. Empty lines and everything
178 after a non-quoted hash-symbol (\f(CW\*(C`#\*(C'\fR) is ignored. \fIKeys\fR are unquoted
179 strings, consisting only of alphanumeric characters and the underscore (\f(CW\*(C`_\*(C'\fR)
180 character. Keys are handled case insensitive by \fIcollectd\fR itself and all
181 plugins included with it. \fIValues\fR can either be an \fIunquoted string\fR, a
182 \&\fIquoted string\fR (enclosed in double-quotes) a \fInumber\fR or a \fIboolean\fR
183 expression. \fIUnquoted strings\fR consist of only alphanumeric characters and
184 underscores (\f(CW\*(C`_\*(C'\fR) and do not need to be quoted. \fIQuoted strings\fR are
185 enclosed in double quotes (\f(CW\*(C`"\*(C'\fR). You can use the backslash character (\f(CW\*(C`\e\*(C'\fR)
186 to include double quotes as part of the string. \fINumbers\fR can be specified in
187 decimal and floating point format (using a dot \f(CW\*(C`.\*(C'\fR as decimal separator),
188 hexadecimal when using the \f(CW\*(C`0x\*(C'\fR prefix and octal with a leading zero (\f(CW0\fR).
189 \&\fIBoolean\fR values are either \fBtrue\fR or \fBfalse\fR.
190 .PP
191 Lines may be wrapped by using \f(CW\*(C`\e\*(C'\fR as the last character before the newline.
192 This allows long lines to be split into multiple lines. Quoted strings may be
193 wrapped as well. However, those are treated special in that whitespace at the
194 beginning of the following lines will be ignored, which allows for nicely
195 indenting the wrapped lines.
196 .PP
197 The configuration is read and processed in order, i.e. from top to bottom. So
198 the plugins are loaded in the order listed in this config file. It is a good
199 idea to load any logging plugins first in order to catch messages from plugins
200 during configuration. Also, unless \fBAutoLoadPlugin\fR is enabled, the
201 \&\fBLoadPlugin\fR option \fImust\fR occur \fIbefore\fR the appropriate
202 \&\f(CW\*(C`<\f(CBPlugin\f(CW ...>\*(C'\fR block.
203 .SH "GLOBAL OPTIONS"
204 .IX Header "GLOBAL OPTIONS"
205 .IP "\fBBaseDir\fR \fIDirectory\fR" 4
206 .IX Item "BaseDir Directory"
207 Sets the base directory. This is the directory beneath all RRD-files are
208 created. Possibly more subdirectories are created. This is also the working
209 directory for the daemon.
210 .IP "\fBLoadPlugin\fR \fIPlugin\fR" 4
211 .IX Item "LoadPlugin Plugin"
212 Loads the plugin \fIPlugin\fR. This is required to load plugins, unless the
213 \&\fBAutoLoadPlugin\fR option is enabled (see below). Without any loaded plugins,
214 \&\fIcollectd\fR will be mostly useless.
215 .Sp
216 Only the first \fBLoadPlugin\fR statement or block for a given plugin name has any
217 effect. This is useful when you want to split up the configuration into smaller
218 files and want each file to be \*(L"self contained\*(R", i.e. it contains a \fBPlugin\fR
219 block \fIand\fR then appropriate \fBLoadPlugin\fR statement. The downside is that if
220 you have multiple conflicting \fBLoadPlugin\fR blocks, e.g. when they specify
221 different intervals, only one of them (the first one encountered) will take
222 effect and all others will be silently ignored.
223 .Sp
224 \&\fBLoadPlugin\fR may either be a simple configuration \fIstatement\fR or a \fIblock\fR
225 with additional options, affecting the behavior of \fBLoadPlugin\fR. A simple
226 statement looks like this:
227 .Sp
228 .Vb 1
229 \& LoadPlugin "cpu"
230 .Ve
231 .Sp
232 Options inside a \fBLoadPlugin\fR block can override default settings and
233 influence the way plugins are loaded, e.g.:
234 .Sp
235 .Vb 3
236 \& <LoadPlugin perl>
237 \&   Interval 60
238 \& </LoadPlugin>
239 .Ve
240 .Sp
241 The following options are valid inside \fBLoadPlugin\fR blocks:
242 .RS 4
243 .IP "\fBGlobals\fR \fBtrue|false\fR" 4
244 .IX Item "Globals true|false"
245 If enabled, collectd will export all global symbols of the plugin (and of all
246 libraries loaded as dependencies of the plugin) and, thus, makes those symbols
247 available for resolving unresolved symbols in subsequently loaded plugins if
248 that is supported by your system.
249 .Sp
250 This is useful (or possibly even required), e.g., when loading a plugin that
251 embeds some scripting language into the daemon (e.g. the \fIPerl\fR and
252 \&\fIPython plugins\fR). Scripting languages usually provide means to load
253 extensions written in C. Those extensions require symbols provided by the
254 interpreter, which is loaded as a dependency of the respective collectd plugin.
255 See the documentation of those plugins (e.g., \fIcollectd\-perl\fR\|(5) or
256 \&\fIcollectd\-python\fR\|(5)) for details.
257 .Sp
258 By default, this is disabled. As a special exception, if the plugin name is
259 either \f(CW\*(C`perl\*(C'\fR or \f(CW\*(C`python\*(C'\fR, the default is changed to enabled in order to keep
260 the average user from ever having to deal with this low level linking stuff.
261 .IP "\fBInterval\fR \fISeconds\fR" 4
262 .IX Item "Interval Seconds"
263 Sets a plugin-specific interval for collecting metrics. This overrides the
264 global \fBInterval\fR setting. If a plugin provides own support for specifying an
265 interval, that setting will take precedence.
266 .RE
267 .RS 4
268 .RE
269 .IP "\fBAutoLoadPlugin\fR \fBfalse\fR|\fBtrue\fR" 4
270 .IX Item "AutoLoadPlugin false|true"
271 When set to \fBfalse\fR (the default), each plugin needs to be loaded explicitly,
272 using the \fBLoadPlugin\fR statement documented above. If a
273 \&\fB<Plugin\ ...>\fR block is encountered and no configuration
274 handling callback for this plugin has been registered, a warning is logged and
275 the block is ignored.
276 .Sp
277 When set to \fBtrue\fR, explicit \fBLoadPlugin\fR statements are not required. Each
278 \&\fB<Plugin\ ...>\fR block acts as if it was immediately preceded by a
279 \&\fBLoadPlugin\fR statement. \fBLoadPlugin\fR statements are still required for
280 plugins that don't provide any configuration, e.g. the \fILoad plugin\fR.
281 .IP "\fBCollectInternalStats\fR \fBfalse\fR|\fBtrue\fR" 4
282 .IX Item "CollectInternalStats false|true"
283 When set to \fBtrue\fR, various statistics about the \fIcollectd\fR daemon will be
284 collected, with \*(L"collectd\*(R" as the \fIplugin name\fR. Defaults to \fBfalse\fR.
285 .Sp
286 The \*(L"write_queue\*(R" \fIplugin instance\fR reports the number of elements currently
287 queued and the number of elements dropped off the queue by the
288 \&\fBWriteQueueLimitLow\fR/\fBWriteQueueLimitHigh\fR mechanism.
289 .Sp
290 The \*(L"cache\*(R" \fIplugin instance\fR reports the number of elements in the value list
291 cache (the cache you can interact with using \fIcollectd\-unixsock\fR\|(5)).
292 .IP "\fBInclude\fR \fIPath\fR [\fIpattern\fR]" 4
293 .IX Item "Include Path [pattern]"
294 If \fIPath\fR points to a file, includes that file. If \fIPath\fR points to a
295 directory, recursively includes all files within that directory and its
296 subdirectories. If the \f(CW\*(C`wordexp\*(C'\fR function is available on your system,
297 shell-like wildcards are expanded before files are included. This means you can
298 use statements like the following:
299 .Sp
300 .Vb 1
301 \&  Include "/etc/collectd.d/*.conf"
302 .Ve
303 .Sp
304 Starting with version 5.3, this may also be a block in which further options
305 affecting the behavior of \fBInclude\fR may be specified. The following option is
306 currently allowed:
307 .Sp
308 .Vb 3
309 \&  <Include "/etc/collectd.d">
310 \&    Filter "*.conf"
311 \&  </Include>
312 .Ve
313 .RS 4
314 .IP "\fBFilter\fR \fIpattern\fR" 4
315 .IX Item "Filter pattern"
316 If the \f(CW\*(C`fnmatch\*(C'\fR function is available on your system, a shell-like wildcard
317 \&\fIpattern\fR may be specified to filter which files to include. This may be used
318 in combination with recursively including a directory to easily be able to
319 arbitrarily mix configuration files and other documents (e.g. \s-1README\s0 files).
320 The given example is similar to the first example above but includes all files
321 matching \f(CW\*(C`*.conf\*(C'\fR in any subdirectory of \f(CW\*(C`/etc/collectd.d\*(C'\fR:
322 .Sp
323 .Vb 1
324 \&  Include "/etc/collectd.d" "*.conf"
325 .Ve
326 .RE
327 .RS 4
328 .Sp
329 If more than one files are included by a single \fBInclude\fR option, the files
330 will be included in lexicographical order (as defined by the \f(CW\*(C`strcmp\*(C'\fR
331 function). Thus, you can e.\ g. use numbered prefixes to specify the
332 order in which the files are loaded.
333 .Sp
334 To prevent loops and shooting yourself in the foot in interesting ways the
335 nesting is limited to a depth of 8\ levels, which should be sufficient for
336 most uses. Since symlinks are followed it is still possible to crash the daemon
337 by looping symlinks. In our opinion significant stupidity should result in an
338 appropriate amount of pain.
339 .Sp
340 It is no problem to have a block like \f(CW\*(C`<Plugin foo>\*(C'\fR in more than one
341 file, but you cannot include files from within blocks.
342 .RE
343 .IP "\fBPIDFile\fR \fIFile\fR" 4
344 .IX Item "PIDFile File"
345 Sets where to write the \s-1PID\s0 file to. This file is overwritten when it exists
346 and deleted when the program is stopped. Some init-scripts might override this
347 setting using the \fB\-P\fR command-line option.
348 .IP "\fBPluginDir\fR \fIDirectory\fR" 4
349 .IX Item "PluginDir Directory"
350 Path to the plugins (shared objects) of collectd.
351 .IP "\fBTypesDB\fR \fIFile\fR [\fIFile\fR ...]" 4
352 .IX Item "TypesDB File [File ...]"
353 Set one or more files that contain the data-set descriptions. See
354 \&\fItypes.db\fR\|(5) for a description of the format of this file.
355 .IP "\fBInterval\fR \fISeconds\fR" 4
356 .IX Item "Interval Seconds"
357 Configures the interval in which to query the read plugins. Obviously smaller
358 values lead to a higher system load produced by collectd, while higher values
359 lead to more coarse statistics.
360 .Sp
361 \&\fBWarning:\fR You should set this once and then never touch it again. If you do,
362 \&\fIyou will have to delete all your \s-1RRD\s0 files\fR or know some serious RRDtool
363 magic! (Assuming you're using the \fIRRDtool\fR or \fIRRDCacheD\fR plugin.)
364 .IP "\fBMaxReadInterval\fR \fISeconds\fR" 4
365 .IX Item "MaxReadInterval Seconds"
366 Read plugin doubles interval between queries after each failed attempt
367 to get data.
368 .Sp
369 This options limits the maximum value of the interval. The default value is
370 \&\fB86400\fR.
371 .IP "\fBTimeout\fR \fIIterations\fR" 4
372 .IX Item "Timeout Iterations"
373 Consider a value list \*(L"missing\*(R" when no update has been read or received for
374 \&\fIIterations\fR iterations. By default, \fIcollectd\fR considers a value list
375 missing when no update has been received for twice the update interval. Since
376 this setting uses iterations, the maximum allowed time without update depends
377 on the \fIInterval\fR information contained in each value list. This is used in
378 the \fIThreshold\fR configuration to dispatch notifications about missing values,
379 see \fIcollectd\-threshold\fR\|(5) for details.
380 .IP "\fBReadThreads\fR \fINum\fR" 4
381 .IX Item "ReadThreads Num"
382 Number of threads to start for reading plugins. The default value is \fB5\fR, but
383 you may want to increase this if you have more than five plugins that take a
384 long time to read. Mostly those are plugins that do network-IO. Setting this to
385 a value higher than the number of registered read callbacks is not recommended.
386 .IP "\fBWriteThreads\fR \fINum\fR" 4
387 .IX Item "WriteThreads Num"
388 Number of threads to start for dispatching value lists to write plugins. The
389 default value is \fB5\fR, but you may want to increase this if you have more than
390 five plugins that may take relatively long to write to.
391 .IP "\fBWriteQueueLimitHigh\fR \fIHighNum\fR" 4
392 .IX Item "WriteQueueLimitHigh HighNum"
393 .PD 0
394 .IP "\fBWriteQueueLimitLow\fR \fILowNum\fR" 4
395 .IX Item "WriteQueueLimitLow LowNum"
396 .PD
397 Metrics are read by the \fIread threads\fR and then put into a queue to be handled
398 by the \fIwrite threads\fR. If one of the \fIwrite plugins\fR is slow (e.g. network
399 timeouts, I/O saturation of the disk) this queue will grow. In order to avoid
400 running into memory issues in such a case, you can limit the size of this
401 queue.
402 .Sp
403 By default, there is no limit and memory may grow indefinitely. This is most
404 likely not an issue for clients, i.e. instances that only handle the local
405 metrics. For servers it is recommended to set this to a non-zero value, though.
406 .Sp
407 You can set the limits using \fBWriteQueueLimitHigh\fR and \fBWriteQueueLimitLow\fR.
408 Each of them takes a numerical argument which is the number of metrics in the
409 queue. If there are \fIHighNum\fR metrics in the queue, any new metrics \fIwill\fR be
410 dropped. If there are less than \fILowNum\fR metrics in the queue, all new metrics
411 \&\fIwill\fR be enqueued. If the number of metrics currently in the queue is between
412 \&\fILowNum\fR and \fIHighNum\fR, the metric is dropped with a probability that is
413 proportional to the number of metrics in the queue (i.e. it increases linearly
414 until it reaches 100%.)
415 .Sp
416 If \fBWriteQueueLimitHigh\fR is set to non-zero and \fBWriteQueueLimitLow\fR is
417 unset, the latter will default to half of \fBWriteQueueLimitHigh\fR.
418 .Sp
419 If you do not want to randomly drop values when the queue size is between
420 \&\fILowNum\fR and \fIHighNum\fR, set \fBWriteQueueLimitHigh\fR and \fBWriteQueueLimitLow\fR
421 to the same value.
422 .Sp
423 Enabling the \fBCollectInternalStats\fR option is of great help to figure out the
424 values to set \fBWriteQueueLimitHigh\fR and \fBWriteQueueLimitLow\fR to.
425 .IP "\fBHostname\fR \fIName\fR" 4
426 .IX Item "Hostname Name"
427 Sets the hostname that identifies a host. If you omit this setting, the
428 hostname will be determined using the \fIgethostname\fR\|(2) system call.
429 .IP "\fBFQDNLookup\fR \fBtrue|false\fR" 4
430 .IX Item "FQDNLookup true|false"
431 If \fBHostname\fR is determined automatically this setting controls whether or not
432 the daemon should try to figure out the \*(L"fully qualified domain name\*(R", \s-1FQDN.\s0
433 This is done using a lookup of the name returned by \f(CW\*(C`gethostname\*(C'\fR. This option
434 is enabled by default.
435 .IP "\fBPreCacheChain\fR \fIChainName\fR" 4
436 .IX Item "PreCacheChain ChainName"
437 .PD 0
438 .IP "\fBPostCacheChain\fR \fIChainName\fR" 4
439 .IX Item "PostCacheChain ChainName"
440 .PD
441 Configure the name of the \*(L"pre-cache chain\*(R" and the \*(L"post-cache chain\*(R". Please
442 see \*(L"\s-1FILTER CONFIGURATION\*(R"\s0 below on information on chains and how these
443 setting change the daemon's behavior.
444 .SH "PLUGIN OPTIONS"
445 .IX Header "PLUGIN OPTIONS"
446 Some plugins may register own options. These options must be enclosed in a
447 \&\f(CW\*(C`Plugin\*(C'\fR\-Section. Which options exist depends on the plugin used. Some plugins
448 require external configuration, too. The \f(CW\*(C`apache plugin\*(C'\fR, for example,
449 required \f(CW\*(C`mod_status\*(C'\fR to be configured in the webserver you're going to
450 collect data from. These plugins are listed below as well, even if they don't
451 require any configuration within collectd's configuration file.
452 .PP
453 A list of all plugins and a short summary for each plugin can be found in the
454 \&\fI\s-1README\s0\fR file shipped with the sourcecode and hopefully binary packets as
455 well.
456 .ie n .SS "Plugin ""aggregation"""
457 .el .SS "Plugin \f(CWaggregation\fP"
458 .IX Subsection "Plugin aggregation"
459 The \fIAggregation plugin\fR makes it possible to aggregate several values into
460 one using aggregation functions such as \fIsum\fR, \fIaverage\fR, \fImin\fR and \fImax\fR.
461 This can be put to a wide variety of uses, e.g. average and total \s-1CPU\s0
462 statistics for your entire fleet.
463 .PP
464 The grouping is powerful but, as with many powerful tools, may be a bit
465 difficult to wrap your head around. The grouping will therefore be
466 demonstrated using an example: The average and sum of the \s-1CPU\s0 usage across
467 all CPUs of each host is to be calculated.
468 .PP
469 To select all the affected values for our example, set \f(CW\*(C`Plugin cpu\*(C'\fR and
470 \&\f(CW\*(C`Type cpu\*(C'\fR. The other values are left unspecified, meaning \*(L"all values\*(R". The
471 \&\fIHost\fR, \fIPlugin\fR, \fIPluginInstance\fR, \fIType\fR and \fITypeInstance\fR options
472 work as if they were specified in the \f(CW\*(C`WHERE\*(C'\fR clause of an \f(CW\*(C`SELECT\*(C'\fR \s-1SQL\s0
473 statement.
474 .PP
475 .Vb 2
476 \&  Plugin "cpu"
477 \&  Type "cpu"
478 .Ve
479 .PP
480 Although the \fIHost\fR, \fIPluginInstance\fR (\s-1CPU\s0 number, i.e. 0, 1, 2, ...)  and
481 \&\fITypeInstance\fR (idle, user, system, ...) fields are left unspecified in the
482 example, the intention is to have a new value for each host / type instance
483 pair. This is achieved by \*(L"grouping\*(R" the values using the \f(CW\*(C`GroupBy\*(C'\fR option.
484 It can be specified multiple times to group by more than one field.
485 .PP
486 .Vb 2
487 \&  GroupBy "Host"
488 \&  GroupBy "TypeInstance"
489 .Ve
490 .PP
491 We do neither specify nor group by \fIplugin instance\fR (the \s-1CPU\s0 number), so all
492 metrics that differ in the \s-1CPU\s0 number only will be aggregated. Each
493 aggregation needs \fIat least one\fR such field, otherwise no aggregation would
494 take place.
495 .PP
496 The full example configuration looks like this:
497 .PP
498 .Vb 4
499 \& <Plugin "aggregation">
500 \&   <Aggregation>
501 \&     Plugin "cpu"
502 \&     Type "cpu"
503 \&
504 \&     GroupBy "Host"
505 \&     GroupBy "TypeInstance"
506 \&
507 \&     CalculateSum true
508 \&     CalculateAverage true
509 \&   </Aggregation>
510 \& </Plugin>
511 .Ve
512 .PP
513 There are a couple of limitations you should be aware of:
514 .IP "\(bu" 4
515 The \fIType\fR cannot be left unspecified, because it is not reasonable to add
516 apples to oranges. Also, the internal lookup structure won't work if you try
517 to group by type.
518 .IP "\(bu" 4
519 There must be at least one unspecified, ungrouped field. Otherwise nothing
520 will be aggregated.
521 .PP
522 As you can see in the example above, each aggregation has its own
523 \&\fBAggregation\fR block. You can have multiple aggregation blocks and aggregation
524 blocks may match the same values, i.e. one value list can update multiple
525 aggregations. The following options are valid inside \fBAggregation\fR blocks:
526 .IP "\fBHost\fR \fIHost\fR" 4
527 .IX Item "Host Host"
528 .PD 0
529 .IP "\fBPlugin\fR \fIPlugin\fR" 4
530 .IX Item "Plugin Plugin"
531 .IP "\fBPluginInstance\fR \fIPluginInstance\fR" 4
532 .IX Item "PluginInstance PluginInstance"
533 .IP "\fBType\fR \fIType\fR" 4
534 .IX Item "Type Type"
535 .IP "\fBTypeInstance\fR \fITypeInstance\fR" 4
536 .IX Item "TypeInstance TypeInstance"
537 .PD
538 Selects the value lists to be added to this aggregation. \fBType\fR must be a
539 valid data set name, see \fItypes.db\fR\|(5) for details.
540 .Sp
541 If the string starts with and ends with a slash (\f(CW\*(C`/\*(C'\fR), the string is
542 interpreted as a \fIregular expression\fR. The regex flavor used are \s-1POSIX\s0
543 extended regular expressions as described in \fIregex\fR\|(7). Example usage:
544 .Sp
545 .Vb 1
546 \& Host "/^db[0\-9]\e\e.example\e\e.com$/"
547 .Ve
548 .IP "\fBGroupBy\fR \fBHost\fR|\fBPlugin\fR|\fBPluginInstance\fR|\fBTypeInstance\fR" 4
549 .IX Item "GroupBy Host|Plugin|PluginInstance|TypeInstance"
550 Group valued by the specified field. The \fBGroupBy\fR option may be repeated to
551 group by multiple fields.
552 .IP "\fBSetHost\fR \fIHost\fR" 4
553 .IX Item "SetHost Host"
554 .PD 0
555 .IP "\fBSetPlugin\fR \fIPlugin\fR" 4
556 .IX Item "SetPlugin Plugin"
557 .IP "\fBSetPluginInstance\fR \fIPluginInstance\fR" 4
558 .IX Item "SetPluginInstance PluginInstance"
559 .IP "\fBSetTypeInstance\fR \fITypeInstance\fR" 4
560 .IX Item "SetTypeInstance TypeInstance"
561 .PD
562 Sets the appropriate part of the identifier to the provided string.
563 .Sp
564 The \fIPluginInstance\fR should include the placeholder \f(CW\*(C`%{aggregation}\*(C'\fR which
565 will be replaced with the aggregation function, e.g. \*(L"average\*(R". Not including
566 the placeholder will result in duplication warnings and/or messed up values if
567 more than one aggregation function are enabled.
568 .Sp
569 The following example calculates the average usage of all \*(L"even\*(R" CPUs:
570 .Sp
571 .Vb 5
572 \& <Plugin "aggregation">
573 \&   <Aggregation>
574 \&     Plugin "cpu"
575 \&     PluginInstance "/[0,2,4,6,8]$/"
576 \&     Type "cpu"
577 \&
578 \&     SetPlugin "cpu"
579 \&     SetPluginInstance "even\-%{aggregation}"
580 \&
581 \&     GroupBy "Host"
582 \&     GroupBy "TypeInstance"
583 \&
584 \&     CalculateAverage true
585 \&   </Aggregation>
586 \& </Plugin>
587 .Ve
588 .Sp
589 This will create the files:
590 .RS 4
591 .IP "\(bu" 4
592 foo.example.com/cpu\-even\-average/cpu\-idle
593 .IP "\(bu" 4
594 foo.example.com/cpu\-even\-average/cpu\-system
595 .IP "\(bu" 4
596 foo.example.com/cpu\-even\-average/cpu\-user
597 .IP "\(bu" 4
598 \&...
599 .RE
600 .RS 4
601 .RE
602 .IP "\fBCalculateNum\fR \fBtrue\fR|\fBfalse\fR" 4
603 .IX Item "CalculateNum true|false"
604 .PD 0
605 .IP "\fBCalculateSum\fR \fBtrue\fR|\fBfalse\fR" 4
606 .IX Item "CalculateSum true|false"
607 .IP "\fBCalculateAverage\fR \fBtrue\fR|\fBfalse\fR" 4
608 .IX Item "CalculateAverage true|false"
609 .IP "\fBCalculateMinimum\fR \fBtrue\fR|\fBfalse\fR" 4
610 .IX Item "CalculateMinimum true|false"
611 .IP "\fBCalculateMaximum\fR \fBtrue\fR|\fBfalse\fR" 4
612 .IX Item "CalculateMaximum true|false"
613 .IP "\fBCalculateStddev\fR \fBtrue\fR|\fBfalse\fR" 4
614 .IX Item "CalculateStddev true|false"
615 .PD
616 Boolean options for enabling calculation of the number of value lists, their
617 sum, average, minimum, maximum and\ / or standard deviation. All options
618 are disabled by default.
619 .ie n .SS "Plugin ""amqp"""
620 .el .SS "Plugin \f(CWamqp\fP"
621 .IX Subsection "Plugin amqp"
622 The \fI\s-1AMQMP\s0 plugin\fR can be used to communicate with other instances of
623 \&\fIcollectd\fR or third party applications using an \s-1AMQP\s0 message broker. Values
624 are sent to or received from the broker, which handles routing, queueing and
625 possibly filtering or messages.
626 .PP
627 .Vb 10
628 \& <Plugin "amqp">
629 \&   # Send values to an AMQP broker
630 \&   <Publish "some_name">
631 \&     Host "localhost"
632 \&     Port "5672"
633 \&     VHost "/"
634 \&     User "guest"
635 \&     Password "guest"
636 \&     Exchange "amq.fanout"
637 \& #   ExchangeType "fanout"
638 \& #   RoutingKey "collectd"
639 \& #   Persistent false
640 \& #   ConnectionRetryDelay 0
641 \& #   Format "command"
642 \& #   StoreRates false
643 \& #   GraphitePrefix "collectd."
644 \& #   GraphiteEscapeChar "_"
645 \& #   GraphiteSeparateInstances false
646 \& #   GraphiteAlwaysAppendDS false
647 \&   </Publish>
648 \&
649 \&   # Receive values from an AMQP broker
650 \&   <Subscribe "some_name">
651 \&     Host "localhost"
652 \&     Port "5672"
653 \&     VHost "/"
654 \&     User "guest"
655 \&     Password "guest"
656 \&     Exchange "amq.fanout"
657 \& #   ExchangeType "fanout"
658 \& #   Queue "queue_name"
659 \& #   QueueDurable false
660 \& #   QueueAutoDelete true
661 \& #   RoutingKey "collectd.#"
662 \& #   ConnectionRetryDelay 0
663 \&   </Subscribe>
664 \& </Plugin>
665 .Ve
666 .PP
667 The plugin's configuration consists of a number of \fIPublish\fR and \fISubscribe\fR
668 blocks, which configure sending and receiving of values respectively. The two
669 blocks are very similar, so unless otherwise noted, an option can be used in
670 either block. The name given in the blocks starting tag is only used for
671 reporting messages, but may be used to support \fIflushing\fR of certain
672 \&\fIPublish\fR blocks in the future.
673 .IP "\fBHost\fR \fIHost\fR" 4
674 .IX Item "Host Host"
675 Hostname or IP-address of the \s-1AMQP\s0 broker. Defaults to the default behavior of
676 the underlying communications library, \fIrabbitmq-c\fR, which is \*(L"localhost\*(R".
677 .IP "\fBPort\fR \fIPort\fR" 4
678 .IX Item "Port Port"
679 Service name or port number on which the \s-1AMQP\s0 broker accepts connections. This
680 argument must be a string, even if the numeric form is used. Defaults to
681 \&\*(L"5672\*(R".
682 .IP "\fBVHost\fR \fIVHost\fR" 4
683 .IX Item "VHost VHost"
684 Name of the \fIvirtual host\fR on the \s-1AMQP\s0 broker to use. Defaults to \*(L"/\*(R".
685 .IP "\fBUser\fR \fIUser\fR" 4
686 .IX Item "User User"
687 .PD 0
688 .IP "\fBPassword\fR \fIPassword\fR" 4
689 .IX Item "Password Password"
690 .PD
691 Credentials used to authenticate to the \s-1AMQP\s0 broker. By default \*(L"guest\*(R"/\*(L"guest\*(R"
692 is used.
693 .IP "\fBExchange\fR \fIExchange\fR" 4
694 .IX Item "Exchange Exchange"
695 In \fIPublish\fR blocks, this option specifies the \fIexchange\fR to send values to.
696 By default, \*(L"amq.fanout\*(R" will be used.
697 .Sp
698 In \fISubscribe\fR blocks this option is optional. If given, a \fIbinding\fR between
699 the given exchange and the \fIqueue\fR is created, using the \fIrouting key\fR if
700 configured. See the \fBQueue\fR and \fBRoutingKey\fR options below.
701 .IP "\fBExchangeType\fR \fIType\fR" 4
702 .IX Item "ExchangeType Type"
703 If given, the plugin will try to create the configured \fIexchange\fR with this
704 \&\fItype\fR after connecting. When in a \fISubscribe\fR block, the \fIqueue\fR will then
705 be bound to this exchange.
706 .IP "\fBQueue\fR \fIQueue\fR (Subscribe only)" 4
707 .IX Item "Queue Queue (Subscribe only)"
708 Configures the \fIqueue\fR name to subscribe to. If no queue name was configured
709 explicitly, a unique queue name will be created by the broker.
710 .IP "\fBQueueDurable\fR \fBtrue\fR|\fBfalse\fR (Subscribe only)" 4
711 .IX Item "QueueDurable true|false (Subscribe only)"
712 Defines if the \fIqueue\fR subscribed to is durable (saved to persistent storage)
713 or transient (will disappear if the \s-1AMQP\s0 broker is restarted). Defaults to
714 \&\*(L"false\*(R".
715 .Sp
716 This option should be used in conjunction with the \fIPersistent\fR option on the
717 publish side.
718 .IP "\fBQueueAutoDelete\fR \fBtrue\fR|\fBfalse\fR (Subscribe only)" 4
719 .IX Item "QueueAutoDelete true|false (Subscribe only)"
720 Defines if the \fIqueue\fR subscribed to will be deleted once the last consumer
721 unsubscribes. Defaults to \*(L"true\*(R".
722 .IP "\fBRoutingKey\fR \fIKey\fR" 4
723 .IX Item "RoutingKey Key"
724 In \fIPublish\fR blocks, this configures the routing key to set on all outgoing
725 messages. If not given, the routing key will be computed from the \fIidentifier\fR
726 of the value. The host, plugin, type and the two instances are concatenated
727 together using dots as the separator and all containing dots replaced with
728 slashes. For example \*(L"collectd.host/example/com.cpu.0.cpu.user\*(R". This makes it
729 possible to receive only specific values using a \*(L"topic\*(R" exchange.
730 .Sp
731 In \fISubscribe\fR blocks, configures the \fIrouting key\fR used when creating a
732 \&\fIbinding\fR between an \fIexchange\fR and the \fIqueue\fR. The usual wildcards can be
733 used to filter messages when using a \*(L"topic\*(R" exchange. If you're only
734 interested in \s-1CPU\s0 statistics, you could use the routing key \*(L"collectd.*.cpu.#\*(R"
735 for example.
736 .IP "\fBPersistent\fR \fBtrue\fR|\fBfalse\fR (Publish only)" 4
737 .IX Item "Persistent true|false (Publish only)"
738 Selects the \fIdelivery method\fR to use. If set to \fBtrue\fR, the \fIpersistent\fR
739 mode will be used, i.e. delivery is guaranteed. If set to \fBfalse\fR (the
740 default), the \fItransient\fR delivery mode will be used, i.e. messages may be
741 lost due to high load, overflowing queues or similar issues.
742 .IP "\fBConnectionRetryDelay\fR \fIDelay\fR" 4
743 .IX Item "ConnectionRetryDelay Delay"
744 When the connection to the \s-1AMQP\s0 broker is lost, defines the time in seconds to
745 wait before attempting to reconnect. Defaults to 0, which implies collectd will
746 attempt to reconnect at each read interval (in Subscribe mode) or each time
747 values are ready for submission (in Publish mode).
748 .IP "\fBFormat\fR \fBCommand\fR|\fB\s-1JSON\s0\fR|\fBGraphite\fR (Publish only)" 4
749 .IX Item "Format Command|JSON|Graphite (Publish only)"
750 Selects the format in which messages are sent to the broker. If set to
751 \&\fBCommand\fR (the default), values are sent as \f(CW\*(C`PUTVAL\*(C'\fR commands which are
752 identical to the syntax used by the \fIExec\fR and \fIUnixSock plugins\fR. In this
753 case, the \f(CW\*(C`Content\-Type\*(C'\fR header field will be set to \f(CW\*(C`text/collectd\*(C'\fR.
754 .Sp
755 If set to \fB\s-1JSON\s0\fR, the values are encoded in the \fIJavaScript Object Notation\fR,
756 an easy and straight forward exchange format. The \f(CW\*(C`Content\-Type\*(C'\fR header field
757 will be set to \f(CW\*(C`application/json\*(C'\fR.
758 .Sp
759 If set to \fBGraphite\fR, values are encoded in the \fIGraphite\fR format, which is
760 \&\*(L"<metric> <value> <timestamp>\en\*(R". The \f(CW\*(C`Content\-Type\*(C'\fR header field will be set to
761 \&\f(CW\*(C`text/graphite\*(C'\fR.
762 .Sp
763 A subscribing client \fIshould\fR use the \f(CW\*(C`Content\-Type\*(C'\fR header field to
764 determine how to decode the values. Currently, the \fI\s-1AMQP\s0 plugin\fR itself can
765 only decode the \fBCommand\fR format.
766 .IP "\fBStoreRates\fR \fBtrue\fR|\fBfalse\fR (Publish only)" 4
767 .IX Item "StoreRates true|false (Publish only)"
768 Determines whether or not \f(CW\*(C`COUNTER\*(C'\fR, \f(CW\*(C`DERIVE\*(C'\fR and \f(CW\*(C`ABSOLUTE\*(C'\fR data sources
769 are converted to a \fIrate\fR (i.e. a \f(CW\*(C`GAUGE\*(C'\fR value). If set to \fBfalse\fR (the
770 default), no conversion is performed. Otherwise the conversion is performed
771 using the internal value cache.
772 .Sp
773 Please note that currently this option is only used if the \fBFormat\fR option has
774 been set to \fB\s-1JSON\s0\fR.
775 .IP "\fBGraphitePrefix\fR (Publish and \fBFormat\fR=\fIGraphite\fR only)" 4
776 .IX Item "GraphitePrefix (Publish and Format=Graphite only)"
777 A prefix can be added in the metric name when outputting in the \fIGraphite\fR format.
778 It's added before the \fIHost\fR name.
779 Metric name will be \*(L"<prefix><host><postfix><plugin><type><name>\*(R"
780 .IP "\fBGraphitePostfix\fR (Publish and \fBFormat\fR=\fIGraphite\fR only)" 4
781 .IX Item "GraphitePostfix (Publish and Format=Graphite only)"
782 A postfix can be added in the metric name when outputting in the \fIGraphite\fR format.
783 It's added after the \fIHost\fR name.
784 Metric name will be \*(L"<prefix><host><postfix><plugin><type><name>\*(R"
785 .IP "\fBGraphiteEscapeChar\fR (Publish and \fBFormat\fR=\fIGraphite\fR only)" 4
786 .IX Item "GraphiteEscapeChar (Publish and Format=Graphite only)"
787 Specify a character to replace dots (.) in the host part of the metric name.
788 In \fIGraphite\fR metric name, dots are used as separators between different
789 metric parts (host, plugin, type).
790 Default is \*(L"_\*(R" (\fIUnderscore\fR).
791 .IP "\fBGraphiteSeparateInstances\fR \fBtrue\fR|\fBfalse\fR" 4
792 .IX Item "GraphiteSeparateInstances true|false"
793 If set to \fBtrue\fR, the plugin instance and type instance will be in their own
794 path component, for example \f(CW\*(C`host.cpu.0.cpu.idle\*(C'\fR. If set to \fBfalse\fR (the
795 default), the plugin and plugin instance (and likewise the type and type
796 instance) are put into one component, for example \f(CW\*(C`host.cpu\-0.cpu\-idle\*(C'\fR.
797 .IP "\fBGraphiteAlwaysAppendDS\fR \fBtrue\fR|\fBfalse\fR" 4
798 .IX Item "GraphiteAlwaysAppendDS true|false"
799 If set to \fBtrue\fR, append the name of the \fIData Source\fR (\s-1DS\s0) to the \*(L"metric\*(R"
800 identifier. If set to \fBfalse\fR (the default), this is only done when there is
801 more than one \s-1DS.\s0
802 .ie n .SS "Plugin ""apache"""
803 .el .SS "Plugin \f(CWapache\fP"
804 .IX Subsection "Plugin apache"
805 To configure the \f(CW\*(C`apache\*(C'\fR\-plugin you first need to configure the Apache
806 webserver correctly. The Apache-plugin \f(CW\*(C`mod_status\*(C'\fR needs to be loaded and
807 working and the \f(CW\*(C`ExtendedStatus\*(C'\fR directive needs to be \fBenabled\fR. You can use
808 the following snipped to base your Apache config upon:
809 .PP
810 .Vb 6
811 \&  ExtendedStatus on
812 \&  <IfModule mod_status.c>
813 \&    <Location /mod_status>
814 \&      SetHandler server\-status
815 \&    </Location>
816 \&  </IfModule>
817 .Ve
818 .PP
819 Since its \f(CW\*(C`mod_status\*(C'\fR module is very similar to Apache's, \fBlighttpd\fR is
820 also supported. It introduces a new field, called \f(CW\*(C`BusyServers\*(C'\fR, to count the
821 number of currently connected clients. This field is also supported.
822 .PP
823 The configuration of the \fIApache\fR plugin consists of one or more
824 \&\f(CW\*(C`<Instance\ />\*(C'\fR blocks. Each block requires one string argument
825 as the instance name. For example:
826 .PP
827 .Vb 8
828 \& <Plugin "apache">
829 \&   <Instance "www1">
830 \&     URL "http://www1.example.com/mod_status?auto"
831 \&   </Instance>
832 \&   <Instance "www2">
833 \&     URL "http://www2.example.com/mod_status?auto"
834 \&   </Instance>
835 \& </Plugin>
836 .Ve
837 .PP
838 The instance name will be used as the \fIplugin instance\fR. To emulate the old
839 (version\ 4) behavior, you can use an empty string (""). In order for the
840 plugin to work correctly, each instance name must be unique. This is not
841 enforced by the plugin and it is your responsibility to ensure it.
842 .PP
843 The following options are accepted within each \fIInstance\fR block:
844 .IP "\fB\s-1URL\s0\fR \fIhttp://host/mod_status?auto\fR" 4
845 .IX Item "URL http://host/mod_status?auto"
846 Sets the \s-1URL\s0 of the \f(CW\*(C`mod_status\*(C'\fR output. This needs to be the output generated
847 by \f(CW\*(C`ExtendedStatus on\*(C'\fR and it needs to be the machine readable output
848 generated by appending the \f(CW\*(C`?auto\*(C'\fR argument. This option is \fImandatory\fR.
849 .IP "\fBUser\fR \fIUsername\fR" 4
850 .IX Item "User Username"
851 Optional user name needed for authentication.
852 .IP "\fBPassword\fR \fIPassword\fR" 4
853 .IX Item "Password Password"
854 Optional password needed for authentication.
855 .IP "\fBVerifyPeer\fR \fBtrue|false\fR" 4
856 .IX Item "VerifyPeer true|false"
857 Enable or disable peer \s-1SSL\s0 certificate verification. See
858 <http://curl.haxx.se/docs/sslcerts.html> for details. Enabled by default.
859 .IP "\fBVerifyHost\fR \fBtrue|false\fR" 4
860 .IX Item "VerifyHost true|false"
861 Enable or disable peer host name verification. If enabled, the plugin checks
862 if the \f(CW\*(C`Common Name\*(C'\fR or a \f(CW\*(C`Subject Alternate Name\*(C'\fR field of the \s-1SSL\s0
863 certificate matches the host name provided by the \fB\s-1URL\s0\fR option. If this
864 identity check fails, the connection is aborted. Obviously, only works when
865 connecting to a \s-1SSL\s0 enabled server. Enabled by default.
866 .IP "\fBCACert\fR \fIFile\fR" 4
867 .IX Item "CACert File"
868 File that holds one or more \s-1SSL\s0 certificates. If you want to use \s-1HTTPS\s0 you will
869 possibly need this option. What \s-1CA\s0 certificates come bundled with \f(CW\*(C`libcurl\*(C'\fR
870 and are checked by default depends on the distribution you use.
871 .IP "\fBSSLCiphers\fR \fIlist of ciphers\fR" 4
872 .IX Item "SSLCiphers list of ciphers"
873 Specifies which ciphers to use in the connection. The list of ciphers
874 must specify valid ciphers. See
875 <http://www.openssl.org/docs/apps/ciphers.html> for details.
876 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
877 .IX Item "Timeout Milliseconds"
878 The \fBTimeout\fR option sets the overall timeout for \s-1HTTP\s0 requests to \fB\s-1URL\s0\fR, in
879 milliseconds. By default, the configured \fBInterval\fR is used to set the
880 timeout.
881 .ie n .SS "Plugin ""apcups"""
882 .el .SS "Plugin \f(CWapcups\fP"
883 .IX Subsection "Plugin apcups"
884 .IP "\fBHost\fR \fIHostname\fR" 4
885 .IX Item "Host Hostname"
886 Hostname of the host running \fBapcupsd\fR. Defaults to \fBlocalhost\fR. Please note
887 that IPv6 support has been disabled unless someone can confirm or decline that
888 \&\fBapcupsd\fR can handle it.
889 .IP "\fBPort\fR \fIPort\fR" 4
890 .IX Item "Port Port"
891 TCP-Port to connect to. Defaults to \fB3551\fR.
892 .IP "\fBReportSeconds\fR \fBtrue|false\fR" 4
893 .IX Item "ReportSeconds true|false"
894 If set to \fBtrue\fR, the time reported in the \f(CW\*(C`timeleft\*(C'\fR metric will be
895 converted to seconds. This is the recommended setting. If set to \fBfalse\fR, the
896 default for backwards compatibility, the time will be reported in minutes.
897 .ie n .SS "Plugin ""aquaero"""
898 .el .SS "Plugin \f(CWaquaero\fP"
899 .IX Subsection "Plugin aquaero"
900 This plugin collects the value of the available sensors in an
901 \&\fIAquaero\ 5\fR board. Aquaero\ 5 is a water-cooling controller board,
902 manufactured by Aqua Computer GmbH <http://www.aquacomputer.de/>, with a \s-1USB2\s0
903 connection for monitoring and configuration. The board can handle multiple
904 temperature sensors, fans, water pumps and water level sensors and adjust the
905 output settings such as fan voltage or power used by the water pump based on
906 the available inputs using a configurable controller included in the board.
907 This plugin collects all the available inputs as well as some of the output
908 values chosen by this controller. The plugin is based on the \fIlibaquaero5\fR
909 library provided by \fIaquatools-ng\fR.
910 .IP "\fBDevice\fR \fIDevicePath\fR" 4
911 .IX Item "Device DevicePath"
912 Device path of the Aquaero\ 5's \s-1USB HID \s0(human interface device), usually
913 in the form \f(CW\*(C`/dev/usb/hiddevX\*(C'\fR. If this option is no set the plugin will try
914 to auto-detect the Aquaero 5 \s-1USB\s0 device based on vendor-ID and product-ID.
915 .ie n .SS "Plugin ""ascent"""
916 .el .SS "Plugin \f(CWascent\fP"
917 .IX Subsection "Plugin ascent"
918 This plugin collects information about an Ascent server, a free server for the
919 \&\*(L"World of Warcraft\*(R" game. This plugin gathers the information by fetching the
920 \&\s-1XML\s0 status page using \f(CW\*(C`libcurl\*(C'\fR and parses it using \f(CW\*(C`libxml2\*(C'\fR.
921 .PP
922 The configuration options are the same as for the \f(CW\*(C`apache\*(C'\fR plugin above:
923 .IP "\fB\s-1URL\s0\fR \fIhttp://localhost/ascent/status/\fR" 4
924 .IX Item "URL http://localhost/ascent/status/"
925 Sets the \s-1URL\s0 of the \s-1XML\s0 status output.
926 .IP "\fBUser\fR \fIUsername\fR" 4
927 .IX Item "User Username"
928 Optional user name needed for authentication.
929 .IP "\fBPassword\fR \fIPassword\fR" 4
930 .IX Item "Password Password"
931 Optional password needed for authentication.
932 .IP "\fBVerifyPeer\fR \fBtrue|false\fR" 4
933 .IX Item "VerifyPeer true|false"
934 Enable or disable peer \s-1SSL\s0 certificate verification. See
935 <http://curl.haxx.se/docs/sslcerts.html> for details. Enabled by default.
936 .IP "\fBVerifyHost\fR \fBtrue|false\fR" 4
937 .IX Item "VerifyHost true|false"
938 Enable or disable peer host name verification. If enabled, the plugin checks
939 if the \f(CW\*(C`Common Name\*(C'\fR or a \f(CW\*(C`Subject Alternate Name\*(C'\fR field of the \s-1SSL\s0
940 certificate matches the host name provided by the \fB\s-1URL\s0\fR option. If this
941 identity check fails, the connection is aborted. Obviously, only works when
942 connecting to a \s-1SSL\s0 enabled server. Enabled by default.
943 .IP "\fBCACert\fR \fIFile\fR" 4
944 .IX Item "CACert File"
945 File that holds one or more \s-1SSL\s0 certificates. If you want to use \s-1HTTPS\s0 you will
946 possibly need this option. What \s-1CA\s0 certificates come bundled with \f(CW\*(C`libcurl\*(C'\fR
947 and are checked by default depends on the distribution you use.
948 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
949 .IX Item "Timeout Milliseconds"
950 The \fBTimeout\fR option sets the overall timeout for \s-1HTTP\s0 requests to \fB\s-1URL\s0\fR, in
951 milliseconds. By default, the configured \fBInterval\fR is used to set the
952 timeout.
953 .ie n .SS "Plugin ""barometer"""
954 .el .SS "Plugin \f(CWbarometer\fP"
955 .IX Subsection "Plugin barometer"
956 This plugin reads absolute air pressure using digital barometer sensor on a I2C
957 bus. Supported sensors are:
958 .IP "\fI\s-1MPL115A2\s0\fR from Freescale, see <http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPL115A>." 5
959 .IX Item "MPL115A2 from Freescale, see <http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPL115A>."
960 .PD 0
961 .IP "\fI\s-1MPL3115\s0\fR from Freescale see <http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPL3115A2>." 5
962 .IX Item "MPL3115 from Freescale see <http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MPL3115A2>."
963 .IP "\fI\s-1BMP085\s0\fR from Bosch Sensortec" 5
964 .IX Item "BMP085 from Bosch Sensortec"
965 .PD
966 .PP
967 The sensor type \- one of the above \- is detected automatically by the plugin
968 and indicated in the plugin_instance (you will see subdirectory
969 \&\*(L"barometer\-mpl115\*(R" or \*(L"barometer\-mpl3115\*(R", or \*(L"barometer\-bmp085\*(R"). The order of
970 detection is \s-1BMP085 \-\s0> \s-1MPL3115 \-\s0> \s-1MPL115A2,\s0 the first one found will be used
971 (only one sensor can be used by the plugin).
972 .PP
973 The plugin provides absolute barometric pressure, air pressure reduced to sea
974 level (several possible approximations) and as an auxiliary value also internal
975 sensor temperature. It uses (expects/provides) typical metric units \- pressure
976 in [hPa], temperature in [C], altitude in [m].
977 .PP
978 It was developed and tested under Linux only. The only platform dependency is
979 the standard Linux i2c\-dev interface (the particular bus driver has to
980 support the \s-1SM\s0 Bus command subset).
981 .PP
982 The reduction or normalization to mean sea level pressure requires (depending
983 on selected method/approximation) also altitude and reference to temperature
984 sensor(s).  When multiple temperature sensors are configured the minumum of
985 their values is always used (expecting that the warmer ones are affected by
986 e.g. direct sun light at that moment).
987 .PP
988 Synopsis:
989 .PP
990 .Vb 9
991 \&  <Plugin "barometer">
992 \&     Device            "/dev/i2c\-0";
993 \&     Oversampling      512
994 \&     PressureOffset    0.0
995 \&     TemperatureOffset 0.0
996 \&     Normalization     2
997 \&     Altitude          238.0
998 \&     TemperatureSensor "myserver/onewire\-F10FCA000800/temperature"
999 \&  </Plugin>
1000 .Ve
1001 .IP "\fBDevice\fR \fIdevice\fR" 4
1002 .IX Item "Device device"
1003 The only mandatory configuration parameter.
1004 .Sp
1005 Device name of the I2C bus to which the sensor is connected. Note that
1006 typically you need to have loaded the i2c\-dev module.
1007 Using i2c\-tools you can check/list i2c buses available on your system by:
1008 .Sp
1009 .Vb 1
1010 \&  i2cdetect \-l
1011 .Ve
1012 .Sp
1013 Then you can scan for devices on given bus. E.g. to scan the whole bus 0 use:
1014 .Sp
1015 .Vb 1
1016 \&  i2cdetect \-y \-a 0
1017 .Ve
1018 .Sp
1019 This way you should be able to verify that the pressure sensor (either type) is
1020 connected and detected on address 0x60.
1021 .IP "\fBOversampling\fR \fIvalue\fR" 4
1022 .IX Item "Oversampling value"
1023 Optional parameter controlling the oversampling/accuracy. Default value
1024 is 1 providing fastest and least accurate reading.
1025 .Sp
1026 For \fI\s-1MPL115\s0\fR this is the size of the averaging window. To filter out sensor
1027 noise a simple averaging using floating window of this configurable size is
1028 used. The plugin will use average of the last \f(CW\*(C`value\*(C'\fR measurements (value of 1
1029 means no averaging).  Minimal size is 1, maximal 1024.
1030 .Sp
1031 For \fI\s-1MPL3115\s0\fR this is the oversampling value. The actual oversampling is
1032 performed by the sensor and the higher value the higher accuracy and longer
1033 conversion time (although nothing to worry about in the collectd context).
1034 Supported values are: 1, 2, 4, 8, 16, 32, 64 and 128. Any other value is
1035 adjusted by the plugin to the closest supported one.
1036 .Sp
1037 For \fI\s-1BMP085\s0\fR this is the oversampling value. The actual oversampling is
1038 performed by the sensor and the higher value the higher accuracy and longer
1039 conversion time (although nothing to worry about in the collectd context).
1040 Supported values are: 1, 2, 4, 8. Any other value is adjusted by the plugin to
1041 the closest supported one.
1042 .IP "\fBPressureOffset\fR \fIoffset\fR" 4
1043 .IX Item "PressureOffset offset"
1044 Optional parameter for \s-1MPL3115\s0 only.
1045 .Sp
1046 You can further calibrate the sensor by supplying pressure and/or temperature
1047 offsets.  This is added to the measured/caclulated value (i.e. if the measured
1048 value is too high then use negative offset).
1049 In hPa, default is 0.0.
1050 .IP "\fBTemperatureOffset\fR \fIoffset\fR" 4
1051 .IX Item "TemperatureOffset offset"
1052 Optional parameter for \s-1MPL3115\s0 only.
1053 .Sp
1054 You can further calibrate the sensor by supplying pressure and/or temperature
1055 offsets.  This is added to the measured/caclulated value (i.e. if the measured
1056 value is too high then use negative offset).
1057 In C, default is 0.0.
1058 .IP "\fBNormalization\fR \fImethod\fR" 4
1059 .IX Item "Normalization method"
1060 Optional parameter, default value is 0.
1061 .Sp
1062 Normalization method \- what approximation/model is used to compute the mean sea
1063 level pressure from the air absolute pressure.
1064 .Sp
1065 Supported values of the \f(CW\*(C`method\*(C'\fR (integer between from 0 to 2) are:
1066 .RS 4
1067 .ie n .IP "\fB0\fR \- no conversion, absolute pressure is simply copied over. For this method you do not need to configure ""Altitude"" or ""TemperatureSensor""." 5
1068 .el .IP "\fB0\fR \- no conversion, absolute pressure is simply copied over. For this method you do not need to configure \f(CWAltitude\fR or \f(CWTemperatureSensor\fR." 5
1069 .IX Item "0 - no conversion, absolute pressure is simply copied over. For this method you do not need to configure Altitude or TemperatureSensor."
1070 .PD 0
1071 .ie n .IP "\fB1\fR \- international formula for conversion , See <http://en.wikipedia.org/wiki/Atmospheric_pressure#Altitude_atmospheric_pressure_variation>. For this method you have to configure ""Altitude"" but do not need ""TemperatureSensor"" (uses fixed global temperature average instead)." 5
1072 .el .IP "\fB1\fR \- international formula for conversion , See <http://en.wikipedia.org/wiki/Atmospheric_pressure#Altitude_atmospheric_pressure_variation>. For this method you have to configure \f(CWAltitude\fR but do not need \f(CWTemperatureSensor\fR (uses fixed global temperature average instead)." 5
1073 .IX Item "1 - international formula for conversion , See <http://en.wikipedia.org/wiki/Atmospheric_pressure#Altitude_atmospheric_pressure_variation>. For this method you have to configure Altitude but do not need TemperatureSensor (uses fixed global temperature average instead)."
1074 .ie n .IP "\fB2\fR \- formula as recommended by the Deutsche Wetterdienst (German Meteorological Service). See <http://de.wikipedia.org/wiki/Barometrische_H%C3%B6henformel#Theorie> For this method you have to configure both  ""Altitude"" and ""TemperatureSensor""." 5
1075 .el .IP "\fB2\fR \- formula as recommended by the Deutsche Wetterdienst (German Meteorological Service). See <http://de.wikipedia.org/wiki/Barometrische_H%C3%B6henformel#Theorie> For this method you have to configure both  \f(CWAltitude\fR and \f(CWTemperatureSensor\fR." 5
1076 .IX Item "2 - formula as recommended by the Deutsche Wetterdienst (German Meteorological Service). See <http://de.wikipedia.org/wiki/Barometrische_H%C3%B6henformel#Theorie> For this method you have to configure both Altitude and TemperatureSensor."
1077 .RE
1078 .RS 4
1079 .RE
1080 .IP "\fBAltitude\fR \fIaltitude\fR" 4
1081 .IX Item "Altitude altitude"
1082 .PD
1083 The altitude (in meters) of the location where you meassure the pressure.
1084 .IP "\fBTemperatureSensor\fR \fIreference\fR" 4
1085 .IX Item "TemperatureSensor reference"
1086 Temperature sensor(s) which should be used as a reference when normalizing the
1087 pressure using \f(CW\*(C`Normalization\*(C'\fR method 2.
1088 When specified more sensors a minumum is found and used each time.  The
1089 temperature reading directly from this pressure sensor/plugin is typically not
1090 suitable as the pressure sensor will be probably inside while we want outside
1091 temperature.  The collectd reference name is something like
1092 <hostname>/<plugin_name>\-<plugin_instance>/<type>\-<type_instance>
1093 (<type_instance> is usually omitted when there is just single value type). Or
1094 you can figure it out from the path of the output data files.
1095 .ie n .SS "Plugin ""battery"""
1096 .el .SS "Plugin \f(CWbattery\fP"
1097 .IX Subsection "Plugin battery"
1098 The \fIbattery plugin\fR reports the remaining capacity, power and voltage of
1099 laptop batteries.
1100 .IP "\fBValuesPercentage\fR \fBfalse\fR|\fBtrue\fR" 4
1101 .IX Item "ValuesPercentage false|true"
1102 When enabled, remaining capacity is reported as a percentage, e.g. \*(L"42%
1103 capacity remaining\*(R". Otherwise the capacity is stored as reported by the
1104 battery, most likely in \*(L"Wh\*(R". This option does not work with all input methods,
1105 in particular when only \f(CW\*(C`/proc/pmu\*(C'\fR is available on an old Linux system.
1106 Defaults to \fBfalse\fR.
1107 .IP "\fBReportDegraded\fR \fBfalse\fR|\fBtrue\fR" 4
1108 .IX Item "ReportDegraded false|true"
1109 Typical laptop batteries degrade over time, meaning the capacity decreases with
1110 recharge cycles. The maximum charge of the previous charge cycle is tracked as
1111 \&\*(L"last full capacity\*(R" and used to determine that a battery is \*(L"fully charged\*(R".
1112 .Sp
1113 When this option is set to \fBfalse\fR, the default, the \fIbattery plugin\fR will
1114 only report the remaining capacity. If the \fBValuesPercentage\fR option is
1115 enabled, the relative remaining capacity is calculated as the ratio of the
1116 \&\*(L"remaining capacity\*(R" and the \*(L"last full capacity\*(R". This is what most tools,
1117 such as the status bar of desktop environments, also do.
1118 .Sp
1119 When set to \fBtrue\fR, the battery plugin will report three values: \fBcharged\fR
1120 (remaining capacity), \fBdischarged\fR (difference between \*(L"last full capacity\*(R"
1121 and \*(L"remaining capacity\*(R") and \fBdegraded\fR (difference between \*(L"design capacity\*(R"
1122 and \*(L"last full capacity\*(R").
1123 .ie n .SS "Plugin ""bind"""
1124 .el .SS "Plugin \f(CWbind\fP"
1125 .IX Subsection "Plugin bind"
1126 Starting with \s-1BIND 9.5.0,\s0 the most widely used \s-1DNS\s0 server software provides
1127 extensive statistics about queries, responses and lots of other information.
1128 The bind plugin retrieves this information that's encoded in \s-1XML\s0 and provided
1129 via \s-1HTTP\s0 and submits the values to collectd.
1130 .PP
1131 To use this plugin, you first need to tell \s-1BIND\s0 to make this information
1132 available. This is done with the \f(CW\*(C`statistics\-channels\*(C'\fR configuration option:
1133 .PP
1134 .Vb 3
1135 \& statistics\-channels {
1136 \&   inet localhost port 8053;
1137 \& };
1138 .Ve
1139 .PP
1140 The configuration follows the grouping that can be seen when looking at the
1141 data with an \s-1XSLT\s0 compatible viewer, such as a modern web browser. It's
1142 probably a good idea to make yourself familiar with the provided values, so you
1143 can understand what the collected statistics actually mean.
1144 .PP
1145 Synopsis:
1146 .PP
1147 .Vb 5
1148 \& <Plugin "bind">
1149 \&   URL "http://localhost:8053/"
1150 \&   ParseTime       false
1151 \&   OpCodes         true
1152 \&   QTypes          true
1153 \&
1154 \&   ServerStats     true
1155 \&   ZoneMaintStats  true
1156 \&   ResolverStats   false
1157 \&   MemoryStats     true
1158 \&
1159 \&   <View "_default">
1160 \&     QTypes        true
1161 \&     ResolverStats true
1162 \&     CacheRRSets   true
1163 \&
1164 \&     Zone "127.in\-addr.arpa/IN"
1165 \&   </View>
1166 \& </Plugin>
1167 .Ve
1168 .PP
1169 The bind plugin accepts the following configuration options:
1170 .IP "\fB\s-1URL\s0\fR \fI\s-1URL\s0\fR" 4
1171 .IX Item "URL URL"
1172 \&\s-1URL\s0 from which to retrieve the \s-1XML\s0 data. If not specified,
1173 \&\f(CW\*(C`http://localhost:8053/\*(C'\fR will be used.
1174 .IP "\fBParseTime\fR \fBtrue\fR|\fBfalse\fR" 4
1175 .IX Item "ParseTime true|false"
1176 When set to \fBtrue\fR, the time provided by \s-1BIND\s0 will be parsed and used to
1177 dispatch the values. When set to \fBfalse\fR, the local time source is queried.
1178 .Sp
1179 This setting is set to \fBtrue\fR by default for backwards compatibility; setting
1180 this to \fBfalse\fR is \fIrecommended\fR to avoid problems with timezones and
1181 localization.
1182 .IP "\fBOpCodes\fR \fBtrue\fR|\fBfalse\fR" 4
1183 .IX Item "OpCodes true|false"
1184 When enabled, statistics about the \fI\*(L"OpCodes\*(R"\fR, for example the number of
1185 \&\f(CW\*(C`QUERY\*(C'\fR packets, are collected.
1186 .Sp
1187 Default: Enabled.
1188 .IP "\fBQTypes\fR \fBtrue\fR|\fBfalse\fR" 4
1189 .IX Item "QTypes true|false"
1190 When enabled, the number of \fIincoming\fR queries by query types (for example
1191 \&\f(CW\*(C`A\*(C'\fR, \f(CW\*(C`MX\*(C'\fR, \f(CW\*(C`AAAA\*(C'\fR) is collected.
1192 .Sp
1193 Default: Enabled.
1194 .IP "\fBServerStats\fR \fBtrue\fR|\fBfalse\fR" 4
1195 .IX Item "ServerStats true|false"
1196 Collect global server statistics, such as requests received over IPv4 and IPv6,
1197 successful queries, and failed updates.
1198 .Sp
1199 Default: Enabled.
1200 .IP "\fBZoneMaintStats\fR \fBtrue\fR|\fBfalse\fR" 4
1201 .IX Item "ZoneMaintStats true|false"
1202 Collect zone maintenance statistics, mostly information about notifications
1203 (zone updates) and zone transfers.
1204 .Sp
1205 Default: Enabled.
1206 .IP "\fBResolverStats\fR \fBtrue\fR|\fBfalse\fR" 4
1207 .IX Item "ResolverStats true|false"
1208 Collect resolver statistics, i.\ e. statistics about outgoing requests
1209 (e.\ g. queries over IPv4, lame servers). Since the global resolver
1210 counters apparently were removed in \s-1BIND 9.5.1\s0 and 9.6.0, this is disabled by
1211 default. Use the \fBResolverStats\fR option within a \fBView \*(L"_default\*(R"\fR block
1212 instead for the same functionality.
1213 .Sp
1214 Default: Disabled.
1215 .IP "\fBMemoryStats\fR" 4
1216 .IX Item "MemoryStats"
1217 Collect global memory statistics.
1218 .Sp
1219 Default: Enabled.
1220 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
1221 .IX Item "Timeout Milliseconds"
1222 The \fBTimeout\fR option sets the overall timeout for \s-1HTTP\s0 requests to \fB\s-1URL\s0\fR, in
1223 milliseconds. By default, the configured \fBInterval\fR is used to set the
1224 timeout.
1225 .IP "\fBView\fR \fIName\fR" 4
1226 .IX Item "View Name"
1227 Collect statistics about a specific \fI\*(L"view\*(R"\fR. \s-1BIND\s0 can behave different,
1228 mostly depending on the source IP-address of the request. These different
1229 configurations are called \*(L"views\*(R". If you don't use this feature, you most
1230 likely are only interested in the \f(CW\*(C`_default\*(C'\fR view.
1231 .Sp
1232 Within a <\fBView\fR\ \fIname\fR> block, you can specify which
1233 information you want to collect about a view. If no \fBView\fR block is
1234 configured, no detailed view statistics will be collected.
1235 .RS 4
1236 .IP "\fBQTypes\fR \fBtrue\fR|\fBfalse\fR" 4
1237 .IX Item "QTypes true|false"
1238 If enabled, the number of \fIoutgoing\fR queries by query type (e.\ g. \f(CW\*(C`A\*(C'\fR,
1239 \&\f(CW\*(C`MX\*(C'\fR) is collected.
1240 .Sp
1241 Default: Enabled.
1242 .IP "\fBResolverStats\fR \fBtrue\fR|\fBfalse\fR" 4
1243 .IX Item "ResolverStats true|false"
1244 Collect resolver statistics, i.\ e. statistics about outgoing requests
1245 (e.\ g. queries over IPv4, lame servers).
1246 .Sp
1247 Default: Enabled.
1248 .IP "\fBCacheRRSets\fR \fBtrue\fR|\fBfalse\fR" 4
1249 .IX Item "CacheRRSets true|false"
1250 If enabled, the number of entries (\fI\*(L"\s-1RR\s0 sets\*(R"\fR) in the view's cache by query
1251 type is collected. Negative entries (queries which resulted in an error, for
1252 example names that do not exist) are reported with a leading exclamation mark,
1253 e.\ g. \*(L"!A\*(R".
1254 .Sp
1255 Default: Enabled.
1256 .IP "\fBZone\fR \fIName\fR" 4
1257 .IX Item "Zone Name"
1258 When given, collect detailed information about the given zone in the view. The
1259 information collected if very similar to the global \fBServerStats\fR information
1260 (see above).
1261 .Sp
1262 You can repeat this option to collect detailed information about multiple
1263 zones.
1264 .Sp
1265 By default no detailed zone information is collected.
1266 .RE
1267 .RS 4
1268 .RE
1269 .ie n .SS "Plugin ""ceph"""
1270 .el .SS "Plugin \f(CWceph\fP"
1271 .IX Subsection "Plugin ceph"
1272 The ceph plugin collects values from \s-1JSON\s0 data to be parsed by \fBlibyajl\fR
1273 (<https://lloyd.github.io/yajl/>) retrieved from ceph daemon admin sockets.
1274 .PP
1275 A separate \fBDaemon\fR block must be configured for each ceph daemon to be
1276 monitored. The following example will read daemon statistics from four
1277 separate ceph daemons running on the same device (two OSDs, one \s-1MON,\s0 one \s-1MDS\s0) :
1278 .PP
1279 .Vb 10
1280 \&  <Plugin ceph>
1281 \&    LongRunAvgLatency false
1282 \&    ConvertSpecialMetricTypes true
1283 \&    <Daemon "osd.0">
1284 \&      SocketPath "/var/run/ceph/ceph\-osd.0.asok"
1285 \&    </Daemon>
1286 \&    <Daemon "osd.1">
1287 \&      SocketPath "/var/run/ceph/ceph\-osd.1.asok"
1288 \&    </Daemon>
1289 \&    <Daemon "mon.a">
1290 \&      SocketPath "/var/run/ceph/ceph\-mon.ceph1.asok"
1291 \&    </Daemon>
1292 \&    <Daemon "mds.a">
1293 \&      SocketPath "/var/run/ceph/ceph\-mds.ceph1.asok"
1294 \&    </Daemon>
1295 \&  </Plugin>
1296 .Ve
1297 .PP
1298 The ceph plugin accepts the following configuration options:
1299 .IP "\fBLongRunAvgLatency\fR \fBtrue\fR|\fBfalse\fR" 4
1300 .IX Item "LongRunAvgLatency true|false"
1301 If enabled, latency values(sum,count pairs) are calculated as the long run
1302 average \- average since the ceph daemon was started = (sum / count).
1303 When disabled, latency values are calculated as the average since the last
1304 collection = (sum_now \- sum_last) / (count_now \- count_last).
1305 .Sp
1306 Default: Disabled
1307 .IP "\fBConvertSpecialMetricTypes\fR \fBtrue\fR|\fBfalse\fR" 4
1308 .IX Item "ConvertSpecialMetricTypes true|false"
1309 If enabled, special metrics (metrics that differ in type from similar counters)
1310 are converted to the type of those similar counters. This currently only
1311 applies to filestore.journal_wr_bytes which is a counter for \s-1OSD\s0 daemons. The
1312 ceph schema reports this metric type as a sum,count pair while similar counters
1313 are treated as derive types. When converted, the sum is used as the counter
1314 value and is treated as a derive type.
1315 When disabled, all metrics are treated as the types received from the ceph schema.
1316 .Sp
1317 Default: Enabled
1318 .PP
1319 Each \fBDaemon\fR block must have a string argument for the plugin instance name.
1320 A \fBSocketPath\fR is also required for each \fBDaemon\fR block:
1321 .IP "\fBDaemon\fR \fIDaemonName\fR" 4
1322 .IX Item "Daemon DaemonName"
1323 Name to be used as the instance name for this daemon.
1324 .IP "\fBSocketPath\fR \fISocketPath\fR" 4
1325 .IX Item "SocketPath SocketPath"
1326 Specifies the path to the \s-1UNIX\s0 admin socket of the ceph daemon.
1327 .ie n .SS "Plugin ""cgroups"""
1328 .el .SS "Plugin \f(CWcgroups\fP"
1329 .IX Subsection "Plugin cgroups"
1330 This plugin collects the \s-1CPU\s0 user/system time for each \fIcgroup\fR by reading the
1331 \&\fIcpuacct.stat\fR files in the first cpuacct-mountpoint (typically
1332 \&\fI/sys/fs/cgroup/cpu.cpuacct\fR on machines using systemd).
1333 .IP "\fBCGroup\fR \fIDirectory\fR" 4
1334 .IX Item "CGroup Directory"
1335 Select \fIcgroup\fR based on the name. Whether only matching \fIcgroups\fR are
1336 collected or if they are ignored is controlled by the \fBIgnoreSelected\fR option;
1337 see below.
1338 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
1339 .IX Item "IgnoreSelected true|false"
1340 Invert the selection: If set to true, all cgroups \fIexcept\fR the ones that
1341 match any one of the criteria are collected. By default only selected
1342 cgroups are collected if a selection is made. If no selection is configured
1343 at all, \fBall\fR cgroups are selected.
1344 .ie n .SS "Plugin ""conntrack"""
1345 .el .SS "Plugin \f(CWconntrack\fP"
1346 .IX Subsection "Plugin conntrack"
1347 This plugin collects \s-1IP\s0 conntrack statistics.
1348 .IP "\fBOldFiles\fR" 4
1349 .IX Item "OldFiles"
1350 Assume the \fBconntrack_count\fR and \fBconntrack_max\fR files to be found in
1351 \&\fI/proc/sys/net/ipv4/netfilter\fR instead of \fI/proc/sys/net/netfilter/\fR.
1352 .ie n .SS "Plugin ""cpu"""
1353 .el .SS "Plugin \f(CWcpu\fP"
1354 .IX Subsection "Plugin cpu"
1355 The \fI\s-1CPU\s0 plugin\fR collects \s-1CPU\s0 usage metrics. By default, \s-1CPU\s0 usage is reported
1356 as Jiffies, using the \f(CW\*(C`cpu\*(C'\fR type. Two aggregations are available:
1357 .IP "\(bu" 4
1358 Sum, per-state, over all CPUs installed in the system; and
1359 .IP "\(bu" 4
1360 Sum, per-CPU, over all non-idle states of a \s-1CPU,\s0 creating an \*(L"active\*(R" state.
1361 .PP
1362 The two aggregations can be combined, leading to \fIcollectd\fR only emitting a
1363 single \*(L"active\*(R" metric for the entire system. As soon as one of these
1364 aggregations (or both) is enabled, the \fIcpu plugin\fR will report a percentage,
1365 rather than Jiffies. In addition, you can request individual, per-state,
1366 per-CPU metrics to be reported as percentage.
1367 .PP
1368 The following configuration options are available:
1369 .IP "\fBReportByState\fR \fBtrue\fR|\fBfalse\fR" 4
1370 .IX Item "ReportByState true|false"
1371 When set to \fBtrue\fR, the default, reports per-state metrics, e.g. \*(L"system\*(R",
1372 \&\*(L"user\*(R" and \*(L"idle\*(R".
1373 When set to \fBfalse\fR, aggregates (sums) all \fInon-idle\fR states into one
1374 \&\*(L"active\*(R" metric.
1375 .IP "\fBReportByCpu\fR \fBtrue\fR|\fBfalse\fR" 4
1376 .IX Item "ReportByCpu true|false"
1377 When set to \fBtrue\fR, the default, reports per-CPU (per-core) metrics.
1378 When set to \fBfalse\fR, instead of reporting metrics for individual CPUs, only a
1379 global sum of \s-1CPU\s0 states is emitted.
1380 .IP "\fBValuesPercentage\fR \fBfalse\fR|\fBtrue\fR" 4
1381 .IX Item "ValuesPercentage false|true"
1382 This option is only considered when both, \fBReportByCpu\fR and \fBReportByState\fR
1383 are set to \fBtrue\fR. In this case, by default, metrics will be reported as
1384 Jiffies. By setting this option to \fBtrue\fR, you can request percentage values
1385 in the un-aggregated (per-CPU, per-state) mode as well.
1386 .ie n .SS "Plugin ""cpufreq"""
1387 .el .SS "Plugin \f(CWcpufreq\fP"
1388 .IX Subsection "Plugin cpufreq"
1389 This plugin doesn't have any options. It reads
1390 \&\fI/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq\fR (for the first \s-1CPU\s0
1391 installed) to get the current \s-1CPU\s0 frequency. If this file does not exist make
1392 sure \fBcpufreqd\fR (<http://cpufreqd.sourceforge.net/>) or a similar tool is
1393 installed and an \*(L"cpu governor\*(R" (that's a kernel module) is loaded.
1394 .ie n .SS "Plugin ""csv"""
1395 .el .SS "Plugin \f(CWcsv\fP"
1396 .IX Subsection "Plugin csv"
1397 .IP "\fBDataDir\fR \fIDirectory\fR" 4
1398 .IX Item "DataDir Directory"
1399 Set the directory to store CSV-files under. Per default CSV-files are generated
1400 beneath the daemon's working directory, i.\ e. the \fBBaseDir\fR.
1401 The special strings \fBstdout\fR and \fBstderr\fR can be used to write to the standard
1402 output and standard error channels, respectively. This, of course, only makes
1403 much sense when collectd is running in foreground\- or non-daemon-mode.
1404 .IP "\fBStoreRates\fR \fBtrue|false\fR" 4
1405 .IX Item "StoreRates true|false"
1406 If set to \fBtrue\fR, convert counter values to rates. If set to \fBfalse\fR (the
1407 default) counter values are stored as is, i.\ e. as an increasing integer
1408 number.
1409 .ie n .SS "Plugin ""curl"""
1410 .el .SS "Plugin \f(CWcurl\fP"
1411 .IX Subsection "Plugin curl"
1412 The curl plugin uses the \fBlibcurl\fR (<http://curl.haxx.se/>) to read web pages
1413 and the match infrastructure (the same code used by the tail plugin) to use
1414 regular expressions with the received data.
1415 .PP
1416 The following example will read the current value of \s-1AMD\s0 stock from Google's
1417 finance page and dispatch the value to collectd.
1418 .PP
1419 .Vb 11
1420 \&  <Plugin curl>
1421 \&    <Page "stock_quotes">
1422 \&      URL "http://finance.google.com/finance?q=NYSE%3AAMD"
1423 \&      User "foo"
1424 \&      Password "bar"
1425 \&      Digest false
1426 \&      VerifyPeer true
1427 \&      VerifyHost true
1428 \&      CACert "/path/to/ca.crt"
1429 \&      Header "X\-Custom\-Header: foobar"
1430 \&      Post "foo=bar"
1431 \&
1432 \&      MeasureResponseTime false
1433 \&      MeasureResponseCode false
1434 \&
1435 \&      <Match>
1436 \&        Regex "<span +class=\e"pr\e"[^>]*> *([0\-9]*\e\e.[0\-9]+) *</span>"
1437 \&        DSType "GaugeAverage"
1438 \&        # Note: \`stock_value\*(Aq is not a standard type.
1439 \&        Type "stock_value"
1440 \&        Instance "AMD"
1441 \&      </Match>
1442 \&    </Page>
1443 \&  </Plugin>
1444 .Ve
1445 .PP
1446 In the \fBPlugin\fR block, there may be one or more \fBPage\fR blocks, each defining
1447 a web page and one or more \*(L"matches\*(R" to be performed on the returned data. The
1448 string argument to the \fBPage\fR block is used as plugin instance.
1449 .PP
1450 The following options are valid within \fBPage\fR blocks:
1451 .IP "\fB\s-1URL\s0\fR \fI\s-1URL\s0\fR" 4
1452 .IX Item "URL URL"
1453 \&\s-1URL\s0 of the web site to retrieve. Since a regular expression will be used to
1454 extract information from this data, non-binary data is a big plus here ;)
1455 .IP "\fBUser\fR \fIName\fR" 4
1456 .IX Item "User Name"
1457 Username to use if authorization is required to read the page.
1458 .IP "\fBPassword\fR \fIPassword\fR" 4
1459 .IX Item "Password Password"
1460 Password to use if authorization is required to read the page.
1461 .IP "\fBDigest\fR \fBtrue\fR|\fBfalse\fR" 4
1462 .IX Item "Digest true|false"
1463 Enable \s-1HTTP\s0 digest authentication.
1464 .IP "\fBVerifyPeer\fR \fBtrue\fR|\fBfalse\fR" 4
1465 .IX Item "VerifyPeer true|false"
1466 Enable or disable peer \s-1SSL\s0 certificate verification. See
1467 <http://curl.haxx.se/docs/sslcerts.html> for details. Enabled by default.
1468 .IP "\fBVerifyHost\fR \fBtrue\fR|\fBfalse\fR" 4
1469 .IX Item "VerifyHost true|false"
1470 Enable or disable peer host name verification. If enabled, the plugin checks if
1471 the \f(CW\*(C`Common Name\*(C'\fR or a \f(CW\*(C`Subject Alternate Name\*(C'\fR field of the \s-1SSL\s0 certificate
1472 matches the host name provided by the \fB\s-1URL\s0\fR option. If this identity check
1473 fails, the connection is aborted. Obviously, only works when connecting to a
1474 \&\s-1SSL\s0 enabled server. Enabled by default.
1475 .IP "\fBCACert\fR \fIfile\fR" 4
1476 .IX Item "CACert file"
1477 File that holds one or more \s-1SSL\s0 certificates. If you want to use \s-1HTTPS\s0 you will
1478 possibly need this option. What \s-1CA\s0 certificates come bundled with \f(CW\*(C`libcurl\*(C'\fR
1479 and are checked by default depends on the distribution you use.
1480 .IP "\fBHeader\fR \fIHeader\fR" 4
1481 .IX Item "Header Header"
1482 A \s-1HTTP\s0 header to add to the request. Multiple headers are added if this option
1483 is specified more than once.
1484 .IP "\fBPost\fR \fIBody\fR" 4
1485 .IX Item "Post Body"
1486 Specifies that the \s-1HTTP\s0 operation should be a \s-1POST\s0 instead of a \s-1GET.\s0 The
1487 complete data to be posted is given as the argument.  This option will usually
1488 need to be accompanied by a \fBHeader\fR option to set an appropriate
1489 \&\f(CW\*(C`Content\-Type\*(C'\fR for the post body (e.g. to
1490 \&\f(CW\*(C`application/x\-www\-form\-urlencoded\*(C'\fR).
1491 .IP "\fBMeasureResponseTime\fR \fBtrue\fR|\fBfalse\fR" 4
1492 .IX Item "MeasureResponseTime true|false"
1493 Measure response time for the request. If this setting is enabled, \fBMatch\fR
1494 blocks (see below) are optional. Disabled by default.
1495 .Sp
1496 Beware that requests will get aborted if they take too long to complete. Adjust
1497 \&\fBTimeout\fR accordingly if you expect \fBMeasureResponseTime\fR to report such slow
1498 requests.
1499 .IP "\fBMeasureResponseCode\fR \fBtrue\fR|\fBfalse\fR" 4
1500 .IX Item "MeasureResponseCode true|false"
1501 Measure response code for the request. If this setting is enabled, \fBMatch\fR
1502 blocks (see below) are optional. Disabled by default.
1503 .IP "\fB<Match>\fR" 4
1504 .IX Item "<Match>"
1505 One or more \fBMatch\fR blocks that define how to match information in the data
1506 returned by \f(CW\*(C`libcurl\*(C'\fR. The \f(CW\*(C`curl\*(C'\fR plugin uses the same infrastructure that's
1507 used by the \f(CW\*(C`tail\*(C'\fR plugin, so please see the documentation of the \f(CW\*(C`tail\*(C'\fR
1508 plugin below on how matches are defined. If the \fBMeasureResponseTime\fR or
1509 \&\fBMeasureResponseCode\fR options are set to \fBtrue\fR, \fBMatch\fR blocks are
1510 optional.
1511 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
1512 .IX Item "Timeout Milliseconds"
1513 The \fBTimeout\fR option sets the overall timeout for \s-1HTTP\s0 requests to \fB\s-1URL\s0\fR, in
1514 milliseconds. By default, the configured \fBInterval\fR is used to set the
1515 timeout. Prior to version 5.5.0, there was no timeout and requests could hang
1516 indefinitely. This legacy behaviour can be achieved by setting the value of
1517 \&\fBTimeout\fR to 0.
1518 .Sp
1519 If \fBTimeout\fR is 0 or bigger than the \fBInterval\fR, keep in mind that each slow
1520 network connection will stall one read thread. Adjust the \fBReadThreads\fR global
1521 setting accordingly to prevent this from blocking other plugins.
1522 .ie n .SS "Plugin ""curl_json"""
1523 .el .SS "Plugin \f(CWcurl_json\fP"
1524 .IX Subsection "Plugin curl_json"
1525 The \fBcurl_json plugin\fR collects values from \s-1JSON\s0 data to be parsed by
1526 \&\fBlibyajl\fR (<http://www.lloydforge.org/projects/yajl/>) retrieved via
1527 either \fBlibcurl\fR (<http://curl.haxx.se/>) or read directly from a
1528 unix socket. The former can be used, for example, to collect values
1529 from CouchDB documents (which are stored \s-1JSON\s0 notation), and the
1530 latter to collect values from a uWSGI stats socket.
1531 .PP
1532 The following example will collect several values from the built-in
1533 \&\f(CW\*(C`_stats\*(C'\fR runtime statistics module of \fICouchDB\fR
1534 (<http://wiki.apache.org/couchdb/Runtime_Statistics>).
1535 .PP
1536 .Vb 6
1537 \&  <Plugin curl_json>
1538 \&    <URL "http://localhost:5984/_stats">
1539 \&      Instance "httpd"
1540 \&      <Key "httpd/requests/count">
1541 \&        Type "http_requests"
1542 \&      </Key>
1543 \&
1544 \&      <Key "httpd_request_methods/*/count">
1545 \&        Type "http_request_methods"
1546 \&      </Key>
1547 \&
1548 \&      <Key "httpd_status_codes/*/count">
1549 \&        Type "http_response_codes"
1550 \&      </Key>
1551 \&    </URL>
1552 \&  </Plugin>
1553 .Ve
1554 .PP
1555 This example will collect data directly from a \fIuWSGI\fR \*(L"Stats Server\*(R" socket.
1556 .PP
1557 .Vb 6
1558 \&  <Plugin curl_json>
1559 \&    <Sock "/var/run/uwsgi.stats.sock">
1560 \&      Instance "uwsgi"
1561 \&      <Key "workers/*/requests">
1562 \&        Type "http_requests"
1563 \&      </Key>
1564 \&
1565 \&      <Key "workers/*/apps/*/requests">
1566 \&        Type "http_requests"
1567 \&      </Key>
1568 \&    </Sock>
1569 \&  </Plugin>
1570 .Ve
1571 .PP
1572 In the \fBPlugin\fR block, there may be one or more \fB\s-1URL\s0\fR blocks, each
1573 defining a \s-1URL\s0 to be fetched via \s-1HTTP \s0(using libcurl) or \fBSock\fR
1574 blocks defining a unix socket to read \s-1JSON\s0 from directly.  Each of
1575 these blocks may have one or more \fBKey\fR blocks.
1576 .PP
1577 The \fBKey\fR string argument must be in a path format. Each component is
1578 used to match the key from a \s-1JSON\s0 map or the index of an \s-1JSON\s0
1579 array. If a path component of a \fBKey\fR is a \fI*\fR\ wildcard, the
1580 values for all map keys or array indices will be collectd.
1581 .PP
1582 The following options are valid within \fB\s-1URL\s0\fR blocks:
1583 .IP "\fBInstance\fR \fIInstance\fR" 4
1584 .IX Item "Instance Instance"
1585 Sets the plugin instance to \fIInstance\fR.
1586 .IP "\fBInterval\fR \fIInterval\fR" 4
1587 .IX Item "Interval Interval"
1588 Sets the interval (in seconds) in which the values will be collected from this
1589 \&\s-1URL.\s0 By default the global \fBInterval\fR setting will be used.
1590 .IP "\fBUser\fR \fIName\fR" 4
1591 .IX Item "User Name"
1592 .PD 0
1593 .IP "\fBPassword\fR \fIPassword\fR" 4
1594 .IX Item "Password Password"
1595 .IP "\fBDigest\fR \fBtrue\fR|\fBfalse\fR" 4
1596 .IX Item "Digest true|false"
1597 .IP "\fBVerifyPeer\fR \fBtrue\fR|\fBfalse\fR" 4
1598 .IX Item "VerifyPeer true|false"
1599 .IP "\fBVerifyHost\fR \fBtrue\fR|\fBfalse\fR" 4
1600 .IX Item "VerifyHost true|false"
1601 .IP "\fBCACert\fR \fIfile\fR" 4
1602 .IX Item "CACert file"
1603 .IP "\fBHeader\fR \fIHeader\fR" 4
1604 .IX Item "Header Header"
1605 .IP "\fBPost\fR \fIBody\fR" 4
1606 .IX Item "Post Body"
1607 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
1608 .IX Item "Timeout Milliseconds"
1609 .PD
1610 These options behave exactly equivalent to the appropriate options of the
1611 \&\fIcURL\fR plugin. Please see there for a detailed description.
1612 .PP
1613 The following options are valid within \fBKey\fR blocks:
1614 .IP "\fBType\fR \fIType\fR" 4
1615 .IX Item "Type Type"
1616 Sets the type used to dispatch the values to the daemon. Detailed information
1617 about types and their configuration can be found in \fItypes.db\fR\|(5). This
1618 option is mandatory.
1619 .IP "\fBInstance\fR \fIInstance\fR" 4
1620 .IX Item "Instance Instance"
1621 Type-instance to use. Defaults to the current map key or current string array element value.
1622 .ie n .SS "Plugin ""curl_xml"""
1623 .el .SS "Plugin \f(CWcurl_xml\fP"
1624 .IX Subsection "Plugin curl_xml"
1625 The \fBcurl_xml plugin\fR uses \fBlibcurl\fR (<http://curl.haxx.se/>) and \fBlibxml2\fR
1626 (<http://xmlsoft.org/>) to retrieve \s-1XML\s0 data via cURL.
1627 .PP
1628 .Vb 11
1629 \& <Plugin "curl_xml">
1630 \&   <URL "http://localhost/stats.xml">
1631 \&     Host "my_host"
1632 \&     Instance "some_instance"
1633 \&     User "collectd"
1634 \&     Password "thaiNg0I"
1635 \&     VerifyPeer true
1636 \&     VerifyHost true
1637 \&     CACert "/path/to/ca.crt"
1638 \&     Header "X\-Custom\-Header: foobar"
1639 \&     Post "foo=bar"
1640 \&
1641 \&     <XPath "table[@id=\e"magic_level\e"]/tr">
1642 \&       Type "magic_level"
1643 \&       #InstancePrefix "prefix\-"
1644 \&       InstanceFrom "td[1]"
1645 \&       ValuesFrom "td[2]/span[@class=\e"level\e"]"
1646 \&     </XPath>
1647 \&   </URL>
1648 \& </Plugin>
1649 .Ve
1650 .PP
1651 In the \fBPlugin\fR block, there may be one or more \fB\s-1URL\s0\fR blocks, each defining a
1652 \&\s-1URL\s0 to be fetched using libcurl. Within each \fB\s-1URL\s0\fR block there are
1653 options which specify the connection parameters, for example authentication
1654 information, and one or more \fBXPath\fR blocks.
1655 .PP
1656 Each \fBXPath\fR block specifies how to get one type of information. The
1657 string argument must be a valid XPath expression which returns a list
1658 of \*(L"base elements\*(R". One value is dispatched for each \*(L"base element\*(R". The
1659 \&\fItype instance\fR and values are looked up using further \fIXPath\fR expressions
1660 that should be relative to the base element.
1661 .PP
1662 Within the \fB\s-1URL\s0\fR block the following options are accepted:
1663 .IP "\fBHost\fR \fIName\fR" 4
1664 .IX Item "Host Name"
1665 Use \fIName\fR as the host name when submitting values. Defaults to the global
1666 host name setting.
1667 .IP "\fBInstance\fR \fIInstance\fR" 4
1668 .IX Item "Instance Instance"
1669 Use \fIInstance\fR as the plugin instance when submitting values. Defaults to an
1670 empty string (no plugin instance).
1671 .IP "\fBNamespace\fR \fIPrefix\fR \fI\s-1URL\s0\fR" 4
1672 .IX Item "Namespace Prefix URL"
1673 If an XPath expression references namespaces, they must be specified
1674 with this option. \fIPrefix\fR is the \*(L"namespace prefix\*(R" used in the \s-1XML\s0 document.
1675 \&\fI\s-1URL\s0\fR is the \*(L"namespace name\*(R", an \s-1URI\s0 reference uniquely identifying the
1676 namespace. The option can be repeated to register multiple namespaces.
1677 .Sp
1678 Examples:
1679 .Sp
1680 .Vb 2
1681 \&  Namespace "s" "http://schemas.xmlsoap.org/soap/envelope/"
1682 \&  Namespace "m" "http://www.w3.org/1998/Math/MathML"
1683 .Ve
1684 .IP "\fBUser\fR \fIUser\fR" 4
1685 .IX Item "User User"
1686 .PD 0
1687 .IP "\fBPassword\fR \fIPassword\fR" 4
1688 .IX Item "Password Password"
1689 .IP "\fBDigest\fR \fBtrue\fR|\fBfalse\fR" 4
1690 .IX Item "Digest true|false"
1691 .IP "\fBVerifyPeer\fR \fBtrue\fR|\fBfalse\fR" 4
1692 .IX Item "VerifyPeer true|false"
1693 .IP "\fBVerifyHost\fR \fBtrue\fR|\fBfalse\fR" 4
1694 .IX Item "VerifyHost true|false"
1695 .IP "\fBCACert\fR \fI\s-1CA\s0 Cert File\fR" 4
1696 .IX Item "CACert CA Cert File"
1697 .IP "\fBHeader\fR \fIHeader\fR" 4
1698 .IX Item "Header Header"
1699 .IP "\fBPost\fR \fIBody\fR" 4
1700 .IX Item "Post Body"
1701 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
1702 .IX Item "Timeout Milliseconds"
1703 .PD
1704 These options behave exactly equivalent to the appropriate options of the
1705 \&\fIcURL plugin\fR. Please see there for a detailed description.
1706 .IP "<\fBXPath\fR \fIXPath-expression\fR>" 4
1707 .IX Item "<XPath XPath-expression>"
1708 Within each \fB\s-1URL\s0\fR block, there must be one or more \fBXPath\fR blocks. Each
1709 \&\fBXPath\fR block specifies how to get one type of information. The string
1710 argument must be a valid XPath expression which returns a list of \*(L"base
1711 elements\*(R". One value is dispatched for each \*(L"base element\*(R".
1712 .Sp
1713 Within the \fBXPath\fR block the following options are accepted:
1714 .RS 4
1715 .IP "\fBType\fR \fIType\fR" 4
1716 .IX Item "Type Type"
1717 Specifies the \fIType\fR used for submitting patches. This determines the number
1718 of values that are required / expected and whether the strings are parsed as
1719 signed or unsigned integer or as double values. See \fItypes.db\fR\|(5) for details.
1720 This option is required.
1721 .IP "\fBInstancePrefix\fR \fIInstancePrefix\fR" 4
1722 .IX Item "InstancePrefix InstancePrefix"
1723 Prefix the \fItype instance\fR with \fIInstancePrefix\fR. The values are simply
1724 concatenated together without any separator.
1725 This option is optional.
1726 .IP "\fBInstanceFrom\fR \fIInstanceFrom\fR" 4
1727 .IX Item "InstanceFrom InstanceFrom"
1728 Specifies a XPath expression to use for determining the \fItype instance\fR. The
1729 XPath expression must return exactly one element. The element's value is then
1730 used as \fItype instance\fR, possibly prefixed with \fIInstancePrefix\fR (see above).
1731 .Sp
1732 This value is required. As a special exception, if the \*(L"base XPath expression\*(R"
1733 (the argument to the \fBXPath\fR block) returns exactly one argument, then this
1734 option may be omitted.
1735 .IP "\fBValuesFrom\fR \fIValuesFrom\fR [\fIValuesFrom\fR ...]" 4
1736 .IX Item "ValuesFrom ValuesFrom [ValuesFrom ...]"
1737 Specifies one or more XPath expression to use for reading the values. The
1738 number of XPath expressions must match the number of data sources in the
1739 \&\fItype\fR specified with \fBType\fR (see above). Each XPath expression must return
1740 exactly one element. The element's value is then parsed as a number and used as
1741 value for the appropriate value in the value list dispatched to the daemon.
1742 .RE
1743 .RS 4
1744 .RE
1745 .ie n .SS "Plugin ""dbi"""
1746 .el .SS "Plugin \f(CWdbi\fP"
1747 .IX Subsection "Plugin dbi"
1748 This plugin uses the \fBdbi\fR library (<http://libdbi.sourceforge.net/>) to
1749 connect to various databases, execute \fI\s-1SQL\s0\fR statements and read back the
1750 results. \fIdbi\fR is an acronym for \*(L"database interface\*(R" in case you were
1751 wondering about the name. You can configure how each column is to be
1752 interpreted and the plugin will generate one or more data sets from each row
1753 returned according to these rules.
1754 .PP
1755 Because the plugin is very generic, the configuration is a little more complex
1756 than those of other plugins. It usually looks something like this:
1757 .PP
1758 .Vb 10
1759 \&  <Plugin dbi>
1760 \&    <Query "out_of_stock">
1761 \&      Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
1762 \&      # Use with MySQL 5.0.0 or later
1763 \&      MinVersion 50000
1764 \&      <Result>
1765 \&        Type "gauge"
1766 \&        InstancePrefix "out_of_stock"
1767 \&        InstancesFrom "category"
1768 \&        ValuesFrom "value"
1769 \&      </Result>
1770 \&    </Query>
1771 \&    <Database "product_information">
1772 \&      Driver "mysql"
1773 \&      DriverOption "host" "localhost"
1774 \&      DriverOption "username" "collectd"
1775 \&      DriverOption "password" "aZo6daiw"
1776 \&      DriverOption "dbname" "prod_info"
1777 \&      SelectDB "prod_info"
1778 \&      Query "out_of_stock"
1779 \&    </Database>
1780 \&  </Plugin>
1781 .Ve
1782 .PP
1783 The configuration above defines one query with one result and one database. The
1784 query is then linked to the database with the \fBQuery\fR option \fIwithin\fR the
1785 \&\fB<Database>\fR block. You can have any number of queries and databases
1786 and you can also use the \fBInclude\fR statement to split up the configuration
1787 file in multiple, smaller files. However, the \fB<Query>\fR block \fImust\fR
1788 precede the \fB<Database>\fR blocks, because the file is interpreted from
1789 top to bottom!
1790 .PP
1791 The following is a complete list of options:
1792 .PP
1793 \fI\f(BIQuery\fI blocks\fR
1794 .IX Subsection "Query blocks"
1795 .PP
1796 Query blocks define \fI\s-1SQL\s0\fR statements and how the returned data should be
1797 interpreted. They are identified by the name that is given in the opening line
1798 of the block. Thus the name needs to be unique. Other than that, the name is
1799 not used in collectd.
1800 .PP
1801 In each \fBQuery\fR block, there is one or more \fBResult\fR blocks. \fBResult\fR blocks
1802 define which column holds which value or instance information. You can use
1803 multiple \fBResult\fR blocks to create multiple values from one returned row. This
1804 is especially useful, when queries take a long time and sending almost the same
1805 query again and again is not desirable.
1806 .PP
1807 Example:
1808 .PP
1809 .Vb 10
1810 \&  <Query "environment">
1811 \&    Statement "select station, temperature, humidity from environment"
1812 \&    <Result>
1813 \&      Type "temperature"
1814 \&      # InstancePrefix "foo"
1815 \&      InstancesFrom "station"
1816 \&      ValuesFrom "temperature"
1817 \&    </Result>
1818 \&    <Result>
1819 \&      Type "humidity"
1820 \&      InstancesFrom "station"
1821 \&      ValuesFrom "humidity"
1822 \&    </Result>
1823 \&  </Query>
1824 .Ve
1825 .PP
1826 The following options are accepted:
1827 .IP "\fBStatement\fR \fI\s-1SQL\s0\fR" 4
1828 .IX Item "Statement SQL"
1829 Sets the statement that should be executed on the server. This is \fBnot\fR
1830 interpreted by collectd, but simply passed to the database server. Therefore,
1831 the \s-1SQL\s0 dialect that's used depends on the server collectd is connected to.
1832 .Sp
1833 The query has to return at least two columns, one for the instance and one
1834 value. You cannot omit the instance, even if the statement is guaranteed to
1835 always return exactly one line. In that case, you can usually specify something
1836 like this:
1837 .Sp
1838 .Vb 1
1839 \&  Statement "SELECT \e"instance\e", COUNT(*) AS value FROM table"
1840 .Ve
1841 .Sp
1842 (That works with MySQL but may not be valid \s-1SQL\s0 according to the spec. If you
1843 use a more strict database server, you may have to select from a dummy table or
1844 something.)
1845 .Sp
1846 Please note that some databases, for example \fBOracle\fR, will fail if you
1847 include a semicolon at the end of the statement.
1848 .IP "\fBMinVersion\fR \fIVersion\fR" 4
1849 .IX Item "MinVersion Version"
1850 .PD 0
1851 .IP "\fBMaxVersion\fR \fIValue\fR" 4
1852 .IX Item "MaxVersion Value"
1853 .PD
1854 Only use this query for the specified database version. You can use these
1855 options to provide multiple queries with the same name but with a slightly
1856 different syntax. The plugin will use only those queries, where the specified
1857 minimum and maximum versions fit the version of the database in use.
1858 .Sp
1859 The database version is determined by \f(CW\*(C`dbi_conn_get_engine_version\*(C'\fR, see the
1860 libdbi documentation <http://libdbi.sourceforge.net/docs/programmers-guide/reference-conn.html#DBI-CONN-GET-ENGINE-VERSION>
1861 for details. Basically, each part of the version is assumed to be in the range
1862 from \fB00\fR to \fB99\fR and all dots are removed. So version \*(L"4.1.2\*(R" becomes
1863 \&\*(L"40102\*(R", version \*(L"5.0.42\*(R" becomes \*(L"50042\*(R".
1864 .Sp
1865 \&\fBWarning:\fR The plugin will use \fBall\fR matching queries, so if you specify
1866 multiple queries with the same name and \fBoverlapping\fR ranges, weird stuff will
1867 happen. Don't to it! A valid example would be something along these lines:
1868 .Sp
1869 .Vb 8
1870 \&  MinVersion 40000
1871 \&  MaxVersion 49999
1872 \&  ...
1873 \&  MinVersion 50000
1874 \&  MaxVersion 50099
1875 \&  ...
1876 \&  MinVersion 50100
1877 \&  # No maximum
1878 .Ve
1879 .Sp
1880 In the above example, there are three ranges that don't overlap. The last one
1881 goes from version \*(L"5.1.0\*(R" to infinity, meaning \*(L"all later versions\*(R". Versions
1882 before \*(L"4.0.0\*(R" are not specified.
1883 .IP "\fBType\fR \fIType\fR" 4
1884 .IX Item "Type Type"
1885 The \fBtype\fR that's used for each line returned. See \fItypes.db\fR\|(5) for more
1886 details on how types are defined. In short: A type is a predefined layout of
1887 data and the number of values and type of values has to match the type
1888 definition.
1889 .Sp
1890 If you specify \*(L"temperature\*(R" here, you need exactly one gauge column. If you
1891 specify \*(L"if_octets\*(R", you will need two counter columns. See the \fBValuesFrom\fR
1892 setting below.
1893 .Sp
1894 There must be exactly one \fBType\fR option inside each \fBResult\fR block.
1895 .IP "\fBInstancePrefix\fR \fIprefix\fR" 4
1896 .IX Item "InstancePrefix prefix"
1897 Prepends \fIprefix\fR to the type instance. If \fBInstancesFrom\fR (see below) is not
1898 given, the string is simply copied. If \fBInstancesFrom\fR is given, \fIprefix\fR and
1899 all strings returned in the appropriate columns are concatenated together,
1900 separated by dashes \fI(\*(L"\-\*(R")\fR.
1901 .IP "\fBInstancesFrom\fR \fIcolumn0\fR [\fIcolumn1\fR ...]" 4
1902 .IX Item "InstancesFrom column0 [column1 ...]"
1903 Specifies the columns whose values will be used to create the \*(L"type-instance\*(R"
1904 for each row. If you specify more than one column, the value of all columns
1905 will be joined together with dashes \fI(\*(L"\-\*(R")\fR as separation characters.
1906 .Sp
1907 The plugin itself does not check whether or not all built instances are
1908 different. It's your responsibility to assure that each is unique. This is
1909 especially true, if you do not specify \fBInstancesFrom\fR: \fBYou\fR have to make
1910 sure that only one row is returned in this case.
1911 .Sp
1912 If neither \fBInstancePrefix\fR nor \fBInstancesFrom\fR is given, the type-instance
1913 will be empty.
1914 .IP "\fBValuesFrom\fR \fIcolumn0\fR [\fIcolumn1\fR ...]" 4
1915 .IX Item "ValuesFrom column0 [column1 ...]"
1916 Names the columns whose content is used as the actual data for the data sets
1917 that are dispatched to the daemon. How many such columns you need is determined
1918 by the \fBType\fR setting above. If you specify too many or not enough columns,
1919 the plugin will complain about that and no data will be submitted to the
1920 daemon.
1921 .Sp
1922 The actual data type in the columns is not that important. The plugin will
1923 automatically cast the values to the right type if it know how to do that. So
1924 it should be able to handle integer an floating point types, as well as strings
1925 (if they include a number at the beginning).
1926 .Sp
1927 There must be at least one \fBValuesFrom\fR option inside each \fBResult\fR block.
1928 .IP "\fBMetadataFrom\fR [\fIcolumn0\fR \fIcolumn1\fR ...]" 4
1929 .IX Item "MetadataFrom [column0 column1 ...]"
1930 Names the columns whose content is used as metadata for the data sets
1931 that are dispatched to the daemon.
1932 .Sp
1933 The actual data type in the columns is not that important. The plugin will
1934 automatically cast the values to the right type if it know how to do that. So
1935 it should be able to handle integer an floating point types, as well as strings
1936 (if they include a number at the beginning).
1937 .PP
1938 \fI\f(BIDatabase\fI blocks\fR
1939 .IX Subsection "Database blocks"
1940 .PP
1941 Database blocks define a connection to a database and which queries should be
1942 sent to that database. Since the used \*(L"dbi\*(R" library can handle a wide variety
1943 of databases, the configuration is very generic. If in doubt, refer to libdbi's
1944 documentation\ \- we stick as close to the terminology used there.
1945 .PP
1946 Each database needs a \*(L"name\*(R" as string argument in the starting tag of the
1947 block. This name will be used as \*(L"PluginInstance\*(R" in the values submitted to
1948 the daemon. Other than that, that name is not used.
1949 .IP "\fBDriver\fR \fIDriver\fR" 4
1950 .IX Item "Driver Driver"
1951 Specifies the driver to use to connect to the database. In many cases those
1952 drivers are named after the database they can connect to, but this is not a
1953 technical necessity. These drivers are sometimes referred to as \*(L"\s-1DBD\*(R",
1954 \&\s0\fBD\fRata\fBB\fRase \fBD\fRriver, and some distributions ship them in separate
1955 packages. Drivers for the \*(L"dbi\*(R" library are developed by the \fBlibdbi-drivers\fR
1956 project at <http://libdbi\-drivers.sourceforge.net/>.
1957 .Sp
1958 You need to give the driver name as expected by the \*(L"dbi\*(R" library here. You
1959 should be able to find that in the documentation for each driver. If you
1960 mistype the driver name, the plugin will dump a list of all known driver names
1961 to the log.
1962 .IP "\fBDriverOption\fR \fIKey\fR \fIValue\fR" 4
1963 .IX Item "DriverOption Key Value"
1964 Sets driver-specific options. What option a driver supports can be found in the
1965 documentation for each driver, somewhere at
1966 <http://libdbi\-drivers.sourceforge.net/>. However, the options \*(L"host\*(R",
1967 \&\*(L"username\*(R", \*(L"password\*(R", and \*(L"dbname\*(R" seem to be de\ facto standards.
1968 .Sp
1969 DBDs can register two types of options: String options and numeric options. The
1970 plugin will use the \f(CW\*(C`dbi_conn_set_option\*(C'\fR function when the configuration
1971 provides a string and the \f(CW\*(C`dbi_conn_require_option_numeric\*(C'\fR function when the
1972 configuration provides a number. So these two lines will actually result in
1973 different calls being used:
1974 .Sp
1975 .Vb 2
1976 \&  DriverOption "Port" 1234      # numeric
1977 \&  DriverOption "Port" "1234"    # string
1978 .Ve
1979 .Sp
1980 Unfortunately, drivers are not too keen to report errors when an unknown option
1981 is passed to them, so invalid settings here may go unnoticed. This is not the
1982 plugin's fault, it will report errors if it gets them from the library\ /
1983 the driver. If a driver complains about an option, the plugin will dump a
1984 complete list of all options understood by that driver to the log. There is no
1985 way to programatically find out if an option expects a string or a numeric
1986 argument, so you will have to refer to the appropriate \s-1DBD\s0's documentation to
1987 find this out. Sorry.
1988 .IP "\fBSelectDB\fR \fIDatabase\fR" 4
1989 .IX Item "SelectDB Database"
1990 In some cases, the database name you connect with is not the database name you
1991 want to use for querying data. If this option is set, the plugin will \*(L"select\*(R"
1992 (switch to) that database after the connection is established.
1993 .IP "\fBQuery\fR \fIQueryName\fR" 4
1994 .IX Item "Query QueryName"
1995 Associates the query named \fIQueryName\fR with this database connection. The
1996 query needs to be defined \fIbefore\fR this statement, i.\ e. all query
1997 blocks you want to refer to must be placed above the database block you want to
1998 refer to them from.
1999 .IP "\fBHost\fR \fIHostname\fR" 4
2000 .IX Item "Host Hostname"
2001 Sets the \fBhost\fR field of \fIvalue lists\fR to \fIHostname\fR when dispatching
2002 values. Defaults to the global hostname setting.
2003 .ie n .SS "Plugin ""df"""
2004 .el .SS "Plugin \f(CWdf\fP"
2005 .IX Subsection "Plugin df"
2006 .IP "\fBDevice\fR \fIDevice\fR" 4
2007 .IX Item "Device Device"
2008 Select partitions based on the devicename.
2009 .IP "\fBMountPoint\fR \fIDirectory\fR" 4
2010 .IX Item "MountPoint Directory"
2011 Select partitions based on the mountpoint.
2012 .IP "\fBFSType\fR \fIFSType\fR" 4
2013 .IX Item "FSType FSType"
2014 Select partitions based on the filesystem type.
2015 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
2016 .IX Item "IgnoreSelected true|false"
2017 Invert the selection: If set to true, all partitions \fBexcept\fR the ones that
2018 match any one of the criteria are collected. By default only selected
2019 partitions are collected if a selection is made. If no selection is configured
2020 at all, \fBall\fR partitions are selected.
2021 .IP "\fBReportByDevice\fR \fBtrue\fR|\fBfalse\fR" 4
2022 .IX Item "ReportByDevice true|false"
2023 Report using the device name rather than the mountpoint. i.e. with this \fIfalse\fR,
2024 (the default), it will report a disk as \*(L"root\*(R", but with it \fItrue\fR, it will be
2025 \&\*(L"sda1\*(R" (or whichever).
2026 .IP "\fBReportInodes\fR \fBtrue\fR|\fBfalse\fR" 4
2027 .IX Item "ReportInodes true|false"
2028 Enables or disables reporting of free, reserved and used inodes. Defaults to
2029 inode collection being disabled.
2030 .Sp
2031 Enable this option if inodes are a scarce resource for you, usually because
2032 many small files are stored on the disk. This is a usual scenario for mail
2033 transfer agents and web caches.
2034 .IP "\fBValuesAbsolute\fR \fBtrue\fR|\fBfalse\fR" 4
2035 .IX Item "ValuesAbsolute true|false"
2036 Enables or disables reporting of free and used disk space in 1K\-blocks.
2037 Defaults to \fBtrue\fR.
2038 .IP "\fBValuesPercentage\fR \fBfalse\fR|\fBtrue\fR" 4
2039 .IX Item "ValuesPercentage false|true"
2040 Enables or disables reporting of free and used disk space in percentage.
2041 Defaults to \fBfalse\fR.
2042 .Sp
2043 This is useful for deploying \fIcollectd\fR on the cloud, where machines with
2044 different disk size may exist. Then it is more practical to configure
2045 thresholds based on relative disk size.
2046 .ie n .SS "Plugin ""disk"""
2047 .el .SS "Plugin \f(CWdisk\fP"
2048 .IX Subsection "Plugin disk"
2049 The \f(CW\*(C`disk\*(C'\fR plugin collects information about the usage of physical disks and
2050 logical disks (partitions). Values collected are the number of octets written
2051 to and read from a disk or partition, the number of read/write operations
2052 issued to the disk and a rather complex \*(L"time\*(R" it took for these commands to be
2053 issued.
2054 .PP
2055 Using the following two options you can ignore some disks or configure the
2056 collection only of specific disks.
2057 .IP "\fBDisk\fR \fIName\fR" 4
2058 .IX Item "Disk Name"
2059 Select the disk \fIName\fR. Whether it is collected or ignored depends on the
2060 \&\fBIgnoreSelected\fR setting, see below. As with other plugins that use the
2061 daemon's ignorelist functionality, a string that starts and ends with a slash
2062 is interpreted as a regular expression. Examples:
2063 .Sp
2064 .Vb 2
2065 \&  Disk "sdd"
2066 \&  Disk "/hda[34]/"
2067 .Ve
2068 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
2069 .IX Item "IgnoreSelected true|false"
2070 Sets whether selected disks, i.\ e. the ones matches by any of the \fBDisk\fR
2071 statements, are ignored or if all other disks are ignored. The behavior
2072 (hopefully) is intuitive: If no \fBDisk\fR option is configured, all disks are
2073 collected. If at least one \fBDisk\fR option is given and no \fBIgnoreSelected\fR or
2074 set to \fBfalse\fR, \fBonly\fR matching disks will be collected. If \fBIgnoreSelected\fR
2075 is set to \fBtrue\fR, all disks are collected \fBexcept\fR the ones matched.
2076 .IP "\fBUseBSDName\fR \fBtrue\fR|\fBfalse\fR" 4
2077 .IX Item "UseBSDName true|false"
2078 Whether to use the device's \*(L"\s-1BSD\s0 Name\*(R", on Mac\ \s-1OS\s0\ X, instead of the
2079 default major/minor numbers. Requires collectd to be built with Apple's
2080 IOKitLib support.
2081 .IP "\fBUdevNameAttr\fR \fIAttribute\fR" 4
2082 .IX Item "UdevNameAttr Attribute"
2083 Attempt to override disk instance name with the value of a specified udev
2084 attribute when built with \fBlibudev\fR.  If the attribute is not defined for the
2085 given device, the default name is used. Example:
2086 .Sp
2087 .Vb 1
2088 \&  UdevNameAttr "DM_NAME"
2089 .Ve
2090 .ie n .SS "Plugin ""dns"""
2091 .el .SS "Plugin \f(CWdns\fP"
2092 .IX Subsection "Plugin dns"
2093 .IP "\fBInterface\fR \fIInterface\fR" 4
2094 .IX Item "Interface Interface"
2095 The dns plugin uses \fBlibpcap\fR to capture dns traffic and analyzes it. This
2096 option sets the interface that should be used. If this option is not set, or
2097 set to \*(L"any\*(R", the plugin will try to get packets from \fBall\fR interfaces. This
2098 may not work on certain platforms, such as Mac\ \s-1OS\s0\ X.
2099 .IP "\fBIgnoreSource\fR \fIIP-address\fR" 4
2100 .IX Item "IgnoreSource IP-address"
2101 Ignore packets that originate from this address.
2102 .IP "\fBSelectNumericQueryTypes\fR \fBtrue\fR|\fBfalse\fR" 4
2103 .IX Item "SelectNumericQueryTypes true|false"
2104 Enabled by default, collects unknown (and thus presented as numeric only) query types.
2105 .ie n .SS "Plugin ""email"""
2106 .el .SS "Plugin \f(CWemail\fP"
2107 .IX Subsection "Plugin email"
2108 .IP "\fBSocketFile\fR \fIPath\fR" 4
2109 .IX Item "SocketFile Path"
2110 Sets the socket-file which is to be created.
2111 .IP "\fBSocketGroup\fR \fIGroup\fR" 4
2112 .IX Item "SocketGroup Group"
2113 If running as root change the group of the UNIX-socket after it has been
2114 created. Defaults to \fBcollectd\fR.
2115 .IP "\fBSocketPerms\fR \fIPermissions\fR" 4
2116 .IX Item "SocketPerms Permissions"
2117 Change the file permissions of the UNIX-socket after it has been created. The
2118 permissions must be given as a numeric, octal value as you would pass to
2119 \&\fIchmod\fR\|(1). Defaults to \fB0770\fR.
2120 .IP "\fBMaxConns\fR \fINumber\fR" 4
2121 .IX Item "MaxConns Number"
2122 Sets the maximum number of connections that can be handled in parallel. Since
2123 this many threads will be started immediately setting this to a very high
2124 value will waste valuable resources. Defaults to \fB5\fR and will be forced to be
2125 at most \fB16384\fR to prevent typos and dumb mistakes.
2126 .ie n .SS "Plugin ""ethstat"""
2127 .el .SS "Plugin \f(CWethstat\fP"
2128 .IX Subsection "Plugin ethstat"
2129 The \fIethstat plugin\fR collects information about network interface cards (NICs)
2130 by talking directly with the underlying kernel driver using \fIioctl\fR\|(2).
2131 .PP
2132 \&\fBSynopsis:\fR
2133 .PP
2134 .Vb 5
2135 \& <Plugin "ethstat">
2136 \&   Interface "eth0"
2137 \&   Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
2138 \&   Map "multicast" "if_multicast"
2139 \& </Plugin>
2140 .Ve
2141 .PP
2142 \&\fBOptions:\fR
2143 .IP "\fBInterface\fR \fIName\fR" 4
2144 .IX Item "Interface Name"
2145 Collect statistical information about interface \fIName\fR.
2146 .IP "\fBMap\fR \fIName\fR \fIType\fR [\fITypeInstance\fR]" 4
2147 .IX Item "Map Name Type [TypeInstance]"
2148 By default, the plugin will submit values as type \f(CW\*(C`derive\*(C'\fR and \fItype
2149 instance\fR set to \fIName\fR, the name of the metric as reported by the driver. If
2150 an appropriate \fBMap\fR option exists, the given \fIType\fR and, optionally,
2151 \&\fITypeInstance\fR will be used.
2152 .IP "\fBMappedOnly\fR \fBtrue\fR|\fBfalse\fR" 4
2153 .IX Item "MappedOnly true|false"
2154 When set to \fBtrue\fR, only metrics that can be mapped to to a \fItype\fR will be
2155 collected, all other metrics will be ignored. Defaults to \fBfalse\fR.
2156 .ie n .SS "Plugin ""exec"""
2157 .el .SS "Plugin \f(CWexec\fP"
2158 .IX Subsection "Plugin exec"
2159 Please make sure to read \fIcollectd\-exec\fR\|(5) before using this plugin. It
2160 contains valuable information on when the executable is executed and the
2161 output that is expected from it.
2162 .IP "\fBExec\fR \fIUser\fR[:[\fIGroup\fR]] \fIExecutable\fR [\fI<arg>\fR [\fI<arg>\fR ...]]" 4
2163 .IX Item "Exec User[:[Group]] Executable [<arg> [<arg> ...]]"
2164 .PD 0
2165 .IP "\fBNotificationExec\fR \fIUser\fR[:[\fIGroup\fR]] \fIExecutable\fR [\fI<arg>\fR [\fI<arg>\fR ...]]" 4
2166 .IX Item "NotificationExec User[:[Group]] Executable [<arg> [<arg> ...]]"
2167 .PD
2168 Execute the executable \fIExecutable\fR as user \fIUser\fR. If the user name is
2169 followed by a colon and a group name, the effective group is set to that group.
2170 The real group and saved-set group will be set to the default group of that
2171 user. If no group is given the effective group \s-1ID\s0 will be the same as the real
2172 group \s-1ID.\s0
2173 .Sp
2174 Please note that in order to change the user and/or group the daemon needs
2175 superuser privileges. If the daemon is run as an unprivileged user you must
2176 specify the same user/group here. If the daemon is run with superuser
2177 privileges, you must supply a non-root user here.
2178 .Sp
2179 The executable may be followed by optional arguments that are passed to the
2180 program. Please note that due to the configuration parsing numbers and boolean
2181 values may be changed. If you want to be absolutely sure that something is
2182 passed as-is please enclose it in quotes.
2183 .Sp
2184 The \fBExec\fR and \fBNotificationExec\fR statements change the semantics of the
2185 programs executed, i.\ e. the data passed to them and the response
2186 expected from them. This is documented in great detail in \fIcollectd\-exec\fR\|(5).
2187 .ie n .SS "Plugin ""fhcount"""
2188 .el .SS "Plugin \f(CWfhcount\fP"
2189 .IX Subsection "Plugin fhcount"
2190 The \f(CW\*(C`fhcount\*(C'\fR plugin provides statistics about used, unused and total number of
2191 file handles.
2192 .PP
2193 The \fIfhcount plugin\fR provides the following configuration options:
2194 .IP "\fBValuesAbsolute\fR \fBtrue\fR|\fBfalse\fR" 4
2195 .IX Item "ValuesAbsolute true|false"
2196 Enables or disables reporting of file handles usage in absolute numbers,
2197 e.g. file handles used. Defaults to \fBtrue\fR.
2198 .IP "\fBValuesPercentage\fR \fBfalse\fR|\fBtrue\fR" 4
2199 .IX Item "ValuesPercentage false|true"
2200 Enables or disables reporting of file handles usage in percentages, e.g.
2201 percent of file handles used. Defaults to \fBfalse\fR.
2202 .ie n .SS "Plugin ""filecount"""
2203 .el .SS "Plugin \f(CWfilecount\fP"
2204 .IX Subsection "Plugin filecount"
2205 The \f(CW\*(C`filecount\*(C'\fR plugin counts the number of files in a certain directory (and
2206 its subdirectories) and their combined size. The configuration is very straight
2207 forward:
2208 .PP
2209 .Vb 12
2210 \&  <Plugin "filecount">
2211 \&    <Directory "/var/qmail/queue/mess">
2212 \&      Instance "qmail\-message"
2213 \&    </Directory>
2214 \&    <Directory "/var/qmail/queue/todo">
2215 \&      Instance "qmail\-todo"
2216 \&    </Directory>
2217 \&    <Directory "/var/lib/php5">
2218 \&      Instance "php5\-sessions"
2219 \&      Name "sess_*"
2220 \&    </Directory>
2221 \&  </Plugin>
2222 .Ve
2223 .PP
2224 The example above counts the number of files in QMail's queue directories and
2225 the number of \s-1PHP5\s0 sessions. Jfiy: The \*(L"todo\*(R" queue holds the messages that
2226 QMail has not yet looked at, the \*(L"message\*(R" queue holds the messages that were
2227 classified into \*(L"local\*(R" and \*(L"remote\*(R".
2228 .PP
2229 As you can see, the configuration consists of one or more \f(CW\*(C`Directory\*(C'\fR blocks,
2230 each of which specifies a directory in which to count the files. Within those
2231 blocks, the following options are recognized:
2232 .IP "\fBInstance\fR \fIInstance\fR" 4
2233 .IX Item "Instance Instance"
2234 Sets the plugin instance to \fIInstance\fR. That instance name must be unique, but
2235 it's your responsibility, the plugin doesn't check for that. If not given, the
2236 instance is set to the directory name with all slashes replaced by underscores
2237 and all leading underscores removed.
2238 .IP "\fBName\fR \fIPattern\fR" 4
2239 .IX Item "Name Pattern"
2240 Only count files that match \fIPattern\fR, where \fIPattern\fR is a shell-like
2241 wildcard as understood by \fIfnmatch\fR\|(3). Only the \fBfilename\fR is checked
2242 against the pattern, not the entire path. In case this makes it easier for you:
2243 This option has been named after the \fB\-name\fR parameter to \fIfind\fR\|(1).
2244 .IP "\fBMTime\fR \fIAge\fR" 4
2245 .IX Item "MTime Age"
2246 Count only files of a specific age: If \fIAge\fR is greater than zero, only files
2247 that haven't been touched in the last \fIAge\fR seconds are counted. If \fIAge\fR is
2248 a negative number, this is inversed. For example, if \fB\-60\fR is specified, only
2249 files that have been modified in the last minute will be counted.
2250 .Sp
2251 The number can also be followed by a \*(L"multiplier\*(R" to easily specify a larger
2252 timespan. When given in this notation, the argument must in quoted, i.\ e.
2253 must be passed as string. So the \fB\-60\fR could also be written as \fB\*(L"\-1m\*(R"\fR (one
2254 minute). Valid multipliers are \f(CW\*(C`s\*(C'\fR (second), \f(CW\*(C`m\*(C'\fR (minute), \f(CW\*(C`h\*(C'\fR (hour), \f(CW\*(C`d\*(C'\fR
2255 (day), \f(CW\*(C`w\*(C'\fR (week), and \f(CW\*(C`y\*(C'\fR (year). There is no \*(L"month\*(R" multiplier. You can
2256 also specify fractional numbers, e.\ g. \fB\*(L"0.5d\*(R"\fR is identical to
2257 \&\fB\*(L"12h\*(R"\fR.
2258 .IP "\fBSize\fR \fISize\fR" 4
2259 .IX Item "Size Size"
2260 Count only files of a specific size. When \fISize\fR is a positive number, only
2261 files that are at least this big are counted. If \fISize\fR is a negative number,
2262 this is inversed, i.\ e. only files smaller than the absolute value of
2263 \&\fISize\fR are counted.
2264 .Sp
2265 As with the \fBMTime\fR option, a \*(L"multiplier\*(R" may be added. For a detailed
2266 description see above. Valid multipliers here are \f(CW\*(C`b\*(C'\fR (byte), \f(CW\*(C`k\*(C'\fR (kilobyte),
2267 \&\f(CW\*(C`m\*(C'\fR (megabyte), \f(CW\*(C`g\*(C'\fR (gigabyte), \f(CW\*(C`t\*(C'\fR (terabyte), and \f(CW\*(C`p\*(C'\fR (petabyte). Please
2268 note that there are 1000 bytes in a kilobyte, not 1024.
2269 .IP "\fBRecursive\fR \fItrue\fR|\fIfalse\fR" 4
2270 .IX Item "Recursive true|false"
2271 Controls whether or not to recurse into subdirectories. Enabled by default.
2272 .IP "\fBIncludeHidden\fR \fItrue\fR|\fIfalse\fR" 4
2273 .IX Item "IncludeHidden true|false"
2274 Controls whether or not to include \*(L"hidden\*(R" files and directories in the count.
2275 \&\*(L"Hidden\*(R" files and directories are those, whose name begins with a dot.
2276 Defaults to \fIfalse\fR, i.e. by default hidden files and directories are ignored.
2277 .ie n .SS "Plugin ""GenericJMX"""
2278 .el .SS "Plugin \f(CWGenericJMX\fP"
2279 .IX Subsection "Plugin GenericJMX"
2280 The \fIGenericJMX plugin\fR is written in \fIJava\fR and therefore documented in
2281 \&\fIcollectd\-java\fR\|(5).
2282 .ie n .SS "Plugin ""gmond"""
2283 .el .SS "Plugin \f(CWgmond\fP"
2284 .IX Subsection "Plugin gmond"
2285 The \fIgmond\fR plugin received the multicast traffic sent by \fBgmond\fR, the
2286 statistics collection daemon of Ganglia. Mappings for the standard \*(L"metrics\*(R"
2287 are built-in, custom mappings may be added via \fBMetric\fR blocks, see below.
2288 .PP
2289 Synopsis:
2290 .PP
2291 .Vb 10
2292 \& <Plugin "gmond">
2293 \&   MCReceiveFrom "239.2.11.71" "8649"
2294 \&   <Metric "swap_total">
2295 \&     Type "swap"
2296 \&     TypeInstance "total"
2297 \&     DataSource "value"
2298 \&   </Metric>
2299 \&   <Metric "swap_free">
2300 \&     Type "swap"
2301 \&     TypeInstance "free"
2302 \&     DataSource "value"
2303 \&   </Metric>
2304 \& </Plugin>
2305 .Ve
2306 .PP
2307 The following metrics are built-in:
2308 .IP "\(bu" 4
2309 load_one, load_five, load_fifteen
2310 .IP "\(bu" 4
2311 cpu_user, cpu_system, cpu_idle, cpu_nice, cpu_wio
2312 .IP "\(bu" 4
2313 mem_free, mem_shared, mem_buffers, mem_cached, mem_total
2314 .IP "\(bu" 4
2315 bytes_in, bytes_out
2316 .IP "\(bu" 4
2317 pkts_in, pkts_out
2318 .PP
2319 Available configuration options:
2320 .IP "\fBMCReceiveFrom\fR \fIMCGroup\fR [\fIPort\fR]" 4
2321 .IX Item "MCReceiveFrom MCGroup [Port]"
2322 Sets sets the multicast group and \s-1UDP\s0 port to which to subscribe.
2323 .Sp
2324 Default: \fB239.2.11.71\fR\ /\ \fB8649\fR
2325 .IP "<\fBMetric\fR \fIName\fR>" 4
2326 .IX Item "<Metric Name>"
2327 These blocks add a new metric conversion to the internal table. \fIName\fR, the
2328 string argument to the \fBMetric\fR block, is the metric name as used by Ganglia.
2329 .RS 4
2330 .IP "\fBType\fR \fIType\fR" 4
2331 .IX Item "Type Type"
2332 Type to map this metric to. Required.
2333 .IP "\fBTypeInstance\fR \fIInstance\fR" 4
2334 .IX Item "TypeInstance Instance"
2335 Type-instance to use. Optional.
2336 .IP "\fBDataSource\fR \fIName\fR" 4
2337 .IX Item "DataSource Name"
2338 Data source to map this metric to. If the configured type has exactly one data
2339 source, this is optional. Otherwise the option is required.
2340 .RE
2341 .RS 4
2342 .RE
2343 .ie n .SS "Plugin ""hddtemp"""
2344 .el .SS "Plugin \f(CWhddtemp\fP"
2345 .IX Subsection "Plugin hddtemp"
2346 To get values from \fBhddtemp\fR collectd connects to \fBlocalhost\fR (127.0.0.1),
2347 port \fB7634/tcp\fR. The \fBHost\fR and \fBPort\fR options can be used to change these
2348 default values, see below. \f(CW\*(C`hddtemp\*(C'\fR has to be running to work correctly. If
2349 \&\f(CW\*(C`hddtemp\*(C'\fR is not running timeouts may appear which may interfere with other
2350 statistics..
2351 .PP
2352 The \fBhddtemp\fR homepage can be found at
2353 <http://www.guzu.net/linux/hddtemp.php>.
2354 .IP "\fBHost\fR \fIHostname\fR" 4
2355 .IX Item "Host Hostname"
2356 Hostname to connect to. Defaults to \fB127.0.0.1\fR.
2357 .IP "\fBPort\fR \fIPort\fR" 4
2358 .IX Item "Port Port"
2359 TCP-Port to connect to. Defaults to \fB7634\fR.
2360 .ie n .SS "Plugin ""interface"""
2361 .el .SS "Plugin \f(CWinterface\fP"
2362 .IX Subsection "Plugin interface"
2363 .IP "\fBInterface\fR \fIInterface\fR" 4
2364 .IX Item "Interface Interface"
2365 Select this interface. By default these interfaces will then be collected. For
2366 a more detailed description see \fBIgnoreSelected\fR below.
2367 .IP "\fBIgnoreSelected\fR \fItrue\fR|\fIfalse\fR" 4
2368 .IX Item "IgnoreSelected true|false"
2369 If no configuration if given, the \fBtraffic\fR\-plugin will collect data from
2370 all interfaces. This may not be practical, especially for loopback\- and
2371 similar interfaces. Thus, you can use the \fBInterface\fR\-option to pick the
2372 interfaces you're interested in. Sometimes, however, it's easier/preferred
2373 to collect all interfaces \fIexcept\fR a few ones. This option enables you to
2374 do that: By setting \fBIgnoreSelected\fR to \fItrue\fR the effect of
2375 \&\fBInterface\fR is inverted: All selected interfaces are ignored and all
2376 other interfaces are collected.
2377 .ie n .SS "Plugin ""ipmi"""
2378 .el .SS "Plugin \f(CWipmi\fP"
2379 .IX Subsection "Plugin ipmi"
2380 .IP "\fBSensor\fR \fISensor\fR" 4
2381 .IX Item "Sensor Sensor"
2382 Selects sensors to collect or to ignore, depending on \fBIgnoreSelected\fR.
2383 .IP "\fBIgnoreSelected\fR \fItrue\fR|\fIfalse\fR" 4
2384 .IX Item "IgnoreSelected true|false"
2385 If no configuration if given, the \fBipmi\fR plugin will collect data from all
2386 sensors found of type \*(L"temperature\*(R", \*(L"voltage\*(R", \*(L"current\*(R" and \*(L"fanspeed\*(R".
2387 This option enables you to do that: By setting \fBIgnoreSelected\fR to \fItrue\fR
2388 the effect of \fBSensor\fR is inverted: All selected sensors are ignored and
2389 all other sensors are collected.
2390 .IP "\fBNotifySensorAdd\fR \fItrue\fR|\fIfalse\fR" 4
2391 .IX Item "NotifySensorAdd true|false"
2392 If a sensor appears after initialization time of a minute a notification
2393 is sent.
2394 .IP "\fBNotifySensorRemove\fR \fItrue\fR|\fIfalse\fR" 4
2395 .IX Item "NotifySensorRemove true|false"
2396 If a sensor disappears a notification is sent.
2397 .IP "\fBNotifySensorNotPresent\fR \fItrue\fR|\fIfalse\fR" 4
2398 .IX Item "NotifySensorNotPresent true|false"
2399 If you have for example dual power supply and one of them is (un)plugged then
2400 a notification is sent.
2401 .ie n .SS "Plugin ""iptables"""
2402 .el .SS "Plugin \f(CWiptables\fP"
2403 .IX Subsection "Plugin iptables"
2404 .IP "\fBChain\fR \fITable\fR \fIChain\fR [\fIComment|Number\fR [\fIName\fR]]" 4
2405 .IX Item "Chain Table Chain [Comment|Number [Name]]"
2406 Select the rules to count. If only \fITable\fR and \fIChain\fR are given, this plugin
2407 will collect the counters of all rules which have a comment-match. The comment
2408 is then used as type-instance.
2409 .Sp
2410 If \fIComment\fR or \fINumber\fR is given, only the rule with the matching comment or
2411 the \fIn\fRth rule will be collected. Again, the comment (or the number) will be
2412 used as the type-instance.
2413 .Sp
2414 If \fIName\fR is supplied, it will be used as the type-instance instead of the
2415 comment or the number.
2416 .ie n .SS "Plugin ""irq"""
2417 .el .SS "Plugin \f(CWirq\fP"
2418 .IX Subsection "Plugin irq"
2419 .IP "\fBIrq\fR \fIIrq\fR" 4
2420 .IX Item "Irq Irq"
2421 Select this irq. By default these irqs will then be collected. For a more
2422 detailed description see \fBIgnoreSelected\fR below.
2423 .IP "\fBIgnoreSelected\fR \fItrue\fR|\fIfalse\fR" 4
2424 .IX Item "IgnoreSelected true|false"
2425 If no configuration if given, the \fBirq\fR\-plugin will collect data from all
2426 irqs. This may not be practical, especially if no interrupts happen. Thus, you
2427 can use the \fBIrq\fR\-option to pick the interrupt you're interested in.
2428 Sometimes, however, it's easier/preferred to collect all interrupts \fIexcept\fR a
2429 few ones. This option enables you to do that: By setting \fBIgnoreSelected\fR to
2430 \&\fItrue\fR the effect of \fBIrq\fR is inverted: All selected interrupts are ignored
2431 and all other interrupts are collected.
2432 .ie n .SS "Plugin ""java"""
2433 .el .SS "Plugin \f(CWjava\fP"
2434 .IX Subsection "Plugin java"
2435 The \fIJava\fR plugin makes it possible to write extensions for collectd in Java.
2436 This section only discusses the syntax and semantic of the configuration
2437 options. For more in-depth information on the \fIJava\fR plugin, please read
2438 \&\fIcollectd\-java\fR\|(5).
2439 .PP
2440 Synopsis:
2441 .PP
2442 .Vb 8
2443 \& <Plugin "java">
2444 \&   JVMArg "\-verbose:jni"
2445 \&   JVMArg "\-Djava.class.path=/opt/collectd/lib/collectd/bindings/java"
2446 \&   LoadPlugin "org.collectd.java.Foobar"
2447 \&   <Plugin "org.collectd.java.Foobar">
2448 \&     # To be parsed by the plugin
2449 \&   </Plugin>
2450 \& </Plugin>
2451 .Ve
2452 .PP
2453 Available configuration options:
2454 .IP "\fBJVMArg\fR \fIArgument\fR" 4
2455 .IX Item "JVMArg Argument"
2456 Argument that is to be passed to the \fIJava Virtual Machine\fR (\s-1JVM\s0). This works
2457 exactly the way the arguments to the \fIjava\fR binary on the command line work.
2458 Execute \f(CW\*(C`java\ \-\-help\*(C'\fR for details.
2459 .Sp
2460 Please note that \fBall\fR these options must appear \fBbefore\fR (i.\ e. above)
2461 any other options! When another option is found, the \s-1JVM\s0 will be started and
2462 later options will have to be ignored!
2463 .IP "\fBLoadPlugin\fR \fIJavaClass\fR" 4
2464 .IX Item "LoadPlugin JavaClass"
2465 Instantiates a new \fIJavaClass\fR object. The constructor of this object very
2466 likely then registers one or more callback methods with the server.
2467 .Sp
2468 See \fIcollectd\-java\fR\|(5) for details.
2469 .Sp
2470 When the first such option is found, the virtual machine (\s-1JVM\s0) is created. This
2471 means that all \fBJVMArg\fR options must appear before (i.\ e. above) all
2472 \&\fBLoadPlugin\fR options!
2473 .IP "\fBPlugin\fR \fIName\fR" 4
2474 .IX Item "Plugin Name"
2475 The entire block is passed to the Java plugin as an
2476 \&\fIorg.collectd.api.OConfigItem\fR object.
2477 .Sp
2478 For this to work, the plugin has to register a configuration callback first,
2479 see \*(L"config callback\*(R" in \fIcollectd\-java\fR\|(5). This means, that the \fBPlugin\fR block
2480 must appear after the appropriate \fBLoadPlugin\fR block. Also note, that \fIName\fR
2481 depends on the (Java) plugin registering the callback and is completely
2482 independent from the \fIJavaClass\fR argument passed to \fBLoadPlugin\fR.
2483 .ie n .SS "Plugin ""load"""
2484 .el .SS "Plugin \f(CWload\fP"
2485 .IX Subsection "Plugin load"
2486 The \fILoad plugin\fR collects the system load. These numbers give a rough overview
2487 over the utilization of a machine. The system load is defined as the number of
2488 runnable tasks in the run-queue and is provided by many operating systems as a
2489 one, five or fifteen minute average.
2490 .PP
2491 The following configuration options are available:
2492 .IP "\fBReportRelative\fR \fBfalse\fR|\fBtrue\fR" 4
2493 .IX Item "ReportRelative false|true"
2494 When enabled, system load divided by number of available \s-1CPU\s0 cores is reported
2495 for intervals 1 min, 5 min and 15 min. Defaults to false.
2496 .ie n .SS "Plugin ""logfile"""
2497 .el .SS "Plugin \f(CWlogfile\fP"
2498 .IX Subsection "Plugin logfile"
2499 .IP "\fBLogLevel\fR \fBdebug|info|notice|warning|err\fR" 4
2500 .IX Item "LogLevel debug|info|notice|warning|err"
2501 Sets the log-level. If, for example, set to \fBnotice\fR, then all events with
2502 severity \fBnotice\fR, \fBwarning\fR, or \fBerr\fR will be written to the logfile.
2503 .Sp
2504 Please note that \fBdebug\fR is only available if collectd has been compiled with
2505 debugging support.
2506 .IP "\fBFile\fR \fIFile\fR" 4
2507 .IX Item "File File"
2508 Sets the file to write log messages to. The special strings \fBstdout\fR and
2509 \&\fBstderr\fR can be used to write to the standard output and standard error
2510 channels, respectively. This, of course, only makes much sense when \fIcollectd\fR
2511 is running in foreground\- or non-daemon-mode.
2512 .IP "\fBTimestamp\fR \fBtrue\fR|\fBfalse\fR" 4
2513 .IX Item "Timestamp true|false"
2514 Prefix all lines printed by the current time. Defaults to \fBtrue\fR.
2515 .IP "\fBPrintSeverity\fR \fBtrue\fR|\fBfalse\fR" 4
2516 .IX Item "PrintSeverity true|false"
2517 When enabled, all lines are prefixed by the severity of the log message, for
2518 example \*(L"warning\*(R". Defaults to \fBfalse\fR.
2519 .PP
2520 \&\fBNote\fR: There is no need to notify the daemon after moving or removing the
2521 log file (e.\ g. when rotating the logs). The plugin reopens the file
2522 for each line it writes.
2523 .ie n .SS "Plugin ""log_logstash"""
2524 .el .SS "Plugin \f(CWlog_logstash\fP"
2525 .IX Subsection "Plugin log_logstash"
2526 The \fIlog logstash plugin\fR behaves like the logfile plugin but formats
2527 messages as \s-1JSON\s0 events for logstash to parse and input.
2528 .IP "\fBLogLevel\fR \fBdebug|info|notice|warning|err\fR" 4
2529 .IX Item "LogLevel debug|info|notice|warning|err"
2530 Sets the log-level. If, for example, set to \fBnotice\fR, then all events with
2531 severity \fBnotice\fR, \fBwarning\fR, or \fBerr\fR will be written to the logfile.
2532 .Sp
2533 Please note that \fBdebug\fR is only available if collectd has been compiled with
2534 debugging support.
2535 .IP "\fBFile\fR \fIFile\fR" 4
2536 .IX Item "File File"
2537 Sets the file to write log messages to. The special strings \fBstdout\fR and
2538 \&\fBstderr\fR can be used to write to the standard output and standard error
2539 channels, respectively. This, of course, only makes much sense when \fIcollectd\fR
2540 is running in foreground\- or non-daemon-mode.
2541 .PP
2542 \&\fBNote\fR: There is no need to notify the daemon after moving or removing the
2543 log file (e.\ g. when rotating the logs). The plugin reopens the file
2544 for each line it writes.
2545 .ie n .SS "Plugin ""lpar"""
2546 .el .SS "Plugin \f(CWlpar\fP"
2547 .IX Subsection "Plugin lpar"
2548 The \fI\s-1LPAR\s0 plugin\fR reads \s-1CPU\s0 statistics of \fILogical Partitions\fR, a
2549 virtualization technique for \s-1IBM POWER\s0 processors. It takes into account \s-1CPU\s0
2550 time stolen from or donated to a partition, in addition to the usual user,
2551 system, I/O statistics.
2552 .PP
2553 The following configuration options are available:
2554 .IP "\fBCpuPoolStats\fR \fBfalse\fR|\fBtrue\fR" 4
2555 .IX Item "CpuPoolStats false|true"
2556 When enabled, statistics about the processor pool are read, too. The partition
2557 needs to have pool authority in order to be able to acquire this information.
2558 Defaults to false.
2559 .IP "\fBReportBySerial\fR \fBfalse\fR|\fBtrue\fR" 4
2560 .IX Item "ReportBySerial false|true"
2561 If enabled, the serial of the physical machine the partition is currently
2562 running on is reported as \fIhostname\fR and the logical hostname of the machine
2563 is reported in the \fIplugin instance\fR. Otherwise, the logical hostname will be
2564 used (just like other plugins) and the \fIplugin instance\fR will be empty.
2565 Defaults to false.
2566 .ie n .SS "Plugin ""mbmon"""
2567 .el .SS "Plugin \f(CWmbmon\fP"
2568 .IX Subsection "Plugin mbmon"
2569 The \f(CW\*(C`mbmon plugin\*(C'\fR uses mbmon to retrieve temperature, voltage, etc.
2570 .PP
2571 Be default collectd connects to \fBlocalhost\fR (127.0.0.1), port \fB411/tcp\fR. The
2572 \&\fBHost\fR and \fBPort\fR options can be used to change these values, see below.
2573 \&\f(CW\*(C`mbmon\*(C'\fR has to be running to work correctly. If \f(CW\*(C`mbmon\*(C'\fR is not running
2574 timeouts may appear which may interfere with other statistics..
2575 .PP
2576 \&\f(CW\*(C`mbmon\*(C'\fR must be run with the \-r option (\*(L"print \s-1TAG\s0 and Value format\*(R");
2577 Debian's \fI/etc/init.d/mbmon\fR script already does this, other people
2578 will need to ensure that this is the case.
2579 .IP "\fBHost\fR \fIHostname\fR" 4
2580 .IX Item "Host Hostname"
2581 Hostname to connect to. Defaults to \fB127.0.0.1\fR.
2582 .IP "\fBPort\fR \fIPort\fR" 4
2583 .IX Item "Port Port"
2584 TCP-Port to connect to. Defaults to \fB411\fR.
2585 .ie n .SS "Plugin ""md"""
2586 .el .SS "Plugin \f(CWmd\fP"
2587 .IX Subsection "Plugin md"
2588 The \f(CW\*(C`md plugin\*(C'\fR collects information from Linux Software-RAID devices (md).
2589 .PP
2590 All reported values are of the type \f(CW\*(C`md_disks\*(C'\fR. Reported type instances are
2591 \&\fIactive\fR, \fIfailed\fR (present but not operational), \fIspare\fR (hot stand-by) and
2592 \&\fImissing\fR (physically absent) disks.
2593 .IP "\fBDevice\fR \fIDevice\fR" 4
2594 .IX Item "Device Device"
2595 Select md devices based on device name. The \fIdevice name\fR is the basename of
2596 the device, i.e. the name of the block device without the leading \f(CW\*(C`/dev/\*(C'\fR.
2597 See \fBIgnoreSelected\fR for more details.
2598 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
2599 .IX Item "IgnoreSelected true|false"
2600 Invert device selection: If set to \fBtrue\fR, all md devices \fBexcept\fR those
2601 listed using \fBDevice\fR are collected. If \fBfalse\fR (the default), only those
2602 listed are collected. If no configuration is given, the \fBmd\fR plugin will
2603 collect data from all md devices.
2604 .ie n .SS "Plugin ""memcachec"""
2605 .el .SS "Plugin \f(CWmemcachec\fP"
2606 .IX Subsection "Plugin memcachec"
2607 The \f(CW\*(C`memcachec plugin\*(C'\fR connects to a memcached server, queries one or more
2608 given \fIpages\fR and parses the returned data according to user specification.
2609 The \fImatches\fR used are the same as the matches used in the \f(CW\*(C`curl\*(C'\fR and \f(CW\*(C`tail\*(C'\fR
2610 plugins.
2611 .PP
2612 In order to talk to the memcached server, this plugin uses the \fIlibmemcached\fR
2613 library. Please note that there is another library with a very similar name,
2614 libmemcache (notice the missing `d'), which is not applicable.
2615 .PP
2616 Synopsis of the configuration:
2617 .PP
2618 .Vb 12
2619 \& <Plugin "memcachec">
2620 \&   <Page "plugin_instance">
2621 \&     Server "localhost"
2622 \&     Key "page_key"
2623 \&     <Match>
2624 \&       Regex "(\e\ed+) bytes sent"
2625 \&       DSType CounterAdd
2626 \&       Type "ipt_octets"
2627 \&       Instance "type_instance"
2628 \&     </Match>
2629 \&   </Page>
2630 \& </Plugin>
2631 .Ve
2632 .PP
2633 The configuration options are:
2634 .IP "<\fBPage\fR \fIName\fR>" 4
2635 .IX Item "<Page Name>"
2636 Each \fBPage\fR block defines one \fIpage\fR to be queried from the memcached server.
2637 The block requires one string argument which is used as \fIplugin instance\fR.
2638 .IP "\fBServer\fR \fIAddress\fR" 4
2639 .IX Item "Server Address"
2640 Sets the server address to connect to when querying the page. Must be inside a
2641 \&\fBPage\fR block.
2642 .IP "\fBKey\fR \fIKey\fR" 4
2643 .IX Item "Key Key"
2644 When connected to the memcached server, asks for the page \fIKey\fR.
2645 .IP "<\fBMatch\fR>" 4
2646 .IX Item "<Match>"
2647 Match blocks define which strings to look for and how matches substrings are
2648 interpreted. For a description of match blocks, please see \*(L"Plugin tail\*(R".
2649 .ie n .SS "Plugin ""memcached"""
2650 .el .SS "Plugin \f(CWmemcached\fP"
2651 .IX Subsection "Plugin memcached"
2652 The \fBmemcached plugin\fR connects to a memcached server and queries statistics
2653 about cache utilization, memory and bandwidth used.
2654 <http://www.danga.com/memcached/>
2655 .PP
2656 .Vb 6
2657 \& <Plugin "memcached">
2658 \&   <Instance "name">
2659 \&     Host "memcache.example.com"
2660 \&     Port 11211
2661 \&   </Instance>
2662 \& </Plugin>
2663 .Ve
2664 .PP
2665 The plugin configuration consists of one or more \fBInstance\fR blocks which
2666 specify one \fImemcached\fR connection each. Within the \fBInstance\fR blocks, the
2667 following options are allowed:
2668 .IP "\fBHost\fR \fIHostname\fR" 4
2669 .IX Item "Host Hostname"
2670 Hostname to connect to. Defaults to \fB127.0.0.1\fR.
2671 .IP "\fBPort\fR \fIPort\fR" 4
2672 .IX Item "Port Port"
2673 TCP-Port to connect to. Defaults to \fB11211\fR.
2674 .IP "\fBSocket\fR \fIPath\fR" 4
2675 .IX Item "Socket Path"
2676 Connect to \fImemcached\fR using the \s-1UNIX\s0 domain socket at \fIPath\fR. If this
2677 setting is given, the \fBHost\fR and \fBPort\fR settings are ignored.
2678 .ie n .SS "Plugin ""mic"""
2679 .el .SS "Plugin \f(CWmic\fP"
2680 .IX Subsection "Plugin mic"
2681 The \fBmic plugin\fR gathers \s-1CPU\s0 statistics, memory usage and temperatures from
2682 Intel's Many Integrated Core (\s-1MIC\s0) systems.
2683 .PP
2684 \&\fBSynopsis:\fR
2685 .PP
2686 .Vb 4
2687 \& <Plugin mic>
2688 \&   ShowCPU true
2689 \&   ShowCPUCores true
2690 \&   ShowMemory true
2691 \&
2692 \&   ShowTemperatures true
2693 \&   Temperature vddg
2694 \&   Temperature vddq
2695 \&   IgnoreSelectedTemperature true
2696 \&
2697 \&   ShowPower true
2698 \&   Power total0
2699 \&   Power total1
2700 \&   IgnoreSelectedPower true
2701 \& </Plugin>
2702 .Ve
2703 .PP
2704 The following options are valid inside the \fBPlugin\ mic\fR block:
2705 .IP "\fBShowCPU\fR \fBtrue\fR|\fBfalse\fR" 4
2706 .IX Item "ShowCPU true|false"
2707 If enabled (the default) a sum of the \s-1CPU\s0 usage across all cores is reported.
2708 .IP "\fBShowCPUCores\fR \fBtrue\fR|\fBfalse\fR" 4
2709 .IX Item "ShowCPUCores true|false"
2710 If enabled (the default) per-core \s-1CPU\s0 usage is reported.
2711 .IP "\fBShowMemory\fR \fBtrue\fR|\fBfalse\fR" 4
2712 .IX Item "ShowMemory true|false"
2713 If enabled (the default) the physical memory usage of the \s-1MIC\s0 system is
2714 reported.
2715 .IP "\fBShowTemperatures\fR \fBtrue\fR|\fBfalse\fR" 4
2716 .IX Item "ShowTemperatures true|false"
2717 If enabled (the default) various temperatures of the \s-1MIC\s0 system are reported.
2718 .IP "\fBTemperature\fR \fIName\fR" 4
2719 .IX Item "Temperature Name"
2720 This option controls which temperatures are being reported. Whether matching
2721 temperatures are being ignored or \fIonly\fR matching temperatures are reported
2722 depends on the \fBIgnoreSelectedTemperature\fR setting below. By default \fIall\fR
2723 temperatures are reported.
2724 .IP "\fBIgnoreSelectedTemperature\fR \fBfalse\fR|\fBtrue\fR" 4
2725 .IX Item "IgnoreSelectedTemperature false|true"
2726 Controls the behavior of the \fBTemperature\fR setting above. If set to \fBfalse\fR
2727 (the default) only temperatures matching a \fBTemperature\fR option are reported
2728 or, if no \fBTemperature\fR option is specified, all temperatures are reported. If
2729 set to \fBtrue\fR, matching temperatures are \fIignored\fR and all other temperatures
2730 are reported.
2731 .Sp
2732 Known temperature names are:
2733 .RS 4
2734 .IP "die" 4
2735 .IX Item "die"
2736 Die of the \s-1CPU\s0
2737 .IP "devmem" 4
2738 .IX Item "devmem"
2739 Device Memory
2740 .IP "fin" 4
2741 .IX Item "fin"
2742 Fan In
2743 .IP "fout" 4
2744 .IX Item "fout"
2745 Fan Out
2746 .IP "vccp" 4
2747 .IX Item "vccp"
2748 Voltage ccp
2749 .IP "vddg" 4
2750 .IX Item "vddg"
2751 Voltage ddg
2752 .IP "vddq" 4
2753 .IX Item "vddq"
2754 Voltage ddq
2755 .RE
2756 .RS 4
2757 .RE
2758 .IP "\fBShowPower\fR \fBtrue\fR|\fBfalse\fR" 4
2759 .IX Item "ShowPower true|false"
2760 If enabled (the default) various temperatures of the \s-1MIC\s0 system are reported.
2761 .IP "\fBPower\fR \fIName\fR" 4
2762 .IX Item "Power Name"
2763 This option controls which power readings are being reported. Whether matching
2764 power readings are being ignored or \fIonly\fR matching power readings are reported
2765 depends on the \fBIgnoreSelectedPower\fR setting below. By default \fIall\fR
2766 power readings are reported.
2767 .IP "\fBIgnoreSelectedPower\fR \fBfalse\fR|\fBtrue\fR" 4
2768 .IX Item "IgnoreSelectedPower false|true"
2769 Controls the behavior of the \fBPower\fR setting above. If set to \fBfalse\fR
2770 (the default) only power readings matching a \fBPower\fR option are reported
2771 or, if no \fBPower\fR option is specified, all power readings are reported. If
2772 set to \fBtrue\fR, matching power readings are \fIignored\fR and all other power readings
2773 are reported.
2774 .Sp
2775 Known power names are:
2776 .RS 4
2777 .IP "total0" 4
2778 .IX Item "total0"
2779 Total power utilization averaged over Time Window 0 (uWatts).
2780 .IP "total1" 4
2781 .IX Item "total1"
2782 Total power utilization averaged over Time Window 0 (uWatts).
2783 .IP "inst" 4
2784 .IX Item "inst"
2785 Instantaneous power (uWatts).
2786 .IP "imax" 4
2787 .IX Item "imax"
2788 Max instantaneous power (uWatts).
2789 .IP "pcie" 4
2790 .IX Item "pcie"
2791 PCI-E connector power (uWatts).
2792 .IP "c2x3" 4
2793 .IX Item "c2x3"
2794 2x3 connector power (uWatts).
2795 .IP "c2x4" 4
2796 .IX Item "c2x4"
2797 2x4 connector power (uWatts).
2798 .IP "vccp" 4
2799 .IX Item "vccp"
2800 Core rail (uVolts).
2801 .IP "vddg" 4
2802 .IX Item "vddg"
2803 Uncore rail (uVolts).
2804 .IP "vddq" 4
2805 .IX Item "vddq"
2806 Memory subsystem rail (uVolts).
2807 .RE
2808 .RS 4
2809 .RE
2810 .ie n .SS "Plugin ""memory"""
2811 .el .SS "Plugin \f(CWmemory\fP"
2812 .IX Subsection "Plugin memory"
2813 The \fImemory plugin\fR provides the following configuration options:
2814 .IP "\fBValuesAbsolute\fR \fBtrue\fR|\fBfalse\fR" 4
2815 .IX Item "ValuesAbsolute true|false"
2816 Enables or disables reporting of physical memory usage in absolute numbers,
2817 i.e. bytes. Defaults to \fBtrue\fR.
2818 .IP "\fBValuesPercentage\fR \fBfalse\fR|\fBtrue\fR" 4
2819 .IX Item "ValuesPercentage false|true"
2820 Enables or disables reporting of physical memory usage in percentages, e.g.
2821 percent of physical memory used. Defaults to \fBfalse\fR.
2822 .Sp
2823 This is useful for deploying \fIcollectd\fR in a heterogeneous environment in
2824 which the sizes of physical memory vary.
2825 .ie n .SS "Plugin ""modbus"""
2826 .el .SS "Plugin \f(CWmodbus\fP"
2827 .IX Subsection "Plugin modbus"
2828 The \fBmodbus plugin\fR connects to a Modbus \*(L"slave\*(R" via Modbus/TCP or Modbus/RTU and
2829 reads register values. It supports reading single registers (unsigned 16\ bit
2830 values), large integer values (unsigned 32\ bit values) and floating point
2831 values (two registers interpreted as \s-1IEEE\s0 floats in big endian notation).
2832 .PP
2833 \&\fBSynopsis:\fR
2834 .PP
2835 .Vb 7
2836 \& <Data "voltage\-input\-1">
2837 \&   RegisterBase 0
2838 \&   RegisterType float
2839 \&   RegisterCmd ReadHolding
2840 \&   Type voltage
2841 \&   Instance "input\-1"
2842 \& </Data>
2843 \&
2844 \& <Data "voltage\-input\-2">
2845 \&   RegisterBase 2
2846 \&   RegisterType float
2847 \&   RegisterCmd ReadHolding
2848 \&   Type voltage
2849 \&   Instance "input\-2"
2850 \& </Data>
2851 \&
2852 \& <Data "supply\-temperature\-1">
2853 \&   RegisterBase 0
2854 \&   RegisterType Int16
2855 \&   RegisterCmd ReadHolding
2856 \&   Type temperature
2857 \&   Instance "temp\-1"
2858 \& </Data>
2859 \&
2860 \& <Host "modbus.example.com">
2861 \&   Address "192.168.0.42"
2862 \&   Port    "502"
2863 \&   Interval 60
2864 \&
2865 \&   <Slave 1>
2866 \&     Instance "power\-supply"
2867 \&     Collect  "voltage\-input\-1"
2868 \&     Collect  "voltage\-input\-2"
2869 \&   </Slave>
2870 \& </Host>
2871 \&
2872 \& <Host "localhost">
2873 \&   Device "/dev/ttyUSB0"
2874 \&   Baudrate 38400
2875 \&   Interval 20
2876 \&
2877 \&   <Slave 1>
2878 \&     Instance "temperature"
2879 \&     Collect  "supply\-temperature\-1"
2880 \&   </Slave>
2881 \& </Host>
2882 .Ve
2883 .IP "<\fBData\fR \fIName\fR> blocks" 4
2884 .IX Item "<Data Name> blocks"
2885 Data blocks define a mapping between register numbers and the \*(L"types\*(R" used by
2886 \&\fIcollectd\fR.
2887 .Sp
2888 Within <Data\ /> blocks, the following options are allowed:
2889 .RS 4
2890 .IP "\fBRegisterBase\fR \fINumber\fR" 4
2891 .IX Item "RegisterBase Number"
2892 Configures the base register to read from the device. If the option
2893 \&\fBRegisterType\fR has been set to \fBUint32\fR or \fBFloat\fR, this and the next
2894 register will be read (the register number is increased by one).
2895 .IP "\fBRegisterType\fR \fBInt16\fR|\fBInt32\fR|\fBUint16\fR|\fBUint32\fR|\fBFloat\fR" 4
2896 .IX Item "RegisterType Int16|Int32|Uint16|Uint32|Float"
2897 Specifies what kind of data is returned by the device. If the type is \fBInt32\fR,
2898 \&\fBUint32\fR or \fBFloat\fR, two 16\ bit registers will be read and the data is
2899 combined into one value. Defaults to \fBUint16\fR.
2900 .IP "\fBRegisterCmd\fR \fBReadHolding\fR|\fBReadInput\fR" 4
2901 .IX Item "RegisterCmd ReadHolding|ReadInput"
2902 Specifies register type to be collected from device. Works only with libmodbus
2903 2.9.2 or higher. Defaults to \fBReadHolding\fR.
2904 .IP "\fBType\fR \fIType\fR" 4
2905 .IX Item "Type Type"
2906 Specifies the \*(L"type\*(R" (data set) to use when dispatching the value to
2907 \&\fIcollectd\fR. Currently, only data sets with exactly one data source are
2908 supported.
2909 .IP "\fBInstance\fR \fIInstance\fR" 4
2910 .IX Item "Instance Instance"
2911 Sets the type instance to use when dispatching the value to \fIcollectd\fR. If
2912 unset, an empty string (no type instance) is used.
2913 .RE
2914 .RS 4
2915 .RE
2916 .IP "<\fBHost\fR \fIName\fR> blocks" 4
2917 .IX Item "<Host Name> blocks"
2918 Host blocks are used to specify to which hosts to connect and what data to read
2919 from their \*(L"slaves\*(R". The string argument \fIName\fR is used as hostname when
2920 dispatching the values to \fIcollectd\fR.
2921 .Sp
2922 Within <Host\ /> blocks, the following options are allowed:
2923 .RS 4
2924 .IP "\fBAddress\fR \fIHostname\fR" 4
2925 .IX Item "Address Hostname"
2926 For Modbus/TCP, specifies the node name (the actual network address) used to
2927 connect to the host. This may be an \s-1IP\s0 address or a hostname. Please note that
2928 the used \fIlibmodbus\fR library only supports IPv4 at the moment.
2929 .IP "\fBPort\fR \fIService\fR" 4
2930 .IX Item "Port Service"
2931 for Modbus/TCP, specifies the port used to connect to the host. The port can
2932 either be given as a number or as a service name. Please note that the
2933 \&\fIService\fR argument must be a string, even if ports are given in their numerical
2934 form. Defaults to \*(L"502\*(R".
2935 .IP "\fBDevice\fR \fIDevicenode\fR" 4
2936 .IX Item "Device Devicenode"
2937 For Modbus/RTU, specifies the path to the serial device being used.
2938 .IP "\fBBaudrate\fR \fIBaudrate\fR" 4
2939 .IX Item "Baudrate Baudrate"
2940 For Modbus/RTU, specifies the baud rate of the serial device.
2941 Note, connections currently support only 8/N/1.
2942 .IP "\fBInterval\fR \fIInterval\fR" 4
2943 .IX Item "Interval Interval"
2944 Sets the interval (in seconds) in which the values will be collected from this
2945 host. By default the global \fBInterval\fR setting will be used.
2946 .IP "<\fBSlave\fR \fI\s-1ID\s0\fR>" 4
2947 .IX Item "<Slave ID>"
2948 Over each connection, multiple Modbus devices may be reached. The slave \s-1ID\s0
2949 is used to specify which device should be addressed. For each device you want
2950 to query, one \fBSlave\fR block must be given.
2951 .Sp
2952 Within <Slave\ /> blocks, the following options are allowed:
2953 .RS 4
2954 .IP "\fBInstance\fR \fIInstance\fR" 4
2955 .IX Item "Instance Instance"
2956 Specify the plugin instance to use when dispatching the values to \fIcollectd\fR.
2957 By default "slave_\fI\s-1ID\s0\fR" is used.
2958 .IP "\fBCollect\fR \fIDataName\fR" 4
2959 .IX Item "Collect DataName"
2960 Specifies which data to retrieve from the device. \fIDataName\fR must be the same
2961 string as the \fIName\fR argument passed to a \fBData\fR block. You can specify this
2962 option multiple times to collect more than one value from a slave. At least one
2963 \&\fBCollect\fR option is mandatory.
2964 .RE
2965 .RS 4
2966 .RE
2967 .RE
2968 .RS 4
2969 .RE
2970 .ie n .SS "Plugin ""mysql"""
2971 .el .SS "Plugin \f(CWmysql\fP"
2972 .IX Subsection "Plugin mysql"
2973 The \f(CW\*(C`mysql plugin\*(C'\fR requires \fBmysqlclient\fR to be installed. It connects to
2974 one or more databases when started and keeps the connection up as long as
2975 possible. When the connection is interrupted for whatever reason it will try
2976 to re-connect. The plugin will complain loudly in case anything goes wrong.
2977 .PP
2978 This plugin issues the MySQL \f(CW\*(C`SHOW STATUS\*(C'\fR / \f(CW\*(C`SHOW GLOBAL STATUS\*(C'\fR command
2979 and collects information about MySQL network traffic, executed statements,
2980 requests, the query cache and threads by evaluating the
2981 \&\f(CW\*(C`Bytes_{received,sent}\*(C'\fR, \f(CW\*(C`Com_*\*(C'\fR, \f(CW\*(C`Handler_*\*(C'\fR, \f(CW\*(C`Qcache_*\*(C'\fR and \f(CW\*(C`Threads_*\*(C'\fR
2982 return values. Please refer to the \fBMySQL reference manual\fR, \fI5.1.6. Server
2983 Status Variables\fR for an explanation of these values.
2984 .PP
2985 Optionally, master and slave statistics may be collected in a MySQL
2986 replication setup. In that case, information about the synchronization state
2987 of the nodes are collected by evaluating the \f(CW\*(C`Position\*(C'\fR return value of the
2988 \&\f(CW\*(C`SHOW MASTER STATUS\*(C'\fR command and the \f(CW\*(C`Seconds_Behind_Master\*(C'\fR,
2989 \&\f(CW\*(C`Read_Master_Log_Pos\*(C'\fR and \f(CW\*(C`Exec_Master_Log_Pos\*(C'\fR return values of the
2990 \&\f(CW\*(C`SHOW SLAVE STATUS\*(C'\fR command. See the \fBMySQL reference manual\fR,
2991 \&\fI12.5.5.21 \s-1SHOW MASTER STATUS\s0 Syntax\fR and
2992 \&\fI12.5.5.31 \s-1SHOW SLAVE STATUS\s0 Syntax\fR for details.
2993 .PP
2994 Synopsis:
2995 .PP
2996 .Vb 9
2997 \&  <Plugin mysql>
2998 \&    <Database foo>
2999 \&      Host "hostname"
3000 \&      User "username"
3001 \&      Password "password"
3002 \&      Port "3306"
3003 \&      MasterStats true
3004 \&      ConnectTimeout 10
3005 \&    </Database>
3006 \&
3007 \&    <Database bar>
3008 \&      Alias "squeeze"
3009 \&      Host "localhost"
3010 \&      Socket "/var/run/mysql/mysqld.sock"
3011 \&      SlaveStats true
3012 \&      SlaveNotifications true
3013 \&    </Database>
3014 \&  </Plugin>
3015 .Ve
3016 .PP
3017 A \fBDatabase\fR block defines one connection to a MySQL database. It accepts a
3018 single argument which specifies the name of the database. None of the other
3019 options are required. MySQL will use default values as documented in the
3020 section \*(L"\fImysql_real_connect()\fR\*(R" in the \fBMySQL reference manual\fR.
3021 .IP "\fBAlias\fR \fIAlias\fR" 4
3022 .IX Item "Alias Alias"
3023 Alias to use as sender instead of hostname when reporting. This may be useful
3024 when having cryptic hostnames.
3025 .IP "\fBHost\fR \fIHostname\fR" 4
3026 .IX Item "Host Hostname"
3027 Hostname of the database server. Defaults to \fBlocalhost\fR.
3028 .IP "\fBUser\fR \fIUsername\fR" 4
3029 .IX Item "User Username"
3030 Username to use when connecting to the database. The user does not have to be
3031 granted any privileges (which is synonym to granting the \f(CW\*(C`USAGE\*(C'\fR privilege),
3032 unless you want to collectd replication statistics (see \fBMasterStats\fR and
3033 \&\fBSlaveStats\fR below). In this case, the user needs the \f(CW\*(C`REPLICATION CLIENT\*(C'\fR
3034 (or \f(CW\*(C`SUPER\*(C'\fR) privileges. Else, any existing MySQL user will do.
3035 .IP "\fBPassword\fR \fIPassword\fR" 4
3036 .IX Item "Password Password"
3037 Password needed to log into the database.
3038 .IP "\fBDatabase\fR \fIDatabase\fR" 4
3039 .IX Item "Database Database"
3040 Select this database. Defaults to \fIno database\fR which is a perfectly reasonable
3041 option for what this plugin does.
3042 .IP "\fBPort\fR \fIPort\fR" 4
3043 .IX Item "Port Port"
3044 TCP-port to connect to. The port must be specified in its numeric form, but it
3045 must be passed as a string nonetheless. For example:
3046 .Sp
3047 .Vb 1
3048 \&  Port "3306"
3049 .Ve
3050 .Sp
3051 If \fBHost\fR is set to \fBlocalhost\fR (the default), this setting has no effect.
3052 See the documentation for the \f(CW\*(C`mysql_real_connect\*(C'\fR function for details.
3053 .IP "\fBSocket\fR \fISocket\fR" 4
3054 .IX Item "Socket Socket"
3055 Specifies the path to the \s-1UNIX\s0 domain socket of the MySQL server. This option
3056 only has any effect, if \fBHost\fR is set to \fBlocalhost\fR (the default).
3057 Otherwise, use the \fBPort\fR option above. See the documentation for the
3058 \&\f(CW\*(C`mysql_real_connect\*(C'\fR function for details.
3059 .IP "\fBInnodbStats\fR \fItrue|false\fR" 4
3060 .IX Item "InnodbStats true|false"
3061 If enabled, metrics about the InnoDB storage engine are collected.
3062 Disabled by default.
3063 .IP "\fBMasterStats\fR \fItrue|false\fR" 4
3064 .IX Item "MasterStats true|false"
3065 .PD 0
3066 .IP "\fBSlaveStats\fR \fItrue|false\fR" 4
3067 .IX Item "SlaveStats true|false"
3068 .PD
3069 Enable the collection of master / slave statistics in a replication setup. In
3070 order to be able to get access to these statistics, the user needs special
3071 privileges. See the \fBUser\fR documentation above. Defaults to \fBfalse\fR.
3072 .IP "\fBSlaveNotifications\fR \fItrue|false\fR" 4
3073 .IX Item "SlaveNotifications true|false"
3074 If enabled, the plugin sends a notification if the replication slave I/O and /
3075 or \s-1SQL\s0 threads are not running. Defaults to \fBfalse\fR.
3076 .IP "\fBConnectTimeout\fR \fISeconds\fR" 4
3077 .IX Item "ConnectTimeout Seconds"
3078 Sets the connect timeout for the MySQL client.
3079 .ie n .SS "Plugin ""netapp"""
3080 .el .SS "Plugin \f(CWnetapp\fP"
3081 .IX Subsection "Plugin netapp"
3082 The netapp plugin can collect various performance and capacity information
3083 from a NetApp filer using the NetApp \s-1API.\s0
3084 .PP
3085 Please note that NetApp has a wide line of products and a lot of different
3086 software versions for each of these products. This plugin was developed for a
3087 NetApp \s-1FAS3040\s0 running OnTap 7.2.3P8 and tested on \s-1FAS2050 7.3.1.1L1,
3088 FAS3140 7.2.5.1\s0 and \s-1FAS3020 7.2.4P9.\s0 It \fIshould\fR work for most combinations of
3089 model and software version but it is very hard to test this.
3090 If you have used this plugin with other models and/or software version, feel
3091 free to send us a mail to tell us about the results, even if it's just a short
3092 \&\*(L"It works\*(R".
3093 .PP
3094 To collect these data collectd will log in to the NetApp via \s-1HTTP\s0(S) and \s-1HTTP\s0
3095 basic authentication.
3096 .PP
3097 \&\fBDo not use a regular user for this!\fR Create a special collectd user with just
3098 the minimum of capabilities needed. The user only needs the \*(L"login-http-admin\*(R"
3099 capability as well as a few more depending on which data will be collected.
3100 Required capabilities are documented below.
3101 .PP
3102 \fISynopsis\fR
3103 .IX Subsection "Synopsis"
3104 .PP
3105 .Vb 8
3106 \& <Plugin "netapp">
3107 \&   <Host "netapp1.example.com">
3108 \&    Protocol      "https"
3109 \&    Address       "10.0.0.1"
3110 \&    Port          443
3111 \&    User          "username"
3112 \&    Password      "aef4Aebe"
3113 \&    Interval      30
3114 \&
3115 \&    <WAFL>
3116 \&      Interval 30
3117 \&      GetNameCache   true
3118 \&      GetDirCache    true
3119 \&      GetBufferCache true
3120 \&      GetInodeCache  true
3121 \&    </WAFL>
3122 \&
3123 \&    <Disks>
3124 \&      Interval 30
3125 \&      GetBusy true
3126 \&    </Disks>
3127 \&
3128 \&    <VolumePerf>
3129 \&      Interval 30
3130 \&      GetIO      "volume0"
3131 \&      IgnoreSelectedIO      false
3132 \&      GetOps     "volume0"
3133 \&      IgnoreSelectedOps     false
3134 \&      GetLatency "volume0"
3135 \&      IgnoreSelectedLatency false
3136 \&    </VolumePerf>
3137 \&
3138 \&    <VolumeUsage>
3139 \&      Interval 30
3140 \&      GetCapacity "vol0"
3141 \&      GetCapacity "vol1"
3142 \&      IgnoreSelectedCapacity false
3143 \&      GetSnapshot "vol1"
3144 \&      GetSnapshot "vol3"
3145 \&      IgnoreSelectedSnapshot false
3146 \&    </VolumeUsage>
3147 \&
3148 \&    <Quota>
3149 \&      Interval 60
3150 \&    </Quota>
3151 \&
3152 \&    <Snapvault>
3153 \&      Interval 30
3154 \&    </Snapvault>
3155 \&
3156 \&    <System>
3157 \&      Interval 30
3158 \&      GetCPULoad     true
3159 \&      GetInterfaces  true
3160 \&      GetDiskOps     true
3161 \&      GetDiskIO      true
3162 \&    </System>
3163 \&
3164 \&    <VFiler vfilerA>
3165 \&      Interval 60
3166 \&
3167 \&      SnapVault true
3168 \&      # ...
3169 \&    </VFiler>
3170 \&   </Host>
3171 \& </Plugin>
3172 .Ve
3173 .PP
3174 The netapp plugin accepts the following configuration options:
3175 .IP "\fBHost\fR \fIName\fR" 4
3176 .IX Item "Host Name"
3177 A host block defines one NetApp filer. It will appear in collectd with the name
3178 you specify here which does not have to be its real name nor its hostname (see
3179 the \fBAddress\fR option below).
3180 .IP "\fBVFiler\fR \fIName\fR" 4
3181 .IX Item "VFiler Name"
3182 A \fBVFiler\fR block may only be used inside a host block. It accepts all the
3183 same options as the \fBHost\fR block (except for cascaded \fBVFiler\fR blocks) and
3184 will execute all NetApp \s-1API\s0 commands in the context of the specified
3185 VFiler(R). It will appear in collectd with the name you specify here which
3186 does not have to be its real name. The VFiler name may be specified using the
3187 \&\fBVFilerName\fR option. If this is not specified, it will default to the name
3188 you specify here.
3189 .Sp
3190 The VFiler block inherits all connection related settings from the surrounding
3191 \&\fBHost\fR block (which appear before the \fBVFiler\fR block) but they may be
3192 overwritten inside the \fBVFiler\fR block.
3193 .Sp
3194 This feature is useful, for example, when using a VFiler as SnapVault target
3195 (supported since OnTap 8.1). In that case, the SnapVault statistics are not
3196 available in the host filer (vfiler0) but only in the respective VFiler
3197 context.
3198 .IP "\fBProtocol\fR \fBhttpd\fR|\fBhttp\fR" 4
3199 .IX Item "Protocol httpd|http"
3200 The protocol collectd will use to query this host.
3201 .Sp
3202 Optional
3203 .Sp
3204 Type: string
3205 .Sp
3206 Default: https
3207 .Sp
3208 Valid options: http, https
3209 .IP "\fBAddress\fR \fIAddress\fR" 4
3210 .IX Item "Address Address"
3211 The hostname or \s-1IP\s0 address of the host.
3212 .Sp
3213 Optional
3214 .Sp
3215 Type: string
3216 .Sp
3217 Default: The \*(L"host\*(R" block's name.
3218 .IP "\fBPort\fR \fIPort\fR" 4
3219 .IX Item "Port Port"
3220 The \s-1TCP\s0 port to connect to on the host.
3221 .Sp
3222 Optional
3223 .Sp
3224 Type: integer
3225 .Sp
3226 Default: 80 for protocol \*(L"http\*(R", 443 for protocol \*(L"https\*(R"
3227 .IP "\fBUser\fR \fIUser\fR" 4
3228 .IX Item "User User"
3229 .PD 0
3230 .IP "\fBPassword\fR \fIPassword\fR" 4
3231 .IX Item "Password Password"
3232 .PD
3233 The username and password to use to login to the NetApp.
3234 .Sp
3235 Mandatory
3236 .Sp
3237 Type: string
3238 .IP "\fBVFilerName\fR \fIName\fR" 4
3239 .IX Item "VFilerName Name"
3240 The name of the VFiler in which context to execute \s-1API\s0 commands. If not
3241 specified, the name provided to the \fBVFiler\fR block will be used instead.
3242 .Sp
3243 Optional
3244 .Sp
3245 Type: string
3246 .Sp
3247 Default: name of the \fBVFiler\fR block
3248 .Sp
3249 \&\fBNote:\fR This option may only be used inside \fBVFiler\fR blocks.
3250 .IP "\fBInterval\fR \fIInterval\fR" 4
3251 .IX Item "Interval Interval"
3252 \&\fB\s-1TODO\s0\fR
3253 .PP
3254 The following options decide what kind of data will be collected. You can
3255 either use them as a block and fine tune various parameters inside this block,
3256 use them as a single statement to just accept all default values, or omit it to
3257 not collect any data.
3258 .PP
3259 The following options are valid inside all blocks:
3260 .IP "\fBInterval\fR \fISeconds\fR" 4
3261 .IX Item "Interval Seconds"
3262 Collect the respective statistics every \fISeconds\fR seconds. Defaults to the
3263 host specific setting.
3264 .PP
3265 \fIThe System block\fR
3266 .IX Subsection "The System block"
3267 .PP
3268 This will collect various performance data about the whole system.
3269 .PP
3270 \&\fBNote:\fR To get this data the collectd user needs the
3271 \&\*(L"api-perf-object-get-instances\*(R" capability.
3272 .IP "\fBInterval\fR \fISeconds\fR" 4
3273 .IX Item "Interval Seconds"
3274 Collect disk statistics every \fISeconds\fR seconds.
3275 .IP "\fBGetCPULoad\fR \fBtrue\fR|\fBfalse\fR" 4
3276 .IX Item "GetCPULoad true|false"
3277 If you set this option to true the current \s-1CPU\s0 usage will be read. This will be
3278 the average usage between all CPUs in your NetApp without any information about
3279 individual CPUs.
3280 .Sp
3281 \&\fBNote:\fR These are the same values that the NetApp \s-1CLI\s0 command \*(L"sysstat\*(R"
3282 returns in the \*(L"\s-1CPU\*(R"\s0 field.
3283 .Sp
3284 Optional
3285 .Sp
3286 Type: boolean
3287 .Sp
3288 Default: true
3289 .Sp
3290 Result: Two value lists of type \*(L"cpu\*(R", and type instances \*(L"idle\*(R" and \*(L"system\*(R".
3291 .IP "\fBGetInterfaces\fR \fBtrue\fR|\fBfalse\fR" 4
3292 .IX Item "GetInterfaces true|false"
3293 If you set this option to true the current traffic of the network interfaces
3294 will be read. This will be the total traffic over all interfaces of your NetApp
3295 without any information about individual interfaces.
3296 .Sp
3297 \&\fBNote:\fR This is the same values that the NetApp \s-1CLI\s0 command \*(L"sysstat\*(R" returns
3298 in the \*(L"Net kB/s\*(R" field.
3299 .Sp
3300 \&\fBOr is it?\fR
3301 .Sp
3302 Optional
3303 .Sp
3304 Type: boolean
3305 .Sp
3306 Default: true
3307 .Sp
3308 Result: One value list of type \*(L"if_octects\*(R".
3309 .IP "\fBGetDiskIO\fR \fBtrue\fR|\fBfalse\fR" 4
3310 .IX Item "GetDiskIO true|false"
3311 If you set this option to true the current \s-1IO\s0 throughput will be read. This
3312 will be the total \s-1IO\s0 of your NetApp without any information about individual
3313 disks, volumes or aggregates.
3314 .Sp
3315 \&\fBNote:\fR This is the same values that the NetApp \s-1CLI\s0 command \*(L"sysstat\*(R" returns
3316 in the \*(L"Disk\ kB/s\*(R" field.
3317 .Sp
3318 Optional
3319 .Sp
3320 Type: boolean
3321 .Sp
3322 Default: true
3323 .Sp
3324 Result: One value list of type \*(L"disk_octets\*(R".
3325 .IP "\fBGetDiskOps\fR \fBtrue\fR|\fBfalse\fR" 4
3326 .IX Item "GetDiskOps true|false"
3327 If you set this option to true the current number of \s-1HTTP, NFS, CIFS, FCP,\s0
3328 iSCSI, etc. operations will be read. This will be the total number of
3329 operations on your NetApp without any information about individual volumes or
3330 aggregates.
3331 .Sp
3332 \&\fBNote:\fR These are the same values that the NetApp \s-1CLI\s0 command \*(L"sysstat\*(R"
3333 returns in the \*(L"\s-1NFS\*(R", \*(L"CIFS\*(R", \*(L"HTTP\*(R", \*(L"FCP\*(R"\s0 and \*(L"iSCSI\*(R" fields.
3334 .Sp
3335 Optional
3336 .Sp
3337 Type: boolean
3338 .Sp
3339 Default: true
3340 .Sp
3341 Result: A variable number of value lists of type \*(L"disk_ops_complex\*(R". Each type
3342 of operation will result in one value list with the name of the operation as
3343 type instance.
3344 .PP
3345 \fIThe \s-1WAFL\s0 block\fR
3346 .IX Subsection "The WAFL block"
3347 .PP
3348 This will collect various performance data about the \s-1WAFL\s0 file system. At the
3349 moment this just means cache performance.
3350 .PP
3351 \&\fBNote:\fR To get this data the collectd user needs the
3352 \&\*(L"api-perf-object-get-instances\*(R" capability.
3353 .PP
3354 \&\fBNote:\fR The interface to get these values is classified as \*(L"Diagnostics\*(R" by
3355 NetApp. This means that it is not guaranteed to be stable even between minor
3356 releases.
3357 .IP "\fBInterval\fR \fISeconds\fR" 4
3358 .IX Item "Interval Seconds"
3359 Collect disk statistics every \fISeconds\fR seconds.
3360 .IP "\fBGetNameCache\fR \fBtrue\fR|\fBfalse\fR" 4
3361 .IX Item "GetNameCache true|false"
3362 Optional
3363 .Sp
3364 Type: boolean
3365 .Sp
3366 Default: true
3367 .Sp
3368 Result: One value list of type \*(L"cache_ratio\*(R" and type instance
3369 \&\*(L"name_cache_hit\*(R".
3370 .IP "\fBGetDirCache\fR \fBtrue\fR|\fBfalse\fR" 4
3371 .IX Item "GetDirCache true|false"
3372 Optional
3373 .Sp
3374 Type: boolean
3375 .Sp
3376 Default: true
3377 .Sp
3378 Result: One value list of type \*(L"cache_ratio\*(R" and type instance \*(L"find_dir_hit\*(R".
3379 .IP "\fBGetInodeCache\fR \fBtrue\fR|\fBfalse\fR" 4
3380 .IX Item "GetInodeCache true|false"
3381 Optional
3382 .Sp
3383 Type: boolean
3384 .Sp
3385 Default: true
3386 .Sp
3387 Result: One value list of type \*(L"cache_ratio\*(R" and type instance
3388 \&\*(L"inode_cache_hit\*(R".
3389 .IP "\fBGetBufferCache\fR \fBtrue\fR|\fBfalse\fR" 4
3390 .IX Item "GetBufferCache true|false"
3391 \&\fBNote:\fR This is the same value that the NetApp \s-1CLI\s0 command \*(L"sysstat\*(R" returns
3392 in the \*(L"Cache hit\*(R" field.
3393 .Sp
3394 Optional
3395 .Sp
3396 Type: boolean
3397 .Sp
3398 Default: true
3399 .Sp
3400 Result: One value list of type \*(L"cache_ratio\*(R" and type instance \*(L"buf_hash_hit\*(R".
3401 .PP
3402 \fIThe Disks block\fR
3403 .IX Subsection "The Disks block"
3404 .PP
3405 This will collect performance data about the individual disks in the NetApp.
3406 .PP
3407 \&\fBNote:\fR To get this data the collectd user needs the
3408 \&\*(L"api-perf-object-get-instances\*(R" capability.
3409 .IP "\fBInterval\fR \fISeconds\fR" 4
3410 .IX Item "Interval Seconds"
3411 Collect disk statistics every \fISeconds\fR seconds.
3412 .IP "\fBGetBusy\fR \fBtrue\fR|\fBfalse\fR" 4
3413 .IX Item "GetBusy true|false"
3414 If you set this option to true the busy time of all disks will be calculated
3415 and the value of the busiest disk in the system will be written.
3416 .Sp
3417 \&\fBNote:\fR This is the same values that the NetApp \s-1CLI\s0 command \*(L"sysstat\*(R" returns
3418 in the \*(L"Disk util\*(R" field. Probably.
3419 .Sp
3420 Optional
3421 .Sp
3422 Type: boolean
3423 .Sp
3424 Default: true
3425 .Sp
3426 Result: One value list of type \*(L"percent\*(R" and type instance \*(L"disk_busy\*(R".
3427 .PP
3428 \fIThe VolumePerf block\fR
3429 .IX Subsection "The VolumePerf block"
3430 .PP
3431 This will collect various performance data about the individual volumes.
3432 .PP
3433 You can select which data to collect about which volume using the following
3434 options. They follow the standard ignorelist semantic.
3435 .PP
3436 \&\fBNote:\fR To get this data the collectd user needs the
3437 \&\fIapi-perf-object-get-instances\fR capability.
3438 .IP "\fBInterval\fR \fISeconds\fR" 4
3439 .IX Item "Interval Seconds"
3440 Collect volume performance data every \fISeconds\fR seconds.
3441 .IP "\fBGetIO\fR \fIVolume\fR" 4
3442 .IX Item "GetIO Volume"
3443 .PD 0
3444 .IP "\fBGetOps\fR \fIVolume\fR" 4
3445 .IX Item "GetOps Volume"
3446 .IP "\fBGetLatency\fR \fIVolume\fR" 4
3447 .IX Item "GetLatency Volume"
3448 .PD
3449 Select the given volume for \s-1IO,\s0 operations or latency statistics collection.
3450 The argument is the name of the volume without the \f(CW\*(C`/vol/\*(C'\fR prefix.
3451 .Sp
3452 Since the standard ignorelist functionality is used here, you can use a string
3453 starting and ending with a slash to specify regular expression matching: To
3454 match the volumes \*(L"vol0\*(R", \*(L"vol2\*(R" and \*(L"vol7\*(R", you can use this regular
3455 expression:
3456 .Sp
3457 .Vb 1
3458 \&  GetIO "/^vol[027]$/"
3459 .Ve
3460 .Sp
3461 If no regular expression is specified, an exact match is required. Both,
3462 regular and exact matching are case sensitive.
3463 .Sp
3464 If no volume was specified at all for either of the three options, that data
3465 will be collected for all available volumes.
3466 .IP "\fBIgnoreSelectedIO\fR \fBtrue\fR|\fBfalse\fR" 4
3467 .IX Item "IgnoreSelectedIO true|false"
3468 .PD 0
3469 .IP "\fBIgnoreSelectedOps\fR \fBtrue\fR|\fBfalse\fR" 4
3470 .IX Item "IgnoreSelectedOps true|false"
3471 .IP "\fBIgnoreSelectedLatency\fR \fBtrue\fR|\fBfalse\fR" 4
3472 .IX Item "IgnoreSelectedLatency true|false"
3473 .PD
3474 When set to \fBtrue\fR, the volumes selected for \s-1IO,\s0 operations or latency
3475 statistics collection will be ignored and the data will be collected for all
3476 other volumes.
3477 .Sp
3478 When set to \fBfalse\fR, data will only be collected for the specified volumes and
3479 all other volumes will be ignored.
3480 .Sp
3481 If no volumes have been specified with the above \fBGet*\fR options, all volumes
3482 will be collected regardless of the \fBIgnoreSelected*\fR option.
3483 .Sp
3484 Defaults to \fBfalse\fR
3485 .PP
3486 \fIThe VolumeUsage block\fR
3487 .IX Subsection "The VolumeUsage block"
3488 .PP
3489 This will collect capacity data about the individual volumes.
3490 .PP
3491 \&\fBNote:\fR To get this data the collectd user needs the \fIapi-volume-list-info\fR
3492 capability.
3493 .IP "\fBInterval\fR \fISeconds\fR" 4
3494 .IX Item "Interval Seconds"
3495 Collect volume usage statistics every \fISeconds\fR seconds.
3496 .IP "\fBGetCapacity\fR \fIVolumeName\fR" 4
3497 .IX Item "GetCapacity VolumeName"
3498 The current capacity of the volume will be collected. This will result in two
3499 to four value lists, depending on the configuration of the volume. All data
3500 sources are of type \*(L"df_complex\*(R" with the name of the volume as
3501 plugin_instance.
3502 .Sp
3503 There will be type_instances \*(L"used\*(R" and \*(L"free\*(R" for the number of used and
3504 available bytes on the volume.  If the volume has some space reserved for
3505 snapshots, a type_instance \*(L"snap_reserved\*(R" will be available.  If the volume
3506 has \s-1SIS\s0 enabled, a type_instance \*(L"sis_saved\*(R" will be available. This is the
3507 number of bytes saved by the \s-1SIS\s0 feature.
3508 .Sp
3509 \&\fBNote:\fR The current NetApp \s-1API\s0 has a bug that results in this value being
3510 reported as a 32\ bit number. This plugin tries to guess the correct
3511 number which works most of the time.  If you see strange values here, bug
3512 NetApp support to fix this.
3513 .Sp
3514 Repeat this option to specify multiple volumes.
3515 .IP "\fBIgnoreSelectedCapacity\fR \fBtrue\fR|\fBfalse\fR" 4
3516 .IX Item "IgnoreSelectedCapacity true|false"
3517 Specify whether to collect only the volumes selected by the \fBGetCapacity\fR
3518 option or to ignore those volumes. \fBIgnoreSelectedCapacity\fR defaults to
3519 \&\fBfalse\fR. However, if no \fBGetCapacity\fR option is specified at all, all
3520 capacities will be selected anyway.
3521 .IP "\fBGetSnapshot\fR \fIVolumeName\fR" 4
3522 .IX Item "GetSnapshot VolumeName"
3523 Select volumes from which to collect snapshot information.
3524 .Sp
3525 Usually, the space used for snapshots is included in the space reported as
3526 \&\*(L"used\*(R". If snapshot information is collected as well, the space used for
3527 snapshots is subtracted from the used space.
3528 .Sp
3529 To make things even more interesting, it is possible to reserve space to be
3530 used for snapshots. If the space required for snapshots is less than that
3531 reserved space, there is \*(L"reserved free\*(R" and \*(L"reserved used\*(R" space in addition
3532 to \*(L"free\*(R" and \*(L"used\*(R". If the space required for snapshots exceeds the reserved
3533 space, that part allocated in the normal space is subtracted from the \*(L"used\*(R"
3534 space again.
3535 .Sp
3536 Repeat this option to specify multiple volumes.
3537 .IP "\fBIgnoreSelectedSnapshot\fR" 4
3538 .IX Item "IgnoreSelectedSnapshot"
3539 Specify whether to collect only the volumes selected by the \fBGetSnapshot\fR
3540 option or to ignore those volumes. \fBIgnoreSelectedSnapshot\fR defaults to
3541 \&\fBfalse\fR. However, if no \fBGetSnapshot\fR option is specified at all, all
3542 capacities will be selected anyway.
3543 .PP
3544 \fIThe Quota block\fR
3545 .IX Subsection "The Quota block"
3546 .PP
3547 This will collect (tree) quota statistics (used disk space and number of used
3548 files). This mechanism is useful to get usage information for single qtrees.
3549 In case the quotas are not used for any other purpose, an entry similar to the
3550 following in \f(CW\*(C`/etc/quotas\*(C'\fR would be sufficient:
3551 .PP
3552 .Vb 1
3553 \&  /vol/volA/some_qtree tree \- \- \- \- \-
3554 .Ve
3555 .PP
3556 After adding the entry, issue \f(CW\*(C`quota on \-w volA\*(C'\fR on the NetApp filer.
3557 .IP "\fBInterval\fR \fISeconds\fR" 4
3558 .IX Item "Interval Seconds"
3559 Collect SnapVault(R) statistics every \fISeconds\fR seconds.
3560 .PP
3561 \fIThe SnapVault block\fR
3562 .IX Subsection "The SnapVault block"
3563 .PP
3564 This will collect statistics about the time and traffic of SnapVault(R)
3565 transfers.
3566 .IP "\fBInterval\fR \fISeconds\fR" 4
3567 .IX Item "Interval Seconds"
3568 Collect SnapVault(R) statistics every \fISeconds\fR seconds.
3569 .ie n .SS "Plugin ""netlink"""
3570 .el .SS "Plugin \f(CWnetlink\fP"
3571 .IX Subsection "Plugin netlink"
3572 The \f(CW\*(C`netlink\*(C'\fR plugin uses a netlink socket to query the Linux kernel about
3573 statistics of various interface and routing aspects.
3574 .IP "\fBInterface\fR \fIInterface\fR" 4
3575 .IX Item "Interface Interface"
3576 .PD 0
3577 .IP "\fBVerboseInterface\fR \fIInterface\fR" 4
3578 .IX Item "VerboseInterface Interface"
3579 .PD
3580 Instruct the plugin to collect interface statistics. This is basically the same
3581 as the statistics provided by the \f(CW\*(C`interface\*(C'\fR plugin (see above) but
3582 potentially much more detailed.
3583 .Sp
3584 When configuring with \fBInterface\fR only the basic statistics will be collected,
3585 namely octets, packets, and errors. These statistics are collected by
3586 the \f(CW\*(C`interface\*(C'\fR plugin, too, so using both at the same time is no benefit.
3587 .Sp
3588 When configured with \fBVerboseInterface\fR all counters \fBexcept\fR the basic ones,
3589 so that no data needs to be collected twice if you use the \f(CW\*(C`interface\*(C'\fR plugin.
3590 This includes dropped packets, received multicast packets, collisions and a
3591 whole zoo of differentiated \s-1RX\s0 and \s-1TX\s0 errors. You can try the following command
3592 to get an idea of what awaits you:
3593 .Sp
3594 .Vb 1
3595 \&  ip \-s \-s link list
3596 .Ve
3597 .Sp
3598 If \fIInterface\fR is \fBAll\fR, all interfaces will be selected.
3599 .IP "\fBQDisc\fR \fIInterface\fR [\fIQDisc\fR]" 4
3600 .IX Item "QDisc Interface [QDisc]"
3601 .PD 0
3602 .IP "\fBClass\fR \fIInterface\fR [\fIClass\fR]" 4
3603 .IX Item "Class Interface [Class]"
3604 .IP "\fBFilter\fR \fIInterface\fR [\fIFilter\fR]" 4
3605 .IX Item "Filter Interface [Filter]"
3606 .PD
3607 Collect the octets and packets that pass a certain qdisc, class or filter.
3608 .Sp
3609 QDiscs and classes are identified by their type and handle (or classid).
3610 Filters don't necessarily have a handle, therefore the parent's handle is used.
3611 The notation used in collectd differs from that used in \fItc\fR\|(1) in that it
3612 doesn't skip the major or minor number if it's zero and doesn't print special
3613 ids by their name. So, for example, a qdisc may be identified by
3614 \&\f(CW\*(C`pfifo_fast\-1:0\*(C'\fR even though the minor number of \fBall\fR qdiscs is zero and
3615 thus not displayed by \fItc\fR\|(1).
3616 .Sp
3617 If \fBQDisc\fR, \fBClass\fR, or \fBFilter\fR is given without the second argument,
3618 i.\ .e. without an identifier, all qdiscs, classes, or filters that are
3619 associated with that interface will be collected.
3620 .Sp
3621 Since a filter itself doesn't necessarily have a handle, the parent's handle is
3622 used. This may lead to problems when more than one filter is attached to a
3623 qdisc or class. This isn't nice, but we don't know how this could be done any
3624 better. If you have a idea, please don't hesitate to tell us.
3625 .Sp
3626 As with the \fBInterface\fR option you can specify \fBAll\fR as the interface,
3627 meaning all interfaces.
3628 .Sp
3629 Here are some examples to help you understand the above text more easily:
3630 .Sp
3631 .Vb 7
3632 \&  <Plugin netlink>
3633 \&    VerboseInterface "All"
3634 \&    QDisc "eth0" "pfifo_fast\-1:0"
3635 \&    QDisc "ppp0"
3636 \&    Class "ppp0" "htb\-1:10"
3637 \&    Filter "ppp0" "u32\-1:0"
3638 \&  </Plugin>
3639 .Ve
3640 .IP "\fBIgnoreSelected\fR" 4
3641 .IX Item "IgnoreSelected"
3642 The behavior is the same as with all other similar plugins: If nothing is
3643 selected at all, everything is collected. If some things are selected using the
3644 options described above, only these statistics are collected. If you set
3645 \&\fBIgnoreSelected\fR to \fBtrue\fR, this behavior is inverted, i.\ e. the
3646 specified statistics will not be collected.
3647 .ie n .SS "Plugin ""network"""
3648 .el .SS "Plugin \f(CWnetwork\fP"
3649 .IX Subsection "Plugin network"
3650 The Network plugin sends data to a remote instance of collectd, receives data
3651 from a remote instance, or both at the same time. Data which has been received
3652 from the network is usually not transmitted again, but this can be activated, see
3653 the \fBForward\fR option below.
3654 .PP
3655 The default IPv6 multicast group is \f(CW\*(C`ff18::efc0:4a42\*(C'\fR. The default IPv4
3656 multicast group is \f(CW239.192.74.66\fR. The default \fI\s-1UDP\s0\fR port is \fB25826\fR.
3657 .PP
3658 Both, \fBServer\fR and \fBListen\fR can be used as single option or as block. When
3659 used as block, given options are valid for this socket only. The following
3660 example will export the metrics twice: Once to an \*(L"internal\*(R" server (without
3661 encryption and signing) and one to an external server (with cryptographic
3662 signature):
3663 .PP
3664 .Vb 4
3665 \& <Plugin "network">
3666 \&   # Export to an internal server
3667 \&   # (demonstrates usage without additional options)
3668 \&   Server "collectd.internal.tld"
3669 \&
3670 \&   # Export to an external server
3671 \&   # (demonstrates usage with signature options)
3672 \&   <Server "collectd.external.tld">
3673 \&     SecurityLevel "sign"
3674 \&     Username "myhostname"
3675 \&     Password "ohl0eQue"
3676 \&   </Server>
3677 \& </Plugin>
3678 .Ve
3679 .IP "\fB<Server\fR \fIHost\fR [\fIPort\fR]\fB>\fR" 4
3680 .IX Item "<Server Host [Port]>"
3681 The \fBServer\fR statement/block sets the server to send datagrams to. The
3682 statement may occur multiple times to send each datagram to multiple
3683 destinations.
3684 .Sp
3685 The argument \fIHost\fR may be a hostname, an IPv4 address or an IPv6 address. The
3686 optional second argument specifies a port number or a service name. If not
3687 given, the default, \fB25826\fR, is used.
3688 .Sp
3689 The following options are recognized within \fBServer\fR blocks:
3690 .RS 4
3691 .IP "\fBSecurityLevel\fR \fBEncrypt\fR|\fBSign\fR|\fBNone\fR" 4
3692 .IX Item "SecurityLevel Encrypt|Sign|None"
3693 Set the security you require for network communication. When the security level
3694 has been set to \fBEncrypt\fR, data sent over the network will be encrypted using
3695 \&\fI\s-1AES\-256\s0\fR. The integrity of encrypted packets is ensured using \fI\s-1SHA\-1\s0\fR. When
3696 set to \fBSign\fR, transmitted data is signed using the \fI\s-1HMAC\-SHA\-256\s0\fR message
3697 authentication code. When set to \fBNone\fR, data is sent without any security.
3698 .Sp
3699 This feature is only available if the \fInetwork\fR plugin was linked with
3700 \&\fIlibgcrypt\fR.
3701 .IP "\fBUsername\fR \fIUsername\fR" 4
3702 .IX Item "Username Username"
3703 Sets the username to transmit. This is used by the server to lookup the
3704 password. See \fBAuthFile\fR below. All security levels except \fBNone\fR require
3705 this setting.
3706 .Sp
3707 This feature is only available if the \fInetwork\fR plugin was linked with
3708 \&\fIlibgcrypt\fR.
3709 .IP "\fBPassword\fR \fIPassword\fR" 4
3710 .IX Item "Password Password"
3711 Sets a password (shared secret) for this socket. All security levels except
3712 \&\fBNone\fR require this setting.
3713 .Sp
3714 This feature is only available if the \fInetwork\fR plugin was linked with
3715 \&\fIlibgcrypt\fR.
3716 .IP "\fBInterface\fR \fIInterface name\fR" 4
3717 .IX Item "Interface Interface name"
3718 Set the outgoing interface for \s-1IP\s0 packets. This applies at least
3719 to IPv6 packets and if possible to IPv4. If this option is not applicable,
3720 undefined or a non-existent interface name is specified, the default
3721 behavior is to let the kernel choose the appropriate interface. Be warned
3722 that the manual selection of an interface for unicast traffic is only
3723 necessary in rare cases.
3724 .IP "\fBResolveInterval\fR \fISeconds\fR" 4
3725 .IX Item "ResolveInterval Seconds"
3726 Sets the interval at which to re-resolve the \s-1DNS\s0 for the \fIHost\fR. This is
3727 useful to force a regular \s-1DNS\s0 lookup to support a high availability setup. If
3728 not specified, re-resolves are never attempted.
3729 .RE
3730 .RS 4
3731 .RE
3732 .IP "\fB<Listen\fR \fIHost\fR [\fIPort\fR]\fB>\fR" 4
3733 .IX Item "<Listen Host [Port]>"
3734 The \fBListen\fR statement sets the interfaces to bind to. When multiple
3735 statements are found the daemon will bind to multiple interfaces.
3736 .Sp
3737 The argument \fIHost\fR may be a hostname, an IPv4 address or an IPv6 address. If
3738 the argument is a multicast address the daemon will join that multicast group.
3739 The optional second argument specifies a port number or a service name. If not
3740 given, the default, \fB25826\fR, is used.
3741 .Sp
3742 The following options are recognized within \f(CW\*(C`<Listen>\*(C'\fR blocks:
3743 .RS 4
3744 .IP "\fBSecurityLevel\fR \fBEncrypt\fR|\fBSign\fR|\fBNone\fR" 4
3745 .IX Item "SecurityLevel Encrypt|Sign|None"
3746 Set the security you require for network communication. When the security level
3747 has been set to \fBEncrypt\fR, only encrypted data will be accepted. The integrity
3748 of encrypted packets is ensured using \fI\s-1SHA\-1\s0\fR. When set to \fBSign\fR, only
3749 signed and encrypted data is accepted. When set to \fBNone\fR, all data will be
3750 accepted. If an \fBAuthFile\fR option was given (see below), encrypted data is
3751 decrypted if possible.
3752 .Sp
3753 This feature is only available if the \fInetwork\fR plugin was linked with
3754 \&\fIlibgcrypt\fR.
3755 .IP "\fBAuthFile\fR \fIFilename\fR" 4
3756 .IX Item "AuthFile Filename"
3757 Sets a file in which usernames are mapped to passwords. These passwords are
3758 used to verify signatures and to decrypt encrypted network packets. If
3759 \&\fBSecurityLevel\fR is set to \fBNone\fR, this is optional. If given, signed data is
3760 verified and encrypted packets are decrypted. Otherwise, signed data is
3761 accepted without checking the signature and encrypted data cannot be decrypted.
3762 For the other security levels this option is mandatory.
3763 .Sp
3764 The file format is very simple: Each line consists of a username followed by a
3765 colon and any number of spaces followed by the password. To demonstrate, an
3766 example file could look like this:
3767 .Sp
3768 .Vb 2
3769 \&  user0: foo
3770 \&  user1: bar
3771 .Ve
3772 .Sp
3773 Each time a packet is received, the modification time of the file is checked
3774 using \fIstat\fR\|(2). If the file has been changed, the contents is re-read. While
3775 the file is being read, it is locked using \fIfcntl\fR\|(2).
3776 .IP "\fBInterface\fR \fIInterface name\fR" 4
3777 .IX Item "Interface Interface name"
3778 Set the incoming interface for \s-1IP\s0 packets explicitly. This applies at least
3779 to IPv6 packets and if possible to IPv4. If this option is not applicable,
3780 undefined or a non-existent interface name is specified, the default
3781 behavior is, to let the kernel choose the appropriate interface. Thus incoming
3782 traffic gets only accepted, if it arrives on the given interface.
3783 .RE
3784 .RS 4
3785 .RE
3786 .IP "\fBTimeToLive\fR \fI1\-255\fR" 4
3787 .IX Item "TimeToLive 1-255"
3788 Set the time-to-live of sent packets. This applies to all, unicast and
3789 multicast, and IPv4 and IPv6 packets. The default is to not change this value.
3790 That means that multicast packets will be sent with a \s-1TTL\s0 of \f(CW1\fR (one) on most
3791 operating systems.
3792 .IP "\fBMaxPacketSize\fR \fI1024\-65535\fR" 4
3793 .IX Item "MaxPacketSize 1024-65535"
3794 Set the maximum size for datagrams received over the network. Packets larger
3795 than this will be truncated. Defaults to 1452\ bytes, which is the maximum
3796 payload size that can be transmitted in one Ethernet frame using IPv6\ /
3797 \&\s-1UDP.\s0
3798 .Sp
3799 On the server side, this limit should be set to the largest value used on
3800 \&\fIany\fR client. Likewise, the value on the client must not be larger than the
3801 value on the server, or data will be lost.
3802 .Sp
3803 \&\fBCompatibility:\fR Versions prior to \fIversion\ 4.8\fR used a fixed sized
3804 buffer of 1024\ bytes. Versions \fI4.8\fR, \fI4.9\fR and \fI4.10\fR used a default
3805 value of 1024\ bytes to avoid problems when sending data to an older
3806 server.
3807 .IP "\fBForward\fR \fItrue|false\fR" 4
3808 .IX Item "Forward true|false"
3809 If set to \fItrue\fR, write packets that were received via the network plugin to
3810 the sending sockets. This should only be activated when the \fBListen\fR\- and
3811 \&\fBServer\fR\-statements differ. Otherwise packets may be send multiple times to
3812 the same multicast group. While this results in more network traffic than
3813 necessary it's not a huge problem since the plugin has a duplicate detection,
3814 so the values will not loop.
3815 .IP "\fBReportStats\fR \fBtrue\fR|\fBfalse\fR" 4
3816 .IX Item "ReportStats true|false"
3817 The network plugin cannot only receive and send statistics, it can also create
3818 statistics about itself. Collected data included the number of received and
3819 sent octets and packets, the length of the receive queue and the number of
3820 values handled. When set to \fBtrue\fR, the \fINetwork plugin\fR will make these
3821 statistics available. Defaults to \fBfalse\fR.
3822 .ie n .SS "Plugin ""nginx"""
3823 .el .SS "Plugin \f(CWnginx\fP"
3824 .IX Subsection "Plugin nginx"
3825 This plugin collects the number of connections and requests handled by the
3826 \&\f(CW\*(C`nginx daemon\*(C'\fR (speak: engine\ X), a \s-1HTTP\s0 and mail server/proxy. It
3827 queries the page provided by the \f(CW\*(C`ngx_http_stub_status_module\*(C'\fR module, which
3828 isn't compiled by default. Please refer to
3829 <http://wiki.codemongers.com/NginxStubStatusModule> for more information on
3830 how to compile and configure nginx and this module.
3831 .PP
3832 The following options are accepted by the \f(CW\*(C`nginx plugin\*(C'\fR:
3833 .IP "\fB\s-1URL\s0\fR \fIhttp://host/nginx_status\fR" 4
3834 .IX Item "URL http://host/nginx_status"
3835 Sets the \s-1URL\s0 of the \f(CW\*(C`ngx_http_stub_status_module\*(C'\fR output.
3836 .IP "\fBUser\fR \fIUsername\fR" 4
3837 .IX Item "User Username"
3838 Optional user name needed for authentication.
3839 .IP "\fBPassword\fR \fIPassword\fR" 4
3840 .IX Item "Password Password"
3841 Optional password needed for authentication.
3842 .IP "\fBVerifyPeer\fR \fBtrue|false\fR" 4
3843 .IX Item "VerifyPeer true|false"
3844 Enable or disable peer \s-1SSL\s0 certificate verification. See
3845 <http://curl.haxx.se/docs/sslcerts.html> for details. Enabled by default.
3846 .IP "\fBVerifyHost\fR \fBtrue|false\fR" 4
3847 .IX Item "VerifyHost true|false"
3848 Enable or disable peer host name verification. If enabled, the plugin checks
3849 if the \f(CW\*(C`Common Name\*(C'\fR or a \f(CW\*(C`Subject Alternate Name\*(C'\fR field of the \s-1SSL\s0
3850 certificate matches the host name provided by the \fB\s-1URL\s0\fR option. If this
3851 identity check fails, the connection is aborted. Obviously, only works when
3852 connecting to a \s-1SSL\s0 enabled server. Enabled by default.
3853 .IP "\fBCACert\fR \fIFile\fR" 4
3854 .IX Item "CACert File"
3855 File that holds one or more \s-1SSL\s0 certificates. If you want to use \s-1HTTPS\s0 you will
3856 possibly need this option. What \s-1CA\s0 certificates come bundled with \f(CW\*(C`libcurl\*(C'\fR
3857 and are checked by default depends on the distribution you use.
3858 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
3859 .IX Item "Timeout Milliseconds"
3860 The \fBTimeout\fR option sets the overall timeout for \s-1HTTP\s0 requests to \fB\s-1URL\s0\fR, in
3861 milliseconds. By default, the configured \fBInterval\fR is used to set the
3862 timeout.
3863 .ie n .SS "Plugin ""notify_desktop"""
3864 .el .SS "Plugin \f(CWnotify_desktop\fP"
3865 .IX Subsection "Plugin notify_desktop"
3866 This plugin sends a desktop notification to a notification daemon, as defined
3867 in the Desktop Notification Specification. To actually display the
3868 notifications, \fBnotification-daemon\fR is required and \fBcollectd\fR has to be
3869 able to access the X server (i.\ e., the \f(CW\*(C`DISPLAY\*(C'\fR and \f(CW\*(C`XAUTHORITY\*(C'\fR
3870 environment variables have to be set correctly) and the D\-Bus message bus.
3871 .PP
3872 The Desktop Notification Specification can be found at
3873 <http://www.galago\-project.org/specs/notification/>.
3874 .IP "\fBOkayTimeout\fR \fItimeout\fR" 4
3875 .IX Item "OkayTimeout timeout"
3876 .PD 0
3877 .IP "\fBWarningTimeout\fR \fItimeout\fR" 4
3878 .IX Item "WarningTimeout timeout"
3879 .IP "\fBFailureTimeout\fR \fItimeout\fR" 4
3880 .IX Item "FailureTimeout timeout"
3881 .PD
3882 Set the \fItimeout\fR, in milliseconds, after which to expire the notification
3883 for \f(CW\*(C`OKAY\*(C'\fR, \f(CW\*(C`WARNING\*(C'\fR and \f(CW\*(C`FAILURE\*(C'\fR severities respectively. If zero has
3884 been specified, the displayed notification will not be closed at all \- the
3885 user has to do so herself. These options default to 5000. If a negative number
3886 has been specified, the default is used as well.
3887 .ie n .SS "Plugin ""notify_email"""
3888 .el .SS "Plugin \f(CWnotify_email\fP"
3889 .IX Subsection "Plugin notify_email"
3890 The \fInotify_email\fR plugin uses the \fI\s-1ESMTP\s0\fR library to send notifications to a
3891 configured email address.
3892 .PP
3893 \&\fIlibESMTP\fR is available from <http://www.stafford.uklinux.net/libesmtp/>.
3894 .PP
3895 Available configuration options:
3896 .IP "\fBFrom\fR \fIAddress\fR" 4
3897 .IX Item "From Address"
3898 Email address from which the emails should appear to come from.
3899 .Sp
3900 Default: \f(CW\*(C`root@localhost\*(C'\fR
3901 .IP "\fBRecipient\fR \fIAddress\fR" 4
3902 .IX Item "Recipient Address"
3903 Configures the email address(es) to which the notifications should be mailed.
3904 May be repeated to send notifications to multiple addresses.
3905 .Sp
3906 At least one \fBRecipient\fR must be present for the plugin to work correctly.
3907 .IP "\fBSMTPServer\fR \fIHostname\fR" 4
3908 .IX Item "SMTPServer Hostname"
3909 Hostname of the \s-1SMTP\s0 server to connect to.
3910 .Sp
3911 Default: \f(CW\*(C`localhost\*(C'\fR
3912 .IP "\fBSMTPPort\fR \fIPort\fR" 4
3913 .IX Item "SMTPPort Port"
3914 \&\s-1TCP\s0 port to connect to.
3915 .Sp
3916 Default: \f(CW25\fR
3917 .IP "\fBSMTPUser\fR \fIUsername\fR" 4
3918 .IX Item "SMTPUser Username"
3919 Username for \s-1ASMTP\s0 authentication. Optional.
3920 .IP "\fBSMTPPassword\fR \fIPassword\fR" 4
3921 .IX Item "SMTPPassword Password"
3922 Password for \s-1ASMTP\s0 authentication. Optional.
3923 .IP "\fBSubject\fR \fISubject\fR" 4
3924 .IX Item "Subject Subject"
3925 Subject-template to use when sending emails. There must be exactly two
3926 string-placeholders in the subject, given in the standard \fI\fIprintf\fI\|(3)\fR syntax,
3927 i.\ e. \f(CW%s\fR. The first will be replaced with the severity, the second
3928 with the hostname.
3929 .Sp
3930 Default: \f(CW\*(C`Collectd notify: %s@%s\*(C'\fR
3931 .ie n .SS "Plugin ""ntpd"""
3932 .el .SS "Plugin \f(CWntpd\fP"
3933 .IX Subsection "Plugin ntpd"
3934 .IP "\fBHost\fR \fIHostname\fR" 4
3935 .IX Item "Host Hostname"
3936 Hostname of the host running \fBntpd\fR. Defaults to \fBlocalhost\fR.
3937 .IP "\fBPort\fR \fIPort\fR" 4
3938 .IX Item "Port Port"
3939 UDP-Port to connect to. Defaults to \fB123\fR.
3940 .IP "\fBReverseLookups\fR \fBtrue\fR|\fBfalse\fR" 4
3941 .IX Item "ReverseLookups true|false"
3942 Sets whether or not to perform reverse lookups on peers. Since the name or
3943 IP-address may be used in a filename it is recommended to disable reverse
3944 lookups. The default is to do reverse lookups to preserve backwards
3945 compatibility, though.
3946 .IP "\fBIncludeUnitID\fR \fBtrue\fR|\fBfalse\fR" 4
3947 .IX Item "IncludeUnitID true|false"
3948 When a peer is a refclock, include the unit \s-1ID\s0 in the \fItype instance\fR.
3949 Defaults to \fBfalse\fR for backward compatibility.
3950 .Sp
3951 If two refclock peers use the same driver and this is \fBfalse\fR, the plugin will
3952 try to write simultaneous measurements from both to the same type instance.
3953 This will result in error messages in the log and only one set of measurements
3954 making it through.
3955 .ie n .SS "Plugin ""nut"""
3956 .el .SS "Plugin \f(CWnut\fP"
3957 .IX Subsection "Plugin nut"
3958 .IP "\fB\s-1UPS\s0\fR \fIupsname\fR\fB@\fR\fIhostname\fR[\fB:\fR\fIport\fR]" 4
3959 .IX Item "UPS upsname@hostname[:port]"
3960 Add a \s-1UPS\s0 to collect data from. The format is identical to the one accepted by
3961 \&\fIupsc\fR\|(8).
3962 .ie n .SS "Plugin ""olsrd"""
3963 .el .SS "Plugin \f(CWolsrd\fP"
3964 .IX Subsection "Plugin olsrd"
3965 The \fIolsrd\fR plugin connects to the \s-1TCP\s0 port opened by the \fItxtinfo\fR plugin of
3966 the Optimized Link State Routing daemon and reads information about the current
3967 state of the meshed network.
3968 .PP
3969 The following configuration options are understood:
3970 .IP "\fBHost\fR \fIHost\fR" 4
3971 .IX Item "Host Host"
3972 Connect to \fIHost\fR. Defaults to \fB\*(L"localhost\*(R"\fR.
3973 .IP "\fBPort\fR \fIPort\fR" 4
3974 .IX Item "Port Port"
3975 Specifies the port to connect to. This must be a string, even if you give the
3976 port as a number rather than a service name. Defaults to \fB\*(L"2006\*(R"\fR.
3977 .IP "\fBCollectLinks\fR \fBNo\fR|\fBSummary\fR|\fBDetail\fR" 4
3978 .IX Item "CollectLinks No|Summary|Detail"
3979 Specifies what information to collect about links, i.\ e. direct
3980 connections of the daemon queried. If set to \fBNo\fR, no information is
3981 collected. If set to \fBSummary\fR, the number of links and the average of all
3982 \&\fIlink quality\fR (\s-1LQ\s0) and \fIneighbor link quality\fR (\s-1NLQ\s0) values is calculated.
3983 If set to \fBDetail\fR \s-1LQ\s0 and \s-1NLQ\s0 are collected per link.
3984 .Sp
3985 Defaults to \fBDetail\fR.
3986 .IP "\fBCollectRoutes\fR \fBNo\fR|\fBSummary\fR|\fBDetail\fR" 4
3987 .IX Item "CollectRoutes No|Summary|Detail"
3988 Specifies what information to collect about routes of the daemon queried. If
3989 set to \fBNo\fR, no information is collected. If set to \fBSummary\fR, the number of
3990 routes and the average \fImetric\fR and \fI\s-1ETX\s0\fR is calculated. If set to \fBDetail\fR
3991 metric and \s-1ETX\s0 are collected per route.
3992 .Sp
3993 Defaults to \fBSummary\fR.
3994 .IP "\fBCollectTopology\fR \fBNo\fR|\fBSummary\fR|\fBDetail\fR" 4
3995 .IX Item "CollectTopology No|Summary|Detail"
3996 Specifies what information to collect about the global topology. If set to
3997 \&\fBNo\fR, no information is collected. If set to \fBSummary\fR, the number of links
3998 in the entire topology and the average \fIlink quality\fR (\s-1LQ\s0) is calculated.
3999 If set to \fBDetail\fR \s-1LQ\s0 and \s-1NLQ\s0 are collected for each link in the entire topology.
4000 .Sp
4001 Defaults to \fBSummary\fR.
4002 .ie n .SS "Plugin ""onewire"""
4003 .el .SS "Plugin \f(CWonewire\fP"
4004 .IX Subsection "Plugin onewire"
4005 \&\fB\s-1EXPERIMENTAL\s0!\fR See notes below.
4006 .PP
4007 The \f(CW\*(C`onewire\*(C'\fR plugin uses the \fBowcapi\fR library from the \fBowfs\fR project
4008 <http://owfs.org/> to read sensors connected via the onewire bus.
4009 .PP
4010 It can be used in two possible modes \- standard or advanced.
4011 .PP
4012 In the standard mode only temperature sensors (sensors with the family code
4013 \&\f(CW10\fR, \f(CW22\fR and \f(CW28\fR \- e.g. \s-1DS1820, DS18S20, DS1920\s0) can be read. If you have
4014 other sensors you would like to have included, please send a sort request to
4015 the mailing list. You can select sensors to be read or to be ignored depending
4016 on the option \fBIgnoreSelected\fR). When no list is provided the whole bus is
4017 walked and all sensors are read.
4018 .PP
4019 Hubs (the \s-1DS2409\s0 chips) are working, but read the note, why this plugin is
4020 experimental, below.
4021 .PP
4022 In the advanced mode you can configure any sensor to be read (only numerical
4023 value) using full \s-1OWFS\s0 path (e.g. \*(L"/uncached/10.F10FCA000800/temperature\*(R").
4024 In this mode you have to list all the sensors. Neither default bus walk nor
4025 \&\fBIgnoreSelected\fR are used here. Address and type (file) is extracted from
4026 the path automatically and should produce compatible structure with the \*(L"standard\*(R"
4027 mode (basically the path is expected as for example
4028 \&\*(L"/uncached/10.F10FCA000800/temperature\*(R" where it would extract address part
4029 \&\*(L"F10FCA000800\*(R" and the rest after the slash is considered the type \- here
4030 \&\*(L"temperature\*(R").
4031 There are two advantages to this mode \- you can access virtually any sensor
4032 (not just temperature), select whether to use cached or directly read values
4033 and it is slighlty faster. The downside is more complex configuration.
4034 .PP
4035 The two modes are distinguished automatically by the format of the address.
4036 It is not possible to mix the two modes. Once a full path is detected in any
4037 \&\fBSensor\fR then the whole addressing (all sensors) is considered to be this way
4038 (and as standard addresses will fail parsing they will be ignored).
4039 .IP "\fBDevice\fR \fIDevice\fR" 4
4040 .IX Item "Device Device"
4041 Sets the device to read the values from. This can either be a \*(L"real\*(R" hardware
4042 device, such as a serial port or an \s-1USB\s0 port, or the address of the
4043 \&\fIowserver\fR\|(1) socket, usually \fBlocalhost:4304\fR.
4044 .Sp
4045 Though the documentation claims to automatically recognize the given address
4046 format, with version\ 2.7p4 we had to specify the type explicitly. So
4047 with that version, the following configuration worked for us:
4048 .Sp
4049 .Vb 3
4050 \&  <Plugin onewire>
4051 \&    Device "\-s localhost:4304"
4052 \&  </Plugin>
4053 .Ve
4054 .Sp
4055 This directive is \fBrequired\fR and does not have a default value.
4056 .IP "\fBSensor\fR \fISensor\fR" 4
4057 .IX Item "Sensor Sensor"
4058 In the standard mode selects sensors to collect or to ignore
4059 (depending on \fBIgnoreSelected\fR, see below). Sensors are specified without
4060 the family byte at the beginning, so you have to use for example \f(CW\*(C`F10FCA000800\*(C'\fR,
4061 and \fBnot\fR include the leading \f(CW10.\fR family byte and point.
4062 When no \fBSensor\fR is configured the whole Onewire bus is walked and all supported
4063 sensors (see above) are read.
4064 .Sp
4065 In the advanced mode the \fBSensor\fR specifies full \s-1OWFS\s0 path \- e.g.
4066 \&\f(CW\*(C`/uncached/10.F10FCA000800/temperature\*(C'\fR (or when cached values are \s-1OK
4067 \&\s0\f(CW\*(C`/10.F10FCA000800/temperature\*(C'\fR). \fBIgnoreSelected\fR is not used.
4068 .Sp
4069 As there can be multiple devices on the bus you can list multiple sensor (use
4070 multiple \fBSensor\fR elements).
4071 .IP "\fBIgnoreSelected\fR \fItrue\fR|\fIfalse\fR" 4
4072 .IX Item "IgnoreSelected true|false"
4073 If no configuration is given, the \fBonewire\fR plugin will collect data from all
4074 sensors found. This may not be practical, especially if sensors are added and
4075 removed regularly. Sometimes, however, it's easier/preferred to collect only
4076 specific sensors or all sensors \fIexcept\fR a few specified ones. This option
4077 enables you to do that: By setting \fBIgnoreSelected\fR to \fItrue\fR the effect of
4078 \&\fBSensor\fR is inverted: All selected interfaces are ignored and all other
4079 interfaces are collected.
4080 .Sp
4081 Used only in the standard mode \- see above.
4082 .IP "\fBInterval\fR \fISeconds\fR" 4
4083 .IX Item "Interval Seconds"
4084 Sets the interval in which all sensors should be read. If not specified, the
4085 global \fBInterval\fR setting is used.
4086 .PP
4087 \&\fB\s-1EXPERIMENTAL\s0!\fR The \f(CW\*(C`onewire\*(C'\fR plugin is experimental, because it doesn't yet
4088 work with big setups. It works with one sensor being attached to one
4089 controller, but as soon as you throw in a couple more senors and maybe a hub
4090 or two, reading all values will take more than ten seconds (the default
4091 interval). We will probably add some separate thread for reading the sensors
4092 and some cache or something like that, but it's not done yet. We will try to
4093 maintain backwards compatibility in the future, but we can't promise. So in
4094 short: If it works for you: Great! But keep in mind that the config \fImight\fR
4095 change, though this is unlikely. Oh, and if you want to help improving this
4096 plugin, just send a short notice to the mailing list. Thanks\ :)
4097 .ie n .SS "Plugin ""openldap"""
4098 .el .SS "Plugin \f(CWopenldap\fP"
4099 .IX Subsection "Plugin openldap"
4100 To use the \f(CW\*(C`openldap\*(C'\fR plugin you first need to configure the \fIOpenLDAP\fR
4101 server correctly. The backend database \f(CW\*(C`monitor\*(C'\fR needs to be loaded and
4102 working. See \fIslapd\-monitor\fR\|(5) for the details.
4103 .PP
4104 The configuration of the \f(CW\*(C`openldap\*(C'\fR plugin consists of one or more \fBInstance\fR
4105 blocks. Each block requires one string argument as the instance name. For
4106 example:
4107 .PP
4108 .Vb 8
4109 \& <Plugin "openldap">
4110 \&   <Instance "foo">
4111 \&     URL "ldap://localhost/"
4112 \&   </Instance>
4113 \&   <Instance "bar">
4114 \&     URL "ldaps://localhost/"
4115 \&   </Instance>
4116 \& </Plugin>
4117 .Ve
4118 .PP
4119 The instance name will be used as the \fIplugin instance\fR. To emulate the old
4120 (version\ 4) behavior, you can use an empty string (""). In order for the
4121 plugin to work correctly, each instance name must be unique. This is not
4122 enforced by the plugin and it is your responsibility to ensure it is.
4123 .PP
4124 The following options are accepted within each \fBInstance\fR block:
4125 .IP "\fB\s-1URL\s0\fR \fIldap://host/binddn\fR" 4
4126 .IX Item "URL ldap://host/binddn"
4127 Sets the \s-1URL\s0 to use to connect to the \fIOpenLDAP\fR server. This option is
4128 \&\fImandatory\fR.
4129 .IP "\fBStartTLS\fR \fBtrue|false\fR" 4
4130 .IX Item "StartTLS true|false"
4131 Defines whether \s-1TLS\s0 must be used when connecting to the \fIOpenLDAP\fR server.
4132 Disabled by default.
4133 .IP "\fBVerifyHost\fR \fBtrue|false\fR" 4
4134 .IX Item "VerifyHost true|false"
4135 Enables or disables peer host name verification. If enabled, the plugin checks
4136 if the \f(CW\*(C`Common Name\*(C'\fR or a \f(CW\*(C`Subject Alternate Name\*(C'\fR field of the \s-1SSL\s0
4137 certificate matches the host name provided by the \fB\s-1URL\s0\fR option. If this
4138 identity check fails, the connection is aborted. Enabled by default.
4139 .IP "\fBCACert\fR \fIFile\fR" 4
4140 .IX Item "CACert File"
4141 File that holds one or more \s-1SSL\s0 certificates. If you want to use \s-1TLS/SSL\s0 you
4142 may possibly need this option. What \s-1CA\s0 certificates are checked by default
4143 depends on the distribution you use and can be changed with the usual ldap
4144 client configuration mechanisms. See \fIldap.conf\fR\|(5) for the details.
4145 .IP "\fBTimeout\fR \fISeconds\fR" 4
4146 .IX Item "Timeout Seconds"
4147 Sets the timeout value for ldap operations. Defaults to \fB\-1\fR which results in
4148 an infinite timeout.
4149 .IP "\fBVersion\fR \fIVersion\fR" 4
4150 .IX Item "Version Version"
4151 An integer which sets the \s-1LDAP\s0 protocol version number to use when connecting
4152 to the \fIOpenLDAP\fR server. Defaults to \fB3\fR for using \fILDAPv3\fR.
4153 .ie n .SS "Plugin ""openvpn"""
4154 .el .SS "Plugin \f(CWopenvpn\fP"
4155 .IX Subsection "Plugin openvpn"
4156 The OpenVPN plugin reads a status file maintained by OpenVPN and gathers
4157 traffic statistics about connected clients.
4158 .PP
4159 To set up OpenVPN to write to the status file periodically, use the
4160 \&\fB\-\-status\fR option of OpenVPN. Since OpenVPN can write two different formats,
4161 you need to set the required format, too. This is done by setting
4162 \&\fB\-\-status\-version\fR to \fB2\fR.
4163 .PP
4164 So, in a nutshell you need:
4165 .PP
4166 .Vb 3
4167 \&  openvpn $OTHER_OPTIONS \e
4168 \&    \-\-status "/var/run/openvpn\-status" 10 \e
4169 \&    \-\-status\-version 2
4170 .Ve
4171 .PP
4172 Available options:
4173 .IP "\fBStatusFile\fR \fIFile\fR" 4
4174 .IX Item "StatusFile File"
4175 Specifies the location of the status file.
4176 .IP "\fBImprovedNamingSchema\fR \fBtrue\fR|\fBfalse\fR" 4
4177 .IX Item "ImprovedNamingSchema true|false"
4178 When enabled, the filename of the status file will be used as plugin instance
4179 and the client's \*(L"common name\*(R" will be used as type instance. This is required
4180 when reading multiple status files. Enabling this option is recommended, but to
4181 maintain backwards compatibility this option is disabled by default.
4182 .IP "\fBCollectCompression\fR \fBtrue\fR|\fBfalse\fR" 4
4183 .IX Item "CollectCompression true|false"
4184 Sets whether or not statistics about the compression used by OpenVPN should be
4185 collected. This information is only available in \fIsingle\fR mode. Enabled by
4186 default.
4187 .IP "\fBCollectIndividualUsers\fR \fBtrue\fR|\fBfalse\fR" 4
4188 .IX Item "CollectIndividualUsers true|false"
4189 Sets whether or not traffic information is collected for each connected client
4190 individually. If set to false, currently no traffic data is collected at all
4191 because aggregating this data in a save manner is tricky. Defaults to \fBtrue\fR.
4192 .IP "\fBCollectUserCount\fR \fBtrue\fR|\fBfalse\fR" 4
4193 .IX Item "CollectUserCount true|false"
4194 When enabled, the number of currently connected clients or users is collected.
4195 This is especially interesting when \fBCollectIndividualUsers\fR is disabled, but
4196 can be configured independently from that option. Defaults to \fBfalse\fR.
4197 .ie n .SS "Plugin ""oracle"""
4198 .el .SS "Plugin \f(CWoracle\fP"
4199 .IX Subsection "Plugin oracle"
4200 The \*(L"oracle\*(R" plugin uses the OracleX Call Interface \fI(\s-1OCI\s0)\fR to connect to an
4201 OracleX Database and lets you execute \s-1SQL\s0 statements there. It is very similar
4202 to the \*(L"dbi\*(R" plugin, because it was written around the same time. See the \*(L"dbi\*(R"
4203 plugin's documentation above for details.
4204 .PP
4205 .Vb 10
4206 \&  <Plugin oracle>
4207 \&    <Query "out_of_stock">
4208 \&      Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
4209 \&      <Result>
4210 \&        Type "gauge"
4211 \&        # InstancePrefix "foo"
4212 \&        InstancesFrom "category"
4213 \&        ValuesFrom "value"
4214 \&      </Result>
4215 \&    </Query>
4216 \&    <Database "product_information">
4217 \&      ConnectID "db01"
4218 \&      Username "oracle"
4219 \&      Password "secret"
4220 \&      Query "out_of_stock"
4221 \&    </Database>
4222 \&  </Plugin>
4223 .Ve
4224 .PP
4225 \fI\f(BIQuery\fI blocks\fR
4226 .IX Subsection "Query blocks"
4227 .PP
4228 The Query blocks are handled identically to the Query blocks of the \*(L"dbi\*(R"
4229 plugin. Please see its documentation above for details on how to specify
4230 queries.
4231 .PP
4232 \fI\f(BIDatabase\fI blocks\fR
4233 .IX Subsection "Database blocks"
4234 .PP
4235 Database blocks define a connection to a database and which queries should be
4236 sent to that database. Each database needs a \*(L"name\*(R" as string argument in the
4237 starting tag of the block. This name will be used as \*(L"PluginInstance\*(R" in the
4238 values submitted to the daemon. Other than that, that name is not used.
4239 .IP "\fBConnectID\fR \fI\s-1ID\s0\fR" 4
4240 .IX Item "ConnectID ID"
4241 Defines the \*(L"database alias\*(R" or \*(L"service name\*(R" to connect to. Usually, these
4242 names are defined in the file named \f(CW\*(C`$ORACLE_HOME/network/admin/tnsnames.ora\*(C'\fR.
4243 .IP "\fBHost\fR \fIHost\fR" 4
4244 .IX Item "Host Host"
4245 Hostname to use when dispatching values for this database. Defaults to using
4246 the global hostname of the \fIcollectd\fR instance.
4247 .IP "\fBUsername\fR \fIUsername\fR" 4
4248 .IX Item "Username Username"
4249 Username used for authentication.
4250 .IP "\fBPassword\fR \fIPassword\fR" 4
4251 .IX Item "Password Password"
4252 Password used for authentication.
4253 .IP "\fBQuery\fR \fIQueryName\fR" 4
4254 .IX Item "Query QueryName"
4255 Associates the query named \fIQueryName\fR with this database connection. The
4256 query needs to be defined \fIbefore\fR this statement, i.\ e. all query
4257 blocks you want to refer to must be placed above the database block you want to
4258 refer to them from.
4259 .ie n .SS "Plugin ""perl"""
4260 .el .SS "Plugin \f(CWperl\fP"
4261 .IX Subsection "Plugin perl"
4262 This plugin embeds a Perl-interpreter into collectd and provides an interface
4263 to collectd's plugin system. See \fIcollectd\-perl\fR\|(5) for its documentation.
4264 .ie n .SS "Plugin ""pinba"""
4265 .el .SS "Plugin \f(CWpinba\fP"
4266 .IX Subsection "Plugin pinba"
4267 The \fIPinba plugin\fR receives profiling information from \fIPinba\fR, an extension
4268 for the \fI\s-1PHP\s0\fR interpreter. At the end of executing a script, i.e. after a
4269 PHP-based webpage has been delivered, the extension will send a \s-1UDP\s0 packet
4270 containing timing information, peak memory usage and so on. The plugin will
4271 wait for such packets, parse them and account the provided information, which
4272 is then dispatched to the daemon once per interval.
4273 .PP
4274 Synopsis:
4275 .PP
4276 .Vb 10
4277 \& <Plugin pinba>
4278 \&   Address "::0"
4279 \&   Port "30002"
4280 \&   # Overall statistics for the website.
4281 \&   <View "www\-total">
4282 \&     Server "www.example.com"
4283 \&   </View>
4284 \&   # Statistics for www\-a only
4285 \&   <View "www\-a">
4286 \&     Host "www\-a.example.com"
4287 \&     Server "www.example.com"
4288 \&   </View>
4289 \&   # Statistics for www\-b only
4290 \&   <View "www\-b">
4291 \&     Host "www\-b.example.com"
4292 \&     Server "www.example.com"
4293 \&   </View>
4294 \& </Plugin>
4295 .Ve
4296 .PP
4297 The plugin provides the following configuration options:
4298 .IP "\fBAddress\fR \fINode\fR" 4
4299 .IX Item "Address Node"
4300 Configures the address used to open a listening socket. By default, plugin will
4301 bind to the \fIany\fR address \f(CW\*(C`::0\*(C'\fR.
4302 .IP "\fBPort\fR \fIService\fR" 4
4303 .IX Item "Port Service"
4304 Configures the port (service) to bind to. By default the default Pinba port
4305 \&\*(L"30002\*(R" will be used. The option accepts service names in addition to port
4306 numbers and thus requires a \fIstring\fR argument.
4307 .IP "<\fBView\fR \fIName\fR> block" 4
4308 .IX Item "<View Name> block"
4309 The packets sent by the Pinba extension include the hostname of the server, the
4310 server name (the name of the virtual host) and the script that was executed.
4311 Using \fBView\fR blocks it is possible to separate the data into multiple groups
4312 to get more meaningful statistics. Each packet is added to all matching groups,
4313 so that a packet may be accounted for more than once.
4314 .RS 4
4315 .IP "\fBHost\fR \fIHost\fR" 4
4316 .IX Item "Host Host"
4317 Matches the hostname of the system the webserver / script is running on. This
4318 will contain the result of the \fIgethostname\fR\|(2) system call. If not
4319 configured, all hostnames will be accepted.
4320 .IP "\fBServer\fR \fIServer\fR" 4
4321 .IX Item "Server Server"
4322 Matches the name of the \fIvirtual host\fR, i.e. the contents of the
4323 \&\f(CW$_SERVER["SERVER_NAME"]\fR variable when within \s-1PHP.\s0 If not configured, all
4324 server names will be accepted.
4325 .IP "\fBScript\fR \fIScript\fR" 4
4326 .IX Item "Script Script"
4327 Matches the name of the \fIscript name\fR, i.e. the contents of the
4328 \&\f(CW$_SERVER["SCRIPT_NAME"]\fR variable when within \s-1PHP.\s0 If not configured, all
4329 script names will be accepted.
4330 .RE
4331 .RS 4
4332 .RE
4333 .ie n .SS "Plugin ""ping"""
4334 .el .SS "Plugin \f(CWping\fP"
4335 .IX Subsection "Plugin ping"
4336 The \fIPing\fR plugin starts a new thread which sends \s-1ICMP \s0\*(L"ping\*(R" packets to the
4337 configured hosts periodically and measures the network latency. Whenever the
4338 \&\f(CW\*(C`read\*(C'\fR function of the plugin is called, it submits the average latency, the
4339 standard deviation and the drop rate for each host.
4340 .PP
4341 Available configuration options:
4342 .IP "\fBHost\fR \fIIP-address\fR" 4
4343 .IX Item "Host IP-address"
4344 Host to ping periodically. This option may be repeated several times to ping
4345 multiple hosts.
4346 .IP "\fBInterval\fR \fISeconds\fR" 4
4347 .IX Item "Interval Seconds"
4348 Sets the interval in which to send \s-1ICMP\s0 echo packets to the configured hosts.
4349 This is \fBnot\fR the interval in which statistics are queries from the plugin but
4350 the interval in which the hosts are \*(L"pinged\*(R". Therefore, the setting here
4351 should be smaller than or equal to the global \fBInterval\fR setting. Fractional
4352 times, such as \*(L"1.24\*(R" are allowed.
4353 .Sp
4354 Default: \fB1.0\fR
4355 .IP "\fBTimeout\fR \fISeconds\fR" 4
4356 .IX Item "Timeout Seconds"
4357 Time to wait for a response from the host to which an \s-1ICMP\s0 packet had been
4358 sent. If a reply was not received after \fISeconds\fR seconds, the host is assumed
4359 to be down or the packet to be dropped. This setting must be smaller than the
4360 \&\fBInterval\fR setting above for the plugin to work correctly. Fractional
4361 arguments are accepted.
4362 .Sp
4363 Default: \fB0.9\fR
4364 .IP "\fB\s-1TTL\s0\fR \fI0\-255\fR" 4
4365 .IX Item "TTL 0-255"
4366 Sets the Time-To-Live of generated \s-1ICMP\s0 packets.
4367 .IP "\fBSourceAddress\fR \fIhost\fR" 4
4368 .IX Item "SourceAddress host"
4369 Sets the source address to use. \fIhost\fR may either be a numerical network
4370 address or a network hostname.
4371 .IP "\fBDevice\fR \fIname\fR" 4
4372 .IX Item "Device name"
4373 Sets the outgoing network device to be used. \fIname\fR has to specify an
4374 interface name (e.\ g. \f(CW\*(C`eth0\*(C'\fR). This might not be supported by all
4375 operating systems.
4376 .IP "\fBMaxMissed\fR \fIPackets\fR" 4
4377 .IX Item "MaxMissed Packets"
4378 Trigger a \s-1DNS\s0 resolve after the host has not replied to \fIPackets\fR packets. This
4379 enables the use of dynamic \s-1DNS\s0 services (like dyndns.org) with the ping plugin.
4380 .Sp
4381 Default: \fB\-1\fR (disabled)
4382 .ie n .SS "Plugin ""postgresql"""
4383 .el .SS "Plugin \f(CWpostgresql\fP"
4384 .IX Subsection "Plugin postgresql"
4385 The \f(CW\*(C`postgresql\*(C'\fR plugin queries statistics from PostgreSQL databases. It
4386 keeps a persistent connection to all configured databases and tries to
4387 reconnect if the connection has been interrupted. A database is configured by
4388 specifying a \fBDatabase\fR block as described below. The default statistics are
4389 collected from PostgreSQL's \fBstatistics collector\fR which thus has to be
4390 enabled for this plugin to work correctly. This should usually be the case by
4391 default. See the section \*(L"The Statistics Collector\*(R" of the \fBPostgreSQL
4392 Documentation\fR for details.
4393 .PP
4394 By specifying custom database queries using a \fBQuery\fR block as described
4395 below, you may collect any data that is available from some PostgreSQL
4396 database. This way, you are able to access statistics of external daemons
4397 which are available in a PostgreSQL database or use future or special
4398 statistics provided by PostgreSQL without the need to upgrade your collectd
4399 installation.
4400 .PP
4401 Starting with version 5.2, the \f(CW\*(C`postgresql\*(C'\fR plugin supports writing data to
4402 PostgreSQL databases as well. This has been implemented in a generic way. You
4403 need to specify an \s-1SQL\s0 statement which will then be executed by collectd in
4404 order to write the data (see below for details). The benefit of that approach
4405 is that there is no fixed database layout. Rather, the layout may be optimized
4406 for the current setup.
4407 .PP
4408 The \fBPostgreSQL Documentation\fR manual can be found at
4409 <http://www.postgresql.org/docs/manuals/>.
4410 .PP
4411 .Vb 10
4412 \&  <Plugin postgresql>
4413 \&    <Query magic>
4414 \&      Statement "SELECT magic FROM wizard WHERE host = $1;"
4415 \&      Param hostname
4416 \&      <Result>
4417 \&        Type gauge
4418 \&        InstancePrefix "magic"
4419 \&        ValuesFrom magic
4420 \&      </Result>
4421 \&    </Query>
4422 \&
4423 \&    <Query rt36_tickets>
4424 \&      Statement "SELECT COUNT(type) AS count, type \e
4425 \&                        FROM (SELECT CASE \e
4426 \&                                     WHEN resolved = \*(Aqepoch\*(Aq THEN \*(Aqopen\*(Aq \e
4427 \&                                     ELSE \*(Aqresolved\*(Aq END AS type \e
4428 \&                                     FROM tickets) type \e
4429 \&                        GROUP BY type;"
4430 \&      <Result>
4431 \&        Type counter
4432 \&        InstancePrefix "rt36_tickets"
4433 \&        InstancesFrom "type"
4434 \&        ValuesFrom "count"
4435 \&      </Result>
4436 \&    </Query>
4437 \&
4438 \&    <Writer sqlstore>
4439 \&      Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
4440 \&      StoreRates true
4441 \&    </Writer>
4442 \&
4443 \&    <Database foo>
4444 \&      Host "hostname"
4445 \&      Port "5432"
4446 \&      User "username"
4447 \&      Password "secret"
4448 \&      SSLMode "prefer"
4449 \&      KRBSrvName "kerberos_service_name"
4450 \&      Query magic
4451 \&    </Database>
4452 \&
4453 \&    <Database bar>
4454 \&      Interval 300
4455 \&      Service "service_name"
4456 \&      Query backend # predefined
4457 \&      Query rt36_tickets
4458 \&    </Database>
4459 \&
4460 \&    <Database qux>
4461 \&      # ...
4462 \&      Writer sqlstore
4463 \&      CommitInterval 10
4464 \&    </Database>
4465 \&  </Plugin>
4466 .Ve
4467 .PP
4468 The \fBQuery\fR block defines one database query which may later be used by a
4469 database definition. It accepts a single mandatory argument which specifies
4470 the name of the query. The names of all queries have to be unique (see the
4471 \&\fBMinVersion\fR and \fBMaxVersion\fR options below for an exception to this
4472 rule). The following configuration options are available to define the query:
4473 .PP
4474 In each \fBQuery\fR block, there is one or more \fBResult\fR blocks. \fBResult\fR
4475 blocks define how to handle the values returned from the query. They define
4476 which column holds which value and how to dispatch that value to the daemon.
4477 Multiple \fBResult\fR blocks may be used to extract multiple values from a single
4478 query.
4479 .IP "\fBStatement\fR \fIsql query statement\fR" 4
4480 .IX Item "Statement sql query statement"
4481 Specify the \fIsql query statement\fR which the plugin should execute. The string
4482 may contain the tokens \fB\f(CB$1\fB\fR, \fB\f(CB$2\fB\fR, etc. which are used to reference the
4483 first, second, etc. parameter. The value of the parameters is specified by the
4484 \&\fBParam\fR configuration option \- see below for details. To include a literal
4485 \&\fB$\fR character followed by a number, surround it with single quotes (\fB'\fR).
4486 .Sp
4487 Any \s-1SQL\s0 command which may return data (such as \f(CW\*(C`SELECT\*(C'\fR or \f(CW\*(C`SHOW\*(C'\fR) is
4488 allowed. Note, however, that only a single command may be used. Semicolons are
4489 allowed as long as a single non-empty command has been specified only.
4490 .Sp
4491 The returned lines will be handled separately one after another.
4492 .IP "\fBParam\fR \fIhostname\fR|\fIdatabase\fR|\fIusername\fR|\fIinterval\fR" 4
4493 .IX Item "Param hostname|database|username|interval"
4494 Specify the parameters which should be passed to the \s-1SQL\s0 query. The parameters
4495 are referred to in the \s-1SQL\s0 query as \fB\f(CB$1\fB\fR, \fB\f(CB$2\fB\fR, etc. in the same order as
4496 they appear in the configuration file. The value of the parameter is
4497 determined depending on the value of the \fBParam\fR option as follows:
4498 .RS 4
4499 .IP "\fIhostname\fR" 4
4500 .IX Item "hostname"
4501 The configured hostname of the database connection. If a \s-1UNIX\s0 domain socket is
4502 used, the parameter expands to \*(L"localhost\*(R".
4503 .IP "\fIdatabase\fR" 4
4504 .IX Item "database"
4505 The name of the database of the current connection.
4506 .IP "\fIinstance\fR" 4
4507 .IX Item "instance"
4508 The name of the database plugin instance. See the \fBInstance\fR option of the
4509 database specification below for details.
4510 .IP "\fIusername\fR" 4
4511 .IX Item "username"
4512 The username used to connect to the database.
4513 .IP "\fIinterval\fR" 4
4514 .IX Item "interval"
4515 The interval with which this database is queried (as specified by the database
4516 specific or global \fBInterval\fR options).
4517 .RE
4518 .RS 4
4519 .Sp
4520 Please note that parameters are only supported by PostgreSQL's protocol
4521 version 3 and above which was introduced in version 7.4 of PostgreSQL.
4522 .RE
4523 .IP "\fBType\fR \fItype\fR" 4
4524 .IX Item "Type type"
4525 The \fItype\fR name to be used when dispatching the values. The type describes
4526 how to handle the data and where to store it. See \fItypes.db\fR\|(5) for more
4527 details on types and their configuration. The number and type of values (as
4528 selected by the \fBValuesFrom\fR option) has to match the type of the given name.
4529 .Sp
4530 This option is required inside a \fBResult\fR block.
4531 .IP "\fBInstancePrefix\fR \fIprefix\fR" 4
4532 .IX Item "InstancePrefix prefix"
4533 .PD 0
4534 .IP "\fBInstancesFrom\fR \fIcolumn0\fR [\fIcolumn1\fR ...]" 4
4535 .IX Item "InstancesFrom column0 [column1 ...]"
4536 .PD
4537 Specify how to create the \*(L"TypeInstance\*(R" for each data set (i.\ e. line).
4538 \&\fBInstancePrefix\fR defines a static prefix that will be prepended to all type
4539 instances. \fBInstancesFrom\fR defines the column names whose values will be used
4540 to create the type instance. Multiple values will be joined together using the
4541 hyphen (\f(CW\*(C`\-\*(C'\fR) as separation character.
4542 .Sp
4543 The plugin itself does not check whether or not all built instances are
4544 different. It is your responsibility to assure that each is unique.
4545 .Sp
4546 Both options are optional. If none is specified, the type instance will be
4547 empty.
4548 .IP "\fBValuesFrom\fR \fIcolumn0\fR [\fIcolumn1\fR ...]" 4
4549 .IX Item "ValuesFrom column0 [column1 ...]"
4550 Names the columns whose content is used as the actual data for the data sets
4551 that are dispatched to the daemon. How many such columns you need is
4552 determined by the \fBType\fR setting as explained above. If you specify too many
4553 or not enough columns, the plugin will complain about that and no data will be
4554 submitted to the daemon.
4555 .Sp
4556 The actual data type, as seen by PostgreSQL, is not that important as long as
4557 it represents numbers. The plugin will automatically cast the values to the
4558 right type if it know how to do that. For that, it uses the \fIstrtoll\fR\|(3) and
4559 \&\fIstrtod\fR\|(3) functions, so anything supported by those functions is supported
4560 by the plugin as well.
4561 .Sp
4562 This option is required inside a \fBResult\fR block and may be specified multiple
4563 times. If multiple \fBValuesFrom\fR options are specified, the columns are read
4564 in the given order.
4565 .IP "\fBMinVersion\fR \fIversion\fR" 4
4566 .IX Item "MinVersion version"
4567 .PD 0
4568 .IP "\fBMaxVersion\fR \fIversion\fR" 4
4569 .IX Item "MaxVersion version"
4570 .PD
4571 Specify the minimum or maximum version of PostgreSQL that this query should be
4572 used with. Some statistics might only be available with certain versions of
4573 PostgreSQL. This allows you to specify multiple queries with the same name but
4574 which apply to different versions, thus allowing you to use the same
4575 configuration in a heterogeneous environment.
4576 .Sp
4577 The \fIversion\fR has to be specified as the concatenation of the major, minor
4578 and patch-level versions, each represented as two-decimal-digit numbers. For
4579 example, version 8.2.3 will become 80203.
4580 .PP
4581 The following predefined queries are available (the definitions can be found
4582 in the \fIpostgresql_default.conf\fR file which, by default, is available at
4583 \&\f(CW\*(C`\f(CIprefix\f(CW/share/collectd/\*(C'\fR):
4584 .IP "\fBbackends\fR" 4
4585 .IX Item "backends"
4586 This query collects the number of backends, i.\ e. the number of
4587 connected clients.
4588 .IP "\fBtransactions\fR" 4
4589 .IX Item "transactions"
4590 This query collects the numbers of committed and rolled-back transactions of
4591 the user tables.
4592 .IP "\fBqueries\fR" 4
4593 .IX Item "queries"
4594 This query collects the numbers of various table modifications (i.\ e.
4595 insertions, updates, deletions) of the user tables.
4596 .IP "\fBquery_plans\fR" 4
4597 .IX Item "query_plans"
4598 This query collects the numbers of various table scans and returned tuples of
4599 the user tables.
4600 .IP "\fBtable_states\fR" 4
4601 .IX Item "table_states"
4602 This query collects the numbers of live and dead rows in the user tables.
4603 .IP "\fBdisk_io\fR" 4
4604 .IX Item "disk_io"
4605 This query collects disk block access counts for user tables.
4606 .IP "\fBdisk_usage\fR" 4
4607 .IX Item "disk_usage"
4608 This query collects the on-disk size of the database in bytes.
4609 .PP
4610 In addition, the following detailed queries are available by default. Please
4611 note that each of those queries collects information \fBby table\fR, thus,
4612 potentially producing \fBa lot\fR of data. For details see the description of the
4613 non\-by_table queries above.
4614 .IP "\fBqueries_by_table\fR" 4
4615 .IX Item "queries_by_table"
4616 .PD 0
4617 .IP "\fBquery_plans_by_table\fR" 4
4618 .IX Item "query_plans_by_table"
4619 .IP "\fBtable_states_by_table\fR" 4
4620 .IX Item "table_states_by_table"
4621 .IP "\fBdisk_io_by_table\fR" 4
4622 .IX Item "disk_io_by_table"
4623 .PD
4624 .PP
4625 The \fBWriter\fR block defines a PostgreSQL writer backend. It accepts a single
4626 mandatory argument specifying the name of the writer. This will then be used
4627 in the \fBDatabase\fR specification in order to activate the writer instance. The
4628 names of all writers have to be unique. The following options may be
4629 specified:
4630 .IP "\fBStatement\fR \fIsql statement\fR" 4
4631 .IX Item "Statement sql statement"
4632 This mandatory option specifies the \s-1SQL\s0 statement that will be executed for
4633 each submitted value. A single \s-1SQL\s0 statement is allowed only. Anything after
4634 the first semicolon will be ignored.
4635 .Sp
4636 Nine parameters will be passed to the statement and should be specified as
4637 tokens \fB\f(CB$1\fB\fR, \fB\f(CB$2\fB\fR, through \fB\f(CB$9\fB\fR in the statement string. The following
4638 values are made available through those parameters:
4639 .RS 4
4640 .ie n .IP "\fB\fB$1\fB\fR" 4
4641 .el .IP "\fB\f(CB$1\fB\fR" 4
4642 .IX Item "$1"
4643 The timestamp of the queried value as a floating point number.
4644 .ie n .IP "\fB\fB$2\fB\fR" 4
4645 .el .IP "\fB\f(CB$2\fB\fR" 4
4646 .IX Item "$2"
4647 The hostname of the queried value.
4648 .ie n .IP "\fB\fB$3\fB\fR" 4
4649 .el .IP "\fB\f(CB$3\fB\fR" 4
4650 .IX Item "$3"
4651 The plugin name of the queried value.
4652 .ie n .IP "\fB\fB$4\fB\fR" 4
4653 .el .IP "\fB\f(CB$4\fB\fR" 4
4654 .IX Item "$4"
4655 The plugin instance of the queried value. This value may be \fB\s-1NULL\s0\fR if there
4656 is no plugin instance.
4657 .ie n .IP "\fB\fB$5\fB\fR" 4
4658 .el .IP "\fB\f(CB$5\fB\fR" 4
4659 .IX Item "$5"
4660 The type of the queried value (cf. \fItypes.db\fR\|(5)).
4661 .ie n .IP "\fB\fB$6\fB\fR" 4
4662 .el .IP "\fB\f(CB$6\fB\fR" 4
4663 .IX Item "$6"
4664 The type instance of the queried value. This value may be \fB\s-1NULL\s0\fR if there is
4665 no type instance.
4666 .ie n .IP "\fB\fB$7\fB\fR" 4
4667 .el .IP "\fB\f(CB$7\fB\fR" 4
4668 .IX Item "$7"
4669 An array of names for the submitted values (i.\ e., the name of the data
4670 sources of the submitted value-list).
4671 .ie n .IP "\fB\fB$8\fB\fR" 4
4672 .el .IP "\fB\f(CB$8\fB\fR" 4
4673 .IX Item "$8"
4674 An array of types for the submitted values (i.\ e., the type of the data
4675 sources of the submitted value-list; \f(CW\*(C`counter\*(C'\fR, \f(CW\*(C`gauge\*(C'\fR, ...). Note, that if
4676 \&\fBStoreRates\fR is enabled (which is the default, see below), all types will be
4677 \&\f(CW\*(C`gauge\*(C'\fR.
4678 .ie n .IP "\fB\fB$9\fB\fR" 4
4679 .el .IP "\fB\f(CB$9\fB\fR" 4
4680 .IX Item "$9"
4681 An array of the submitted values. The dimensions of the value name and value
4682 arrays match.
4683 .RE
4684 .RS 4
4685 .Sp
4686 In general, it is advisable to create and call a custom function in the
4687 PostgreSQL database for this purpose. Any procedural language supported by
4688 PostgreSQL will do (see chapter \*(L"Server Programming\*(R" in the PostgreSQL manual
4689 for details).
4690 .RE
4691 .IP "\fBStoreRates\fR \fBfalse\fR|\fBtrue\fR" 4
4692 .IX Item "StoreRates false|true"
4693 If set to \fBtrue\fR (the default), convert counter values to rates. If set to
4694 \&\fBfalse\fR counter values are stored as is, i.\ e. as an increasing integer
4695 number.
4696 .PP
4697 The \fBDatabase\fR block defines one PostgreSQL database for which to collect
4698 statistics. It accepts a single mandatory argument which specifies the
4699 database name. None of the other options are required. PostgreSQL will use
4700 default values as documented in the section \*(L"\s-1CONNECTING TO A DATABASE\*(R"\s0 in the
4701 \&\fIpsql\fR\|(1) manpage. However, be aware that those defaults may be influenced by
4702 the user collectd is run as and special environment variables. See the manpage
4703 for details.
4704 .IP "\fBInterval\fR \fIseconds\fR" 4
4705 .IX Item "Interval seconds"
4706 Specify the interval with which the database should be queried. The default is
4707 to use the global \fBInterval\fR setting.
4708 .IP "\fBCommitInterval\fR \fIseconds\fR" 4
4709 .IX Item "CommitInterval seconds"
4710 This option may be used for database connections which have \*(L"writers\*(R" assigned
4711 (see above). If specified, it causes a writer to put several updates into a
4712 single transaction. This transaction will last for the specified amount of
4713 time. By default, each update will be executed in a separate transaction. Each
4714 transaction generates a fair amount of overhead which can, thus, be reduced by
4715 activating this option. The draw-back is, that data covering the specified
4716 amount of time will be lost, for example, if a single statement within the
4717 transaction fails or if the database server crashes.
4718 .IP "\fBInstance\fR \fIname\fR" 4
4719 .IX Item "Instance name"
4720 Specify the plugin instance name that should be used instead of the database
4721 name (which is the default, if this option has not been specified). This
4722 allows to query multiple databases of the same name on the same host (e.g.
4723 when running multiple database server versions in parallel).
4724 .IP "\fBHost\fR \fIhostname\fR" 4
4725 .IX Item "Host hostname"
4726 Specify the hostname or \s-1IP\s0 of the PostgreSQL server to connect to. If the
4727 value begins with a slash, it is interpreted as the directory name in which to
4728 look for the \s-1UNIX\s0 domain socket.
4729 .Sp
4730 This option is also used to determine the hostname that is associated with a
4731 collected data set. If it has been omitted or either begins with with a slash
4732 or equals \fBlocalhost\fR it will be replaced with the global hostname definition
4733 of collectd. Any other value will be passed literally to collectd when
4734 dispatching values. Also see the global \fBHostname\fR and \fBFQDNLookup\fR options.
4735 .IP "\fBPort\fR \fIport\fR" 4
4736 .IX Item "Port port"
4737 Specify the \s-1TCP\s0 port or the local \s-1UNIX\s0 domain socket file extension of the
4738 server.
4739 .IP "\fBUser\fR \fIusername\fR" 4
4740 .IX Item "User username"
4741 Specify the username to be used when connecting to the server.
4742 .IP "\fBPassword\fR \fIpassword\fR" 4
4743 .IX Item "Password password"
4744 Specify the password to be used when connecting to the server.
4745 .IP "\fBExpireDelay\fR \fIdelay\fR" 4
4746 .IX Item "ExpireDelay delay"
4747 Skip expired values in query output.
4748 .IP "\fBSSLMode\fR \fIdisable\fR|\fIallow\fR|\fIprefer\fR|\fIrequire\fR" 4
4749 .IX Item "SSLMode disable|allow|prefer|require"
4750 Specify whether to use an \s-1SSL\s0 connection when contacting the server. The
4751 following modes are supported:
4752 .RS 4
4753 .IP "\fIdisable\fR" 4
4754 .IX Item "disable"
4755 Do not use \s-1SSL\s0 at all.
4756 .IP "\fIallow\fR" 4
4757 .IX Item "allow"
4758 First, try to connect without using \s-1SSL.\s0 If that fails, try using \s-1SSL.\s0
4759 .IP "\fIprefer\fR (default)" 4
4760 .IX Item "prefer (default)"
4761 First, try to connect using \s-1SSL.\s0 If that fails, try without using \s-1SSL.\s0
4762 .IP "\fIrequire\fR" 4
4763 .IX Item "require"
4764 Use \s-1SSL\s0 only.
4765 .RE
4766 .RS 4
4767 .RE
4768 .IP "\fBInstance\fR \fIname\fR" 4
4769 .IX Item "Instance name"
4770 Specify the plugin instance name that should be used instead of the database
4771 name (which is the default, if this option has not been specified). This
4772 allows to query multiple databases of the same name on the same host (e.g.
4773 when running multiple database server versions in parallel).
4774 .IP "\fBKRBSrvName\fR \fIkerberos_service_name\fR" 4
4775 .IX Item "KRBSrvName kerberos_service_name"
4776 Specify the Kerberos service name to use when authenticating with Kerberos 5
4777 or \s-1GSSAPI.\s0 See the sections \*(L"Kerberos authentication\*(R" and \*(L"\s-1GSSAPI\*(R"\s0 of the
4778 \&\fBPostgreSQL Documentation\fR for details.
4779 .IP "\fBService\fR \fIservice_name\fR" 4
4780 .IX Item "Service service_name"
4781 Specify the PostgreSQL service name to use for additional parameters. That
4782 service has to be defined in \fIpg_service.conf\fR and holds additional
4783 connection parameters. See the section \*(L"The Connection Service File\*(R" in the
4784 \&\fBPostgreSQL Documentation\fR for details.
4785 .IP "\fBQuery\fR \fIquery\fR" 4
4786 .IX Item "Query query"
4787 Specifies a \fIquery\fR which should be executed in the context of the database
4788 connection. This may be any of the predefined or user-defined queries. If no
4789 such option is given, it defaults to \*(L"backends\*(R", \*(L"transactions\*(R", \*(L"queries\*(R",
4790 \&\*(L"query_plans\*(R", \*(L"table_states\*(R", \*(L"disk_io\*(R" and \*(L"disk_usage\*(R" (unless a \fBWriter\fR
4791 has been specified). Else, the specified queries are used only.
4792 .IP "\fBWriter\fR \fIwriter\fR" 4
4793 .IX Item "Writer writer"
4794 Assigns the specified \fIwriter\fR backend to the database connection. This
4795 causes all collected data to be send to the database using the settings
4796 defined in the writer configuration (see the section \*(L"\s-1FILTER CONFIGURATION\*(R"\s0
4797 below for details on how to selectively send data to certain plugins).
4798 .Sp
4799 Each writer will register a flush callback which may be used when having long
4800 transactions enabled (see the \fBCommitInterval\fR option above). When issuing
4801 the \fB\s-1FLUSH\s0\fR command (see \fIcollectd\-unixsock\fR\|(5) for details) the current
4802 transaction will be committed right away. Two different kinds of flush
4803 callbacks are available with the \f(CW\*(C`postgresql\*(C'\fR plugin:
4804 .RS 4
4805 .IP "\fBpostgresql\fR" 4
4806 .IX Item "postgresql"
4807 Flush all writer backends.
4808 .IP "\fBpostgresql\-\fR\fIdatabase\fR" 4
4809 .IX Item "postgresql-database"
4810 Flush all writers of the specified \fIdatabase\fR only.
4811 .RE
4812 .RS 4
4813 .RE
4814 .ie n .SS "Plugin ""powerdns"""
4815 .el .SS "Plugin \f(CWpowerdns\fP"
4816 .IX Subsection "Plugin powerdns"
4817 The \f(CW\*(C`powerdns\*(C'\fR plugin queries statistics from an authoritative PowerDNS
4818 nameserver and/or a PowerDNS recursor. Since both offer a wide variety of
4819 values, many of which are probably meaningless to most users, but may be useful
4820 for some. So you may chose which values to collect, but if you don't, some
4821 reasonable defaults will be collected.
4822 .PP
4823 .Vb 10
4824 \&  <Plugin "powerdns">
4825 \&    <Server "server_name">
4826 \&      Collect "latency"
4827 \&      Collect "udp\-answers" "udp\-queries"
4828 \&      Socket "/var/run/pdns.controlsocket"
4829 \&    </Server>
4830 \&    <Recursor "recursor_name">
4831 \&      Collect "questions"
4832 \&      Collect "cache\-hits" "cache\-misses"
4833 \&      Socket "/var/run/pdns_recursor.controlsocket"
4834 \&    </Recursor>
4835 \&    LocalSocket "/opt/collectd/var/run/collectd\-powerdns"
4836 \&  </Plugin>
4837 .Ve
4838 .IP "\fBServer\fR and \fBRecursor\fR block" 4
4839 .IX Item "Server and Recursor block"
4840 The \fBServer\fR block defines one authoritative server to query, the \fBRecursor\fR
4841 does the same for an recursing server. The possible options in both blocks are
4842 the same, though. The argument defines a name for the server\ / recursor
4843 and is required.
4844 .RS 4
4845 .IP "\fBCollect\fR \fIField\fR" 4
4846 .IX Item "Collect Field"
4847 Using the \fBCollect\fR statement you can select which values to collect. Here,
4848 you specify the name of the values as used by the PowerDNS servers, e.\ g.
4849 \&\f(CW\*(C`dlg\-only\-drops\*(C'\fR, \f(CW\*(C`answers10\-100\*(C'\fR.
4850 .Sp
4851 The method of getting the values differs for \fBServer\fR and \fBRecursor\fR blocks:
4852 When querying the server a \f(CW\*(C`SHOW *\*(C'\fR command is issued in any case, because
4853 that's the only way of getting multiple values out of the server at once.
4854 collectd then picks out the values you have selected. When querying the
4855 recursor, a command is generated to query exactly these values. So if you
4856 specify invalid fields when querying the recursor, a syntax error may be
4857 returned by the daemon and collectd may not collect any values at all.
4858 .Sp
4859 If no \fBCollect\fR statement is given, the following \fBServer\fR values will be
4860 collected:
4861 .RS 4
4862 .IP "latency" 4
4863 .IX Item "latency"
4864 .PD 0
4865 .IP "packetcache-hit" 4
4866 .IX Item "packetcache-hit"
4867 .IP "packetcache-miss" 4
4868 .IX Item "packetcache-miss"
4869 .IP "packetcache-size" 4
4870 .IX Item "packetcache-size"
4871 .IP "query-cache-hit" 4
4872 .IX Item "query-cache-hit"
4873 .IP "query-cache-miss" 4
4874 .IX Item "query-cache-miss"
4875 .IP "recursing-answers" 4
4876 .IX Item "recursing-answers"
4877 .IP "recursing-questions" 4
4878 .IX Item "recursing-questions"
4879 .IP "tcp-answers" 4
4880 .IX Item "tcp-answers"
4881 .IP "tcp-queries" 4
4882 .IX Item "tcp-queries"
4883 .IP "udp-answers" 4
4884 .IX Item "udp-answers"
4885 .IP "udp-queries" 4
4886 .IX Item "udp-queries"
4887 .RE
4888 .RS 4
4889 .PD
4890 .Sp
4891 The following \fBRecursor\fR values will be collected by default:
4892 .IP "noerror-answers" 4
4893 .IX Item "noerror-answers"
4894 .PD 0
4895 .IP "nxdomain-answers" 4
4896 .IX Item "nxdomain-answers"
4897 .IP "servfail-answers" 4
4898 .IX Item "servfail-answers"
4899 .IP "sys-msec" 4
4900 .IX Item "sys-msec"
4901 .IP "user-msec" 4
4902 .IX Item "user-msec"
4903 .IP "qa-latency" 4
4904 .IX Item "qa-latency"
4905 .IP "cache-entries" 4
4906 .IX Item "cache-entries"
4907 .IP "cache-hits" 4
4908 .IX Item "cache-hits"
4909 .IP "cache-misses" 4
4910 .IX Item "cache-misses"
4911 .IP "questions" 4
4912 .IX Item "questions"
4913 .RE
4914 .RS 4
4915 .PD
4916 .Sp
4917 Please note that up to that point collectd doesn't know what values are
4918 available on the server and values that are added do not need a change of the
4919 mechanism so far. However, the values must be mapped to collectd's naming
4920 scheme, which is done using a lookup table that lists all known values. If
4921 values are added in the future and collectd does not know about them, you will
4922 get an error much like this:
4923 .Sp
4924 .Vb 1
4925 \&  powerdns plugin: submit: Not found in lookup table: foobar = 42
4926 .Ve
4927 .Sp
4928 In this case please file a bug report with the collectd team.
4929 .RE
4930 .IP "\fBSocket\fR \fIPath\fR" 4
4931 .IX Item "Socket Path"
4932 Configures the path to the \s-1UNIX\s0 domain socket to be used when connecting to the
4933 daemon. By default \f(CW\*(C`${localstatedir}/run/pdns.controlsocket\*(C'\fR will be used for
4934 an authoritative server and \f(CW\*(C`${localstatedir}/run/pdns_recursor.controlsocket\*(C'\fR
4935 will be used for the recursor.
4936 .RE
4937 .RS 4
4938 .RE
4939 .IP "\fBLocalSocket\fR \fIPath\fR" 4
4940 .IX Item "LocalSocket Path"
4941 Querying the recursor is done using \s-1UDP.\s0 When using \s-1UDP\s0 over \s-1UNIX\s0 domain
4942 sockets, the client socket needs a name in the file system, too. You can set
4943 this local name to \fIPath\fR using the \fBLocalSocket\fR option. The default is
4944 \&\f(CW\*(C`\f(CIprefix\f(CW/var/run/collectd\-powerdns\*(C'\fR.
4945 .ie n .SS "Plugin ""processes"""
4946 .el .SS "Plugin \f(CWprocesses\fP"
4947 .IX Subsection "Plugin processes"
4948 .IP "\fBProcess\fR \fIName\fR" 4
4949 .IX Item "Process Name"
4950 Select more detailed statistics of processes matching this name. The statistics
4951 collected for these selected processes are size of the resident segment size
4952 (\s-1RSS\s0), user\- and system-time used, number of processes and number of threads,
4953 io data (where available) and minor and major pagefaults.
4954 .IP "\fBProcessMatch\fR \fIname\fR \fIregex\fR" 4
4955 .IX Item "ProcessMatch name regex"
4956 Similar to the \fBProcess\fR option this allows to select more detailed
4957 statistics of processes matching the specified \fIregex\fR (see \fIregex\fR\|(7) for
4958 details). The statistics of all matching processes are summed up and
4959 dispatched to the daemon using the specified \fIname\fR as an identifier. This
4960 allows to \*(L"group\*(R" several processes together. \fIname\fR must not contain
4961 slashes.
4962 .ie n .SS "Plugin ""protocols"""
4963 .el .SS "Plugin \f(CWprotocols\fP"
4964 .IX Subsection "Plugin protocols"
4965 Collects a lot of information about various network protocols, such as \fI\s-1IP\s0\fR,
4966 \&\fI\s-1TCP\s0\fR, \fI\s-1UDP\s0\fR, etc.
4967 .PP
4968 Available configuration options:
4969 .IP "\fBValue\fR \fISelector\fR" 4
4970 .IX Item "Value Selector"
4971 Selects whether or not to select a specific value. The string being matched is
4972 of the form "\fIProtocol\fR:\fIValueName\fR", where \fIProtocol\fR will be used as the
4973 plugin instance and \fIValueName\fR will be used as type instance. An example of
4974 the string being used would be \f(CW\*(C`Tcp:RetransSegs\*(C'\fR.
4975 .Sp
4976 You can use regular expressions to match a large number of values with just one
4977 configuration option. To select all \*(L"extended\*(R" \fI\s-1TCP\s0\fR values, you could use the
4978 following statement:
4979 .Sp
4980 .Vb 1
4981 \&  Value "/^TcpExt:/"
4982 .Ve
4983 .Sp
4984 Whether only matched values are selected or all matched values are ignored
4985 depends on the \fBIgnoreSelected\fR. By default, only matched values are selected.
4986 If no value is configured at all, all values will be selected.
4987 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
4988 .IX Item "IgnoreSelected true|false"
4989 If set to \fBtrue\fR, inverts the selection made by \fBValue\fR, i.\ e. all
4990 matching values will be ignored.
4991 .ie n .SS "Plugin ""python"""
4992 .el .SS "Plugin \f(CWpython\fP"
4993 .IX Subsection "Plugin python"
4994 This plugin embeds a Python-interpreter into collectd and provides an interface
4995 to collectd's plugin system. See \fIcollectd\-python\fR\|(5) for its documentation.
4996 .ie n .SS "Plugin ""routeros"""
4997 .el .SS "Plugin \f(CWrouteros\fP"
4998 .IX Subsection "Plugin routeros"
4999 The \f(CW\*(C`routeros\*(C'\fR plugin connects to a device running \fIRouterOS\fR, the
5000 Linux-based operating system for routers by \fIMikroTik\fR. The plugin uses
5001 \&\fIlibrouteros\fR to connect and reads information about the interfaces and
5002 wireless connections of the device. The configuration supports querying
5003 multiple routers:
5004 .PP
5005 .Vb 10
5006 \&  <Plugin "routeros">
5007 \&    <Router>
5008 \&      Host "router0.example.com"
5009 \&      User "collectd"
5010 \&      Password "secr3t"
5011 \&      CollectInterface true
5012 \&      CollectCPULoad true
5013 \&      CollectMemory true
5014 \&    </Router>
5015 \&    <Router>
5016 \&      Host "router1.example.com"
5017 \&      User "collectd"
5018 \&      Password "5ecret"
5019 \&      CollectInterface true
5020 \&      CollectRegistrationTable true
5021 \&      CollectDF true
5022 \&      CollectDisk true
5023 \&    </Router>
5024 \&  </Plugin>
5025 .Ve
5026 .PP
5027 As you can see above, the configuration of the \fIrouteros\fR plugin consists of
5028 one or more \fB<Router>\fR blocks. Within each block, the following
5029 options are understood:
5030 .IP "\fBHost\fR \fIHost\fR" 4
5031 .IX Item "Host Host"
5032 Hostname or IP-address of the router to connect to.
5033 .IP "\fBPort\fR \fIPort\fR" 4
5034 .IX Item "Port Port"
5035 Port name or port number used when connecting. If left unspecified, the default
5036 will be chosen by \fIlibrouteros\fR, currently \*(L"8728\*(R". This option expects a
5037 string argument, even when a numeric port number is given.
5038 .IP "\fBUser\fR \fIUser\fR" 4
5039 .IX Item "User User"
5040 Use the user name \fIUser\fR to authenticate. Defaults to \*(L"admin\*(R".
5041 .IP "\fBPassword\fR \fIPassword\fR" 4
5042 .IX Item "Password Password"
5043 Set the password used to authenticate.
5044 .IP "\fBCollectInterface\fR \fBtrue\fR|\fBfalse\fR" 4
5045 .IX Item "CollectInterface true|false"
5046 When set to \fBtrue\fR, interface statistics will be collected for all interfaces
5047 present on the device. Defaults to \fBfalse\fR.
5048 .IP "\fBCollectRegistrationTable\fR \fBtrue\fR|\fBfalse\fR" 4
5049 .IX Item "CollectRegistrationTable true|false"
5050 When set to \fBtrue\fR, information about wireless \s-1LAN\s0 connections will be
5051 collected. Defaults to \fBfalse\fR.
5052 .IP "\fBCollectCPULoad\fR \fBtrue\fR|\fBfalse\fR" 4
5053 .IX Item "CollectCPULoad true|false"
5054 When set to \fBtrue\fR, information about the \s-1CPU\s0 usage will be collected. The
5055 number is a dimensionless value where zero indicates no \s-1CPU\s0 usage at all.
5056 Defaults to \fBfalse\fR.
5057 .IP "\fBCollectMemory\fR \fBtrue\fR|\fBfalse\fR" 4
5058 .IX Item "CollectMemory true|false"
5059 When enabled, the amount of used and free memory will be collected. How used
5060 memory is calculated is unknown, for example whether or not caches are counted
5061 as used space.
5062 Defaults to \fBfalse\fR.
5063 .IP "\fBCollectDF\fR \fBtrue\fR|\fBfalse\fR" 4
5064 .IX Item "CollectDF true|false"
5065 When enabled, the amount of used and free disk space will be collected.
5066 Defaults to \fBfalse\fR.
5067 .IP "\fBCollectDisk\fR \fBtrue\fR|\fBfalse\fR" 4
5068 .IX Item "CollectDisk true|false"
5069 When enabled, the number of sectors written and bad blocks will be collected.
5070 Defaults to \fBfalse\fR.
5071 .ie n .SS "Plugin ""redis"""
5072 .el .SS "Plugin \f(CWredis\fP"
5073 .IX Subsection "Plugin redis"
5074 The \fIRedis plugin\fR connects to one or more Redis servers and gathers
5075 information about each server's state. For each server there is a \fINode\fR block
5076 which configures the connection parameters for this node.
5077 .PP
5078 .Vb 11
5079 \&  <Plugin redis>
5080 \&    <Node "example">
5081 \&        Host "localhost"
5082 \&        Port "6379"
5083 \&        Timeout 2000
5084 \&        <Query "LLEN myqueue">
5085 \&          Type "queue_length"
5086 \&          Instance "myqueue"
5087 \&        <Query>
5088 \&    </Node>
5089 \&  </Plugin>
5090 .Ve
5091 .PP
5092 The information shown in the synopsis above is the \fIdefault configuration\fR
5093 which is used by the plugin if no configuration is present.
5094 .IP "\fBNode\fR \fINodename\fR" 4
5095 .IX Item "Node Nodename"
5096 The \fBNode\fR block identifies a new Redis node, that is a new Redis instance
5097 running in an specified host and port. The name for node is a canonical
5098 identifier which is used as \fIplugin instance\fR. It is limited to
5099 64\ characters in length.
5100 .IP "\fBHost\fR \fIHostname\fR" 4
5101 .IX Item "Host Hostname"
5102 The \fBHost\fR option is the hostname or IP-address where the Redis instance is
5103 running on.
5104 .IP "\fBPort\fR \fIPort\fR" 4
5105 .IX Item "Port Port"
5106 The \fBPort\fR option is the \s-1TCP\s0 port on which the Redis instance accepts
5107 connections. Either a service name of a port number may be given. Please note
5108 that numerical port numbers must be given as a string, too.
5109 .IP "\fBPassword\fR \fIPassword\fR" 4
5110 .IX Item "Password Password"
5111 Use \fIPassword\fR to authenticate when connecting to \fIRedis\fR.
5112 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
5113 .IX Item "Timeout Milliseconds"
5114 The \fBTimeout\fR option set the socket timeout for node response. Since the Redis
5115 read function is blocking, you should keep this value as low as possible. Keep
5116 in mind that the sum of all \fBTimeout\fR values for all \fBNodes\fR should be lower
5117 than \fBInterval\fR defined globally.
5118 .IP "\fBQuery\fR \fIQuerystring\fR" 4
5119 .IX Item "Query Querystring"
5120 The \fBQuery\fR block identifies a query to execute against the redis server.
5121 There may be an arbitrary number of queries to execute.
5122 .IP "\fBType\fR \fICollectd type\fR" 4
5123 .IX Item "Type Collectd type"
5124 Within a query definition, a valid collectd type to use as when submitting
5125 the result of the query. When not supplied, will default to \fBgauge\fR.
5126 .IP "\fBInstance\fR \fIType instance\fR" 4
5127 .IX Item "Instance Type instance"
5128 Within a query definition, an optional type instance to use when submitting
5129 the result of the query. When not supplied will default to the escaped
5130 command, up to 64 chars.
5131 .ie n .SS "Plugin ""rrdcached"""
5132 .el .SS "Plugin \f(CWrrdcached\fP"
5133 .IX Subsection "Plugin rrdcached"
5134 The \f(CW\*(C`rrdcached\*(C'\fR plugin uses the RRDtool accelerator daemon, \fIrrdcached\fR\|(1),
5135 to store values to \s-1RRD\s0 files in an efficient manner. The combination of the
5136 \&\f(CW\*(C`rrdcached\*(C'\fR \fBplugin\fR and the \f(CW\*(C`rrdcached\*(C'\fR \fBdaemon\fR is very similar to the
5137 way the \f(CW\*(C`rrdtool\*(C'\fR plugin works (see below). The added abstraction layer
5138 provides a number of benefits, though: Because the cache is not within
5139 \&\f(CW\*(C`collectd\*(C'\fR anymore, it does not need to be flushed when \f(CW\*(C`collectd\*(C'\fR is to be
5140 restarted. This results in much shorter (if any) gaps in graphs, especially
5141 under heavy load. Also, the \f(CW\*(C`rrdtool\*(C'\fR command line utility is aware of the
5142 daemon so that it can flush values to disk automatically when needed. This
5143 allows to integrate automated flushing of values into graphing solutions much
5144 more easily.
5145 .PP
5146 There are disadvantages, though: The daemon may reside on a different host, so
5147 it may not be possible for \f(CW\*(C`collectd\*(C'\fR to create the appropriate \s-1RRD\s0 files
5148 anymore. And even if \f(CW\*(C`rrdcached\*(C'\fR runs on the same host, it may run in a
5149 different base directory, so relative paths may do weird stuff if you're not
5150 careful.
5151 .PP
5152 So the \fBrecommended configuration\fR is to let \f(CW\*(C`collectd\*(C'\fR and \f(CW\*(C`rrdcached\*(C'\fR run
5153 on the same host, communicating via a \s-1UNIX\s0 domain socket. The \fBDataDir\fR
5154 setting should be set to an absolute path, so that a changed base directory
5155 does not result in \s-1RRD\s0 files being created\ / expected in the wrong place.
5156 .IP "\fBDaemonAddress\fR \fIAddress\fR" 4
5157 .IX Item "DaemonAddress Address"
5158 Address of the daemon as understood by the \f(CW\*(C`rrdc_connect\*(C'\fR function of the \s-1RRD\s0
5159 library. See \fIrrdcached\fR\|(1) for details. Example:
5160 .Sp
5161 .Vb 3
5162 \&  <Plugin "rrdcached">
5163 \&    DaemonAddress "unix:/var/run/rrdcached.sock"
5164 \&  </Plugin>
5165 .Ve
5166 .IP "\fBDataDir\fR \fIDirectory\fR" 4
5167 .IX Item "DataDir Directory"
5168 Set the base directory in which the \s-1RRD\s0 files reside. If this is a relative
5169 path, it is relative to the working base directory of the \f(CW\*(C`rrdcached\*(C'\fR daemon!
5170 Use of an absolute path is recommended.
5171 .IP "\fBCreateFiles\fR \fBtrue\fR|\fBfalse\fR" 4
5172 .IX Item "CreateFiles true|false"
5173 Enables or disables the creation of \s-1RRD\s0 files. If the daemon is not running
5174 locally, or \fBDataDir\fR is set to a relative path, this will not work as
5175 expected. Default is \fBtrue\fR.
5176 .IP "\fBCreateFilesAsync\fR \fBfalse\fR|\fBtrue\fR" 4
5177 .IX Item "CreateFilesAsync false|true"
5178 When enabled, new \s-1RRD\s0 files are enabled asynchronously, using a separate thread
5179 that runs in the background. This prevents writes to block, which is a problem
5180 especially when many hundreds of files need to be created at once. However,
5181 since the purpose of creating the files asynchronously is \fInot\fR to block until
5182 the file is available, values before the file is available will be discarded.
5183 When disabled (the default) files are created synchronously, blocking for a
5184 short while, while the file is being written.
5185 .IP "\fBStepSize\fR \fISeconds\fR" 4
5186 .IX Item "StepSize Seconds"
5187 \&\fBForce\fR the stepsize of newly created RRD-files. Ideally (and per default)
5188 this setting is unset and the stepsize is set to the interval in which the data
5189 is collected. Do not use this option unless you absolutely have to for some
5190 reason. Setting this option may cause problems with the \f(CW\*(C`snmp plugin\*(C'\fR, the
5191 \&\f(CW\*(C`exec plugin\*(C'\fR or when the daemon is set up to receive data from other hosts.
5192 .IP "\fBHeartBeat\fR \fISeconds\fR" 4
5193 .IX Item "HeartBeat Seconds"
5194 \&\fBForce\fR the heartbeat of newly created RRD-files. This setting should be unset
5195 in which case the heartbeat is set to twice the \fBStepSize\fR which should equal
5196 the interval in which data is collected. Do not set this option unless you have
5197 a very good reason to do so.
5198 .IP "\fBRRARows\fR \fINumRows\fR" 4
5199 .IX Item "RRARows NumRows"
5200 The \f(CW\*(C`rrdtool plugin\*(C'\fR calculates the number of PDPs per \s-1CDP\s0 based on the
5201 \&\fBStepSize\fR, this setting and a timespan. This plugin creates RRD-files with
5202 three times five RRAs, i. e. five RRAs with the CFs \fB\s-1MIN\s0\fR, \fB\s-1AVERAGE\s0\fR, and
5203 \&\fB\s-1MAX\s0\fR. The five RRAs are optimized for graphs covering one hour, one day, one
5204 week, one month, and one year.
5205 .Sp
5206 So for each timespan, it calculates how many PDPs need to be consolidated into
5207 one \s-1CDP\s0 by calculating:
5208   number of PDPs = timespan / (stepsize * rrarows)
5209 .Sp
5210 Bottom line is, set this no smaller than the width of you graphs in pixels. The
5211 default is 1200.
5212 .IP "\fBRRATimespan\fR \fISeconds\fR" 4
5213 .IX Item "RRATimespan Seconds"
5214 Adds an RRA-timespan, given in seconds. Use this option multiple times to have
5215 more then one \s-1RRA.\s0 If this option is never used, the built-in default of (3600,
5216 86400, 604800, 2678400, 31622400) is used.
5217 .Sp
5218 For more information on how RRA-sizes are calculated see \fBRRARows\fR above.
5219 .IP "\fB\s-1XFF\s0\fR \fIFactor\fR" 4
5220 .IX Item "XFF Factor"
5221 Set the \*(L"XFiles Factor\*(R". The default is 0.1. If unsure, don't set this option.
5222 \&\fIFactor\fR must be in the range \f(CW\*(C`[0.0\-1.0)\*(C'\fR, i.e. between zero (inclusive) and
5223 one (exclusive).
5224 .IP "\fBCollectStatistics\fR \fBfalse\fR|\fBtrue\fR" 4
5225 .IX Item "CollectStatistics false|true"
5226 When set to \fBtrue\fR, various statistics about the \fIrrdcached\fR daemon will be
5227 collected, with \*(L"rrdcached\*(R" as the \fIplugin name\fR. Defaults to \fBfalse\fR.
5228 .Sp
5229 Statistics are read via \fIrrdcached\fRs socket using the \s-1STATS\s0 command.
5230 See \fIrrdcached\fR\|(1) for details.
5231 .ie n .SS "Plugin ""rrdtool"""
5232 .el .SS "Plugin \f(CWrrdtool\fP"
5233 .IX Subsection "Plugin rrdtool"
5234 You can use the settings \fBStepSize\fR, \fBHeartBeat\fR, \fBRRARows\fR, and \fB\s-1XFF\s0\fR to
5235 fine-tune your RRD-files. Please read \fIrrdcreate\fR\|(1) if you encounter problems
5236 using these settings. If you don't want to dive into the depths of RRDtool, you
5237 can safely ignore these settings.
5238 .IP "\fBDataDir\fR \fIDirectory\fR" 4
5239 .IX Item "DataDir Directory"
5240 Set the directory to store \s-1RRD\s0 files under. By default \s-1RRD\s0 files are generated
5241 beneath the daemon's working directory, i.e. the \fBBaseDir\fR.
5242 .IP "\fBCreateFilesAsync\fR \fBfalse\fR|\fBtrue\fR" 4
5243 .IX Item "CreateFilesAsync false|true"
5244 When enabled, new \s-1RRD\s0 files are enabled asynchronously, using a separate thread
5245 that runs in the background. This prevents writes to block, which is a problem
5246 especially when many hundreds of files need to be created at once. However,
5247 since the purpose of creating the files asynchronously is \fInot\fR to block until
5248 the file is available, values before the file is available will be discarded.
5249 When disabled (the default) files are created synchronously, blocking for a
5250 short while, while the file is being written.
5251 .IP "\fBStepSize\fR \fISeconds\fR" 4
5252 .IX Item "StepSize Seconds"
5253 \&\fBForce\fR the stepsize of newly created RRD-files. Ideally (and per default)
5254 this setting is unset and the stepsize is set to the interval in which the data
5255 is collected. Do not use this option unless you absolutely have to for some
5256 reason. Setting this option may cause problems with the \f(CW\*(C`snmp plugin\*(C'\fR, the
5257 \&\f(CW\*(C`exec plugin\*(C'\fR or when the daemon is set up to receive data from other hosts.
5258 .IP "\fBHeartBeat\fR \fISeconds\fR" 4
5259 .IX Item "HeartBeat Seconds"
5260 \&\fBForce\fR the heartbeat of newly created RRD-files. This setting should be unset
5261 in which case the heartbeat is set to twice the \fBStepSize\fR which should equal
5262 the interval in which data is collected. Do not set this option unless you have
5263 a very good reason to do so.
5264 .IP "\fBRRARows\fR \fINumRows\fR" 4
5265 .IX Item "RRARows NumRows"
5266 The \f(CW\*(C`rrdtool plugin\*(C'\fR calculates the number of PDPs per \s-1CDP\s0 based on the
5267 \&\fBStepSize\fR, this setting and a timespan. This plugin creates RRD-files with
5268 three times five RRAs, i.e. five RRAs with the CFs \fB\s-1MIN\s0\fR, \fB\s-1AVERAGE\s0\fR, and
5269 \&\fB\s-1MAX\s0\fR. The five RRAs are optimized for graphs covering one hour, one day, one
5270 week, one month, and one year.
5271 .Sp
5272 So for each timespan, it calculates how many PDPs need to be consolidated into
5273 one \s-1CDP\s0 by calculating:
5274   number of PDPs = timespan / (stepsize * rrarows)
5275 .Sp
5276 Bottom line is, set this no smaller than the width of you graphs in pixels. The
5277 default is 1200.
5278 .IP "\fBRRATimespan\fR \fISeconds\fR" 4
5279 .IX Item "RRATimespan Seconds"
5280 Adds an RRA-timespan, given in seconds. Use this option multiple times to have
5281 more then one \s-1RRA.\s0 If this option is never used, the built-in default of (3600,
5282 86400, 604800, 2678400, 31622400) is used.
5283 .Sp
5284 For more information on how RRA-sizes are calculated see \fBRRARows\fR above.
5285 .IP "\fB\s-1XFF\s0\fR \fIFactor\fR" 4
5286 .IX Item "XFF Factor"
5287 Set the \*(L"XFiles Factor\*(R". The default is 0.1. If unsure, don't set this option.
5288 \&\fIFactor\fR must be in the range \f(CW\*(C`[0.0\-1.0)\*(C'\fR, i.e. between zero (inclusive) and
5289 one (exclusive).
5290 .IP "\fBCacheFlush\fR \fISeconds\fR" 4
5291 .IX Item "CacheFlush Seconds"
5292 When the \f(CW\*(C`rrdtool\*(C'\fR plugin uses a cache (by setting \fBCacheTimeout\fR, see below)
5293 it writes all values for a certain RRD-file if the oldest value is older than
5294 (or equal to) the number of seconds specified. If some RRD-file is not updated
5295 anymore for some reason (the computer was shut down, the network is broken,
5296 etc.) some values may still be in the cache. If \fBCacheFlush\fR is set, then the
5297 entire cache is searched for entries older than \fBCacheTimeout\fR seconds and
5298 written to disk every \fISeconds\fR seconds. Since this is kind of expensive and
5299 does nothing under normal circumstances, this value should not be too small.
5300 900 seconds might be a good value, though setting this to 7200 seconds doesn't
5301 normally do much harm either.
5302 .IP "\fBCacheTimeout\fR \fISeconds\fR" 4
5303 .IX Item "CacheTimeout Seconds"
5304 If this option is set to a value greater than zero, the \f(CW\*(C`rrdtool plugin\*(C'\fR will
5305 save values in a cache, as described above. Writing multiple values at once
5306 reduces IO-operations and thus lessens the load produced by updating the files.
5307 The trade off is that the graphs kind of \*(L"drag behind\*(R" and that more memory is
5308 used.
5309 .IP "\fBWritesPerSecond\fR \fIUpdates\fR" 4
5310 .IX Item "WritesPerSecond Updates"
5311 When collecting many statistics with collectd and the \f(CW\*(C`rrdtool\*(C'\fR plugin, you
5312 will run serious performance problems. The \fBCacheFlush\fR setting and the
5313 internal update queue assert that collectd continues to work just fine even
5314 under heavy load, but the system may become very unresponsive and slow. This is
5315 a problem especially if you create graphs from the \s-1RRD\s0 files on the same
5316 machine, for example using the \f(CW\*(C`graph.cgi\*(C'\fR script included in the
5317 \&\f(CW\*(C`contrib/collection3/\*(C'\fR directory.
5318 .Sp
5319 This setting is designed for very large setups. Setting this option to a value
5320 between 25 and 80 updates per second, depending on your hardware, will leave
5321 the server responsive enough to draw graphs even while all the cached values
5322 are written to disk. Flushed values, i.\ e. values that are forced to disk
5323 by the \fB\s-1FLUSH\s0\fR command, are \fBnot\fR effected by this limit. They are still
5324 written as fast as possible, so that web frontends have up to date data when
5325 generating graphs.
5326 .Sp
5327 For example: If you have 100,000 \s-1RRD\s0 files and set \fBWritesPerSecond\fR to 30
5328 updates per second, writing all values to disk will take approximately
5329 56\ minutes. Together with the flushing ability that's integrated into
5330 \&\*(L"collection3\*(R" you'll end up with a responsive and fast system, up to date
5331 graphs and basically a \*(L"backup\*(R" of your values every hour.
5332 .IP "\fBRandomTimeout\fR \fISeconds\fR" 4
5333 .IX Item "RandomTimeout Seconds"
5334 When set, the actual timeout for each value is chosen randomly between
5335 \&\fICacheTimeout\fR\-\fIRandomTimeout\fR and \fICacheTimeout\fR+\fIRandomTimeout\fR. The
5336 intention is to avoid high load situations that appear when many values timeout
5337 at the same time. This is especially a problem shortly after the daemon starts,
5338 because all values were added to the internal cache at roughly the same time.
5339 .ie n .SS "Plugin ""sensors"""
5340 .el .SS "Plugin \f(CWsensors\fP"
5341 .IX Subsection "Plugin sensors"
5342 The \fISensors plugin\fR uses \fBlm_sensors\fR to retrieve sensor-values. This means
5343 that all the needed modules have to be loaded and lm_sensors has to be
5344 configured (most likely by editing \fI/etc/sensors.conf\fR. Read
5345 \&\fIsensors.conf\fR\|(5) for details.
5346 .PP
5347 The \fBlm_sensors\fR homepage can be found at
5348 <http://secure.netroedge.com/~lm78/>.
5349 .IP "\fBSensorConfigFile\fR \fIFile\fR" 4
5350 .IX Item "SensorConfigFile File"
5351 Read the \fIlm_sensors\fR configuration from \fIFile\fR. When unset (recommended),
5352 the library's default will be used.
5353 .IP "\fBSensor\fR \fIchip\-bus\-address/type\-feature\fR" 4
5354 .IX Item "Sensor chip-bus-address/type-feature"
5355 Selects the name of the sensor which you want to collect or ignore, depending
5356 on the \fBIgnoreSelected\fR below. For example, the option "\fBSensor\fR
5357 \&\fIit8712\-isa\-0290/voltage\-in1\fR" will cause collectd to gather data for the
5358 voltage sensor \fIin1\fR of the \fIit8712\fR on the isa bus at the address 0290.
5359 .IP "\fBIgnoreSelected\fR \fItrue\fR|\fIfalse\fR" 4
5360 .IX Item "IgnoreSelected true|false"
5361 If no configuration if given, the \fBsensors\fR\-plugin will collect data from all
5362 sensors. This may not be practical, especially for uninteresting sensors.
5363 Thus, you can use the \fBSensor\fR\-option to pick the sensors you're interested
5364 in. Sometimes, however, it's easier/preferred to collect all sensors \fIexcept\fR a
5365 few ones. This option enables you to do that: By setting \fBIgnoreSelected\fR to
5366 \&\fItrue\fR the effect of \fBSensor\fR is inverted: All selected sensors are ignored
5367 and all other sensors are collected.
5368 .ie n .SS "Plugin ""sigrok"""
5369 .el .SS "Plugin \f(CWsigrok\fP"
5370 .IX Subsection "Plugin sigrok"
5371 The \fIsigrok plugin\fR uses \fIlibsigrok\fR to retrieve measurements from any device
5372 supported by the sigrok <http://sigrok.org/> project.
5373 .PP
5374 \&\fBSynopsis\fR
5375 .PP
5376 .Vb 12
5377 \& <Plugin sigrok>
5378 \&   LogLevel 3
5379 \&   <Device "AC Voltage">
5380 \&      Driver "fluke\-dmm"
5381 \&      MinimumInterval 10
5382 \&      Conn "/dev/ttyUSB2"
5383 \&   </Device>
5384 \&   <Device "Sound Level">
5385 \&      Driver "cem\-dt\-885x"
5386 \&      Conn "/dev/ttyUSB1"
5387 \&   </Device>
5388 \& </Plugin>
5389 .Ve
5390 .IP "\fBLogLevel\fR \fB0\-5\fR" 4
5391 .IX Item "LogLevel 0-5"
5392 The \fIsigrok\fR logging level to pass on to the \fIcollectd\fR log, as a number
5393 between \fB0\fR and \fB5\fR (inclusive). These levels correspond to \f(CW\*(C`None\*(C'\fR,
5394 \&\f(CW\*(C`Errors\*(C'\fR, \f(CW\*(C`Warnings\*(C'\fR, \f(CW\*(C`Informational\*(C'\fR, \f(CW\*(C`Debug \*(C'\fRand \f(CW\*(C`Spew\*(C'\fR, respectively.
5395 The default is \fB2\fR (\f(CW\*(C`Warnings\*(C'\fR). The \fIsigrok\fR log messages, regardless of
5396 their level, are always submitted to \fIcollectd\fR at its \s-1INFO\s0 log level.
5397 .IP "<\fBDevice\fR \fIName\fR>" 4
5398 .IX Item "<Device Name>"
5399 A sigrok-supported device, uniquely identified by this section's options. The
5400 \&\fIName\fR is passed to \fIcollectd\fR as the \fIplugin instance\fR.
5401 .IP "\fBDriver\fR \fIDriverName\fR" 4
5402 .IX Item "Driver DriverName"
5403 The sigrok driver to use for this device.
5404 .IP "\fBConn\fR \fIConnectionSpec\fR" 4
5405 .IX Item "Conn ConnectionSpec"
5406 If the device cannot be auto-discovered, or more than one might be discovered
5407 by the driver, \fIConnectionSpec\fR specifies the connection string to the device.
5408 It can be of the form of a device path (e.g.\ \f(CW\*(C`/dev/ttyUSB2\*(C'\fR), or, in
5409 case of a non-serial USB-connected device, the \s-1USB \s0\fIVendorID\fR\fB.\fR\fIProductID\fR
5410 separated by a period (e.g.\ \f(CW0403.6001\fR). A \s-1USB\s0 device can also be
5411 specified as \fIBus\fR\fB.\fR\fIAddress\fR (e.g.\ \f(CW1.41\fR).
5412 .IP "\fBSerialComm\fR \fISerialSpec\fR" 4
5413 .IX Item "SerialComm SerialSpec"
5414 For serial devices with non-standard port settings, this option can be used
5415 to specify them in a form understood by \fIsigrok\fR, e.g.\ \f(CW\*(C`9600/8n1\*(C'\fR.
5416 This should not be necessary; drivers know how to communicate with devices they
5417 support.
5418 .IP "\fBMinimumInterval\fR \fISeconds\fR" 4
5419 .IX Item "MinimumInterval Seconds"
5420 Specifies the minimum time between measurement dispatches to \fIcollectd\fR, in
5421 seconds. Since some \fIsigrok\fR supported devices can acquire measurements many
5422 times per second, it may be necessary to throttle these. For example, the
5423 \&\fI\s-1RRD\s0 plugin\fR cannot process writes more than once per second.
5424 .Sp
5425 The default \fBMinimumInterval\fR is \fB0\fR, meaning measurements received from the
5426 device are always dispatched to \fIcollectd\fR. When throttled, unused
5427 measurements are discarded.
5428 .ie n .SS "Plugin ""smart"""
5429 .el .SS "Plugin \f(CWsmart\fP"
5430 .IX Subsection "Plugin smart"
5431 The \f(CW\*(C`smart\*(C'\fR plugin collects \s-1SMART\s0 information from physical
5432 disks. Values collectd include temperature, power cycle count, poweron
5433 time and bad sectors. Also, all \s-1SMART\s0 attributes are collected along
5434 with the normalized current value, the worst value, the threshold and
5435 a human readable value.
5436 .PP
5437 Using the following two options you can ignore some disks or configure the
5438 collection only of specific disks.
5439 .IP "\fBDisk\fR \fIName\fR" 4
5440 .IX Item "Disk Name"
5441 Select the disk \fIName\fR. Whether it is collected or ignored depends on the
5442 \&\fBIgnoreSelected\fR setting, see below. As with other plugins that use the
5443 daemon's ignorelist functionality, a string that starts and ends with a slash
5444 is interpreted as a regular expression. Examples:
5445 .Sp
5446 .Vb 2
5447 \&  Disk "sdd"
5448 \&  Disk "/hda[34]/"
5449 .Ve
5450 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
5451 .IX Item "IgnoreSelected true|false"
5452 Sets whether selected disks, i.\ e. the ones matches by any of the \fBDisk\fR
5453 statements, are ignored or if all other disks are ignored. The behavior
5454 (hopefully) is intuitive: If no \fBDisk\fR option is configured, all disks are
5455 collected. If at least one \fBDisk\fR option is given and no \fBIgnoreSelected\fR or
5456 set to \fBfalse\fR, \fBonly\fR matching disks will be collected. If \fBIgnoreSelected\fR
5457 is set to \fBtrue\fR, all disks are collected \fBexcept\fR the ones matched.
5458 .ie n .SS "Plugin ""snmp"""
5459 .el .SS "Plugin \f(CWsnmp\fP"
5460 .IX Subsection "Plugin snmp"
5461 Since the configuration of the \f(CW\*(C`snmp plugin\*(C'\fR is a little more complicated than
5462 other plugins, its documentation has been moved to an own manpage,
5463 \&\fIcollectd\-snmp\fR\|(5). Please see there for details.
5464 .ie n .SS "Plugin ""statsd"""
5465 .el .SS "Plugin \f(CWstatsd\fP"
5466 .IX Subsection "Plugin statsd"
5467 The \fIstatsd plugin\fR listens to a \s-1UDP\s0 socket, reads \*(L"events\*(R" in the statsd
5468 protocol and dispatches rates or other aggregates of these numbers
5469 periodically.
5470 .PP
5471 The plugin implements the \fICounter\fR, \fITimer\fR, \fIGauge\fR and \fISet\fR types which
5472 are dispatched as the \fIcollectd\fR types \f(CW\*(C`derive\*(C'\fR, \f(CW\*(C`latency\*(C'\fR, \f(CW\*(C`gauge\*(C'\fR and
5473 \&\f(CW\*(C`objects\*(C'\fR respectively.
5474 .PP
5475 The following configuration options are valid:
5476 .IP "\fBHost\fR \fIHost\fR" 4
5477 .IX Item "Host Host"
5478 Bind to the hostname / address \fIHost\fR. By default, the plugin will bind to the
5479 \&\*(L"any\*(R" address, i.e. accept packets sent to any of the hosts addresses.
5480 .IP "\fBPort\fR \fIPort\fR" 4
5481 .IX Item "Port Port"
5482 \&\s-1UDP\s0 port to listen to. This can be either a service name or a port number.
5483 Defaults to \f(CW8125\fR.
5484 .IP "\fBDeleteCounters\fR \fBfalse\fR|\fBtrue\fR" 4
5485 .IX Item "DeleteCounters false|true"
5486 .PD 0
5487 .IP "\fBDeleteTimers\fR \fBfalse\fR|\fBtrue\fR" 4
5488 .IX Item "DeleteTimers false|true"
5489 .IP "\fBDeleteGauges\fR \fBfalse\fR|\fBtrue\fR" 4
5490 .IX Item "DeleteGauges false|true"
5491 .IP "\fBDeleteSets\fR \fBfalse\fR|\fBtrue\fR" 4
5492 .IX Item "DeleteSets false|true"
5493 .PD
5494 These options control what happens if metrics are not updated in an interval.
5495 If set to \fBFalse\fR, the default, metrics are dispatched unchanged, i.e. the
5496 rate of counters and size of sets will be zero, timers report \f(CW\*(C`NaN\*(C'\fR and gauges
5497 are unchanged. If set to \fBTrue\fR, the such metrics are not dispatched and
5498 removed from the internal cache.
5499 .IP "\fBTimerPercentile\fR \fIPercent\fR" 4
5500 .IX Item "TimerPercentile Percent"
5501 Calculate and dispatch the configured percentile, i.e. compute the latency, so
5502 that \fIPercent\fR of all reported timers are smaller than or equal to the
5503 computed latency. This is useful for cutting off the long tail latency, as it's
5504 often done in \fIService Level Agreements\fR (SLAs).
5505 .Sp
5506 Different percentiles can be calculated by setting this option several times.
5507 If none are specified, no percentiles are calculated / dispatched.
5508 .IP "\fBTimerLower\fR \fBfalse\fR|\fBtrue\fR" 4
5509 .IX Item "TimerLower false|true"
5510 .PD 0
5511 .IP "\fBTimerUpper\fR \fBfalse\fR|\fBtrue\fR" 4
5512 .IX Item "TimerUpper false|true"
5513 .IP "\fBTimerSum\fR \fBfalse\fR|\fBtrue\fR" 4
5514 .IX Item "TimerSum false|true"
5515 .IP "\fBTimerCount\fR \fBfalse\fR|\fBtrue\fR" 4
5516 .IX Item "TimerCount false|true"
5517 .PD
5518 Calculate and dispatch various values out of \fITimer\fR metrics received during
5519 an interval. If set to \fBFalse\fR, the default, these values aren't calculated /
5520 dispatched.
5521 .ie n .SS "Plugin ""swap"""
5522 .el .SS "Plugin \f(CWswap\fP"
5523 .IX Subsection "Plugin swap"
5524 The \fISwap plugin\fR collects information about used and available swap space. On
5525 \&\fILinux\fR and \fISolaris\fR, the following options are available:
5526 .IP "\fBReportByDevice\fR \fBfalse\fR|\fBtrue\fR" 4
5527 .IX Item "ReportByDevice false|true"
5528 Configures how to report physical swap devices. If set to \fBfalse\fR (the
5529 default), the summary over all swap devices is reported only, i.e. the globally
5530 used and available space over all devices. If \fBtrue\fR is configured, the used
5531 and available space of each device will be reported separately.
5532 .Sp
5533 This option is only available if the \fISwap plugin\fR can read \f(CW\*(C`/proc/swaps\*(C'\fR
5534 (under Linux) or use the \fIswapctl\fR\|(2) mechanism (under \fISolaris\fR).
5535 .IP "\fBReportBytes\fR \fBfalse\fR|\fBtrue\fR" 4
5536 .IX Item "ReportBytes false|true"
5537 When enabled, the \fIswap I/O\fR is reported in bytes. When disabled, the default,
5538 \&\fIswap I/O\fR is reported in pages. This option is available under Linux only.
5539 .IP "\fBValuesAbsolute\fR \fBtrue\fR|\fBfalse\fR" 4
5540 .IX Item "ValuesAbsolute true|false"
5541 Enables or disables reporting of absolute swap metrics, i.e. number of \fIbytes\fR
5542 available and used. Defaults to \fBtrue\fR.
5543 .IP "\fBValuesPercentage\fR \fBfalse\fR|\fBtrue\fR" 4
5544 .IX Item "ValuesPercentage false|true"
5545 Enables or disables reporting of relative swap metrics, i.e. \fIpercent\fR
5546 available and free. Defaults to \fBfalse\fR.
5547 .Sp
5548 This is useful for deploying \fIcollectd\fR in a heterogeneous environment, where
5549 swap sizes differ and you want to specify generic thresholds or similar.
5550 .ie n .SS "Plugin ""syslog"""
5551 .el .SS "Plugin \f(CWsyslog\fP"
5552 .IX Subsection "Plugin syslog"
5553 .IP "\fBLogLevel\fR \fBdebug|info|notice|warning|err\fR" 4
5554 .IX Item "LogLevel debug|info|notice|warning|err"
5555 Sets the log-level. If, for example, set to \fBnotice\fR, then all events with
5556 severity \fBnotice\fR, \fBwarning\fR, or \fBerr\fR will be submitted to the
5557 syslog-daemon.
5558 .Sp
5559 Please note that \fBdebug\fR is only available if collectd has been compiled with
5560 debugging support.
5561 .IP "\fBNotifyLevel\fR \fB\s-1OKAY\s0\fR|\fB\s-1WARNING\s0\fR|\fB\s-1FAILURE\s0\fR" 4
5562 .IX Item "NotifyLevel OKAY|WARNING|FAILURE"
5563 Controls which notifications should be sent to syslog. The default behaviour is
5564 not to send any. Less severe notifications always imply logging more severe
5565 notifications: Setting this to \fB\s-1OKAY\s0\fR means all notifications will be sent to
5566 syslog, setting this to \fB\s-1WARNING\s0\fR will send \fB\s-1WARNING\s0\fR and \fB\s-1FAILURE\s0\fR
5567 notifications but will dismiss \fB\s-1OKAY\s0\fR notifications. Setting this option to
5568 \&\fB\s-1FAILURE\s0\fR will only send failures to syslog.
5569 .ie n .SS "Plugin ""table"""
5570 .el .SS "Plugin \f(CWtable\fP"
5571 .IX Subsection "Plugin table"
5572 The \f(CW\*(C`table plugin\*(C'\fR provides generic means to parse tabular data and dispatch
5573 user specified values. Values are selected based on column numbers. For
5574 example, this plugin may be used to get values from the Linux \fIproc\fR\|(5)
5575 filesystem or \s-1CSV \s0(comma separated values) files.
5576 .PP
5577 .Vb 10
5578 \&  <Plugin table>
5579 \&    <Table "/proc/slabinfo">
5580 \&      Instance "slabinfo"
5581 \&      Separator " "
5582 \&      <Result>
5583 \&        Type gauge
5584 \&        InstancePrefix "active_objs"
5585 \&        InstancesFrom 0
5586 \&        ValuesFrom 1
5587 \&      </Result>
5588 \&      <Result>
5589 \&        Type gauge
5590 \&        InstancePrefix "objperslab"
5591 \&        InstancesFrom 0
5592 \&        ValuesFrom 4
5593 \&      </Result>
5594 \&    </Table>
5595 \&  </Plugin>
5596 .Ve
5597 .PP
5598 The configuration consists of one or more \fBTable\fR blocks, each of which
5599 configures one file to parse. Within each \fBTable\fR block, there are one or
5600 more \fBResult\fR blocks, which configure which data to select and how to
5601 interpret it.
5602 .PP
5603 The following options are available inside a \fBTable\fR block:
5604 .IP "\fBInstance\fR \fIinstance\fR" 4
5605 .IX Item "Instance instance"
5606 If specified, \fIinstance\fR is used as the plugin instance. So, in the above
5607 example, the plugin name \f(CW\*(C`table\-slabinfo\*(C'\fR would be used. If omitted, the
5608 filename of the table is used instead, with all special characters replaced
5609 with an underscore (\f(CW\*(C`_\*(C'\fR).
5610 .IP "\fBSeparator\fR \fIstring\fR" 4
5611 .IX Item "Separator string"
5612 Any character of \fIstring\fR is interpreted as a delimiter between the different
5613 columns of the table. A sequence of two or more contiguous delimiters in the
5614 table is considered to be a single delimiter, i.\ e. there cannot be any
5615 empty columns. The plugin uses the \fIstrtok_r\fR\|(3) function to parse the lines
5616 of a table \- see its documentation for more details. This option is mandatory.
5617 .Sp
5618 A horizontal tab, newline and carriage return may be specified by \f(CW\*(C`\e\et\*(C'\fR,
5619 \&\f(CW\*(C`\e\en\*(C'\fR and \f(CW\*(C`\e\er\*(C'\fR respectively. Please note that the double backslashes are
5620 required because of collectd's config parsing.
5621 .PP
5622 The following options are available inside a \fBResult\fR block:
5623 .IP "\fBType\fR \fItype\fR" 4
5624 .IX Item "Type type"
5625 Sets the type used to dispatch the values to the daemon. Detailed information
5626 about types and their configuration can be found in \fItypes.db\fR\|(5). This
5627 option is mandatory.
5628 .IP "\fBInstancePrefix\fR \fIprefix\fR" 4
5629 .IX Item "InstancePrefix prefix"
5630 If specified, prepend \fIprefix\fR to the type instance. If omitted, only the
5631 \&\fBInstancesFrom\fR option is considered for the type instance.
5632 .IP "\fBInstancesFrom\fR \fIcolumn0\fR [\fIcolumn1\fR ...]" 4
5633 .IX Item "InstancesFrom column0 [column1 ...]"
5634 If specified, the content of the given columns (identified by the column
5635 number starting at zero) will be used to create the type instance for each
5636 row. Multiple values (and the instance prefix) will be joined together with
5637 dashes (\fI\-\fR) as separation character. If omitted, only the \fBInstancePrefix\fR
5638 option is considered for the type instance.
5639 .Sp
5640 The plugin itself does not check whether or not all built instances are
5641 different. ItXs your responsibility to assure that each is unique. This is
5642 especially true, if you do not specify \fBInstancesFrom\fR: \fBYou\fR have to make
5643 sure that the table only contains one row.
5644 .Sp
5645 If neither \fBInstancePrefix\fR nor \fBInstancesFrom\fR is given, the type instance
5646 will be empty.
5647 .IP "\fBValuesFrom\fR \fIcolumn0\fR [\fIcolumn1\fR ...]" 4
5648 .IX Item "ValuesFrom column0 [column1 ...]"
5649 Specifies the columns (identified by the column numbers starting at zero)
5650 whose content is used as the actual data for the data sets that are dispatched
5651 to the daemon. How many such columns you need is determined by the \fBType\fR
5652 setting above. If you specify too many or not enough columns, the plugin will
5653 complain about that and no data will be submitted to the daemon. The plugin
5654 uses \fIstrtoll\fR\|(3) and \fIstrtod\fR\|(3) to parse counter and gauge values
5655 respectively, so anything supported by those functions is supported by the
5656 plugin as well. This option is mandatory.
5657 .ie n .SS "Plugin ""tail"""
5658 .el .SS "Plugin \f(CWtail\fP"
5659 .IX Subsection "Plugin tail"
5660 The \f(CW\*(C`tail plugin\*(C'\fR follows logfiles, just like \fItail\fR\|(1) does, parses
5661 each line and dispatches found values. What is matched can be configured by the
5662 user using (extended) regular expressions, as described in \fIregex\fR\|(7).
5663 .PP
5664 .Vb 10
5665 \&  <Plugin "tail">
5666 \&    <File "/var/log/exim4/mainlog">
5667 \&      Instance "exim"
5668 \&      Interval 60
5669 \&      <Match>
5670 \&        Regex "S=([1\-9][0\-9]*)"
5671 \&        DSType "CounterAdd"
5672 \&        Type "ipt_bytes"
5673 \&        Instance "total"
5674 \&      </Match>
5675 \&      <Match>
5676 \&        Regex "\e\e<R=local_user\e\e>"
5677 \&        ExcludeRegex "\e\e<R=local_user\e\e>.*mail_spool defer"
5678 \&        DSType "CounterInc"
5679 \&        Type "counter"
5680 \&        Instance "local_user"
5681 \&      </Match>
5682 \&    </File>
5683 \&  </Plugin>
5684 .Ve
5685 .PP
5686 The config consists of one or more \fBFile\fR blocks, each of which configures one
5687 logfile to parse. Within each \fBFile\fR block, there are one or more \fBMatch\fR
5688 blocks, which configure a regular expression to search for.
5689 .PP
5690 The \fBInstance\fR option in the \fBFile\fR block may be used to set the plugin
5691 instance. So in the above example the plugin name \f(CW\*(C`tail\-foo\*(C'\fR would be used.
5692 This plugin instance is for all \fBMatch\fR blocks that \fBfollow\fR it, until the
5693 next \fBInstance\fR option. This way you can extract several plugin instances from
5694 one logfile, handy when parsing syslog and the like.
5695 .PP
5696 The \fBInterval\fR option allows you to define the length of time between reads. If
5697 this is not set, the default Interval will be used.
5698 .PP
5699 Each \fBMatch\fR block has the following options to describe how the match should
5700 be performed:
5701 .IP "\fBRegex\fR \fIregex\fR" 4
5702 .IX Item "Regex regex"
5703 Sets the regular expression to use for matching against a line. The first
5704 subexpression has to match something that can be turned into a number by
5705 \&\fIstrtoll\fR\|(3) or \fIstrtod\fR\|(3), depending on the value of \f(CW\*(C`CounterAdd\*(C'\fR, see
5706 below. Because \fBextended\fR regular expressions are used, you do not need to use
5707 backslashes for subexpressions! If in doubt, please consult \fIregex\fR\|(7). Due to
5708 collectd's config parsing you need to escape backslashes, though. So if you
5709 want to match literal parentheses you need to do the following:
5710 .Sp
5711 .Vb 1
5712 \&  Regex "SPAM \e\e(Score: (\-?[0\-9]+\e\e.[0\-9]+)\e\e)"
5713 .Ve
5714 .IP "\fBExcludeRegex\fR \fIregex\fR" 4
5715 .IX Item "ExcludeRegex regex"
5716 Sets an optional regular expression to use for excluding lines from the match.
5717 An example which excludes all connections from localhost from the match:
5718 .Sp
5719 .Vb 1
5720 \&  ExcludeRegex "127\e\e.0\e\e.0\e\e.1"
5721 .Ve
5722 .IP "\fBDSType\fR \fIType\fR" 4
5723 .IX Item "DSType Type"
5724 Sets how the values are cumulated. \fIType\fR is one of:
5725 .RS 4
5726 .IP "\fBGaugeAverage\fR" 4
5727 .IX Item "GaugeAverage"
5728 Calculate the average.
5729 .IP "\fBGaugeMin\fR" 4
5730 .IX Item "GaugeMin"
5731 Use the smallest number only.
5732 .IP "\fBGaugeMax\fR" 4
5733 .IX Item "GaugeMax"
5734 Use the greatest number only.
5735 .IP "\fBGaugeLast\fR" 4
5736 .IX Item "GaugeLast"
5737 Use the last number found.
5738 .IP "\fBCounterSet\fR" 4
5739 .IX Item "CounterSet"
5740 .PD 0
5741 .IP "\fBDeriveSet\fR" 4
5742 .IX Item "DeriveSet"
5743 .IP "\fBAbsoluteSet\fR" 4
5744 .IX Item "AbsoluteSet"
5745 .PD
5746 The matched number is a counter. Simply \fIsets\fR the internal counter to this
5747 value. Variants exist for \f(CW\*(C`COUNTER\*(C'\fR, \f(CW\*(C`DERIVE\*(C'\fR, and \f(CW\*(C`ABSOLUTE\*(C'\fR data sources.
5748 .IP "\fBGaugeAdd\fR" 4
5749 .IX Item "GaugeAdd"
5750 .PD 0
5751 .IP "\fBCounterAdd\fR" 4
5752 .IX Item "CounterAdd"
5753 .IP "\fBDeriveAdd\fR" 4
5754 .IX Item "DeriveAdd"
5755 .PD
5756 Add the matched value to the internal counter. In case of \fBDeriveAdd\fR, the
5757 matched number may be negative, which will effectively subtract from the
5758 internal counter.
5759 .IP "\fBGaugeInc\fR" 4
5760 .IX Item "GaugeInc"
5761 .PD 0
5762 .IP "\fBCounterInc\fR" 4
5763 .IX Item "CounterInc"
5764 .IP "\fBDeriveInc\fR" 4
5765 .IX Item "DeriveInc"
5766 .PD
5767 Increase the internal counter by one. These \fBDSType\fR are the only ones that do
5768 not use the matched subexpression, but simply count the number of matched
5769 lines. Thus, you may use a regular expression without submatch in this case.
5770 .RE
5771 .RS 4
5772 .Sp
5773 As you'd expect the \fBGauge*\fR types interpret the submatch as a floating point
5774 number, using \fIstrtod\fR\|(3). The \fBCounter*\fR and \fBAbsoluteSet\fR types interpret
5775 the submatch as an unsigned integer using \fIstrtoull\fR\|(3). The \fBDerive*\fR types
5776 interpret the submatch as a signed integer using \fIstrtoll\fR\|(3). \fBCounterInc\fR
5777 and \fBDeriveInc\fR do not use the submatch at all and it may be omitted in this
5778 case.
5779 .RE
5780 .IP "\fBType\fR \fIType\fR" 4
5781 .IX Item "Type Type"
5782 Sets the type used to dispatch this value. Detailed information about types and
5783 their configuration can be found in \fItypes.db\fR\|(5).
5784 .IP "\fBInstance\fR \fITypeInstance\fR" 4
5785 .IX Item "Instance TypeInstance"
5786 This optional setting sets the type instance to use.
5787 .ie n .SS "Plugin ""tail_csv"""
5788 .el .SS "Plugin \f(CWtail_csv\fP"
5789 .IX Subsection "Plugin tail_csv"
5790 The \fItail_csv plugin\fR reads files in the \s-1CSV\s0 format, e.g. the statistics file
5791 written by \fISnort\fR.
5792 .PP
5793 \&\fBSynopsis:\fR
5794 .PP
5795 .Vb 12
5796 \& <Plugin "tail_csv">
5797 \&   <Metric "snort\-dropped">
5798 \&       Type "percent"
5799 \&       Instance "dropped"
5800 \&       Index 1
5801 \&   </Metric>
5802 \&   <File "/var/log/snort/snort.stats">
5803 \&       Instance "snort\-eth0"
5804 \&       Interval 600
5805 \&       Collect "snort\-dropped"
5806 \&   </File>
5807 \& </Plugin>
5808 .Ve
5809 .PP
5810 The configuration consists of one or more \fBMetric\fR blocks that define an index
5811 into the line of the \s-1CSV\s0 file and how this value is mapped to \fIcollectd's\fR
5812 internal representation. These are followed by one or more \fBInstance\fR blocks
5813 which configure which file to read, in which interval and which metrics to
5814 extract.
5815 .IP "<\fBMetric\fR \fIName\fR>" 4
5816 .IX Item "<Metric Name>"
5817 The \fBMetric\fR block configures a new metric to be extracted from the statistics
5818 file and how it is mapped on \fIcollectd's\fR data model. The string \fIName\fR is
5819 only used inside the \fBInstance\fR blocks to refer to this block, so you can use
5820 one \fBMetric\fR block for multiple \s-1CSV\s0 files.
5821 .RS 4
5822 .IP "\fBType\fR \fIType\fR" 4
5823 .IX Item "Type Type"
5824 Configures which \fIType\fR to use when dispatching this metric. Types are defined
5825 in the \fItypes.db\fR\|(5) file, see the appropriate manual page for more
5826 information on specifying types. Only types with a single \fIdata source\fR are
5827 supported by the \fItail_csv plugin\fR. The information whether the value is an
5828 absolute value (i.e. a \f(CW\*(C`GAUGE\*(C'\fR) or a rate (i.e. a \f(CW\*(C`DERIVE\*(C'\fR) is taken from the
5829 \&\fIType's\fR definition.
5830 .IP "\fBInstance\fR \fITypeInstance\fR" 4
5831 .IX Item "Instance TypeInstance"
5832 If set, \fITypeInstance\fR is used to populate the type instance field of the
5833 created value lists. Otherwise, no type instance is used.
5834 .IP "\fBValueFrom\fR \fIIndex\fR" 4
5835 .IX Item "ValueFrom Index"
5836 Configure to read the value from the field with the zero-based index \fIIndex\fR.
5837 If the value is parsed as signed integer, unsigned integer or double depends on
5838 the \fBType\fR setting, see above.
5839 .RE
5840 .RS 4
5841 .RE
5842 .IP "<\fBFile\fR \fIPath\fR>" 4
5843 .IX Item "<File Path>"
5844 Each \fBFile\fR block represents one \s-1CSV\s0 file to read. There must be at least one
5845 \&\fIFile\fR block but there can be multiple if you have multiple \s-1CSV\s0 files.
5846 .RS 4
5847 .IP "\fBInstance\fR \fIPluginInstance\fR" 4
5848 .IX Item "Instance PluginInstance"
5849 Sets the \fIplugin instance\fR used when dispatching the values.
5850 .IP "\fBCollect\fR \fIMetric\fR" 4
5851 .IX Item "Collect Metric"
5852 Specifies which \fIMetric\fR to collect. This option must be specified at least
5853 once, and you can use this option multiple times to specify more than one
5854 metric to be extracted from this statistic file.
5855 .IP "\fBInterval\fR \fISeconds\fR" 4
5856 .IX Item "Interval Seconds"
5857 Configures the interval in which to read values from this instance / file.
5858 Defaults to the plugin's default interval.
5859 .IP "\fBTimeFrom\fR \fIIndex\fR" 4
5860 .IX Item "TimeFrom Index"
5861 Rather than using the local time when dispatching a value, read the timestamp
5862 from the field with the zero-based index \fIIndex\fR. The value is interpreted as
5863 seconds since epoch. The value is parsed as a double and may be factional.
5864 .RE
5865 .RS 4
5866 .RE
5867 .ie n .SS "Plugin ""teamspeak2"""
5868 .el .SS "Plugin \f(CWteamspeak2\fP"
5869 .IX Subsection "Plugin teamspeak2"
5870 The \f(CW\*(C`teamspeak2 plugin\*(C'\fR connects to the query port of a teamspeak2 server and
5871 polls interesting global and virtual server data. The plugin can query only one
5872 physical server but unlimited virtual servers. You can use the following
5873 options to configure it:
5874 .IP "\fBHost\fR \fIhostname/ip\fR" 4
5875 .IX Item "Host hostname/ip"
5876 The hostname or ip which identifies the physical server.
5877 Default: 127.0.0.1
5878 .IP "\fBPort\fR \fIport\fR" 4
5879 .IX Item "Port port"
5880 The query port of the physical server. This needs to be a string.
5881 Default: \*(L"51234\*(R"
5882 .IP "\fBServer\fR \fIport\fR" 4
5883 .IX Item "Server port"
5884 This option has to be added once for every virtual server the plugin should
5885 query. If you want to query the virtual server on port 8767 this is what the
5886 option would look like:
5887 .Sp
5888 .Vb 1
5889 \&  Server "8767"
5890 .Ve
5891 .Sp
5892 This option, although numeric, needs to be a string, i.\ e. you \fBmust\fR
5893 use quotes around it! If no such statement is given only global information
5894 will be collected.
5895 .ie n .SS "Plugin ""ted"""
5896 .el .SS "Plugin \f(CWted\fP"
5897 .IX Subsection "Plugin ted"
5898 The \fI\s-1TED\s0\fR plugin connects to a device of \*(L"The Energy Detective\*(R", a device to
5899 measure power consumption. These devices are usually connected to a serial
5900 (\s-1RS232\s0) or \s-1USB\s0 port. The plugin opens a configured device and tries to read the
5901 current energy readings. For more information on \s-1TED,\s0 visit
5902 <http://www.theenergydetective.com/>.
5903 .PP
5904 Available configuration options:
5905 .IP "\fBDevice\fR \fIPath\fR" 4
5906 .IX Item "Device Path"
5907 Path to the device on which \s-1TED\s0 is connected. collectd will need read and write
5908 permissions on that file.
5909 .Sp
5910 Default: \fB/dev/ttyUSB0\fR
5911 .IP "\fBRetries\fR \fINum\fR" 4
5912 .IX Item "Retries Num"
5913 Apparently reading from \s-1TED\s0 is not that reliable. You can therefore configure a
5914 number of retries here. You only configure the \fIretries\fR here, to if you
5915 specify zero, one reading will be performed (but no retries if that fails); if
5916 you specify three, a maximum of four readings are performed. Negative values
5917 are illegal.
5918 .Sp
5919 Default: \fB0\fR
5920 .ie n .SS "Plugin ""tcpconns"""
5921 .el .SS "Plugin \f(CWtcpconns\fP"
5922 .IX Subsection "Plugin tcpconns"
5923 The \f(CW\*(C`tcpconns plugin\*(C'\fR counts the number of currently established \s-1TCP\s0
5924 connections based on the local port and/or the remote port. Since there may be
5925 a lot of connections the default if to count all connections with a local port,
5926 for which a listening socket is opened. You can use the following options to
5927 fine-tune the ports you are interested in:
5928 .IP "\fBListeningPorts\fR \fItrue\fR|\fIfalse\fR" 4
5929 .IX Item "ListeningPorts true|false"
5930 If this option is set to \fItrue\fR, statistics for all local ports for which a
5931 listening socket exists are collected. The default depends on \fBLocalPort\fR and
5932 \&\fBRemotePort\fR (see below): If no port at all is specifically selected, the
5933 default is to collect listening ports. If specific ports (no matter if local or
5934 remote ports) are selected, this option defaults to \fIfalse\fR, i.\ e. only
5935 the selected ports will be collected unless this option is set to \fItrue\fR
5936 specifically.
5937 .IP "\fBLocalPort\fR \fIPort\fR" 4
5938 .IX Item "LocalPort Port"
5939 Count the connections to a specific local port. This can be used to see how
5940 many connections are handled by a specific daemon, e.\ g. the mailserver.
5941 You have to specify the port in numeric form, so for the mailserver example
5942 you'd need to set \fB25\fR.
5943 .IP "\fBRemotePort\fR \fIPort\fR" 4
5944 .IX Item "RemotePort Port"
5945 Count the connections to a specific remote port. This is useful to see how
5946 much a remote service is used. This is most useful if you want to know how many
5947 connections a local service has opened to remote services, e.\ g. how many
5948 connections a mail server or news server has to other mail or news servers, or
5949 how many connections a web proxy holds to web servers. You have to give the
5950 port in numeric form.
5951 .IP "\fBAllPortsSummary\fR \fItrue\fR|\fIfalse\fR" 4
5952 .IX Item "AllPortsSummary true|false"
5953 If this option is set to \fItrue\fR a summary of statistics from all connections
5954 are collectd. This option defaults to \fIfalse\fR.
5955 .ie n .SS "Plugin ""thermal"""
5956 .el .SS "Plugin \f(CWthermal\fP"
5957 .IX Subsection "Plugin thermal"
5958 .IP "\fBForceUseProcfs\fR \fItrue\fR|\fIfalse\fR" 4
5959 .IX Item "ForceUseProcfs true|false"
5960 By default, the \fIThermal plugin\fR tries to read the statistics from the Linux
5961 \&\f(CW\*(C`sysfs\*(C'\fR interface. If that is not available, the plugin falls back to the
5962 \&\f(CW\*(C`procfs\*(C'\fR interface. By setting this option to \fItrue\fR, you can force the
5963 plugin to use the latter. This option defaults to \fIfalse\fR.
5964 .IP "\fBDevice\fR \fIDevice\fR" 4
5965 .IX Item "Device Device"
5966 Selects the name of the thermal device that you want to collect or ignore,
5967 depending on the value of the \fBIgnoreSelected\fR option. This option may be
5968 used multiple times to specify a list of devices.
5969 .IP "\fBIgnoreSelected\fR \fItrue\fR|\fIfalse\fR" 4
5970 .IX Item "IgnoreSelected true|false"
5971 Invert the selection: If set to true, all devices \fBexcept\fR the ones that
5972 match the device names specified by the \fBDevice\fR option are collected. By
5973 default only selected devices are collected if a selection is made. If no
5974 selection is configured at all, \fBall\fR devices are selected.
5975 .ie n .SS "Plugin ""threshold"""
5976 .el .SS "Plugin \f(CWthreshold\fP"
5977 .IX Subsection "Plugin threshold"
5978 The \fIThreshold plugin\fR checks values collected or received by \fIcollectd\fR
5979 against a configurable \fIthreshold\fR and issues \fInotifications\fR if values are
5980 out of bounds.
5981 .PP
5982 Documentation for this plugin is available in the \fIcollectd\-threshold\fR\|(5)
5983 manual page.
5984 .ie n .SS "Plugin ""tokyotyrant"""
5985 .el .SS "Plugin \f(CWtokyotyrant\fP"
5986 .IX Subsection "Plugin tokyotyrant"
5987 The \fITokyoTyrant plugin\fR connects to a TokyoTyrant server and collects a
5988 couple metrics: number of records, and database size on disk.
5989 .IP "\fBHost\fR \fIHostname/IP\fR" 4
5990 .IX Item "Host Hostname/IP"
5991 The hostname or ip which identifies the server.
5992 Default: \fB127.0.0.1\fR
5993 .IP "\fBPort\fR \fIService/Port\fR" 4
5994 .IX Item "Port Service/Port"
5995 The query port of the server. This needs to be a string, even if the port is
5996 given in its numeric form.
5997 Default: \fB1978\fR
5998 .ie n .SS "Plugin ""turbostat"""
5999 .el .SS "Plugin \f(CWturbostat\fP"
6000 .IX Subsection "Plugin turbostat"
6001 The \fITurbostat plugin\fR reads \s-1CPU\s0 frequency and C\-state residency on modern
6002 Intel processors by using the new Model Specific Registers.
6003 .IP "\fBCoreCstates\fR \fIBitmask(Integer)\fR" 4
6004 .IX Item "CoreCstates Bitmask(Integer)"
6005 Bitmask of the list of core C states supported by the processor.
6006 This option should only be used if the automated detection fails.
6007 Default value extracted from the cpu model and family.
6008 .Sp
6009 Currently supported C\-states (by this plugin): 3, 6, 7
6010 .Sp
6011 Example: (1<<3)+(1<<6)+(1<<7) = 392 for all states
6012 .IP "\fBPackageCstates\fR \fIBitmask(Integer)\fR" 4
6013 .IX Item "PackageCstates Bitmask(Integer)"
6014 Bitmask of the list of pacages C states supported by the processor.
6015 This option should only be used if the automated detection fails.
6016 Default value extracted from the cpu model and family.
6017 .Sp
6018 Currently supported C\-states (by this plugin): 2, 3, 6, 7, 8, 9, 10
6019 .Sp
6020 Example: (1<<2)+(1<<3)+(1<<6)+(1<<7) = 396 for states 2, 3, 6 and 7
6021 .IP "\fBSystemManagementInterrupt\fR \fItrue\fR|\fIfalse\fR" 4
6022 .IX Item "SystemManagementInterrupt true|false"
6023 Boolean enabling the collection of the I/O System-Management Interrupt
6024 counter'. This option should only be used if the automated detection
6025 fails or if you want to disable this feature.
6026 .IP "\fBDigitalTemperatureSensor\fR \fItrue\fR|\fIfalse\fR" 4
6027 .IX Item "DigitalTemperatureSensor true|false"
6028 Boolean enabling the collection of the temperature of each core.
6029 This option should only be used if the automated detectionfails or 
6030 if you want to disable this feature.
6031 .IP "\fBDigitalTemperatureSensor\fR \fItrue\fR|\fIfalse\fR" 4
6032 .IX Item "DigitalTemperatureSensor true|false"
6033 Boolean enabling the collection of the temperature of each package.
6034 This option should only be used if the automated detectionfails or 
6035 if you want to disable this feature.
6036 .IP "\fBTCCActivationTemp\fR \fITemperature\fR" 4
6037 .IX Item "TCCActivationTemp Temperature"
6038 Thermal Control Circuit Activation Temperature of the installed
6039 \&\s-1CPU.\s0 This temperature is used when collecting the temperature of
6040 cores or packages. This option should only be used if the automated
6041 detection fails. Default value extracted from \fB\s-1MSR_IA32_TEMPERATURE_TARGET\s0\fR
6042 .IP "\fBRunningAveragePowerLimit\fR \fIBitmask(Integer)\fR" 4
6043 .IX Item "RunningAveragePowerLimit Bitmask(Integer)"
6044 Bitmask of the list of elements to be thermally monitored. This option
6045 should only be used if the automated detection fails or if you want to
6046 disable some collections. The different bits of this bitmask accepted
6047 by this plugin are:
6048 .RS 4
6049 .IP "0 ('1'): Package" 4
6050 .IX Item "0 ('1'): Package"
6051 .PD 0
6052 .IP "1 ('2'): \s-1DRAM\s0" 4
6053 .IX Item "1 ('2'): DRAM"
6054 .IP "2 ('4'): Cores" 4
6055 .IX Item "2 ('4'): Cores"
6056 .IP "3 ('8'): Embedded graphic device" 4
6057 .IX Item "3 ('8'): Embedded graphic device"
6058 .RE
6059 .RS 4
6060 .RE
6061 .PD
6062 .ie n .SS "Plugin ""unixsock"""
6063 .el .SS "Plugin \f(CWunixsock\fP"
6064 .IX Subsection "Plugin unixsock"
6065 .IP "\fBSocketFile\fR \fIPath\fR" 4
6066 .IX Item "SocketFile Path"
6067 Sets the socket-file which is to be created.
6068 .IP "\fBSocketGroup\fR \fIGroup\fR" 4
6069 .IX Item "SocketGroup Group"
6070 If running as root change the group of the UNIX-socket after it has been
6071 created. Defaults to \fBcollectd\fR.
6072 .IP "\fBSocketPerms\fR \fIPermissions\fR" 4
6073 .IX Item "SocketPerms Permissions"
6074 Change the file permissions of the UNIX-socket after it has been created. The
6075 permissions must be given as a numeric, octal value as you would pass to
6076 \&\fIchmod\fR\|(1). Defaults to \fB0770\fR.
6077 .IP "\fBDeleteSocket\fR \fBfalse\fR|\fBtrue\fR" 4
6078 .IX Item "DeleteSocket false|true"
6079 If set to \fBtrue\fR, delete the socket file before calling \fIbind\fR\|(2), if a file
6080 with the given name already exists. If \fIcollectd\fR crashes a socket file may be
6081 left over, preventing the daemon from opening a new socket when restarted.
6082 Since this is potentially dangerous, this defaults to \fBfalse\fR.
6083 .ie n .SS "Plugin ""uuid"""
6084 .el .SS "Plugin \f(CWuuid\fP"
6085 .IX Subsection "Plugin uuid"
6086 This plugin, if loaded, causes the Hostname to be taken from the machine's
6087 \&\s-1UUID.\s0 The \s-1UUID\s0 is a universally unique designation for the machine, usually
6088 taken from the machine's \s-1BIOS.\s0 This is most useful if the machine is running in
6089 a virtual environment such as Xen, in which case the \s-1UUID\s0 is preserved across
6090 shutdowns and migration.
6091 .PP
6092 The following methods are used to find the machine's \s-1UUID,\s0 in order:
6093 .IP "\(bu" 4
6094 Check \fI/etc/uuid\fR (or \fIUUIDFile\fR).
6095 .IP "\(bu" 4
6096 Check for \s-1UUID\s0 from \s-1HAL \s0(<http://www.freedesktop.org/wiki/Software/hal>) if
6097 present.
6098 .IP "\(bu" 4
6099 Check for \s-1UUID\s0 from \f(CW\*(C`dmidecode\*(C'\fR / \s-1SMBIOS.\s0
6100 .IP "\(bu" 4
6101 Check for \s-1UUID\s0 from Xen hypervisor.
6102 .PP
6103 If no \s-1UUID\s0 can be found then the hostname is not modified.
6104 .IP "\fBUUIDFile\fR \fIPath\fR" 4
6105 .IX Item "UUIDFile Path"
6106 Take the \s-1UUID\s0 from the given file (default \fI/etc/uuid\fR).
6107 .ie n .SS "Plugin ""varnish"""
6108 .el .SS "Plugin \f(CWvarnish\fP"
6109 .IX Subsection "Plugin varnish"
6110 The \fIvarnish plugin\fR collects information about Varnish, an \s-1HTTP\s0 accelerator.
6111 It collects a subset of the values displayed by \fIvarnishstat\fR\|(1), and
6112 organizes them in categories which can be enabled or disabled. Currently only
6113 metrics shown in \fIvarnishstat\fR\|(1)'s \fI\s-1MAIN\s0\fR section are collected. The exact
6114 meaning of each metric can be found in \fIvarnish\-counters\fR\|(7).
6115 .PP
6116 Synopsis:
6117 .PP
6118 .Vb 10
6119 \& <Plugin "varnish">
6120 \&   <Instance "example">
6121 \&     CollectBackend     true
6122 \&     CollectBan         false
6123 \&     CollectCache       true
6124 \&     CollectConnections true
6125 \&     CollectDirectorDNS false
6126 \&     CollectESI         false
6127 \&     CollectFetch       false
6128 \&     CollectHCB         false
6129 \&     CollectObjects     false
6130 \&     CollectPurge       false
6131 \&     CollectSession     false
6132 \&     CollectSHM         true
6133 \&     CollectSMA         false
6134 \&     CollectSMS         false
6135 \&     CollectSM          false
6136 \&     CollectStruct      false
6137 \&     CollectTotals      false
6138 \&     CollectUptime      false
6139 \&     CollectVCL         false
6140 \&     CollectVSM         false
6141 \&     CollectWorkers     false
6142 \&   </Instance>
6143 \& </Plugin>
6144 .Ve
6145 .PP
6146 The configuration consists of one or more <\fBInstance\fR\ \fIName\fR>
6147 blocks. \fIName\fR is the parameter passed to \*(L"varnishd \-n\*(R". If left empty, it
6148 will collectd statistics from the default \*(L"varnishd\*(R" instance (this should work
6149 fine in most cases).
6150 .PP
6151 Inside each <\fBInstance\fR> blocks, the following options are recognized:
6152 .IP "\fBCollectBackend\fR \fBtrue\fR|\fBfalse\fR" 4
6153 .IX Item "CollectBackend true|false"
6154 Back-end connection statistics, such as successful, reused,
6155 and closed connections. True by default.
6156 .IP "\fBCollectBan\fR \fBtrue\fR|\fBfalse\fR" 4
6157 .IX Item "CollectBan true|false"
6158 Statistics about ban operations, such as number of bans added, retired, and
6159 number of objects tested against ban operations. Only available with Varnish
6160 3.x and above. False by default.
6161 .IP "\fBCollectCache\fR \fBtrue\fR|\fBfalse\fR" 4
6162 .IX Item "CollectCache true|false"
6163 Cache hits and misses. True by default.
6164 .IP "\fBCollectConnections\fR \fBtrue\fR|\fBfalse\fR" 4
6165 .IX Item "CollectConnections true|false"
6166 Number of client connections received, accepted and dropped. True by default.
6167 .IP "\fBCollectDirectorDNS\fR \fBtrue\fR|\fBfalse\fR" 4
6168 .IX Item "CollectDirectorDNS true|false"
6169 \&\s-1DNS\s0 director lookup cache statistics. Only available with Varnish 3.x. False by
6170 default.
6171 .IP "\fBCollectESI\fR \fBtrue\fR|\fBfalse\fR" 4
6172 .IX Item "CollectESI true|false"
6173 Edge Side Includes (\s-1ESI\s0) parse statistics. False by default.
6174 .IP "\fBCollectFetch\fR \fBtrue\fR|\fBfalse\fR" 4
6175 .IX Item "CollectFetch true|false"
6176 Statistics about fetches (\s-1HTTP\s0 requests sent to the backend). False by default.
6177 .IP "\fBCollectHCB\fR \fBtrue\fR|\fBfalse\fR" 4
6178 .IX Item "CollectHCB true|false"
6179 Inserts and look-ups in the crit bit tree based hash. Look-ups are
6180 divided into locked and unlocked look-ups. False by default.
6181 .IP "\fBCollectObjects\fR \fBtrue\fR|\fBfalse\fR" 4
6182 .IX Item "CollectObjects true|false"
6183 Statistics on cached objects: number of objects expired, nuked (prematurely
6184 expired), saved, moved, etc. False by default.
6185 .IP "\fBCollectPurge\fR \fBtrue\fR|\fBfalse\fR" 4
6186 .IX Item "CollectPurge true|false"
6187 Statistics about purge operations, such as number of purges added, retired, and
6188 number of objects tested against purge operations. Only available with Varnish
6189 2.x. False by default.
6190 .IP "\fBCollectSession\fR \fBtrue\fR|\fBfalse\fR" 4
6191 .IX Item "CollectSession true|false"
6192 Client session statistics. Number of past and current sessions, session herd and
6193 linger counters, etc. False by default. Note that if using Varnish 4.x, some
6194 metrics found in the Connections and Threads sections with previous versions of
6195 Varnish have been moved here.
6196 .IP "\fBCollectSHM\fR \fBtrue\fR|\fBfalse\fR" 4
6197 .IX Item "CollectSHM true|false"
6198 Statistics about the shared memory log, a memory region to store
6199 log messages which is flushed to disk when full. True by default.
6200 .IP "\fBCollectSMA\fR \fBtrue\fR|\fBfalse\fR" 4
6201 .IX Item "CollectSMA true|false"
6202 malloc or umem (umem_alloc(3MALLOC) based) storage statistics. The umem storage
6203 component is Solaris specific. Only available with Varnish 2.x. False by
6204 default.
6205 .IP "\fBCollectSMS\fR \fBtrue\fR|\fBfalse\fR" 4
6206 .IX Item "CollectSMS true|false"
6207 synth (synthetic content) storage statistics. This storage
6208 component is used internally only. False by default.
6209 .IP "\fBCollectSM\fR \fBtrue\fR|\fBfalse\fR" 4
6210 .IX Item "CollectSM true|false"
6211 file (memory mapped file) storage statistics. Only available with Varnish 2.x.
6212 False by default.
6213 .IP "\fBCollectStruct\fR \fBtrue\fR|\fBfalse\fR" 4
6214 .IX Item "CollectStruct true|false"
6215 Current varnish internal state statistics. Number of current sessions, objects
6216 in cache store, open connections to backends (with Varnish 2.x), etc. False by
6217 default.
6218 .IP "\fBCollectTotals\fR \fBtrue\fR|\fBfalse\fR" 4
6219 .IX Item "CollectTotals true|false"
6220 Collects overview counters, such as the number of sessions created,
6221 the number of requests and bytes transferred. False by default.
6222 .IP "\fBCollectUptime\fR \fBtrue\fR|\fBfalse\fR" 4
6223 .IX Item "CollectUptime true|false"
6224 Varnish uptime. Only available with Varnish 3.x and above. False by default.
6225 .IP "\fBCollectVCL\fR \fBtrue\fR|\fBfalse\fR" 4
6226 .IX Item "CollectVCL true|false"
6227 Number of total (available + discarded) \s-1VCL \s0(config files). False by default.
6228 .IP "\fBCollectVSM\fR \fBtrue\fR|\fBfalse\fR" 4
6229 .IX Item "CollectVSM true|false"
6230 Collect statistics about Varnish's shared memory usage (used by the logging and
6231 statistics subsystems). Only available with Varnish 4.x. False by default.
6232 .IP "\fBCollectWorkers\fR \fBtrue\fR|\fBfalse\fR" 4
6233 .IX Item "CollectWorkers true|false"
6234 Collect statistics about worker threads. False by default.
6235 .ie n .SS "Plugin ""virt"""
6236 .el .SS "Plugin \f(CWvirt\fP"
6237 .IX Subsection "Plugin virt"
6238 This plugin allows \s-1CPU,\s0 disk and network load to be collected for virtualized
6239 guests on the machine. This means that these metrics can be collected for guest
6240 systems without installing any software on them \- \fIcollectd\fR only runs on the
6241 host system. The statistics are collected through libvirt
6242 (<http://libvirt.org/>).
6243 .PP
6244 Only \fIConnection\fR is required.
6245 .IP "\fBConnection\fR \fIuri\fR" 4
6246 .IX Item "Connection uri"
6247 Connect to the hypervisor given by \fIuri\fR. For example if using Xen use:
6248 .Sp
6249 .Vb 1
6250 \& Connection "xen:///"
6251 .Ve
6252 .Sp
6253 Details which URIs allowed are given at <http://libvirt.org/uri.html>.
6254 .IP "\fBRefreshInterval\fR \fIseconds\fR" 4
6255 .IX Item "RefreshInterval seconds"
6256 Refresh the list of domains and devices every \fIseconds\fR. The default is 60
6257 seconds. Setting this to be the same or smaller than the \fIInterval\fR will cause
6258 the list of domains and devices to be refreshed on every iteration.
6259 .Sp
6260 Refreshing the devices in particular is quite a costly operation, so if your
6261 virtualization setup is static you might consider increasing this. If this
6262 option is set to 0, refreshing is disabled completely.
6263 .IP "\fBDomain\fR \fIname\fR" 4
6264 .IX Item "Domain name"
6265 .PD 0
6266 .IP "\fBBlockDevice\fR \fIname:dev\fR" 4
6267 .IX Item "BlockDevice name:dev"
6268 .IP "\fBInterfaceDevice\fR \fIname:dev\fR" 4
6269 .IX Item "InterfaceDevice name:dev"
6270 .IP "\fBIgnoreSelected\fR \fBtrue\fR|\fBfalse\fR" 4
6271 .IX Item "IgnoreSelected true|false"
6272 .PD
6273 Select which domains and devices are collected.
6274 .Sp
6275 If \fIIgnoreSelected\fR is not given or \fBfalse\fR then only the listed domains and
6276 disk/network devices are collected.
6277 .Sp
6278 If \fIIgnoreSelected\fR is \fBtrue\fR then the test is reversed and the listed
6279 domains and disk/network devices are ignored, while the rest are collected.
6280 .Sp
6281 The domain name and device names may use a regular expression, if the name is
6282 surrounded by \fI/.../\fR and collectd was compiled with support for regexps.
6283 .Sp
6284 The default is to collect statistics for all domains and all their devices.
6285 .Sp
6286 Example:
6287 .Sp
6288 .Vb 2
6289 \& BlockDevice "/:hdb/"
6290 \& IgnoreSelected "true"
6291 .Ve
6292 .Sp
6293 Ignore all \fIhdb\fR devices on any domain, but other block devices (eg. \fIhda\fR)
6294 will be collected.
6295 .IP "\fBHostnameFormat\fR \fBname|uuid|hostname|...\fR" 4
6296 .IX Item "HostnameFormat name|uuid|hostname|..."
6297 When the virt plugin logs data, it sets the hostname of the collected data
6298 according to this setting. The default is to use the guest name as provided by
6299 the hypervisor, which is equal to setting \fBname\fR.
6300 .Sp
6301 \&\fBuuid\fR means use the guest's \s-1UUID.\s0 This is useful if you want to track the
6302 same guest across migrations.
6303 .Sp
6304 \&\fBhostname\fR means to use the global \fBHostname\fR setting, which is probably not
6305 useful on its own because all guests will appear to have the same name.
6306 .Sp
6307 You can also specify combinations of these fields. For example \fBname uuid\fR
6308 means to concatenate the guest name and \s-1UUID \s0(with a literal colon character
6309 between, thus \fI\*(L"foo:1234\-1234\-1234\-1234\*(R"\fR).
6310 .IP "\fBInterfaceFormat\fR \fBname\fR|\fBaddress\fR" 4
6311 .IX Item "InterfaceFormat name|address"
6312 When the virt plugin logs interface data, it sets the name of the collected
6313 data according to this setting. The default is to use the path as provided by
6314 the hypervisor (the \*(L"dev\*(R" property of the target node), which is equal to
6315 setting \fBname\fR.
6316 .Sp
6317 \&\fBaddress\fR means use the interface's mac address. This is useful since the
6318 interface path might change between reboots of a guest or across migrations.
6319 .IP "\fBPluginInstanceFormat\fR \fBname|uuid\fR" 4
6320 .IX Item "PluginInstanceFormat name|uuid"
6321 When the virt plugin logs data, it sets the plugin_instance of the collected
6322 data according to this setting. The default is to use the guest name as provided
6323 by the hypervisor, which is equal to setting \fBname\fR.
6324 .Sp
6325 \&\fBuuid\fR means use the guest's \s-1UUID.\s0
6326 .ie n .SS "Plugin ""vmem"""
6327 .el .SS "Plugin \f(CWvmem\fP"
6328 .IX Subsection "Plugin vmem"
6329 The \f(CW\*(C`vmem\*(C'\fR plugin collects information about the usage of virtual memory.
6330 Since the statistics provided by the Linux kernel are very detailed, they are
6331 collected very detailed. However, to get all the details, you have to switch
6332 them on manually. Most people just want an overview over, such as the number of
6333 pages read from swap space.
6334 .IP "\fBVerbose\fR \fBtrue\fR|\fBfalse\fR" 4
6335 .IX Item "Verbose true|false"
6336 Enables verbose collection of information. This will start collecting page
6337 \&\*(L"actions\*(R", e.\ g. page allocations, (de)activations, steals and so on.
6338 Part of these statistics are collected on a \*(L"per zone\*(R" basis.
6339 .ie n .SS "Plugin ""vserver"""
6340 .el .SS "Plugin \f(CWvserver\fP"
6341 .IX Subsection "Plugin vserver"
6342 This plugin doesn't have any options. \fBVServer\fR support is only available for
6343 Linux. It cannot yet be found in a vanilla kernel, though. To make use of this
6344 plugin you need a kernel that has \fBVServer\fR support built in, i.\ e. you
6345 need to apply the patches and compile your own kernel, which will then provide
6346 the \fI/proc/virtual\fR filesystem that is required by this plugin.
6347 .PP
6348 The \fBVServer\fR homepage can be found at <http://linux\-vserver.org/>.
6349 .PP
6350 \&\fBNote\fR: The traffic collected by this plugin accounts for the amount of
6351 traffic passing a socket which might be a lot less than the actual on-wire
6352 traffic (e.\ g. due to headers and retransmission). If you want to
6353 collect on-wire traffic you could, for example, use the logging facilities of
6354 iptables to feed data for the guest IPs into the iptables plugin.
6355 .ie n .SS "Plugin ""write_graphite"""
6356 .el .SS "Plugin \f(CWwrite_graphite\fP"
6357 .IX Subsection "Plugin write_graphite"
6358 The \f(CW\*(C`write_graphite\*(C'\fR plugin writes data to \fIGraphite\fR, an open-source metrics
6359 storage and graphing project. The plugin connects to \fICarbon\fR, the data layer
6360 of \fIGraphite\fR, via \fI\s-1TCP\s0\fR or \fI\s-1UDP\s0\fR and sends data via the \*(L"line based\*(R"
6361 protocol (per default using port\ 2003). The data will be sent in blocks
6362 of at most 1428 bytes to minimize the number of network packets.
6363 .PP
6364 Synopsis:
6365 .PP
6366 .Vb 9
6367 \& <Plugin write_graphite>
6368 \&   <Node "example">
6369 \&     Host "localhost"
6370 \&     Port "2003"
6371 \&     Protocol "tcp"
6372 \&     LogSendErrors true
6373 \&     Prefix "collectd"
6374 \&   </Node>
6375 \& </Plugin>
6376 .Ve
6377 .PP
6378 The configuration consists of one or more <\fBNode\fR\ \fIName\fR>
6379 blocks. Inside the \fBNode\fR blocks, the following options are recognized:
6380 .IP "\fBHost\fR \fIAddress\fR" 4
6381 .IX Item "Host Address"
6382 Hostname or address to connect to. Defaults to \f(CW\*(C`localhost\*(C'\fR.
6383 .IP "\fBPort\fR \fIService\fR" 4
6384 .IX Item "Port Service"
6385 Service name or port number to connect to. Defaults to \f(CW2003\fR.
6386 .IP "\fBProtocol\fR \fIString\fR" 4
6387 .IX Item "Protocol String"
6388 Protocol to use when connecting to \fIGraphite\fR. Defaults to \f(CW\*(C`tcp\*(C'\fR.
6389 .IP "\fBLogSendErrors\fR \fBfalse\fR|\fBtrue\fR" 4
6390 .IX Item "LogSendErrors false|true"
6391 If set to \fBtrue\fR (the default), logs errors when sending data to \fIGraphite\fR.
6392 If set to \fBfalse\fR, it will not log the errors. This is especially useful when
6393 using Protocol \s-1UDP\s0 since many times we want to use the \*(L"fire-and-forget\*(R"
6394 approach and logging errors fills syslog with unneeded messages.
6395 .IP "\fBPrefix\fR \fIString\fR" 4
6396 .IX Item "Prefix String"
6397 When set, \fIString\fR is added in front of the host name. Dots and whitespace are
6398 \&\fInot\fR escaped in this string (see \fBEscapeCharacter\fR below).
6399 .IP "\fBPostfix\fR \fIString\fR" 4
6400 .IX Item "Postfix String"
6401 When set, \fIString\fR is appended to the host name. Dots and whitespace are
6402 \&\fInot\fR escaped in this string (see \fBEscapeCharacter\fR below).
6403 .IP "\fBEscapeCharacter\fR \fIChar\fR" 4
6404 .IX Item "EscapeCharacter Char"
6405 \&\fICarbon\fR uses the dot (\f(CW\*(C`.\*(C'\fR) as escape character and doesn't allow whitespace
6406 in the identifier. The \fBEscapeCharacter\fR option determines which character
6407 dots, whitespace and control characters are replaced with. Defaults to
6408 underscore (\f(CW\*(C`_\*(C'\fR).
6409 .IP "\fBStoreRates\fR \fBfalse\fR|\fBtrue\fR" 4
6410 .IX Item "StoreRates false|true"
6411 If set to \fBtrue\fR (the default), convert counter values to rates. If set to
6412 \&\fBfalse\fR counter values are stored as is, i.\ e. as an increasing integer
6413 number.
6414 .IP "\fBSeparateInstances\fR \fBfalse\fR|\fBtrue\fR" 4
6415 .IX Item "SeparateInstances false|true"
6416 If set to \fBtrue\fR, the plugin instance and type instance will be in their own
6417 path component, for example \f(CW\*(C`host.cpu.0.cpu.idle\*(C'\fR. If set to \fBfalse\fR (the
6418 default), the plugin and plugin instance (and likewise the type and type
6419 instance) are put into one component, for example \f(CW\*(C`host.cpu\-0.cpu\-idle\*(C'\fR.
6420 .IP "\fBAlwaysAppendDS\fR \fBfalse\fR|\fBtrue\fR" 4
6421 .IX Item "AlwaysAppendDS false|true"
6422 If set to \fBtrue\fR, append the name of the \fIData Source\fR (\s-1DS\s0) to the \*(L"metric\*(R"
6423 identifier. If set to \fBfalse\fR (the default), this is only done when there is
6424 more than one \s-1DS.\s0
6425 .ie n .SS "Plugin ""write_tsdb"""
6426 .el .SS "Plugin \f(CWwrite_tsdb\fP"
6427 .IX Subsection "Plugin write_tsdb"
6428 The \f(CW\*(C`write_tsdb\*(C'\fR plugin writes data to \fIOpenTSDB\fR, a scalable open-source
6429 time series database. The plugin connects to a \fI\s-1TSD\s0\fR, a masterless, no shared
6430 state daemon that ingests metrics and stores them in HBase. The plugin uses
6431 \&\fI\s-1TCP\s0\fR over the \*(L"line based\*(R" protocol with a default port 4242. The data will
6432 be sent in blocks of at most 1428 bytes to minimize the number of network
6433 packets.
6434 .PP
6435 Synopsis:
6436 .PP
6437 .Vb 7
6438 \& <Plugin write_tsdb>
6439 \&   <Node "example">
6440 \&     Host "tsd\-1.my.domain"
6441 \&     Port "4242"
6442 \&     HostTags "status=production"
6443 \&   </Node>
6444 \& </Plugin>
6445 .Ve
6446 .PP
6447 The configuration consists of one or more <\fBNode\fR\ \fIName\fR>
6448 blocks. Inside the \fBNode\fR blocks, the following options are recognized:
6449 .IP "\fBHost\fR \fIAddress\fR" 4
6450 .IX Item "Host Address"
6451 Hostname or address to connect to. Defaults to \f(CW\*(C`localhost\*(C'\fR.
6452 .IP "\fBPort\fR \fIService\fR" 4
6453 .IX Item "Port Service"
6454 Service name or port number to connect to. Defaults to \f(CW4242\fR.
6455 .IP "\fBHostTags\fR \fIString\fR" 4
6456 .IX Item "HostTags String"
6457 When set, \fIHostTags\fR is added to the end of the metric. It is intended to be
6458 used for name=value pairs that the \s-1TSD\s0 will tag the metric with. Dots and
6459 whitespace are \fInot\fR escaped in this string.
6460 .IP "\fBStoreRates\fR \fBfalse\fR|\fBtrue\fR" 4
6461 .IX Item "StoreRates false|true"
6462 If set to \fBtrue\fR, convert counter values to rates. If set to \fBfalse\fR
6463 (the default) counter values are stored as is, as an increasing
6464 integer number.
6465 .IP "\fBAlwaysAppendDS\fR \fBfalse\fR|\fBtrue\fR" 4
6466 .IX Item "AlwaysAppendDS false|true"
6467 If set the \fBtrue\fR, append the name of the \fIData Source\fR (\s-1DS\s0) to the \*(L"metric\*(R"
6468 identifier. If set to \fBfalse\fR (the default), this is only done when there is
6469 more than one \s-1DS.\s0
6470 .ie n .SS "Plugin ""write_mongodb"""
6471 .el .SS "Plugin \f(CWwrite_mongodb\fP"
6472 .IX Subsection "Plugin write_mongodb"
6473 The \fIwrite_mongodb plugin\fR will send values to \fIMongoDB\fR, a schema-less
6474 NoSQL database.
6475 .PP
6476 \&\fBSynopsis:\fR
6477 .PP
6478 .Vb 8
6479 \& <Plugin "write_mongodb">
6480 \&   <Node "default">
6481 \&     Host "localhost"
6482 \&     Port "27017"
6483 \&     Timeout 1000
6484 \&     StoreRates true
6485 \&   </Node>
6486 \& </Plugin>
6487 .Ve
6488 .PP
6489 The plugin can send values to multiple instances of \fIMongoDB\fR by specifying
6490 one \fBNode\fR block for each instance. Within the \fBNode\fR blocks, the following
6491 options are available:
6492 .IP "\fBHost\fR \fIAddress\fR" 4
6493 .IX Item "Host Address"
6494 Hostname or address to connect to. Defaults to \f(CW\*(C`localhost\*(C'\fR.
6495 .IP "\fBPort\fR \fIService\fR" 4
6496 .IX Item "Port Service"
6497 Service name or port number to connect to. Defaults to \f(CW27017\fR.
6498 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
6499 .IX Item "Timeout Milliseconds"
6500 Set the timeout for each operation on \fIMongoDB\fR to \fITimeout\fR milliseconds.
6501 Setting this option to zero means no timeout, which is the default.
6502 .IP "\fBStoreRates\fR \fBfalse\fR|\fBtrue\fR" 4
6503 .IX Item "StoreRates false|true"
6504 If set to \fBtrue\fR (the default), convert counter values to rates. If set to
6505 \&\fBfalse\fR counter values are stored as is, i.e. as an increasing integer
6506 number.
6507 .IP "\fBDatabase\fR \fIDatabase\fR" 4
6508 .IX Item "Database Database"
6509 .PD 0
6510 .IP "\fBUser\fR \fIUser\fR" 4
6511 .IX Item "User User"
6512 .IP "\fBPassword\fR \fIPassword\fR" 4
6513 .IX Item "Password Password"
6514 .PD
6515 Sets the information used when authenticating to a \fIMongoDB\fR database. The
6516 fields are optional (in which case no authentication is attempted), but if you
6517 want to use authentication all three fields must be set.
6518 .ie n .SS "Plugin ""write_http"""
6519 .el .SS "Plugin \f(CWwrite_http\fP"
6520 .IX Subsection "Plugin write_http"
6521 This output plugin submits values to an \s-1HTTP\s0 server using \s-1POST\s0 requests and
6522 encoding metrics with \s-1JSON\s0 or using the \f(CW\*(C`PUTVAL\*(C'\fR command described in
6523 \&\fIcollectd\-unixsock\fR\|(5).
6524 .PP
6525 Synopsis:
6526 .PP
6527 .Vb 8
6528 \& <Plugin "write_http">
6529 \&   <Node "example">
6530 \&     URL "http://example.com/post\-collectd"
6531 \&     User "collectd"
6532 \&     Password "weCh3ik0"
6533 \&     Format JSON
6534 \&   </Node>
6535 \& </Plugin>
6536 .Ve
6537 .PP
6538 The plugin can send values to multiple \s-1HTTP\s0 servers by specifying one
6539 <\fBNode\fR\ \fIName\fR> block for each server. Within each \fBNode\fR
6540 block, the following options are available:
6541 .IP "\fB\s-1URL\s0\fR \fI\s-1URL\s0\fR" 4
6542 .IX Item "URL URL"
6543 \&\s-1URL\s0 to which the values are submitted to. Mandatory.
6544 .IP "\fBUser\fR \fIUsername\fR" 4
6545 .IX Item "User Username"
6546 Optional user name needed for authentication.
6547 .IP "\fBPassword\fR \fIPassword\fR" 4
6548 .IX Item "Password Password"
6549 Optional password needed for authentication.
6550 .IP "\fBVerifyPeer\fR \fBtrue\fR|\fBfalse\fR" 4
6551 .IX Item "VerifyPeer true|false"
6552 Enable or disable peer \s-1SSL\s0 certificate verification. See
6553 <http://curl.haxx.se/docs/sslcerts.html> for details. Enabled by default.
6554 .IP "\fBVerifyHost\fR \fBtrue|false\fR" 4
6555 .IX Item "VerifyHost true|false"
6556 Enable or disable peer host name verification. If enabled, the plugin checks if
6557 the \f(CW\*(C`Common Name\*(C'\fR or a \f(CW\*(C`Subject Alternate Name\*(C'\fR field of the \s-1SSL\s0 certificate
6558 matches the host name provided by the \fB\s-1URL\s0\fR option. If this identity check
6559 fails, the connection is aborted. Obviously, only works when connecting to a
6560 \&\s-1SSL\s0 enabled server. Enabled by default.
6561 .IP "\fBCACert\fR \fIFile\fR" 4
6562 .IX Item "CACert File"
6563 File that holds one or more \s-1SSL\s0 certificates. If you want to use \s-1HTTPS\s0 you will
6564 possibly need this option. What \s-1CA\s0 certificates come bundled with \f(CW\*(C`libcurl\*(C'\fR
6565 and are checked by default depends on the distribution you use.
6566 .IP "\fBCAPath\fR \fIDirectory\fR" 4
6567 .IX Item "CAPath Directory"
6568 Directory holding one or more \s-1CA\s0 certificate files. You can use this if for
6569 some reason all the needed \s-1CA\s0 certificates aren't in the same file and can't be
6570 pointed to using the \fBCACert\fR option. Requires \f(CW\*(C`libcurl\*(C'\fR to be built against
6571 OpenSSL.
6572 .IP "\fBClientKey\fR \fIFile\fR" 4
6573 .IX Item "ClientKey File"
6574 File that holds the private key in \s-1PEM\s0 format to be used for certificate-based
6575 authentication.
6576 .IP "\fBClientCert\fR \fIFile\fR" 4
6577 .IX Item "ClientCert File"
6578 File that holds the \s-1SSL\s0 certificate to be used for certificate-based
6579 authentication.
6580 .IP "\fBClientKeyPass\fR \fIPassword\fR" 4
6581 .IX Item "ClientKeyPass Password"
6582 Password required to load the private key in \fBClientKey\fR.
6583 .IP "\fBSSLVersion\fR \fBSSLv2\fR|\fBSSLv3\fR|\fBTLSv1\fR|\fBTLSv1_0\fR|\fBTLSv1_1\fR|\fBTLSv1_2\fR" 4
6584 .IX Item "SSLVersion SSLv2|SSLv3|TLSv1|TLSv1_0|TLSv1_1|TLSv1_2"
6585 Define which \s-1SSL\s0 protocol version must be used. By default \f(CW\*(C`libcurl\*(C'\fR will
6586 attempt to figure out the remote \s-1SSL\s0 protocol version. See
6587 \&\fIcurl_easy_setopt\fR\|(3) for more details.
6588 .IP "\fBFormat\fR \fBCommand\fR|\fB\s-1JSON\s0\fR" 4
6589 .IX Item "Format Command|JSON"
6590 Format of the output to generate. If set to \fBCommand\fR, will create output that
6591 is understood by the \fIExec\fR and \fIUnixSock\fR plugins. When set to \fB\s-1JSON\s0\fR, will
6592 create output in the \fIJavaScript Object Notation\fR (\s-1JSON\s0).
6593 .Sp
6594 Defaults to \fBCommand\fR.
6595 .IP "\fBStoreRates\fR \fBtrue|false\fR" 4
6596 .IX Item "StoreRates true|false"
6597 If set to \fBtrue\fR, convert counter values to rates. If set to \fBfalse\fR (the
6598 default) counter values are stored as is, i.e. as an increasing integer number.
6599 .IP "\fBBufferSize\fR \fIBytes\fR" 4
6600 .IX Item "BufferSize Bytes"
6601 Sets the send buffer size to \fIBytes\fR. By increasing this buffer, less \s-1HTTP\s0
6602 requests will be generated, but more metrics will be batched / metrics are
6603 cached for longer before being sent, introducing additional delay until they
6604 are available on the server side. \fIBytes\fR must be at least 1024 and cannot
6605 exceed the size of an \f(CW\*(C`int\*(C'\fR, i.e. 2\ GByte.
6606 Defaults to \f(CW4096\fR.
6607 .IP "\fBLowSpeedLimit\fR \fIBytes per Second\fR" 4
6608 .IX Item "LowSpeedLimit Bytes per Second"
6609 Sets the minimal transfer rate in \fIBytes per Second\fR below which the
6610 connection with the \s-1HTTP\s0 server will be considered too slow and aborted. All
6611 the data submitted over this connection will probably be lost. Defaults to 0,
6612 which means no minimum transfer rate is enforced.
6613 .IP "\fBTimeout\fR \fITimeout\fR" 4
6614 .IX Item "Timeout Timeout"
6615 Sets the maximum time in milliseconds given for \s-1HTTP POST\s0 operations to
6616 complete. When this limit is reached, the \s-1POST\s0 operation will be aborted, and
6617 all the data in the current send buffer will probably be lost. Defaults to 0,
6618 which means the connection never times out.
6619 .Sp
6620 The \f(CW\*(C`write_http\*(C'\fR plugin regularly submits the collected values to the \s-1HTTP\s0
6621 server. How frequently this happens depends on how much data you are collecting
6622 and the size of \fBBufferSize\fR. The optimal value to set \fBTimeout\fR to is
6623 slightly below this interval, which you can estimate by monitoring the network
6624 traffic between collectd and the \s-1HTTP\s0 server.
6625 .ie n .SS "Plugin ""write_kafka"""
6626 .el .SS "Plugin \f(CWwrite_kafka\fP"
6627 .IX Subsection "Plugin write_kafka"
6628 The \fIwrite_kafka plugin\fR will send values to a \fIKafka\fR topic, a distributed
6629 queue.
6630 Synopsis:
6631 .PP
6632 .Vb 6
6633 \& <Plugin "write_kafka">
6634 \&   Property "metadata.broker.list" "broker1:9092,broker2:9092"
6635 \&   <Topic "collectd">
6636 \&     Format JSON
6637 \&   </Topic>
6638 \& </Plugin>
6639 .Ve
6640 .PP
6641 The following options are understood by the \fIwrite_kafka plugin\fR:
6642 .IP "<\fBTopic\fR \fIName\fR>" 4
6643 .IX Item "<Topic Name>"
6644 The plugin's configuration consists of one or more \fBTopic\fR blocks. Each block
6645 is given a unique \fIName\fR and specifies one kafka producer.
6646 Inside the \fBTopic\fR block, the following per-topic options are
6647 understood:
6648 .RS 4
6649 .IP "\fBProperty\fR \fIString\fR \fIString\fR" 4
6650 .IX Item "Property String String"
6651 Configure the named property for the current topic. Properties are
6652 forwarded to the kafka producer library \fBlibrdkafka\fR.
6653 .IP "\fBKey\fR \fIString\fR" 4
6654 .IX Item "Key String"
6655 Use the specified string as a partioning key for the topic. Kafka breaks
6656 topic into partitions and guarantees that for a given topology, the same
6657 consumer will be used for a specific key. The special (case insensitive)
6658 string \fBRandom\fR can be used to specify that an arbitrary partition should
6659 be used.
6660 .IP "\fBFormat\fR \fBCommand\fR|\fB\s-1JSON\s0\fR|\fBGraphite\fR" 4
6661 .IX Item "Format Command|JSON|Graphite"
6662 Selects the format in which messages are sent to the broker. If set to
6663 \&\fBCommand\fR (the default), values are sent as \f(CW\*(C`PUTVAL\*(C'\fR commands which are
6664 identical to the syntax used by the \fIExec\fR and \fIUnixSock plugins\fR.
6665 .Sp
6666 If set to \fB\s-1JSON\s0\fR, the values are encoded in the \fIJavaScript Object Notation\fR,
6667 an easy and straight forward exchange format.
6668 .Sp
6669 If set to \fBGraphite\fR, values are encoded in the \fIGraphite\fR format, which is
6670 \&\f(CW\*(C`<metric> <value> <timestamp>\en\*(C'\fR.
6671 .IP "\fBStoreRates\fR \fBtrue\fR|\fBfalse\fR" 4
6672 .IX Item "StoreRates true|false"
6673 Determines whether or not \f(CW\*(C`COUNTER\*(C'\fR, \f(CW\*(C`DERIVE\*(C'\fR and \f(CW\*(C`ABSOLUTE\*(C'\fR data sources
6674 are converted to a \fIrate\fR (i.e. a \f(CW\*(C`GAUGE\*(C'\fR value). If set to \fBfalse\fR (the
6675 default), no conversion is performed. Otherwise the conversion is performed
6676 using the internal value cache.
6677 .Sp
6678 Please note that currently this option is only used if the \fBFormat\fR option has
6679 been set to \fB\s-1JSON\s0\fR.
6680 .IP "\fBGraphitePrefix\fR (\fBFormat\fR=\fIGraphite\fR only)" 4
6681 .IX Item "GraphitePrefix (Format=Graphite only)"
6682 A prefix can be added in the metric name when outputting in the \fIGraphite\fR
6683 format. It's added before the \fIHost\fR name.
6684 Metric name will be
6685 \&\f(CW\*(C`<prefix><host><postfix><plugin><type><name>\*(C'\fR
6686 .IP "\fBGraphitePostfix\fR (\fBFormat\fR=\fIGraphite\fR only)" 4
6687 .IX Item "GraphitePostfix (Format=Graphite only)"
6688 A postfix can be added in the metric name when outputting in the \fIGraphite\fR
6689 format. It's added after the \fIHost\fR name.
6690 Metric name will be
6691 \&\f(CW\*(C`<prefix><host><postfix><plugin><type><name>\*(C'\fR
6692 .IP "\fBGraphiteEscapeChar\fR (\fBFormat\fR=\fIGraphite\fR only)" 4
6693 .IX Item "GraphiteEscapeChar (Format=Graphite only)"
6694 Specify a character to replace dots (.) in the host part of the metric name.
6695 In \fIGraphite\fR metric name, dots are used as separators between different
6696 metric parts (host, plugin, type).
6697 Default is \f(CW\*(C`_\*(C'\fR (\fIUnderscore\fR).
6698 .IP "\fBGraphiteSeparateInstances\fR \fBfalse\fR|\fBtrue\fR" 4
6699 .IX Item "GraphiteSeparateInstances false|true"
6700 If set to \fBtrue\fR, the plugin instance and type instance will be in their own
6701 path component, for example \f(CW\*(C`host.cpu.0.cpu.idle\*(C'\fR. If set to \fBfalse\fR (the
6702 default), the plugin and plugin instance (and likewise the type and type
6703 instance) are put into one component, for example \f(CW\*(C`host.cpu\-0.cpu\-idle\*(C'\fR.
6704 .IP "\fBStoreRates\fR \fBtrue\fR|\fBfalse\fR" 4
6705 .IX Item "StoreRates true|false"
6706 If set to \fBtrue\fR (the default), convert counter values to rates. If set to
6707 \&\fBfalse\fR counter values are stored as is, i.e. as an increasing integer number.
6708 .Sp
6709 This will be reflected in the \f(CW\*(C`ds_type\*(C'\fR tag: If \fBStoreRates\fR is enabled,
6710 converted values will have \*(L"rate\*(R" appended to the data source type, e.g.
6711 \&\f(CW\*(C`ds_type:derive:rate\*(C'\fR.
6712 .RE
6713 .RS 4
6714 .RE
6715 .IP "\fBProperty\fR \fIString\fR \fIString\fR" 4
6716 .IX Item "Property String String"
6717 Configure the kafka producer through properties, you almost always will
6718 want to set \fBmetadata.broker.list\fR to your Kafka broker list.
6719 .ie n .SS "Plugin ""write_redis"""
6720 .el .SS "Plugin \f(CWwrite_redis\fP"
6721 .IX Subsection "Plugin write_redis"
6722 The \fIwrite_redis plugin\fR submits values to \fIRedis\fR, a data structure server.
6723 .PP
6724 Synopsis:
6725 .PP
6726 .Vb 7
6727 \&  <Plugin "write_redis">
6728 \&    <Node "example">
6729 \&        Host "localhost"
6730 \&        Port "6379"
6731 \&        Timeout 1000
6732 \&    </Node>
6733 \&  </Plugin>
6734 .Ve
6735 .PP
6736 Values are submitted to \fISorted Sets\fR, using the metric name as the key, and
6737 the timestamp as the score. Retrieving a date range can then be done using the
6738 \&\f(CW\*(C`ZRANGEBYSCORE\*(C'\fR \fIRedis\fR command. Additionnally, all the identifiers of these
6739 \&\fISorted Sets\fR are kept in a \fISet\fR called \f(CW\*(C`collectd/values\*(C'\fR and can be
6740 retrieved using the \f(CW\*(C`SMEMBERS\*(C'\fR \fIRedis\fR command. See
6741 <http://redis.io/commands#sorted_set> and <http://redis.io/commands#set> for
6742 details.
6743 .PP
6744 The information shown in the synopsis above is the \fIdefault configuration\fR
6745 which is used by the plugin if no configuration is present.
6746 .PP
6747 The plugin can send values to multiple instances of \fIRedis\fR by specifying
6748 one \fBNode\fR block for each instance. Within the \fBNode\fR blocks, the following
6749 options are available:
6750 .IP "\fBNode\fR \fINodename\fR" 4
6751 .IX Item "Node Nodename"
6752 The \fBNode\fR block identifies a new \fIRedis\fR node, that is a new \fIRedis\fR
6753 instance running in an specified host and port. The name for node is a
6754 canonical identifier which is used as \fIplugin instance\fR. It is limited to
6755 64\ characters in length.
6756 .IP "\fBHost\fR \fIHostname\fR" 4
6757 .IX Item "Host Hostname"
6758 The \fBHost\fR option is the hostname or IP-address where the \fIRedis\fR instance is
6759 running on.
6760 .IP "\fBPort\fR \fIPort\fR" 4
6761 .IX Item "Port Port"
6762 The \fBPort\fR option is the \s-1TCP\s0 port on which the Redis instance accepts
6763 connections. Either a service name of a port number may be given. Please note
6764 that numerical port numbers must be given as a string, too.
6765 .IP "\fBTimeout\fR \fIMilliseconds\fR" 4
6766 .IX Item "Timeout Milliseconds"
6767 The \fBTimeout\fR option sets the socket connection timeout, in milliseconds.
6768 .ie n .SS "Plugin ""write_riemann"""
6769 .el .SS "Plugin \f(CWwrite_riemann\fP"
6770 .IX Subsection "Plugin write_riemann"
6771 The \fIwrite_riemann plugin\fR will send values to \fIRiemann\fR, a powerful stream
6772 aggregation and monitoring system. The plugin sends \fIProtobuf\fR encoded data to
6773 \&\fIRiemann\fR using \s-1UDP\s0 packets.
6774 .PP
6775 Synopsis:
6776 .PP
6777 .Vb 12
6778 \& <Plugin "write_riemann">
6779 \&   <Node "example">
6780 \&     Host "localhost"
6781 \&     Port "5555"
6782 \&     Protocol UDP
6783 \&     StoreRates true
6784 \&     AlwaysAppendDS false
6785 \&     TTLFactor 2.0
6786 \&   </Node>
6787 \&   Tag "foobar"
6788 \&   Attribute "foo" "bar"
6789 \& </Plugin>
6790 .Ve
6791 .PP
6792 The following options are understood by the \fIwrite_riemann plugin\fR:
6793 .IP "<\fBNode\fR \fIName\fR>" 4
6794 .IX Item "<Node Name>"
6795 The plugin's configuration consists of one or more \fBNode\fR blocks. Each block
6796 is given a unique \fIName\fR and specifies one connection to an instance of
6797 \&\fIRiemann\fR. Indise the \fBNode\fR block, the following per-connection options are
6798 understood:
6799 .RS 4
6800 .IP "\fBHost\fR \fIAddress\fR" 4
6801 .IX Item "Host Address"
6802 Hostname or address to connect to. Defaults to \f(CW\*(C`localhost\*(C'\fR.
6803 .IP "\fBPort\fR \fIService\fR" 4
6804 .IX Item "Port Service"
6805 Service name or port number to connect to. Defaults to \f(CW5555\fR.
6806 .IP "\fBProtocol\fR \fB\s-1UDP\s0\fR|\fB\s-1TCP\s0\fR" 4
6807 .IX Item "Protocol UDP|TCP"
6808 Specify the protocol to use when communicating with \fIRiemann\fR. Defaults to
6809 \&\fB\s-1TCP\s0\fR.
6810 .IP "\fBBatch\fR \fBtrue\fR|\fBfalse\fR" 4
6811 .IX Item "Batch true|false"
6812 If set to \fBtrue\fR and \fBProtocol\fR is set to \fB\s-1TCP\s0\fR,
6813 events will be batched in memory and flushed at
6814 regular intervals or when \fBBatchMaxSize\fR is exceeded.
6815 .Sp
6816 Notifications are not batched and sent as soon as possible.
6817 .Sp
6818 When enabled, it can occur that events get processed by the Riemann server
6819 close to or after their expiration time. Tune the \fBTTLFactor\fR and
6820 \&\fBBatchMaxSize\fR settings according to the amount of values collected, if this
6821 is an issue.
6822 .Sp
6823 Defaults to true
6824 .IP "\fBBatchMaxSize\fR \fIsize\fR" 4
6825 .IX Item "BatchMaxSize size"
6826 Maximum payload size for a riemann packet. Defaults to 8192
6827 .IP "\fBStoreRates\fR \fBtrue\fR|\fBfalse\fR" 4
6828 .IX Item "StoreRates true|false"
6829 If set to \fBtrue\fR (the default), convert counter values to rates. If set to
6830 \&\fBfalse\fR counter values are stored as is, i.e. as an increasing integer number.
6831 .Sp
6832 This will be reflected in the \f(CW\*(C`ds_type\*(C'\fR tag: If \fBStoreRates\fR is enabled,
6833 converted values will have \*(L"rate\*(R" appended to the data source type, e.g.
6834 \&\f(CW\*(C`ds_type:derive:rate\*(C'\fR.
6835 .IP "\fBAlwaysAppendDS\fR \fBfalse\fR|\fBtrue\fR" 4
6836 .IX Item "AlwaysAppendDS false|true"
6837 If set the \fBtrue\fR, append the name of the \fIData Source\fR (\s-1DS\s0) to the
6838 \&\*(L"service\*(R", i.e. the field that, together with the \*(L"host\*(R" field, uniquely
6839 identifies a metric in \fIRiemann\fR. If set to \fBfalse\fR (the default), this is
6840 only done when there is more than one \s-1DS.\s0
6841 .IP "\fBTTLFactor\fR \fIFactor\fR" 4
6842 .IX Item "TTLFactor Factor"
6843 \&\fIRiemann\fR events have a \fITime to Live\fR (\s-1TTL\s0) which specifies how long each
6844 event is considered active. \fIcollectd\fR populates this field based on the
6845 metrics interval setting. This setting controls the factor with which the
6846 interval is multiplied to set the \s-1TTL.\s0 The default value is \fB2.0\fR. Unless you
6847 know exactly what you're doing, you should only increase this setting from its
6848 default value.
6849 .IP "\fBNotifications\fR \fBfalse\fR|\fBtrue\fR" 4
6850 .IX Item "Notifications false|true"
6851 If set to \fBtrue\fR, create riemann events for notifications. This is \fBtrue\fR
6852 by default. When processing thresholds from write_riemann, it might prove
6853 useful to avoid getting notification events.
6854 .IP "\fBCheckThresholds\fR \fBfalse\fR|\fBtrue\fR" 4
6855 .IX Item "CheckThresholds false|true"
6856 If set to \fBtrue\fR, attach state to events based on thresholds defined
6857 in the \fBThreshold\fR plugin. Defaults to \fBfalse\fR.
6858 .IP "\fBEventServicePrefix\fR \fIString\fR" 4
6859 .IX Item "EventServicePrefix String"
6860 Add the given string as a prefix to the event service name.
6861 If \fBEventServicePrefix\fR not set or set to an empty string (""),
6862 no prefix will be used.
6863 .RE
6864 .RS 4
6865 .RE
6866 .IP "\fBTag\fR \fIString\fR" 4
6867 .IX Item "Tag String"
6868 Add the given string as an additional tag to the metric being sent to
6869 \&\fIRiemann\fR.
6870 .IP "\fBAttribute\fR \fIString\fR \fIString\fR" 4
6871 .IX Item "Attribute String String"
6872 Consider the two given strings to be the key and value of an additional
6873 attribute for each metric being sent out to \fIRiemann\fR.
6874 .ie n .SS "Plugin ""write_sensu"""
6875 .el .SS "Plugin \f(CWwrite_sensu\fP"
6876 .IX Subsection "Plugin write_sensu"
6877 The \fIwrite_sensu plugin\fR will send values to \fISensu\fR, a powerful stream
6878 aggregation and monitoring system. The plugin sends \fI\s-1JSON\s0\fR encoded data to
6879 a local \fISensu\fR client using a \s-1TCP\s0 socket.
6880 .PP
6881 At the moment, the \fIwrite_sensu plugin\fR does not send over a collectd_host
6882 parameter so it is not possible to use one collectd instance as a gateway for
6883 others. Each collectd host must pair with one \fISensu\fR client.
6884 .PP
6885 Synopsis:
6886 .PP
6887 .Vb 10
6888 \& <Plugin "write_sensu">
6889 \&   <Node "example">
6890 \&     Host "localhost"
6891 \&     Port "3030"
6892 \&     StoreRates true
6893 \&     AlwaysAppendDS false
6894 \&     MetricHandler "influx"
6895 \&     MetricHandler "default"
6896 \&     NotificationHandler "flapjack"
6897 \&     NotificationHandler "howling_monkey"
6898 \&     Notifications true
6899 \&   </Node>
6900 \&   Tag "foobar"
6901 \&   Attribute "foo" "bar"
6902 \& </Plugin>
6903 .Ve
6904 .PP
6905 The following options are understood by the \fIwrite_sensu plugin\fR:
6906 .IP "<\fBNode\fR \fIName\fR>" 4
6907 .IX Item "<Node Name>"
6908 The plugin's configuration consists of one or more \fBNode\fR blocks. Each block
6909 is given a unique \fIName\fR and specifies one connection to an instance of
6910 \&\fISensu\fR. Inside the \fBNode\fR block, the following per-connection options are
6911 understood:
6912 .RS 4
6913 .IP "\fBHost\fR \fIAddress\fR" 4
6914 .IX Item "Host Address"
6915 Hostname or address to connect to. Defaults to \f(CW\*(C`localhost\*(C'\fR.
6916 .IP "\fBPort\fR \fIService\fR" 4
6917 .IX Item "Port Service"
6918 Service name or port number to connect to. Defaults to \f(CW3030\fR.
6919 .IP "\fBStoreRates\fR \fBtrue\fR|\fBfalse\fR" 4
6920 .IX Item "StoreRates true|false"
6921 If set to \fBtrue\fR (the default), convert counter values to rates. If set to
6922 \&\fBfalse\fR counter values are stored as is, i.e. as an increasing integer number.
6923 .Sp
6924 This will be reflected in the \f(CW\*(C`collectd_data_source_type\*(C'\fR tag: If
6925 \&\fBStoreRates\fR is enabled, converted values will have \*(L"rate\*(R" appended to the
6926 data source type, e.g.  \f(CW\*(C`collectd_data_source_type:derive:rate\*(C'\fR.
6927 .IP "\fBAlwaysAppendDS\fR \fBfalse\fR|\fBtrue\fR" 4
6928 .IX Item "AlwaysAppendDS false|true"
6929 If set the \fBtrue\fR, append the name of the \fIData Source\fR (\s-1DS\s0) to the
6930 \&\*(L"service\*(R", i.e. the field that, together with the \*(L"host\*(R" field, uniquely
6931 identifies a metric in \fISensu\fR. If set to \fBfalse\fR (the default), this is
6932 only done when there is more than one \s-1DS.\s0
6933 .IP "\fBNotifications\fR \fBfalse\fR|\fBtrue\fR" 4
6934 .IX Item "Notifications false|true"
6935 If set to \fBtrue\fR, create \fISensu\fR events for notifications. This is \fBfalse\fR
6936 by default. At least one of \fBNotifications\fR or \fBMetrics\fR should be enabled.
6937 .IP "\fBMetrics\fR \fBfalse\fR|\fBtrue\fR" 4
6938 .IX Item "Metrics false|true"
6939 If set to \fBtrue\fR, create \fISensu\fR events for metrics. This is \fBfalse\fR
6940 by default. At least one of \fBNotifications\fR or \fBMetrics\fR should be enabled.
6941 .IP "\fBSeparator\fR \fIString\fR" 4
6942 .IX Item "Separator String"
6943 Sets the separator for \fISensu\fR metrics name or checks. Defaults to \*(L"/\*(R".
6944 .IP "\fBMetricHandler\fR \fIString\fR" 4
6945 .IX Item "MetricHandler String"
6946 Add a handler that will be set when metrics are sent to \fISensu\fR. You can add
6947 several of them, one per line. Defaults to no handler.
6948 .IP "\fBNotificationHandler\fR \fIString\fR" 4
6949 .IX Item "NotificationHandler String"
6950 Add a handler that will be set when notifications are sent to \fISensu\fR. You can
6951 add several of them, one per line. Defaults to no handler.
6952 .IP "\fBEventServicePrefix\fR \fIString\fR" 4
6953 .IX Item "EventServicePrefix String"
6954 Add the given string as a prefix to the event service name.
6955 If \fBEventServicePrefix\fR not set or set to an empty string (""),
6956 no prefix will be used.
6957 .RE
6958 .RS 4
6959 .RE
6960 .IP "\fBTag\fR \fIString\fR" 4
6961 .IX Item "Tag String"
6962 Add the given string as an additional tag to the metric being sent to
6963 \&\fISensu\fR.
6964 .IP "\fBAttribute\fR \fIString\fR \fIString\fR" 4
6965 .IX Item "Attribute String String"
6966 Consider the two given strings to be the key and value of an additional
6967 attribute for each metric being sent out to \fISensu\fR.
6968 .ie n .SS "Plugin ""zookeeper"""
6969 .el .SS "Plugin \f(CWzookeeper\fP"
6970 .IX Subsection "Plugin zookeeper"
6971 The \fIzookeeper plugin\fR will collect statistics from a \fIZookeeper\fR server
6972 using the mntr command.  It requires Zookeeper 3.4.0+ and access to the
6973 client port.
6974 .PP
6975 \&\fBSynopsis:\fR
6976 .PP
6977 .Vb 4
6978 \& <Plugin "zookeeper">
6979 \&   Host "127.0.0.1"
6980 \&   Port "2181"
6981 \& </Plugin>
6982 .Ve
6983 .IP "\fBHost\fR \fIAddress\fR" 4
6984 .IX Item "Host Address"
6985 Hostname or address to connect to. Defaults to \f(CW\*(C`localhost\*(C'\fR.
6986 .IP "\fBPort\fR \fIService\fR" 4
6987 .IX Item "Port Service"
6988 Service name or port number to connect to. Defaults to \f(CW2181\fR.
6989 .SH "THRESHOLD CONFIGURATION"
6990 .IX Header "THRESHOLD CONFIGURATION"
6991 Starting with version \f(CW4.3.0\fR collectd has support for \fBmonitoring\fR. By that
6992 we mean that the values are not only stored or sent somewhere, but that they
6993 are judged and, if a problem is recognized, acted upon. The only action
6994 collectd takes itself is to generate and dispatch a \*(L"notification\*(R". Plugins can
6995 register to receive notifications and perform appropriate further actions.
6996 .PP
6997 Since systems and what you expect them to do differ a lot, you can configure
6998 \&\fBthresholds\fR for your values freely. This gives you a lot of flexibility but
6999 also a lot of responsibility.
7000 .PP
7001 Every time a value is out of range a notification is dispatched. This means
7002 that the idle percentage of your \s-1CPU\s0 needs to be less then the configured
7003 threshold only once for a notification to be generated. There's no such thing
7004 as a moving average or similar \- at least not now.
7005 .PP
7006 Also, all values that match a threshold are considered to be relevant or
7007 \&\*(L"interesting\*(R". As a consequence collectd will issue a notification if they are
7008 not received for \fBTimeout\fR iterations. The \fBTimeout\fR configuration option is
7009 explained in section \*(L"\s-1GLOBAL OPTIONS\*(R"\s0. If, for example, \fBTimeout\fR is set to
7010 \&\*(L"2\*(R" (the default) and some hosts sends it's \s-1CPU\s0 statistics to the server every
7011 60 seconds, a notification will be dispatched after about 120 seconds. It may
7012 take a little longer because the timeout is checked only once each \fBInterval\fR
7013 on the server.
7014 .PP
7015 When a value comes within range again or is received after it was missing, an
7016 \&\*(L"OKAY-notification\*(R" is dispatched.
7017 .PP
7018 Here is a configuration example to get you started. Read below for more
7019 information.
7020 .PP
7021 .Vb 9
7022 \& <Plugin threshold>
7023 \&   <Type "foo">
7024 \&     WarningMin    0.00
7025 \&     WarningMax 1000.00
7026 \&     FailureMin    0.00
7027 \&     FailureMax 1200.00
7028 \&     Invert false
7029 \&     Instance "bar"
7030 \&   </Type>
7031 \&
7032 \&   <Plugin "interface">
7033 \&     Instance "eth0"
7034 \&     <Type "if_octets">
7035 \&       FailureMax 10000000
7036 \&       DataSource "rx"
7037 \&     </Type>
7038 \&   </Plugin>
7039 \&
7040 \&   <Host "hostname">
7041 \&     <Type "cpu">
7042 \&       Instance "idle"
7043 \&       FailureMin 10
7044 \&     </Type>
7045 \&
7046 \&     <Plugin "memory">
7047 \&       <Type "memory">
7048 \&         Instance "cached"
7049 \&         WarningMin 100000000
7050 \&       </Type>
7051 \&     </Plugin>
7052 \&   </Host>
7053 \& </Plugin>
7054 .Ve
7055 .PP
7056 There are basically two types of configuration statements: The \f(CW\*(C`Host\*(C'\fR,
7057 \&\f(CW\*(C`Plugin\*(C'\fR, and \f(CW\*(C`Type\*(C'\fR blocks select the value for which a threshold should be
7058 configured. The \f(CW\*(C`Plugin\*(C'\fR and \f(CW\*(C`Type\*(C'\fR blocks may be specified further using the
7059 \&\f(CW\*(C`Instance\*(C'\fR option. You can combine the block by nesting the blocks, though
7060 they must be nested in the above order, i.\ e. \f(CW\*(C`Host\*(C'\fR may contain either
7061 \&\f(CW\*(C`Plugin\*(C'\fR and \f(CW\*(C`Type\*(C'\fR blocks, \f(CW\*(C`Plugin\*(C'\fR may only contain \f(CW\*(C`Type\*(C'\fR blocks and
7062 \&\f(CW\*(C`Type\*(C'\fR may not contain other blocks. If multiple blocks apply to the same
7063 value the most specific block is used.
7064 .PP
7065 The other statements specify the threshold to configure. They \fBmust\fR be
7066 included in a \f(CW\*(C`Type\*(C'\fR block. Currently the following statements are recognized:
7067 .IP "\fBFailureMax\fR \fIValue\fR" 4
7068 .IX Item "FailureMax Value"
7069 .PD 0
7070 .IP "\fBWarningMax\fR \fIValue\fR" 4
7071 .IX Item "WarningMax Value"
7072 .PD
7073 Sets the upper bound of acceptable values. If unset defaults to positive
7074 infinity. If a value is greater than \fBFailureMax\fR a \fB\s-1FAILURE\s0\fR notification
7075 will be created. If the value is greater than \fBWarningMax\fR but less than (or
7076 equal to) \fBFailureMax\fR a \fB\s-1WARNING\s0\fR notification will be created.
7077 .IP "\fBFailureMin\fR \fIValue\fR" 4
7078 .IX Item "FailureMin Value"
7079 .PD 0
7080 .IP "\fBWarningMin\fR \fIValue\fR" 4
7081 .IX Item "WarningMin Value"
7082 .PD
7083 Sets the lower bound of acceptable values. If unset defaults to negative
7084 infinity. If a value is less than \fBFailureMin\fR a \fB\s-1FAILURE\s0\fR notification will
7085 be created. If the value is less than \fBWarningMin\fR but greater than (or equal
7086 to) \fBFailureMin\fR a \fB\s-1WARNING\s0\fR notification will be created.
7087 .IP "\fBDataSource\fR \fIDSName\fR" 4
7088 .IX Item "DataSource DSName"
7089 Some data sets have more than one \*(L"data source\*(R". Interesting examples are the
7090 \&\f(CW\*(C`if_octets\*(C'\fR data set, which has received (\f(CW\*(C`rx\*(C'\fR) and sent (\f(CW\*(C`tx\*(C'\fR) bytes and
7091 the \f(CW\*(C`disk_ops\*(C'\fR data set, which holds \f(CW\*(C`read\*(C'\fR and \f(CW\*(C`write\*(C'\fR operations. The
7092 system load data set, \f(CW\*(C`load\*(C'\fR, even has three data sources: \f(CW\*(C`shortterm\*(C'\fR,
7093 \&\f(CW\*(C`midterm\*(C'\fR, and \f(CW\*(C`longterm\*(C'\fR.
7094 .Sp
7095 Normally, all data sources are checked against a configured threshold. If this
7096 is undesirable, or if you want to specify different limits for each data
7097 source, you can use the \fBDataSource\fR option to have a threshold apply only to
7098 one data source.
7099 .IP "\fBInvert\fR \fBtrue\fR|\fBfalse\fR" 4
7100 .IX Item "Invert true|false"
7101 If set to \fBtrue\fR the range of acceptable values is inverted, i.\ e.
7102 values between \fBFailureMin\fR and \fBFailureMax\fR (\fBWarningMin\fR and
7103 \&\fBWarningMax\fR) are not okay. Defaults to \fBfalse\fR.
7104 .IP "\fBPersist\fR \fBtrue\fR|\fBfalse\fR" 4
7105 .IX Item "Persist true|false"
7106 Sets how often notifications are generated. If set to \fBtrue\fR one notification
7107 will be generated for each value that is out of the acceptable range. If set to
7108 \&\fBfalse\fR (the default) then a notification is only generated if a value is out
7109 of range but the previous value was okay.
7110 .Sp
7111 This applies to missing values, too: If set to \fBtrue\fR a notification about a
7112 missing value is generated once every \fBInterval\fR seconds. If set to \fBfalse\fR
7113 only one such notification is generated until the value appears again.
7114 .IP "\fBPercentage\fR \fBtrue\fR|\fBfalse\fR" 4
7115 .IX Item "Percentage true|false"
7116 If set to \fBtrue\fR, the minimum and maximum values given are interpreted as
7117 percentage value, relative to the other data sources. This is helpful for
7118 example for the \*(L"df\*(R" type, where you may want to issue a warning when less than
7119 5\ % of the total space is available. Defaults to \fBfalse\fR.
7120 .IP "\fBHits\fR \fINumber\fR" 4
7121 .IX Item "Hits Number"
7122 Delay creating the notification until the threshold has been passed \fINumber\fR
7123 times. When a notification has been generated, or when a subsequent value is
7124 inside the threshold, the counter is reset. If, for example, a value is
7125 collected once every 10\ seconds and \fBHits\fR is set to 3, a notification
7126 will be dispatched at most once every 30\ seconds.
7127 .Sp
7128 This is useful when short bursts are not a problem. If, for example, 100% \s-1CPU\s0
7129 usage for up to a minute is normal (and data is collected every
7130 10\ seconds), you could set \fBHits\fR to \fB6\fR to account for this.
7131 .IP "\fBHysteresis\fR \fINumber\fR" 4
7132 .IX Item "Hysteresis Number"
7133 When set to non-zero, a hysteresis value is applied when checking minimum and
7134 maximum bounds. This is useful for values that increase slowly and fluctuate a
7135 bit while doing so. When these values come close to the threshold, they may
7136 \&\*(L"flap\*(R", i.e. switch between failure / warning case and okay case repeatedly.
7137 .Sp
7138 If, for example, the threshold is configures as
7139 .Sp
7140 .Vb 2
7141 \&  WarningMax 100.0
7142 \&  Hysteresis 1.0
7143 .Ve
7144 .Sp
7145 then a \fIWarning\fR notification is created when the value exceeds \fI101\fR and the
7146 corresponding \fIOkay\fR notification is only created once the value falls below
7147 \&\fI99\fR, thus avoiding the \*(L"flapping\*(R".
7148 .SH "FILTER CONFIGURATION"
7149 .IX Header "FILTER CONFIGURATION"
7150 Starting with collectd 4.6 there is a powerful filtering infrastructure
7151 implemented in the daemon. The concept has mostly been copied from
7152 \&\fIip_tables\fR, the packet filter infrastructure for Linux. We'll use a similar
7153 terminology, so that users that are familiar with iptables feel right at home.
7154 .SS "Terminology"
7155 .IX Subsection "Terminology"
7156 The following are the terms used in the remainder of the filter configuration
7157 documentation. For an ASCII-art schema of the mechanism, see
7158 \&\*(L"General structure\*(R" below.
7159 .IP "\fBMatch\fR" 4
7160 .IX Item "Match"
7161 A \fImatch\fR is a criteria to select specific values. Examples are, of course, the
7162 name of the value or it's current value.
7163 .Sp
7164 Matches are implemented in plugins which you have to load prior to using the
7165 match. The name of such plugins starts with the \*(L"match_\*(R" prefix.
7166 .IP "\fBTarget\fR" 4
7167 .IX Item "Target"
7168 A \fItarget\fR is some action that is to be performed with data. Such actions
7169 could, for example, be to change part of the value's identifier or to ignore
7170 the value completely.
7171 .Sp
7172 Some of these targets are built into the daemon, see \*(L"Built-in targets\*(R"
7173 below. Other targets are implemented in plugins which you have to load prior to
7174 using the target. The name of such plugins starts with the \*(L"target_\*(R" prefix.
7175 .IP "\fBRule\fR" 4
7176 .IX Item "Rule"
7177 The combination of any number of matches and at least one target is called a
7178 \&\fIrule\fR. The target actions will be performed for all values for which \fBall\fR
7179 matches apply. If the rule does not have any matches associated with it, the
7180 target action will be performed for all values.
7181 .IP "\fBChain\fR" 4
7182 .IX Item "Chain"
7183 A \fIchain\fR is a list of rules and possibly default targets. The rules are tried
7184 in order and if one matches, the associated target will be called. If a value
7185 is handled by a rule, it depends on the target whether or not any subsequent
7186 rules are considered or if traversal of the chain is aborted, see
7187 \&\*(L"Flow control\*(R" below. After all rules have been checked, the default targets
7188 will be executed.
7189 .SS "General structure"
7190 .IX Subsection "General structure"
7191 The following shows the resulting structure:
7192 .PP
7193 .Vb 10
7194 \& +\-\-\-\-\-\-\-\-\-+
7195 \& ! Chain   !
7196 \& +\-\-\-\-\-\-\-\-\-+
7197 \&      !
7198 \&      V
7199 \& +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+
7200 \& ! Rule    !\->! Match   !\->! Match   !\->! Target  !
7201 \& +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+
7202 \&      !
7203 \&      V
7204 \& +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+
7205 \& ! Rule    !\->! Target  !\->! Target  !
7206 \& +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+
7207 \&      !
7208 \&      V
7209 \&      :
7210 \&      :
7211 \&      !
7212 \&      V
7213 \& +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+
7214 \& ! Rule    !\->! Match   !\->! Target  !
7215 \& +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+  +\-\-\-\-\-\-\-\-\-+
7216 \&      !
7217 \&      V
7218 \& +\-\-\-\-\-\-\-\-\-+
7219 \& ! Default !
7220 \& ! Target  !
7221 \& +\-\-\-\-\-\-\-\-\-+
7222 .Ve
7223 .SS "Flow control"
7224 .IX Subsection "Flow control"
7225 There are four ways to control which way a value takes through the filter
7226 mechanism:
7227 .IP "\fBjump\fR" 4
7228 .IX Item "jump"
7229 The built-in \fBjump\fR target can be used to \*(L"call\*(R" another chain, i.\ e.
7230 process the value with another chain. When the called chain finishes, usually
7231 the next target or rule after the jump is executed.
7232 .IP "\fBstop\fR" 4
7233 .IX Item "stop"
7234 The stop condition, signaled for example by the built-in target \fBstop\fR, causes
7235 all processing of the value to be stopped immediately.
7236 .IP "\fBreturn\fR" 4
7237 .IX Item "return"
7238 Causes processing in the current chain to be aborted, but processing of the
7239 value generally will continue. This means that if the chain was called via
7240 \&\fBJump\fR, the next target or rule after the jump will be executed. If the chain
7241 was not called by another chain, control will be returned to the daemon and it
7242 may pass the value to another chain.
7243 .IP "\fBcontinue\fR" 4
7244 .IX Item "continue"
7245 Most targets will signal the \fBcontinue\fR condition, meaning that processing
7246 should continue normally. There is no special built-in target for this
7247 condition.
7248 .SS "Synopsis"
7249 .IX Subsection "Synopsis"
7250 The configuration reflects this structure directly:
7251 .PP
7252 .Vb 10
7253 \& PostCacheChain "PostCache"
7254 \& <Chain "PostCache">
7255 \&   <Rule "ignore_mysql_show">
7256 \&     <Match "regex">
7257 \&       Plugin "^mysql$"
7258 \&       Type "^mysql_command$"
7259 \&       TypeInstance "^show_"
7260 \&     </Match>
7261 \&     <Target "stop">
7262 \&     </Target>
7263 \&   </Rule>
7264 \&   <Target "write">
7265 \&     Plugin "rrdtool"
7266 \&   </Target>
7267 \& </Chain>
7268 .Ve
7269 .PP
7270 The above configuration example will ignore all values where the plugin field
7271 is \*(L"mysql\*(R", the type is \*(L"mysql_command\*(R" and the type instance begins with
7272 \&\*(L"show_\*(R". All other values will be sent to the \f(CW\*(C`rrdtool\*(C'\fR write plugin via the
7273 default target of the chain. Since this chain is run after the value has been
7274 added to the cache, the MySQL \f(CW\*(C`show_*\*(C'\fR command statistics will be available
7275 via the \f(CW\*(C`unixsock\*(C'\fR plugin.
7276 .SS "List of configuration options"
7277 .IX Subsection "List of configuration options"
7278 .IP "\fBPreCacheChain\fR \fIChainName\fR" 4
7279 .IX Item "PreCacheChain ChainName"
7280 .PD 0
7281 .IP "\fBPostCacheChain\fR \fIChainName\fR" 4
7282 .IX Item "PostCacheChain ChainName"
7283 .PD
7284 Configure the name of the \*(L"pre-cache chain\*(R" and the \*(L"post-cache chain\*(R". The
7285 argument is the name of a \fIchain\fR that should be executed before and/or after
7286 the values have been added to the cache.
7287 .Sp
7288 To understand the implications, it's important you know what is going on inside
7289 \&\fIcollectd\fR. The following diagram shows how values are passed from the
7290 read-plugins to the write-plugins:
7291 .Sp
7292 .Vb 10
7293 \&   +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
7294 \&   !  Read\-Plugin  !
7295 \&   +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+
7296 \&           !
7297 \& + \- \- \- \- V \- \- \- \- +
7298 \& : +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ :
7299 \& : !   Pre\-Cache   ! :
7300 \& : !     Chain     ! :
7301 \& : +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+ :
7302 \& :         !         :
7303 \& :         V         :
7304 \& : +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+ :  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
7305 \& : !     Cache     !\-\-\->!  Value Cache  !
7306 \& : !     insert    ! :  +\-\-\-+\-\-\-+\-\-\-\-\-\-\-+
7307 \& : +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+ :      !   !
7308 \& :         !   ,\-\-\-\-\-\-\-\-\-\-\-\-\*(Aq   !
7309 \& :         V   V     :          V
7310 \& : +\-\-\-\-\-\-\-+\-\-\-+\-\-\-+ :  +\-\-\-\-\-\-\-+\-\-\-\-\-\-\-+
7311 \& : !  Post\-Cache   +\-\-\->! Write\-Plugins !
7312 \& : !     Chain     ! :  +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+
7313 \& : +\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-+ :
7314 \& :                   :
7315 \& :  dispatch values  :
7316 \& + \- \- \- \- \- \- \- \- \- +
7317 .Ve
7318 .Sp
7319 After the values are passed from the \*(L"read\*(R" plugins to the dispatch functions,
7320 the pre-cache chain is run first. The values are added to the internal cache
7321 afterwards. The post-cache chain is run after the values have been added to the
7322 cache. So why is it such a huge deal if chains are run before or after the
7323 values have been added to this cache?
7324 .Sp
7325 Targets that change the identifier of a value list should be executed before
7326 the values are added to the cache, so that the name in the cache matches the
7327 name that is used in the \*(L"write\*(R" plugins. The \f(CW\*(C`unixsock\*(C'\fR plugin, too, uses
7328 this cache to receive a list of all available values. If you change the
7329 identifier after the value list has been added to the cache, this may easily
7330 lead to confusion, but it's not forbidden of course.
7331 .Sp
7332 The cache is also used to convert counter values to rates. These rates are, for
7333 example, used by the \f(CW\*(C`value\*(C'\fR match (see below). If you use the rate stored in
7334 the cache \fBbefore\fR the new value is added, you will use the old, \fBprevious\fR
7335 rate. Write plugins may use this rate, too, see the \f(CW\*(C`csv\*(C'\fR plugin, for example.
7336 The \f(CW\*(C`unixsock\*(C'\fR plugin uses these rates too, to implement the \f(CW\*(C`GETVAL\*(C'\fR
7337 command.
7338 .Sp
7339 Last but not last, the \fBstop\fR target makes a difference: If the pre-cache
7340 chain returns the stop condition, the value will not be added to the cache and
7341 the post-cache chain will not be run.
7342 .IP "\fBChain\fR \fIName\fR" 4
7343 .IX Item "Chain Name"
7344 Adds a new chain with a certain name. This name can be used to refer to a
7345 specific chain, for example to jump to it.
7346 .Sp
7347 Within the \fBChain\fR block, there can be \fBRule\fR blocks and \fBTarget\fR blocks.
7348 .IP "\fBRule\fR [\fIName\fR]" 4
7349 .IX Item "Rule [Name]"
7350 Adds a new rule to the current chain. The name of the rule is optional and
7351 currently has no meaning for the daemon.
7352 .Sp
7353 Within the \fBRule\fR block, there may be any number of \fBMatch\fR blocks and there
7354 must be at least one \fBTarget\fR block.
7355 .IP "\fBMatch\fR \fIName\fR" 4
7356 .IX Item "Match Name"
7357 Adds a match to a \fBRule\fR block. The name specifies what kind of match should
7358 be performed. Available matches depend on the plugins that have been loaded.
7359 .Sp
7360 The arguments inside the \fBMatch\fR block are passed to the plugin implementing
7361 the match, so which arguments are valid here depends on the plugin being used.
7362 If you do not need any to pass any arguments to a match, you can use the
7363 shorter syntax:
7364 .Sp
7365 .Vb 1
7366 \& Match "foobar"
7367 .Ve
7368 .Sp
7369 Which is equivalent to:
7370 .Sp
7371 .Vb 2
7372 \& <Match "foobar">
7373 \& </Match>
7374 .Ve
7375 .IP "\fBTarget\fR \fIName\fR" 4
7376 .IX Item "Target Name"
7377 Add a target to a rule or a default target to a chain. The name specifies what
7378 kind of target is to be added. Which targets are available depends on the
7379 plugins being loaded.
7380 .Sp
7381 The arguments inside the \fBTarget\fR block are passed to the plugin implementing
7382 the target, so which arguments are valid here depends on the plugin being used.
7383 If you do not need any to pass any arguments to a target, you can use the
7384 shorter syntax:
7385 .Sp
7386 .Vb 1
7387 \& Target "stop"
7388 .Ve
7389 .Sp
7390 This is the same as writing:
7391 .Sp
7392 .Vb 2
7393 \& <Target "stop">
7394 \& </Target>
7395 .Ve
7396 .SS "Built-in targets"
7397 .IX Subsection "Built-in targets"
7398 The following targets are built into the core daemon and therefore need no
7399 plugins to be loaded:
7400 .IP "\fBreturn\fR" 4
7401 .IX Item "return"
7402 Signals the \*(L"return\*(R" condition, see the \*(L"Flow control\*(R" section above. This
7403 causes the current chain to stop processing the value and returns control to
7404 the calling chain. The calling chain will continue processing targets and rules
7405 just after the \fBjump\fR target (see below). This is very similar to the
7406 \&\fB\s-1RETURN\s0\fR target of iptables, see \fIiptables\fR\|(8).
7407 .Sp
7408 This target does not have any options.
7409 .Sp
7410 Example:
7411 .Sp
7412 .Vb 1
7413 \& Target "return"
7414 .Ve
7415 .IP "\fBstop\fR" 4
7416 .IX Item "stop"
7417 Signals the \*(L"stop\*(R" condition, see the \*(L"Flow control\*(R" section above. This
7418 causes processing of the value to be aborted immediately. This is similar to
7419 the \fB\s-1DROP\s0\fR target of iptables, see \fIiptables\fR\|(8).
7420 .Sp
7421 This target does not have any options.
7422 .Sp
7423 Example:
7424 .Sp
7425 .Vb 1
7426 \& Target "stop"
7427 .Ve
7428 .IP "\fBwrite\fR" 4
7429 .IX Item "write"
7430 Sends the value to \*(L"write\*(R" plugins.
7431 .Sp
7432 Available options:
7433 .RS 4
7434 .IP "\fBPlugin\fR \fIName\fR" 4
7435 .IX Item "Plugin Name"
7436 Name of the write plugin to which the data should be sent. This option may be
7437 given multiple times to send the data to more than one write plugin. If the
7438 plugin supports multiple instances, the plugin's instance(s) must also be
7439 specified.
7440 .RE
7441 .RS 4
7442 .Sp
7443 If no plugin is explicitly specified, the values will be sent to all available
7444 write plugins.
7445 .Sp
7446 Single-instance plugin example:
7447 .Sp
7448 .Vb 3
7449 \& <Target "write">
7450 \&   Plugin "rrdtool"
7451 \& </Target>
7452 .Ve
7453 .Sp
7454 Multi-instance plugin example:
7455 .Sp
7456 .Vb 12
7457 \& <Plugin "write_graphite">
7458 \&   <Node "foo">
7459 \&   ...
7460 \&   </Node>
7461 \&   <Node "bar">
7462 \&   ...
7463 \&   </Node>
7464 \& </Plugin>
7465 \&  ...
7466 \& <Target "write">
7467 \&   Plugin "write_graphite/foo"
7468 \& </Target>
7469 .Ve
7470 .RE
7471 .IP "\fBjump\fR" 4
7472 .IX Item "jump"
7473 Starts processing the rules of another chain, see \*(L"Flow control\*(R" above. If
7474 the end of that chain is reached, or a stop condition is encountered,
7475 processing will continue right after the \fBjump\fR target, i.\ e. with the
7476 next target or the next rule. This is similar to the \fB\-j\fR command line option
7477 of iptables, see \fIiptables\fR\|(8).
7478 .Sp
7479 Available options:
7480 .RS 4
7481 .IP "\fBChain\fR \fIName\fR" 4
7482 .IX Item "Chain Name"
7483 Jumps to the chain \fIName\fR. This argument is required and may appear only once.
7484 .RE
7485 .RS 4
7486 .Sp
7487 Example:
7488 .Sp
7489 .Vb 3
7490 \& <Target "jump">
7491 \&   Chain "foobar"
7492 \& </Target>
7493 .Ve
7494 .RE
7495 .SS "Available matches"
7496 .IX Subsection "Available matches"
7497 .IP "\fBregex\fR" 4
7498 .IX Item "regex"
7499 Matches a value using regular expressions.
7500 .Sp
7501 Available options:
7502 .RS 4
7503 .IP "\fBHost\fR \fIRegex\fR" 4
7504 .IX Item "Host Regex"
7505 .PD 0
7506 .IP "\fBPlugin\fR \fIRegex\fR" 4
7507 .IX Item "Plugin Regex"
7508 .IP "\fBPluginInstance\fR \fIRegex\fR" 4
7509 .IX Item "PluginInstance Regex"
7510 .IP "\fBType\fR \fIRegex\fR" 4
7511 .IX Item "Type Regex"
7512 .IP "\fBTypeInstance\fR \fIRegex\fR" 4
7513 .IX Item "TypeInstance Regex"
7514 .PD
7515 Match values where the given regular expressions match the various fields of
7516 the identifier of a value. If multiple regular expressions are given, \fBall\fR
7517 regexen must match for a value to match.
7518 .IP "\fBInvert\fR \fBfalse\fR|\fBtrue\fR" 4
7519 .IX Item "Invert false|true"
7520 When set to \fBtrue\fR, the result of the match is inverted, i.e. all value lists
7521 where all regular expressions apply are not matched, all other value lists are
7522 matched. Defaults to \fBfalse\fR.
7523 .RE
7524 .RS 4
7525 .Sp
7526 Example:
7527 .Sp
7528 .Vb 4
7529 \& <Match "regex">
7530 \&   Host "customer[0\-9]+"
7531 \&   Plugin "^foobar$"
7532 \& </Match>
7533 .Ve
7534 .RE
7535 .IP "\fBtimediff\fR" 4
7536 .IX Item "timediff"
7537 Matches values that have a time which differs from the time on the server.
7538 .Sp
7539 This match is mainly intended for servers that receive values over the
7540 \&\f(CW\*(C`network\*(C'\fR plugin and write them to disk using the \f(CW\*(C`rrdtool\*(C'\fR plugin. RRDtool
7541 is very sensitive to the timestamp used when updating the \s-1RRD\s0 files. In
7542 particular, the time must be ever increasing. If a misbehaving client sends one
7543 packet with a timestamp far in the future, all further packets with a correct
7544 time will be ignored because of that one packet. What's worse, such corrupted
7545 \&\s-1RRD\s0 files are hard to fix.
7546 .Sp
7547 This match lets one match all values \fBoutside\fR a specified time range
7548 (relative to the server's time), so you can use the \fBstop\fR target (see below)
7549 to ignore the value, for example.
7550 .Sp
7551 Available options:
7552 .RS 4
7553 .IP "\fBFuture\fR \fISeconds\fR" 4
7554 .IX Item "Future Seconds"
7555 Matches all values that are \fIahead\fR of the server's time by \fISeconds\fR or more
7556 seconds. Set to zero for no limit. Either \fBFuture\fR or \fBPast\fR must be
7557 non-zero.
7558 .IP "\fBPast\fR \fISeconds\fR" 4
7559 .IX Item "Past Seconds"
7560 Matches all values that are \fIbehind\fR of the server's time by \fISeconds\fR or
7561 more seconds. Set to zero for no limit. Either \fBFuture\fR or \fBPast\fR must be
7562 non-zero.
7563 .RE
7564 .RS 4
7565 .Sp
7566 Example:
7567 .Sp
7568 .Vb 4
7569 \& <Match "timediff">
7570 \&   Future  300
7571 \&   Past   3600
7572 \& </Match>
7573 .Ve
7574 .Sp
7575 This example matches all values that are five minutes or more ahead of the
7576 server or one hour (or more) lagging behind.
7577 .RE
7578 .IP "\fBvalue\fR" 4
7579 .IX Item "value"
7580 Matches the actual value of data sources against given minimum\ / maximum
7581 values. If a data-set consists of more than one data-source, all data-sources
7582 must match the specified ranges for a positive match.
7583 .Sp
7584 Available options:
7585 .RS 4
7586 .IP "\fBMin\fR \fIValue\fR" 4
7587 .IX Item "Min Value"
7588 Sets the smallest value which still results in a match. If unset, behaves like
7589 negative infinity.
7590 .IP "\fBMax\fR \fIValue\fR" 4
7591 .IX Item "Max Value"
7592 Sets the largest value which still results in a match. If unset, behaves like
7593 positive infinity.
7594 .IP "\fBInvert\fR \fBtrue\fR|\fBfalse\fR" 4
7595 .IX Item "Invert true|false"
7596 Inverts the selection. If the \fBMin\fR and \fBMax\fR settings result in a match,
7597 no-match is returned and vice versa. Please note that the \fBInvert\fR setting
7598 only effects how \fBMin\fR and \fBMax\fR are applied to a specific value. Especially
7599 the \fBDataSource\fR and \fBSatisfy\fR settings (see below) are not inverted.
7600 .IP "\fBDataSource\fR \fIDSName\fR [\fIDSName\fR ...]" 4
7601 .IX Item "DataSource DSName [DSName ...]"
7602 Select one or more of the data sources. If no data source is configured, all
7603 data sources will be checked. If the type handled by the match does not have a
7604 data source of the specified name(s), this will always result in no match
7605 (independent of the \fBInvert\fR setting).
7606 .IP "\fBSatisfy\fR \fBAny\fR|\fBAll\fR" 4
7607 .IX Item "Satisfy Any|All"
7608 Specifies how checking with several data sources is performed. If set to
7609 \&\fBAny\fR, the match succeeds if one of the data sources is in the configured
7610 range. If set to \fBAll\fR the match only succeeds if all data sources are within
7611 the configured range. Default is \fBAll\fR.
7612 .Sp
7613 Usually \fBAll\fR is used for positive matches, \fBAny\fR is used for negative
7614 matches. This means that with \fBAll\fR you usually check that all values are in a
7615 \&\*(L"good\*(R" range, while with \fBAny\fR you check if any value is within a \*(L"bad\*(R" range
7616 (or outside the \*(L"good\*(R" range).
7617 .RE
7618 .RS 4
7619 .Sp
7620 Either \fBMin\fR or \fBMax\fR, but not both, may be unset.
7621 .Sp
7622 Example:
7623 .Sp
7624 .Vb 6
7625 \& # Match all values smaller than or equal to 100. Matches only if all data
7626 \& # sources are below 100.
7627 \& <Match "value">
7628 \&   Max 100
7629 \&   Satisfy "All"
7630 \& </Match>
7631 \&
7632 \& # Match if the value of any data source is outside the range of 0 \- 100.
7633 \& <Match "value">
7634 \&   Min   0
7635 \&   Max 100
7636 \&   Invert true
7637 \&   Satisfy "Any"
7638 \& </Match>
7639 .Ve
7640 .RE
7641 .IP "\fBempty_counter\fR" 4
7642 .IX Item "empty_counter"
7643 Matches all values with one or more data sources of type \fB\s-1COUNTER\s0\fR and where
7644 all counter values are zero. These counters usually \fInever\fR increased since
7645 they started existing (and are therefore uninteresting), or got reset recently
7646 or overflowed and you had really, \fIreally\fR bad luck.
7647 .Sp
7648 Please keep in mind that ignoring such counters can result in confusing
7649 behavior: Counters which hardly ever increase will be zero for long periods of
7650 time. If the counter is reset for some reason (machine or service restarted,
7651 usually), the graph will be empty (\s-1NAN\s0) for a long time. People may not
7652 understand why.
7653 .IP "\fBhashed\fR" 4
7654 .IX Item "hashed"
7655 Calculates a hash value of the host name and matches values according to that
7656 hash value. This makes it possible to divide all hosts into groups and match
7657 only values that are in a specific group. The intended use is in load
7658 balancing, where you want to handle only part of all data and leave the rest
7659 for other servers.
7660 .Sp
7661 The hashing function used tries to distribute the hosts evenly. First, it
7662 calculates a 32\ bit hash value using the characters of the hostname:
7663 .Sp
7664 .Vb 3
7665 \&  hash_value = 0;
7666 \&  for (i = 0; host[i] != 0; i++)
7667 \&    hash_value = (hash_value * 251) + host[i];
7668 .Ve
7669 .Sp
7670 The constant 251 is a prime number which is supposed to make this hash value
7671 more random. The code then checks the group for this host according to the
7672 \&\fITotal\fR and \fIMatch\fR arguments:
7673 .Sp
7674 .Vb 4
7675 \&  if ((hash_value % Total) == Match)
7676 \&    matches;
7677 \&  else
7678 \&    does not match;
7679 .Ve
7680 .Sp
7681 Please note that when you set \fITotal\fR to two (i.\ e. you have only two
7682 groups), then the least significant bit of the hash value will be the \s-1XOR\s0 of
7683 all least significant bits in the host name. One consequence is that when you
7684 have two hosts, \*(L"server0.example.com\*(R" and \*(L"server1.example.com\*(R", where the host
7685 name differs in one digit only and the digits differ by one, those hosts will
7686 never end up in the same group.
7687 .Sp
7688 Available options:
7689 .RS 4
7690 .IP "\fBMatch\fR \fIMatch\fR \fITotal\fR" 4
7691 .IX Item "Match Match Total"
7692 Divide the data into \fITotal\fR groups and match all hosts in group \fIMatch\fR as
7693 described above. The groups are numbered from zero, i.\ e. \fIMatch\fR must
7694 be smaller than \fITotal\fR. \fITotal\fR must be at least one, although only values
7695 greater than one really do make any sense.
7696 .Sp
7697 You can repeat this option to match multiple groups, for example:
7698 .Sp
7699 .Vb 2
7700 \&  Match 3 7
7701 \&  Match 5 7
7702 .Ve
7703 .Sp
7704 The above config will divide the data into seven groups and match groups three
7705 and five. One use would be to keep every value on two hosts so that if one
7706 fails the missing data can later be reconstructed from the second host.
7707 .RE
7708 .RS 4
7709 .Sp
7710 Example:
7711 .Sp
7712 .Vb 10
7713 \& # Operate on the pre\-cache chain, so that ignored values are not even in the
7714 \& # global cache.
7715 \& <Chain "PreCache">
7716 \&   <Rule>
7717 \&     <Match "hashed">
7718 \&       # Divide all received hosts in seven groups and accept all hosts in
7719 \&       # group three.
7720 \&       Match 3 7
7721 \&     </Match>
7722 \&     # If matched: Return and continue.
7723 \&     Target "return"
7724 \&   </Rule>
7725 \&   # If not matched: Return and stop.
7726 \&   Target "stop"
7727 \& </Chain>
7728 .Ve
7729 .RE
7730 .SS "Available targets"
7731 .IX Subsection "Available targets"
7732 .IP "\fBnotification\fR" 4
7733 .IX Item "notification"
7734 Creates and dispatches a notification.
7735 .Sp
7736 Available options:
7737 .RS 4
7738 .IP "\fBMessage\fR \fIString\fR" 4
7739 .IX Item "Message String"
7740 This required option sets the message of the notification. The following
7741 placeholders will be replaced by an appropriate value:
7742 .RS 4
7743 .IP "\fB%{host}\fR" 4
7744 .IX Item "%{host}"
7745 .PD 0
7746 .IP "\fB%{plugin}\fR" 4
7747 .IX Item "%{plugin}"
7748 .IP "\fB%{plugin_instance}\fR" 4
7749 .IX Item "%{plugin_instance}"
7750 .IP "\fB%{type}\fR" 4
7751 .IX Item "%{type}"
7752 .IP "\fB%{type_instance}\fR" 4
7753 .IX Item "%{type_instance}"
7754 .PD
7755 These placeholders are replaced by the identifier field of the same name.
7756 .IP "\fB%{ds:\fR\fIname\fR\fB}\fR" 4
7757 .IX Item "%{ds:name}"
7758 These placeholders are replaced by a (hopefully) human readable representation
7759 of the current rate of this data source. If you changed the instance name
7760 (using the \fBset\fR or \fBreplace\fR targets, see below), it may not be possible to
7761 convert counter values to rates.
7762 .RE
7763 .RS 4
7764 .Sp
7765 Please note that these placeholders are \fBcase sensitive\fR!
7766 .RE
7767 .ie n .IP "\fBSeverity\fR \fB""\s-1FAILURE""\s0\fR|\fB""\s-1WARNING""\s0\fR|\fB""\s-1OKAY""\s0\fR" 4
7768 .el .IP "\fBSeverity\fR \fB``\s-1FAILURE''\s0\fR|\fB``\s-1WARNING''\s0\fR|\fB``\s-1OKAY''\s0\fR" 4
7769 .IX Item "Severity FAILURE|WARNING|OKAY"
7770 Sets the severity of the message. If omitted, the severity \fB\*(L"\s-1WARNING\*(R"\s0\fR is
7771 used.
7772 .RE
7773 .RS 4
7774 .Sp
7775 Example:
7776 .Sp
7777 .Vb 4
7778 \&  <Target "notification">
7779 \&    Message "Oops, the %{type_instance} temperature is currently %{ds:value}!"
7780 \&    Severity "WARNING"
7781 \&  </Target>
7782 .Ve
7783 .RE
7784 .IP "\fBreplace\fR" 4
7785 .IX Item "replace"
7786 Replaces parts of the identifier using regular expressions.
7787 .Sp
7788 Available options:
7789 .RS 4
7790 .IP "\fBHost\fR \fIRegex\fR \fIReplacement\fR" 4
7791 .IX Item "Host Regex Replacement"
7792 .PD 0
7793 .IP "\fBPlugin\fR \fIRegex\fR \fIReplacement\fR" 4
7794 .IX Item "Plugin Regex Replacement"
7795 .IP "\fBPluginInstance\fR \fIRegex\fR \fIReplacement\fR" 4
7796 .IX Item "PluginInstance Regex Replacement"
7797 .IP "\fBTypeInstance\fR \fIRegex\fR \fIReplacement\fR" 4
7798 .IX Item "TypeInstance Regex Replacement"
7799 .PD
7800 Match the appropriate field with the given regular expression \fIRegex\fR. If the
7801 regular expression matches, that part that matches is replaced with
7802 \&\fIReplacement\fR. If multiple places of the input buffer match a given regular
7803 expression, only the first occurrence will be replaced.
7804 .Sp
7805 You can specify each option multiple times to use multiple regular expressions
7806 one after another.
7807 .RE
7808 .RS 4
7809 .Sp
7810 Example:
7811 .Sp
7812 .Vb 3
7813 \& <Target "replace">
7814 \&   # Replace "example.net" with "example.com"
7815 \&   Host "\e\e<example.net\e\e>" "example.com"
7816 \&
7817 \&   # Strip "www." from hostnames
7818 \&   Host "\e\e<www\e\e." ""
7819 \& </Target>
7820 .Ve
7821 .RE
7822 .IP "\fBset\fR" 4
7823 .IX Item "set"
7824 Sets part of the identifier of a value to a given string.
7825 .Sp
7826 Available options:
7827 .RS 4
7828 .IP "\fBHost\fR \fIString\fR" 4
7829 .IX Item "Host String"
7830 .PD 0
7831 .IP "\fBPlugin\fR \fIString\fR" 4
7832 .IX Item "Plugin String"
7833 .IP "\fBPluginInstance\fR \fIString\fR" 4
7834 .IX Item "PluginInstance String"
7835 .IP "\fBTypeInstance\fR \fIString\fR" 4
7836 .IX Item "TypeInstance String"
7837 .PD
7838 Set the appropriate field to the given string. The strings for plugin instance
7839 and type instance may be empty, the strings for host and plugin may not be
7840 empty. It's currently not possible to set the type of a value this way.
7841 .RE
7842 .RS 4
7843 .Sp
7844 Example:
7845 .Sp
7846 .Vb 4
7847 \& <Target "set">
7848 \&   PluginInstance "coretemp"
7849 \&   TypeInstance "core3"
7850 \& </Target>
7851 .Ve
7852 .RE
7853 .SS "Backwards compatibility"
7854 .IX Subsection "Backwards compatibility"
7855 If you use collectd with an old configuration, i.\ e. one without a
7856 \&\fBChain\fR block, it will behave as it used to. This is equivalent to the
7857 following configuration:
7858 .PP
7859 .Vb 3
7860 \& <Chain "PostCache">
7861 \&   Target "write"
7862 \& </Chain>
7863 .Ve
7864 .PP
7865 If you specify a \fBPostCacheChain\fR, the \fBwrite\fR target will not be added
7866 anywhere and you will have to make sure that it is called where appropriate. We
7867 suggest to add the above snippet as default target to your \*(L"PostCache\*(R" chain.
7868 .SS "Examples"
7869 .IX Subsection "Examples"
7870 Ignore all values, where the hostname does not contain a dot, i.\ e. can't
7871 be an \s-1FQDN.\s0
7872 .PP
7873 .Vb 9
7874 \& <Chain "PreCache">
7875 \&   <Rule "no_fqdn">
7876 \&     <Match "regex">
7877 \&       Host "^[^\e.]*$"
7878 \&     </Match>
7879 \&     Target "stop"
7880 \&   </Rule>
7881 \&   Target "write"
7882 \& </Chain>
7883 .Ve
7884 .SH "SEE ALSO"
7885 .IX Header "SEE ALSO"
7886 \&\fIcollectd\fR\|(1),
7887 \&\fIcollectd\-exec\fR\|(5),
7888 \&\fIcollectd\-perl\fR\|(5),
7889 \&\fIcollectd\-unixsock\fR\|(5),
7890 \&\fItypes.db\fR\|(5),
7891 \&\fIhddtemp\fR\|(8),
7892 \&\fIiptables\fR\|(8),
7893 kstat(3KSTAT),
7894 \&\fImbmon\fR\|(1),
7895 \&\fIpsql\fR\|(1),
7896 \&\fIregex\fR\|(7),
7897 \&\fIrrdtool\fR\|(1),
7898 \&\fIsensors\fR\|(1)
7899 .SH "AUTHOR"
7900 .IX Header "AUTHOR"
7901 Florian Forster <octo@collectd.org>