Code

315af596506bb7d771f224851a4d6a81eef5b7d9
[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 bind
35 #LoadPlugin conntrack
36 LoadPlugin cpu
37 #LoadPlugin cpufreq
38 #LoadPlugin csv
39 #LoadPlugin curl
40 #LoadPlugin dbi
41 LoadPlugin df
42 LoadPlugin disk
43 #LoadPlugin dns
44 #LoadPlugin email
45 LoadPlugin entropy
46 #LoadPlugin exec
47 #LoadPlugin filecount
48 #LoadPlugin fscache
49 #LoadPlugin hddtemp
50 LoadPlugin interface
51 #LoadPlugin ipmi
52 #LoadPlugin iptables
53 #LoadPlugin ipvs
54 LoadPlugin irq
55 #LoadPlugin java
56 #LoadPlugin libvirt
57 LoadPlugin load
58 #LoadPlugin mbmon
59 #LoadPlugin memcached
60 LoadPlugin memory
61 #LoadPlugin multimeter
62 #LoadPlugin mysql
63 #LoadPlugin netlink
64 #LoadPlugin network
65 #LoadPlugin nfs
66 #LoadPlugin nginx
67 #LoadPlugin notify_desktop
68 #LoadPlugin notify_email
69 #LoadPlugin ntpd
70 #LoadPlugin nut
71 #LoadPlugin openvpn
72 #LoadPlugin perl
73 #LoadPlugin ping
74 #LoadPlugin postgresql
75 #LoadPlugin powerdns
76 LoadPlugin processes
77 #LoadPlugin protocols
78 LoadPlugin rrdtool
79 #LoadPlugin sensors
80 #LoadPlugin serial
81 #LoadPlugin snmp
82 LoadPlugin swap
83 #LoadPlugin table
84 #LoadPlugin tail
85 #LoadPlugin tcpconns
86 #LoadPlugin teamspeak2
87 #LoadPlugin ted
88 #LoadPlugin thermal
89 #LoadPlugin unixsock
90 #LoadPlugin uptime
91 LoadPlugin users
92 #LoadPlugin uuid
93 #LoadPlugin vmem
94 #LoadPlugin vserver
95 #LoadPlugin wireless
97 #<Plugin apache>
98 #       URL "http://localhost/status?auto"
99 #       User "www-user"
100 #       Password "secret"
101 #       VerifyPeer false
102 #       VerifyHost false
103 #       CACert "/etc/ssl/ca.crt"
104 #</Plugin>
106 #<Plugin apcups>
107 #       Host "localhost"
108 #       Port "3551"
109 #</Plugin>
111 #<Plugin ascent>
112 #       URL "http://localhost/ascent/status/"
113 #       User "www-user"
114 #       Password "secret"
115 #       CACert "/etc/ssl/ca.crt"
116 #</Plugin>
118 #<Plugin "bind">
119 #       URL "http://localhost:8053/"
120 #       OpCodes true
121 #       QTypes true
123 #       ServerStats true
124 #       ZoneMaintStats true
125 #       ResolverStats false
126 #       MemoryStats true
128 #       <View "_default">
129 #               QTypes true
130 #               ResolverStats true
131 #               CacheRRSets true
133 #               Zone "127.in-addr.arpa/IN"
134 #       </View>
135 #</Plugin>
137 #<Plugin csv>
138 #       DataDir "/var/lib/collectd/csv"
139 #       StoreRates false
140 #</Plugin>
142 #<Plugin curl>
143 #       <Page "stock_quotes">
144 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
145 #               User "foo"
146 #               Password "bar"
147 #               <Match>
148 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
149 #                       DSType "GaugeAverage"
150 #                       Type "stock_value"
151 #                       Instance "AMD"
152 #               </Match>
153 #       </Page>
154 #</Plugin>
156 #<Plugin dbi>
157 #       <Query "num_of_customers">
158 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
159 #                               FROM customers_tbl"
160 #               <Result>
161 #                       Type "gauge"
162 #                       InstancesFrom "c_key"
163 #                       ValuesFrom "c_value"
164 #               </Result>
165 #       </Query>
167 #       <Database "customers_db">
168 #               Driver "mysql"
169 #               DriverOption "host" "localhost"
170 #               DriverOption "username" "collectd"
171 #               DriverOption "password" "secret"
172 #               DriverOption "dbname" "custdb0"
173 #               #SelectDB "custdb0"
174 #               Query "num_of_customers"
175 #               #Query "..."
176 #       </Database>
177 #</Plugin>
179 #<Plugin df>
180 #       Device "/dev/sda1"
181 #       Device "192.168.0.2:/mnt/nfs"
182 #       MountPoint "/home"
183 #       FSType "ext3"
184 #       IgnoreSelected false
185 #</Plugin>
187 #<Plugin disk>
188 #       Disk "hda"
189 #       Disk "/sda[23]/"
190 #       IgnoreSelected false
191 #</Plugin>
193 #<Plugin dns>
194 #       Interface "eth0"
195 #       IgnoreSource "192.168.0.1"
196 #</Plugin>
198 #<Plugin email>
199 #       SocketGroup "collectd"
200 #       SocketPerms "0770"
201 #       MaxConns 5
202 #</Plugin>
204 #<Plugin exec>
205 #       Exec user "/path/to/exec"
206 #       Exec "user:group" "/path/to/exec"
207 #       NotificationExec user "/path/to/exec"
208 #</Plugin>
210 #<Plugin filecount>
211 #       <Directory "/path/to/dir">
212 #               Instance "foodir"
213 #               Name "*.conf"
214 #               MTime "-5m"
215 #               Size "+10k"
216 #       </Directory>
217 #</Plugin>
219 #<Plugin hddtemp>
220 #       Host "127.0.0.1"
221 #       Port 7634
222 #       TranslateDevicename false
223 #</Plugin>
225 #<Plugin interface>
226 #       Interface "eth0"
227 #       IgnoreSelected false
228 #</Plugin>
230 #<Plugin iptables>
231 #       Chain "table" "chain"
232 #</Plugin>
234 #<Plugin irq>
235 #       Irq 7
236 #       Irq 8
237 #       Irq 9
238 #       IgnoreSelected true
239 #</Plugin>
241 #<Plugin java>
242 #       JVMArg "-verbose:jni"
244 #       LoadPlugin "org.collectd.java.Foobar"
245 #       <Plugin "org.collectd.java.Foobar">
246 #               Foo "Bar"
247 #       </Plugin>
248 #</Plugin>
250 #<Plugin libvirt>
251 #       Connection "xen:///"
252 #       RefreshInterval 60
253 #       Domain "name"
254 #       BlockDevice "name:device"
255 #       InterfaceDevice "name:device"
256 #       IgnoreSelected false
257 #       HostnameFormat name
258 #</Plugin>
260 #<Plugin mbmon>
261 #       Host "127.0.0.1"
262 #       Port 411
263 #</Plugin>
265 #<Plugin memcached>
266 #       Host "127.0.0.1"
267 #       Port "11211"
268 #</Plugin>
270 #<Plugin mysql>
271 #       Host "database.serv.er"
272 #       User "db_user"
273 #       Password "secret"
274 #       Database "db_name"
275 #</Plugin>
277 #<Plugin netlink>
278 #       Interface "All"
279 #       VerboseInterface "All"
280 #       QDisc "eth0" "pfifo_fast-1:0"
281 #       Class "ppp0" "htb-1:10"
282 #       Filter "ppp0" "u32-1:0"
283 #       IgnoreSelected false
284 #</Plugin>
286 #<Plugin network>
287 #       Server "ff18::efc0:4a42" "25826"
288 #       Server "239.192.74.66" "25826"
289 #       Listen "ff18::efc0:4a42" "25826"
290 #       Listen "239.192.74.66" "25826"
291 #       TimeToLive "128"
292 #       Forward false
293 #       CacheFlush 1800
294 #</Plugin>
296 #<Plugin nginx>
297 #       URL "http://localhost/status?auto"
298 #       User "www-user"
299 #       Password "secret"
300 #       VerifyPeer false
301 #       VerifyHost false
302 #       CACert "/etc/ssl/ca.crt"
303 #</Plugin>
305 #<Plugin notify_desktop>
306 #       OkayTimeout 1000
307 #       WarningTimeout 5000
308 #       FailureTimeout 0
309 #</Plugin>
311 #<Plugin notify_email>
312 #       SMTPServer "localhost"
313 #       SMTPPort 25
314 #       SMTPUser "my-username"
315 #       SMTPPassword "my-password"
316 #       From "collectd@main0server.com"
317 #       # <WARNING/FAILURE/OK> on <hostname>.
318 #       # Beware! Do not use not more than two placeholders (%)!
319 #       Subject "[collectd] %s on %s!"
320 #       Recipient "email1@domain1.net"
321 #       Recipient "email2@domain2.com"
322 #</Plugin>
324 #<Plugin ntpd>
325 #       Host "localhost"
326 #       Port 123
327 #       ReverseLookups false
328 #</Plugin>
330 #<Plugin nut>
331 #       UPS "upsname@hostname:port"
332 #</Plugin>
334 #<Plugin openvpn>
335 #       StatusFile "/etc/openvpn/openvpn-status.log"
336 #</Plugin>
338 #<Plugin perl>
339 #       IncludeDir "/my/include/path"
340 #       BaseName "Collectd::Plugin"
341 #       EnableDebugger ""
342 #       LoadPlugin "foo"
343 #       LoadPlugin "bar"
345 #       <Plugin foo>
346 #               Foo "Bar"
347 #               Qux "Baz"
348 #       </Plugin>
349 #</Plugin>
351 #<Plugin ping>
352 #       Host "host.foo.bar"
353 #       Host "host.baz.qux"
354 #       TTL 255
355 #</Plugin>
357 #<Plugin postgresql>
358 #       <Query magic>
359 #               Query "SELECT magic, spells FROM wizard WHERE host = $1;"
360 #               Param hostname
361 #               Column gauge magic
362 #               Column counter spells
363 #       </Query>
365 #       <Database foo>
366 #               Host "hostname"
367 #               Port 5432
368 #               User "username"
369 #               Password "secret"
371 #               SSLMode "prefer"
372 #               KRBSrvName "kerberos_service_name"
374 #               Query magic
375 #       </Database>
377 #       <Database bar>
378 #               Service "service_name"
379 #       </Database>
380 #</Plugin>
382 #<Plugin powerdns>
383 #       <Server "server_name">
384 #               Collect "latency"
385 #               Collect "udp-answers" "udp-queries"
386 #               Socket "/var/run/pdns.controlsocket"
387 #       </Server>
388 #       <Recursor "recursor_name">
389 #               Collect "questions"
390 #               Collect "cache-hits" "cache-misses"
391 #               Socket "/var/run/pdns_recursor.controlsocket"
392 #       </Recursor>
393 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
394 #</Plugin>
396 #<Plugin processes>
397 #       Process "name"
398 #</Plugin>
400 #<Plugin protocols>
401 #       Value "/^Tcp:/"
402 #       IgnoreSelected false
403 #</Plugin>
405 <Plugin rrdtool>
406         DataDir "/var/lib/collectd/rrd"
407 #       CacheTimeout 120
408 #       CacheFlush 900
410 # The following settings are rather advanced
411 # and should usually not be touched:
412 #       StepSize 10
413 #       HeartBeat 20
414 #       RRARows 1200
415 #       RRATimespan 158112000
416 #       XFF 0.1
417 </Plugin>
419 #<Plugin sensors>
420 #       Sensor "it8712-isa-0290/temperature-temp1"
421 #       Sensor "it8712-isa-0290/fanspeed-fan3"
422 #       Sensor "it8712-isa-0290/voltage-in8"
423 #       IgnoreSelected false
424 #</Plugin>
426 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
427 # comprehensive sample configuration.
428 #<Plugin snmp>
429 #       <Data "powerplus_voltge_input">
430 #               Type "voltage"
431 #               Table false
432 #               Instance "input_line1"
433 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
434 #       </Data>
435 #       <Data "hr_users">
436 #               Type "users"
437 #               Table false
438 #               Instance ""
439 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
440 #       </Data>
441 #       <Data "std_traffic">
442 #               Type "if_octets"
443 #               Table true
444 #               Instance "IF-MIB::ifDescr"
445 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
446 #       </Data>
448 #       <Host "some.switch.mydomain.org">
449 #               Address "192.168.0.2"
450 #               Version 1
451 #               Community "community_string"
452 #               Collect "std_traffic"
453 #               Inverval 120
454 #       </Host>
455 #       <Host "some.server.mydomain.org">
456 #               Address "192.168.0.42"
457 #               Version 2
458 #               Community "another_string"
459 #               Collect "std_traffic" "hr_users"
460 #       </Host>
461 #       <Host "some.ups.mydomain.org">
462 #               Address "192.168.0.3"
463 #               Version 1
464 #               Community "more_communities"
465 #               Collect "powerplus_voltge_input"
466 #               Interval 300
467 #       </Host>
468 #</Plugin>
470 #<Plugin table>
471 #       <Table "/proc/slabinfo">
472 #               Instance "slabinfo"
473 #               Separator " "
474 #               <Result>
475 #                       Type gauge
476 #                       InstancePrefix "active_objs"
477 #                       InstancesFrom 0
478 #                       ValuesFrom 1
479 #               </Result>
480 #               <Result>
481 #                       Type gauge
482 #                       InstancePrefix "objperslab"
483 #                       InstancesFrom 0
484 #                       ValuesFrom 4
485 #               </Result>
486 #       </Table>
487 #</Plugin>
489 #<Plugin "tail">
490 #       <File "/var/log/exim4/mainlog">
491 #               Instance "exim"
492 #               <Match>
493 #                       Regex "S=([1-9][0-9]*)"
494 #                       DSType "CounterAdd"
495 #                       Type "ipt_bytes"
496 #                       Instance "total"
497 #               </Match>
498 #               <Match>
499 #                       Regex "\\<R=local_user\\>"
500 #                       DSType "CounterInc"
501 #                       Type "counter"
502 #                       Instance "local_user"
503 #               </Match>
504 #       </File>
505 #</Plugin>
507 #<Plugin tcpconns>
508 #       ListeningPorts false
509 #       LocalPort "25"
510 #       RemotePort "25"
511 #</Plugin>
513 #<Plugin teamspeak2>
514 #       Host "127.0.0.1"
515 #       Port "51234"
516 #       Server "8767"
517 #</Plugin>
519 #<Plugin ted>
520 #       Device "/dev/ttyUSB0"
521 #       Retries 0
522 #</Plugin>
524 #<Plugin thermal>
525 #       ForceUseProcfs false
526 #       Device "THRM"
527 #       IgnoreSelected false
528 #</Plugin>
530 #<Plugin unixsock>
531 #       SocketFile "/var/run/collectd-unixsock"
532 #       SocketGroup "collectd"
533 #       SocketPerms "0660"
534 #</Plugin>
536 #<Plugin uuid>
537 #       UUIDFile "/etc/uuid"
538 #</Plugin>
540 #<Plugin vmem>
541 #       Verbose false
542 #</Plugin>
544 Include "/etc/collectd/filters.conf"
545 Include "/etc/collectd/thresholds.conf"