octo@casella:~/collectd $ svn merge -r784:HEAD branches/apcups trunk
[collectd.git] / src / collectd.conf.pod
1 =head1 NAME
2
3 collectd.conf - Configuration for the system statistics collection daemon B<collectd>
4
5 =head1 SYNOPSIS
6
7   Mode    Client
8   DataDir /path/to/data/
9   PIDFile /path/to/pidfile/collectd.pid
10   LogFile /path/to/logfile/collectd.log
11   Server  123.123.123.123
12   Port    12345
13
14   LoadPlugin cpu
15   LoadPlugin load
16   LoadPlugin ping
17
18   <Plugin ping>
19     Host example.org
20     Host provider.net
21   </Plugin>
22
23 =head1 DESCRIPTION
24
25 This config file controls how the system statistics collection daemon
26 B<collectd> behaves. The most significant options are B<Mode>, which controlls
27 if the daemon will act as client, server or will be independent in local mode,
28 and B<LoadPlugin> which controls which plugins to load.
29
30 The syntax of this config file is similar to the config file of the famos
31 B<Apache Webserver>. Each line containes either a key-value-pair or a
32 section-start or -end. Empty lines and everything after the hash-symbol `#' is
33 ignored.
34
35 =head1 GLOBAL OPTIONS
36
37 =over 4
38
39 =item B<Mode> (B<Local>|B<Client>|B<Server>|B<Log>)
40
41 Sets the operating mode. See the section B<MODES> in L<collectd(1)> for a
42 description. This option determines which other options are allowed. Defaults
43 to B<Local>.
44
45 =item B<LoadPlugin> I<Plugin>
46
47 Loads the plugin I<Plugin>. There must be at least one such line or B<collectd>
48 will be mostly useless. The names of the plugins are listed in L<collectd(1)>.
49
50 =item B<PIDFile> I<File>
51
52 Sets where to write the PID file to. This file is overwritten when it exists
53 and deleted when the program ist stopped. Available in B<all modes>.
54
55 =item B<DataDir> I<Directory>
56
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.
61
62 =item B<LogFile> I<File>
63
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>.
66
67 =item B<Listen> I<Host> [I<Port>]
68
69 =item B<Server> I<Host> [I<Port>]
70
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
73 destinations.
74
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.
77
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.
80
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.
85
86 The default IPv6 multicast group is C<ff18::efc0:4a42>. The default IPv4
87 multicast group is C<239.192.74.66>.
88
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.
92
93 =item B<TimeToLive> I<1-255>
94
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
98 operating systems.
99
100 =back
101
102 =head1 PLUGIN OPTIONS
103
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:
106
107 =head2 Plugin C<apache>
108
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:
113
114   ExtendedStatus on
115   <IfModule mod_status.c>
116     <Location /mod_status>
117       SetHandler server-status
118     </Location>
119   </IfModule>
120
121 The following options are accepted by the C<apache>-plugin:
122
123 =over 4
124
125 =item B<URL> I<http://host/mod_status?auto>
126
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.
130
131 =item B<User> I<Username>
132
133 Optional user name needed for authentication.
134
135 =item B<Password> I<Password>
136
137 Optional password needed for authentication.
138
139 =item B<CACert> I<File>
140
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.
144
145 =back
146
147 =head2 Plugin C<hddtemp>
148
149 =over 4
150
151 =item B<Host> I<Hostname>
152
153 Hostname to connect to. Defaults to B<127.0.0.1>.
154
155 =item B<Port> I<Port>
156
157 TCP-Port to connect to. Defaults to B<7634>.
158
159 =back
160
161 =head2 Plugin C<mysql>
162
163 =over 4
164
165 =item B<Host> I<Hostname>
166
167 Hostname of the database server. Defaults to B<localhost>.
168
169 =item B<User> I<Username>
170
171 Username to use when connecting to the database.
172
173 =item B<Password> I<Password>
174
175 Password needed to log into the database.
176
177 =item B<Database> I<Database>
178
179 Select this database. Defaults to I<no database> which is a perfecly reasonable
180 option for what this plugin does.
181
182 =back
183
184 =head2 Plugin C<ping>
185
186 =over 4
187
188 =item B<Host> I<IP-address>
189
190 Host to ping periodically. This option may be repeated several times to ping
191 multiple hosts.
192
193 =item B<TTL> I<0-255>
194
195 Sets the Time-To-Live of generated ICMP packets.
196
197 =back
198
199 =head2 Plugin C<traffic>
200
201 =over 4
202
203 =item B<Ignore> I<Interface>
204
205 Ignore the given interface. Use this to get rid of loopback- or
206 IPv6-in-IPv4-tunnel-interface statistics.
207
208 =back
209
210 =head1 SEE ALSO
211
212 L<collectd(1)>
213
214 =head1 AUTHOR
215
216 Florian Forster E<lt>octo@verplant.orgE<gt>
217
218 =cut