Code

6f6f148f295f50475ae4bbddbc55581c434f34a5
[pkg-collectd.git] / debian / collectd.conf
1 # Config file for collectd(1).
2 #
3 # Some plugins need additional configuration and are disabled by default.
4 # Please read collectd.conf(5) for details.
5 #
6 # You should also read /usr/share/doc/collectd/README.Debian.plugins before
7 # enabling any more plugins.
9 #Hostname "localhost"
10 FQDNLookup true
11 #BaseDir "/var/lib/collectd"
12 #PluginDir "/usr/lib/collectd"
13 #TypesDB "/usr/lib/collectd/types.db" "/etc/collectd/my_types.db"
14 #Interval 10
15 #ReadThreads 5
17 #LoadPlugin logfile
18 LoadPlugin syslog
20 #<Plugin logfile>
21 #       LogLevel "info"
22 #       File STDOUT
23 #       Timestamp true
24 #</Plugin>
26 <Plugin syslog>
27         LogLevel info
28 </Plugin>
30 #LoadPlugin apache
31 #LoadPlugin apcups
32 #LoadPlugin ascent
33 LoadPlugin battery
34 LoadPlugin cpu
35 #LoadPlugin cpufreq
36 #LoadPlugin csv
37 LoadPlugin df
38 LoadPlugin disk
39 #LoadPlugin dns
40 #LoadPlugin email
41 LoadPlugin entropy
42 #LoadPlugin exec
43 #LoadPlugin filecount
44 #LoadPlugin hddtemp
45 LoadPlugin interface
46 #LoadPlugin ipmi
47 #LoadPlugin iptables
48 #LoadPlugin ipvs
49 LoadPlugin irq
50 #LoadPlugin libvirt
51 LoadPlugin load
52 #LoadPlugin mbmon
53 #LoadPlugin memcached
54 LoadPlugin memory
55 #LoadPlugin multimeter
56 #LoadPlugin mysql
57 #LoadPlugin netlink
58 #LoadPlugin network
59 #LoadPlugin nfs
60 #LoadPlugin nginx
61 #LoadPlugin notify_desktop
62 #LoadPlugin notify_email
63 #LoadPlugin ntpd
64 #LoadPlugin nut
65 #LoadPlugin perl
66 #LoadPlugin ping
67 #LoadPlugin postgresql
68 #LoadPlugin powerdns
69 LoadPlugin processes
70 LoadPlugin rrdtool
71 #LoadPlugin sensors
72 #LoadPlugin serial
73 #LoadPlugin snmp
74 LoadPlugin swap
75 #LoadPlugin tail
76 #LoadPlugin tcpconns
77 #LoadPlugin teamspeak2
78 #LoadPlugin thermal
79 #LoadPlugin unixsock
80 LoadPlugin users
81 #LoadPlugin uuid
82 #LoadPlugin vmem
83 #LoadPlugin vserver
84 #LoadPlugin wireless
86 #<Plugin apache>
87 #       URL "http://localhost/status?auto"
88 #       User "www-user"
89 #       Password "secret"
90 #       VerifyPeer false
91 #       VerifyHost false
92 #       CACert "/etc/ssl/ca.crt"
93 #</Plugin>
95 #<Plugin apcups>
96 #       Host "localhost"
97 #       Port "3551"
98 #</Plugin>
100 #<Plugin ascent>
101 #       URL "http://localhost/ascent/status/"
102 #       User "www-user"
103 #       Password "secret"
104 #       CACert "/etc/ssl/ca.crt"
105 #</Plugin>
107 #<Plugin csv>
108 #       DataDir "/var/lib/collectd/csv"
109 #       StoreRates false
110 #</Plugin>
112 #<Plugin df>
113 #       Device "/dev/sda1"
114 #       Device "192.168.0.2:/mnt/nfs"
115 #       MountPoint "/home"
116 #       FSType "ext3"
117 #       IgnoreSelected false
118 #</Plugin>
120 #<Plugin disk>
121 #       Disk "hda"
122 #       Disk "/sda[23]/"
123 #       IgnoreSelected false
124 #</Plugin>
126 #<Plugin dns>
127 #       Interface "eth0"
128 #       IgnoreSource "192.168.0.1"
129 #</Plugin>
131 #<Plugin email>
132 #       SocketGroup "collectd"
133 #       SocketPerms "0770"
134 #       MaxConns 5
135 #</Plugin>
137 #<Plugin exec>
138 #       Exec user "/path/to/exec"
139 #       Exec "user:group" "/path/to/exec"
140 #       NotificationExec user "/path/to/exec"
141 #</Plugin>
143 #<Plugin filecount>
144 #       <Directory "/path/to/dir">
145 #               Instance "foodir"
146 #               Name "*.conf"
147 #               MTime "-5m"
148 #               Size "+10k"
149 #       </Directory>
150 #</Plugin>
152 #<Plugin hddtemp>
153 #       Host "127.0.0.1"
154 #       Port 7634
155 #       TranslateDevicename false
156 #</Plugin>
158 #<Plugin interface>
159 #       Interface "eth0"
160 #       IgnoreSelected false
161 #</Plugin>
163 #<Plugin iptables>
164 #       Chain "table" "chain"
165 #</Plugin>
167 #<Plugin irq>
168 #       Irq 7
169 #       Irq 8
170 #       Irq 9
171 #       IgnoreSelected true
172 #</Plugin>
174 #<Plugin libvirt>
175 #       Connection "xen:///"
176 #       RefreshInterval 60
177 #       Domain "name"
178 #       BlockDevice "name:device"
179 #       InterfaceDevice "name:device"
180 #       IgnoreSelected false
181 #       HostnameFormat name
182 #</Plugin>
184 #<Plugin mbmon>
185 #       Host "127.0.0.1"
186 #       Port 411
187 #</Plugin>
189 #<Plugin memcached>
190 #       Host "127.0.0.1"
191 #       Port "11211"
192 #</Plugin>
194 #<Plugin mysql>
195 #       Host "database.serv.er"
196 #       User "db_user"
197 #       Password "secret"
198 #       Database "db_name"
199 #</Plugin>
201 #<Plugin netlink>
202 #       Interface "All"
203 #       VerboseInterface "All"
204 #       QDisc "eth0" "pfifo_fast-1:0"
205 #       Class "ppp0" "htb-1:10"
206 #       Filter "ppp0" "u32-1:0"
207 #       IgnoreSelected false
208 #</Plugin>
210 #<Plugin network>
211 #       Server "ff18::efc0:4a42" "25826"
212 #       Server "239.192.74.66" "25826"
213 #       Listen "ff18::efc0:4a42" "25826"
214 #       Listen "239.192.74.66" "25826"
215 #       TimeToLive "128"
216 #       Forward false
217 #       CacheFlush 1800
218 #</Plugin>
220 #<Plugin nginx>
221 #       URL "http://localhost/status?auto"
222 #       User "www-user"
223 #       Password "secret"
224 #       VerifyPeer false
225 #       VerifyHost false
226 #       CACert "/etc/ssl/ca.crt"
227 #</Plugin>
229 #<Plugin notify_desktop>
230 #       OkayTimeout 1000
231 #       WarningTimeout 5000
232 #       FailureTimeout 0
233 #</Plugin>
235 #<Plugin notify_email>
236 #       SMTPServer "localhost"
237 #       SMTPPort 25
238 #       SMTPUser "my-username"
239 #       SMTPPassword "my-password"
240 #       From "collectd@main0server.com"
241 #       # <WARNING/FAILURE/OK> on <hostname>.
242 #       # Beware! Do not use not more than two placeholders (%)!
243 #       Subject "[collectd] %s on %s!"
244 #       Recipient "email1@domain1.net"
245 #       Recipient "email2@domain2.com"
246 #</Plugin>
248 #<Plugin ntpd>
249 #       Host "localhost"
250 #       Port 123
251 #       ReverseLookups false
252 #</Plugin>
254 #<Plugin nut>
255 #       UPS "upsname@hostname:port"
256 #</Plugin>
258 #<Plugin perl>
259 #       IncludeDir "/my/include/path"
260 #       BaseName "Collectd::Plugin"
261 #       EnableDebugger ""
262 #       LoadPlugin "foo"
263 #       LoadPlugin "bar"
264 #</Plugin>
266 #<Plugin ping>
267 #       Host "host.foo.bar"
268 #       Host "host.baz.qux"
269 #       TTL 255
270 #</Plugin>
272 #<Plugin postgresql>
273 #       <Query magic>
274 #               Query "SELECT magic, spells FROM wizard WHERE host = $1;"
275 #               Param hostname
276 #               Column gauge magic
277 #               Column counter spells
278 #       </Query>
280 #       <Database foo>
281 #               Host "hostname"
282 #               Port 5432
283 #               User "username"
284 #               Password "secret"
286 #               SSLMode "prefer"
287 #               KRBSrvName "kerberos_service_name"
289 #               Query magic
290 #       </Database>
292 #       <Database bar>
293 #               Service "service_name"
294 #       </Database>
295 #</Plugin>
297 #<Plugin powerdns>
298 #       <Server "server_name">
299 #               Collect "latency"
300 #               Collect "udp-answers" "udp-queries"
301 #               Socket "/var/run/pdns.controlsocket"
302 #       </Server>
303 #       <Recursor "recursor_name">
304 #               Collect "questions"
305 #               Collect "cache-hits" "cache-misses"
306 #               Socket "/var/run/pdns_recursor.controlsocket"
307 #       </Recursor>
308 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
309 #</Plugin>
311 #<Plugin processes>
312 #       Process "name"
313 #</Plugin>
315 <Plugin rrdtool>
316         DataDir "/var/lib/collectd/rrd"
317 #       CacheTimeout 120
318 #       CacheFlush 900
320 # The following settings are rather advanced
321 # and should usually not be touched:
322 #       StepSize 10
323 #       HeartBeat 20
324 #       RRARows 1200
325 #       RRATimespan 158112000
326 #       XFF 0.1
327 </Plugin>
329 #<Plugin sensors>
330 #       Sensor "it8712-isa-0290/temperature-temp1"
331 #       Sensor "it8712-isa-0290/fanspeed-fan3"
332 #       Sensor "it8712-isa-0290/voltage-in8"
333 #       IgnoreSelected false
334 #</Plugin>
336 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
337 # comprehensive sample configuration.
338 #<Plugin snmp>
339 #       <Data "powerplus_voltge_input">
340 #               Type "voltage"
341 #               Table false
342 #               Instance "input_line1"
343 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
344 #       </Data>
345 #       <Data "hr_users">
346 #               Type "users"
347 #               Table false
348 #               Instance ""
349 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
350 #       </Data>
351 #       <Data "std_traffic">
352 #               Type "if_octets"
353 #               Table true
354 #               Instance "IF-MIB::ifDescr"
355 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
356 #       </Data>
358 #       <Host "some.switch.mydomain.org">
359 #               Address "192.168.0.2"
360 #               Version 1
361 #               Community "community_string"
362 #               Collect "std_traffic"
363 #               Inverval 120
364 #       </Host>
365 #       <Host "some.server.mydomain.org">
366 #               Address "192.168.0.42"
367 #               Version 2
368 #               Community "another_string"
369 #               Collect "std_traffic" "hr_users"
370 #       </Host>
371 #       <Host "some.ups.mydomain.org">
372 #               Address "192.168.0.3"
373 #               Version 1
374 #               Community "more_communities"
375 #               Collect "powerplus_voltge_input"
376 #               Interval 300
377 #       </Host>
378 #</Plugin>
380 #<Plugin "tail">
381 #       <File "/var/log/exim4/mainlog">
382 #               Instance "exim"
383 #               <Match>
384 #                       Regex "S=([1-9][0-9]*)"
385 #                       DSType "CounterAdd"
386 #                       Type "ipt_bytes"
387 #                       Instance "total"
388 #               </Match>
389 #               <Match>
390 #                       Regex "\\<R=local_user\\>"
391 #                       DSType "CounterInc"
392 #                       Type "email_count"
393 #                       Instance "local_user"
394 #               </Match>
395 #       </File>
396 #</Plugin>
398 #<Plugin tcpconns>
399 #       ListeningPorts false
400 #       LocalPort "25"
401 #       RemotePort "25"
402 #</Plugin>
404 #<Plugin teamspeak2>
405 #       Host "127.0.0.1"
406 #       Port "51234"
407 #       Server "8767"
408 #</Plugin>
410 #<Plugin thermal>
411 #       ForceUseProcfs false
412 #       Device "THRM"
413 #       IgnoreSelected false
414 #</Plugin>
416 #<Plugin unixsock>
417 #       SocketFile "/var/run/collectd-unixsock"
418 #       SocketGroup "collectd"
419 #       SocketPerms "0660"
420 #</Plugin>
422 #<Plugin uuid>
423 #       UUIDFile "/etc/uuid"
424 #</Plugin>
426 #<Plugin vmem>
427 #       Verbose false
428 #</Plugin>
430 Include "/etc/collectd/thresholds.conf"