3 collectd.conf - Configuration for the system statistics collection daemon B<collectd>
9 PIDFile /path/to/pidfile/collectd.pid
10 LogFile /path/to/logfile/collectd.log
11 Server 123.123.123.123 12345
24 This config file controls how the system statistics collection daemon
25 B<collectd> behaves. The most significant options are B<Mode>, which controlls
26 if the daemon will act as client, server or will be independent in local mode,
27 and B<LoadPlugin> which controls which plugins to load.
29 The syntax of this config file is similar to the config file of the famos
30 B<Apache Webserver>. Each line containes either a key-value-pair or a
31 section-start or -end. Empty lines and everything after the hash-symbol `#' is
38 =item B<Mode> (B<Local>|B<Client>|B<Server>|B<Log>)
40 Sets the operating mode. See the section B<MODES> in L<collectd(1)> for a
41 description. This option determines which other options are allowed. Defaults
44 =item B<LoadPlugin> I<Plugin>
46 Loads the plugin I<Plugin>. There must be at least one such line or B<collectd>
47 will be mostly useless. The names of the plugins are listed in L<collectd(1)>.
49 =item B<PIDFile> I<File>
51 Sets where to write the PID file to. This file is overwritten when it exists
52 and deleted when the program ist stopped. Some init-scripts might override this
53 setting using the B<-P> commandline option. Available in B<all modes>.
55 =item B<DataDir> I<Directory>
57 Sets the data directory. This is the directory beneath all RRD-files are
58 created. Possibly more subdirectories are created. This is also the working
59 directory for the daemon. Available in B<all modes>, though the B<Client> mode
60 won't write to this directory.
62 =item B<LogFile> I<File>
64 Sets the file to write debugging output to. This is only used if compiled with
65 debugging enabled. It's ignored otherwise. Available in B<all modes>.
67 =item B<Listen> I<Host> [I<Port>]
69 =item B<Server> I<Host> [I<Port>]
71 In B<client mode> the B<Server> statement sets the server to send datagrams to.
72 The statement may occur multiple times to send each datagram to multiple
75 In B<server mode> the B<Listen> statement sets the interfaces to bind to. When
76 multiple statements are found the daemon will bind to multiple interfaces.
78 The argument I<Host> may be a hostname, an IPv4 address or an IPv6 address. If
79 the argument is a multicast address the daemon will join that multicast group.
81 If no B<Listen> statement is found the server tries join both, the IPv6
82 multicast group and the IPv4 multicast group. If no B<Server> statement is
83 found the client will try to send data to the IPv6 multicast group first. If
84 that failes the client will try the IPv4 multicast group.
86 The default IPv6 multicast group is C<ff18::efc0:4a42>. The default IPv4
87 multicast group is C<239.192.74.66>.
89 The optional I<Port> argument sets the port to use. It can either be given
90 using a numeric port number or a service name. If the argument is omited the
91 default port B<25826> is assumed.
93 =item B<TimeToLive> I<1-255>
95 Set the time-to-live of sent packets. This applies to all, unicast and
96 multicast, and IPv4 and IPv6 packets. The default is to not change this value.
97 That means that multicast packets will be sent with a TTL of C<1> (one) on most
102 =head1 PLUGIN OPTIONS
104 Some Plugins may register own options. These options must be inclosed in a
105 C<Plugin>-Section. Which options exist depends on the plugin used:
107 =head2 Plugin C<apache>
109 To configure the C<apache>-plugin you first need to configure the Apache
110 webserver correctly. The Apache-plugin C<mod_status> needs to be loaded and
111 working and the C<ExtendedStatus> directive needs to be B<enabled>. You can use
112 the following snipped to base your Apache config upon:
115 <IfModule mod_status.c>
116 <Location /mod_status>
117 SetHandler server-status
121 The following options are accepted by the C<apache>-plugin:
125 =item B<URL> I<http://host/mod_status?auto>
127 Sets the URL of the C<mod_status> output. This needs to be the output generated
128 by C<ExtendedStatus on> and it needs to be the machine readable output
129 generated by appending the C<?auto> argument.
131 =item B<User> I<Username>
133 Optional user name needed for authentication.
135 =item B<Password> I<Password>
137 Optional password needed for authentication.
139 =item B<CACert> I<File>
141 File that holds one or more SSL certificates. If you want to use HTTPS you will
142 possibly need this option. What CA certificates come bundeled with C<libcurl>
143 and are checked by default depends on the distribution you use.
147 =head2 Plugin C<apcups>
151 =item B<Host> I<Hostname>
153 Hostname of the host running B<apcupsd>. Defaults to B<localhost>. Please note
154 that IPv6 support has been disabled unless someone can confirm or decline that
155 B<apcupsd> can handle it.
157 =item B<Port> I<Port>
159 TCP-Port to connect to. Defaults to B<3551>.
167 =item B<Device> I<Device>
169 Select partitions based on the devicename.
171 =item B<MountPoint> I<Directory>
173 Select partitions based on the mountpoint.
175 =item B<FSType> I<FSType>
177 Select partitions based on the filesystem type.
179 =item B<IgnoreSelected> I<true>|I<false>
181 Invert the selection: If set to true, all partitions B<except> the ones that
182 match any one of the criteria are collected. By default only selected
183 partitions are collected if a selection is made. If no selection is conifured
184 at all, B<all> partitions are selected.
192 =item B<Interface> I<Interface>
194 The dns plugin uses B<libpcap> to capture dns traffic and analyses it. This
195 option sets the interface that should be used. If this option is not set, or
196 set to "any", the plugin will try to get packets from B<all> interfaces. This
197 may not work on certain platforms, such as MacE<nbsp>OSE<nbsp>X.
199 =item B<IgnoreSource> I<IP-address>
201 Ignore packets that originate from this address.
205 =head2 Plugin C<email>
209 =item B<SocketGroup> I<Group>
211 Change the group of the UNIX-socket after it has been created.
213 =item B<SocketPerms> I<Permissions>
215 Change the file permissions of the UNIX-socket after it has been created. The
216 permissions must be given as a numeric, octal value as you would pass to
217 L<chmod(1)>. Defaults to B<0770>.
219 =item B<MaxConns> I<Number>
221 Sets the maximum number of connections that can be handeled in parallel. Since
222 this many threads will be started immediately setting this to a very high
223 value will waste valuable resources. Defaults to B<5> and will be forced to be
224 at most B<16384> to prevent typos and dumb mistakes.
228 =head2 Plugin C<hddtemp>
232 =item B<Host> I<Hostname>
234 Hostname to connect to. Defaults to B<127.0.0.1>.
236 =item B<Port> I<Port>
238 TCP-Port to connect to. Defaults to B<7634>.
242 =head2 Plugin C<ntpd>
246 =item B<Host> I<Hostname>
248 Hostname of the host running B<ntpd>. Defaults to B<localhost>.
250 =item B<Port> I<Port>
252 UDP-Port to connect to. Defaults to B<123>.
256 =head2 Plugin C<mysql>
260 =item B<Host> I<Hostname>
262 Hostname of the database server. Defaults to B<localhost>.
264 =item B<User> I<Username>
266 Username to use when connecting to the database.
268 =item B<Password> I<Password>
270 Password needed to log into the database.
272 =item B<Database> I<Database>
274 Select this database. Defaults to I<no database> which is a perfecly reasonable
275 option for what this plugin does.
279 =head2 Plugin C<ping>
283 =item B<Host> I<IP-address>
285 Host to ping periodically. This option may be repeated several times to ping
288 =item B<TTL> I<0-255>
290 Sets the Time-To-Live of generated ICMP packets.
294 =head2 Plugin C<sensors>
298 =item B<ExtendedSensorNaming> I<true>|I<false>
300 If set to I<true> this option switches on the extended sensors and RRD-files
301 naming. This option exists to preserve backwards compatibility. It is
302 recommended that you set this option to I<true>. The default is I<false> to
303 maintain compatibility only.
305 Sensors get names like I<chip-bus-address/type-feature> (e.g.
306 I<it8712-isa-0290/voltage-in1>) and RRD files are therefore stored in a
307 standalone directory inside the B<DataDir> directory and get names like
308 I<lm_sensors-chip-bus-address/type-feature.rrd> (e.g.
309 I<lm_sensors-it8712-isa-0290/voltage-in1.rrd>).
311 The B<ExtendedSensorNaming> option breaks the compatibility with previous
312 sensors and RRD files naming and the place where RRDs are stored. If you turn
313 it on, the plugin will create new RRD files in a standalone directory inside
314 the B<DataDir> directory and without previous history. You can rename ``old''
315 RRD-files to preserve already collected statistics, because the file layout
316 hasn't changed. If you have two chips of the same type, you need to use
317 B<ExtendedSensorNaming> in order to collect information from both chips.
319 If not set or set to I<false>, the extended naming is not active. Sensors get
320 names like I<chip-feature> (e.g. I<it8712-in1>) and RRD files are stored in the
321 main B<DataDir> directory and get names like I<sensors-chip-feature.rrd> (e.g.
322 I<sensors-it8712-in1.rrd>). You simply continue using the plugin the old way
323 and additionally also getting data for newly added sensors in this mode.
325 =item B<Sensor> I<chip-feature> or B<Sensor> I<chip-bus-address/type-feature>
327 Both option modes select the name of the sensor which you want to collect.
328 The naming scheme is dependent on the state of the B<ExtendedSensorNaming>
329 option (see previous option). Both option modes can also deselect the
330 sensor according to the B<IgnoreSelected> option (see below).
332 For example the option "B<Sensor> I<it8712-in1>" will cause the collectd
333 to gather data for the voltage sensor I<in1> of the I<it8712> chip in case
334 of the B<ExtendedSensorNaming> option is set to I<false>.
336 And likewise the option "B<Sensor> I<it8712-isa-0290/voltage-in1>" will
337 cause the collectd to gather data for the voltage sensor I<in1> of the I<it8712>
338 on the isa bus at the address 0290 in case of the B<ExtendedSensorNaming>
339 option set to I<true>.
341 =item B<IgnoreSelected> I<true>|I<false>
343 If no configuration if given, the B<sensors>-plugin will collect data from
344 all sensors. This may not be practical, especially for uninteresting sensors.
345 Thus, you can use the B<Sensor>-option to pick the sensors you're
346 interested in. Sometimes, however, it's easier/prefered to collect all
347 sensors I<except> a few ones. This option enables you to
348 do that: By setting B<IgnoreSelected> to I<true> the effect of
349 B<Sensor> is inversed: All selected sensors are ignored and all
350 other sensors are collected.
356 =head2 Plugin C<traffic>
360 =item B<Interface> I<Interface>
362 Select this interface. By default these interfaces will then be collected. For a more detailed description see B<IgnoreSelected> below.
364 =item B<IgnoreSelected> I<true>|I<false>
366 If no configuration if given, the B<traffic>-plugin will collect data from
367 all interfaces. This may not be practical, especially for loopback- and
368 similar interfaces. Thus, you can use the B<Interface>-option to pick the
369 interfaces you're interested in. Sometimes, however, it's easier/prefered
370 to collect all interfaces I<except> a few ones. This option enables you to
371 do that: By setting B<IgnoreSelected> to I<true> the effect of
372 B<Interface> is inversed: All selected interfaces are ignored and all
373 other interfaces are collected.
383 Florian Forster E<lt>octo@verplant.orgE<gt>