Code

8ef39ee82a8e83108ae34a08f32f0dc1042a49c0
[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-core/README.Debian.plugins
7 # before enabling any more plugins.
9 #Hostname "localhost"
10 FQDNLookup true
11 #BaseDir "/var/lib/collectd"
12 #PluginDir "/usr/lib/collectd"
13 #TypesDB "/usr/share/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 curl_json
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 madwifi
59 #LoadPlugin mbmon
60 #LoadPlugin memcachec
61 #LoadPlugin memcached
62 LoadPlugin memory
63 #LoadPlugin multimeter
64 #LoadPlugin mysql
65 #LoadPlugin netlink
66 #LoadPlugin network
67 #LoadPlugin nfs
68 #LoadPlugin nginx
69 #LoadPlugin notify_desktop
70 #LoadPlugin notify_email
71 #LoadPlugin ntpd
72 #LoadPlugin nut
73 #LoadPlugin olsrd
74 #LoadPlugin openvpn
75 #LoadPlugin perl
76 #LoadPlugin ping
77 #LoadPlugin postgresql
78 #LoadPlugin powerdns
79 LoadPlugin processes
80 #LoadPlugin protocols
81 LoadPlugin rrdtool
82 #LoadPlugin sensors
83 #LoadPlugin serial
84 #LoadPlugin snmp
85 LoadPlugin swap
86 #LoadPlugin table
87 #LoadPlugin tail
88 #LoadPlugin tcpconns
89 #LoadPlugin teamspeak2
90 #LoadPlugin ted
91 #LoadPlugin thermal
92 #LoadPlugin unixsock
93 #LoadPlugin uptime
94 LoadPlugin users
95 #LoadPlugin uuid
96 #LoadPlugin vmem
97 #LoadPlugin vserver
98 #LoadPlugin wireless
99 #LoadPlugin write_http
101 #<Plugin apache>
102 #       <Instance "foo">
103 #               URL "http://localhost/server-status?auto"
104 #               User "www-user"
105 #               Password "secret"
106 #               VerifyPeer false
107 #               VerifyHost false
108 #               CACert "/etc/ssl/ca.crt"
109 #               Server "apache"
110 #       </Instance>
112 #       <Instance "bar">
113 #               URL "http://some.domain.tld/status?auto"
114 #               Host "some.domain.tld"
115 #               Server "lighttpd"
116 #       </Instance>
117 #</Plugin>
119 #<Plugin apcups>
120 #       Host "localhost"
121 #       Port "3551"
122 #</Plugin>
124 #<Plugin ascent>
125 #       URL "http://localhost/ascent/status/"
126 #       User "www-user"
127 #       Password "secret"
128 #       VerifyPeer false
129 #       VerifyHost false
130 #       CACert "/etc/ssl/ca.crt"
131 #</Plugin>
133 #<Plugin "bind">
134 #       URL "http://localhost:8053/"
136 #       OpCodes true
137 #       QTypes true
138 #       ServerStats true
139 #       ZoneMaintStats true
140 #       ResolverStats false
141 #       MemoryStats true
143 #       <View "_default">
144 #               QTypes true
145 #               ResolverStats true
146 #               CacheRRSets true
148 #               Zone "127.in-addr.arpa/IN"
149 #       </View>
150 #</Plugin>
152 #<Plugin csv>
153 #       DataDir "/var/lib/collectd/csv"
154 #       StoreRates false
155 #</Plugin>
157 #<Plugin curl>
158 #       <Page "stock_quotes">
159 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
160 #               User "foo"
161 #               Password "bar"
162 #               VerifyPeer false
163 #               VerifyHost false
164 #               CACert "/etc/ssl/ca.crt"
165 #               <Match>
166 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
167 #                       DSType "GaugeAverage"
168 #                       Type "stock_value"
169 #                       Instance "AMD"
170 #               </Match>
171 #       </Page>
172 #</Plugin>
174 #<Plugin curl_json>
175 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
176 #  <URL "http://localhost:5984/_stats">
177 #    Instance "httpd"
178 #    <Key "httpd/requests/count">
179 #      Type "http_requests"
180 #    </Key>
182 #    <Key "httpd_request_methods/*/count">
183 #      Type "http_request_methods"
184 #    </Key>
186 #    <Key "httpd_status_codes/*/count">
187 #      Type "http_response_codes"
188 #    </Key>
189 #  </URL>
190 ## Database status metrics:
191 #  <URL "http://localhost:5984/_all_dbs">
192 #    Instance "dbs"
193 #    <Key "*/doc_count">
194 #      Type "gauge"
195 #    </Key>
196 #    <Key "*/doc_del_count">
197 #      Type "counter"
198 #    </Key>
199 #    <Key "*/disk_size">
200 #      Type "bytes"
201 #    </Key>
202 #  </URL>
203 #</Plugin>
205 #<Plugin df>
206 #       Device "/dev/sda1"
207 #       Device "192.168.0.2:/mnt/nfs"
208 #       MountPoint "/home"
209 #       FSType "ext3"
210 #       IgnoreSelected false
211 #       ReportByDevice false
212 #</Plugin>
214 #<Plugin disk>
215 #       Disk "hda"
216 #       Disk "/sda[23]/"
217 #       IgnoreSelected false
218 #</Plugin>
220 #<Plugin dns>
221 #       Interface "eth0"
222 #       IgnoreSource "192.168.0.1"
223 #       SelectNumericQueryTypes false
224 #</Plugin>
226 #<Plugin email>
227 #       SocketFile "/var/run/collectd-email"
228 #       SocketGroup "collectd"
229 #       SocketPerms "0770"
230 #       MaxConns 5
231 #</Plugin>
233 #<Plugin exec>
234 #       Exec user "/path/to/exec"
235 #       Exec "user:group" "/path/to/exec"
236 #       NotificationExec user "/path/to/exec"
237 #</Plugin>
239 #<Plugin filecount>
240 #       <Directory "/path/to/dir">
241 #               Instance "foodir"
242 #               Name "*.conf"
243 #               MTime "-5m"
244 #               Size "+10k"
245 #               Recursive true
246 #       </Directory>
247 #</Plugin>
249 #<Plugin hddtemp>
250 #       Host "127.0.0.1"
251 #       Port 7634
252 #       TranslateDevicename false
253 #</Plugin>
255 #<Plugin interface>
256 #       Interface "eth0"
257 #       IgnoreSelected false
258 #</Plugin>
260 #<Plugin ipmi>
261 #       Sensor "some_sensor"
262 #       Sensor "another_one"
263 #       IgnoreSelected false
264 #       NotifySensorAdd false
265 #       NotifySensorRemove true
266 #       NotifySensorNotPresent false
267 #</Plugin>
269 #<Plugin iptables>
270 #       Chain "table" "chain"
271 #</Plugin>
273 #<Plugin irq>
274 #       Irq 7
275 #       Irq 8
276 #       Irq 9
277 #       IgnoreSelected true
278 #</Plugin>
280 #<Plugin java>
281 #       JVMArg "-verbose:jni"
283 #       LoadPlugin "org.collectd.java.GenericJMX"
284 #       <Plugin "GenericJMX">
285 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
286 #               # for an example config.
287 #       </Plugin>
288 #</Plugin>
290 #<Plugin libvirt>
291 #       Connection "xen:///"
292 #       RefreshInterval 60
293 #       Domain "name"
294 #       BlockDevice "name:device"
295 #       InterfaceDevice "name:device"
296 #       IgnoreSelected false
297 #       HostnameFormat name
298 #</Plugin>
300 #<Plugin madwifi>
301 #       Interface "wlan0"
302 #       IgnoreSelected false
303 #       Source "SysFS"
304 #       WatchSet "None"
305 #       WatchAdd "node_octets"
306 #       WatchAdd "node_rssi"
307 #       WatchAdd "is_rx_acl"
308 #       WatchAdd "is_scan_active"
309 #</Plugin>
311 #<Plugin mbmon>
312 #       Host "127.0.0.1"
313 #       Port 411
314 #</Plugin>
316 #<Plugin memcachec>
317 #       <Page "plugin_instance">
318 #               Server "localhost"
319 #               Key "page_key"
320 #               <Match>
321 #                       Regex "(\\d+) bytes sent"
322 #                       DSType CounterAdd
323 #                       Type "ipt_octets"
324 #                       Instance "type_instance"
325 #               </Match>
326 #       </Page>
327 #</Plugin>
329 #<Plugin memcached>
330 #       Socket "/var/run/memcached.sock"
331 # or:
332 #       Host "127.0.0.1"
333 #       Port "11211"
334 #</Plugin>
336 #<Plugin mysql>
337 #       <Database db_name>
338 #               Host "database.serv.er"
339 #               Port "3306"
340 #               User "db_user"
341 #               Password "secret"
342 #               Database "db_name"
343 #               MasterStats true
344 #       </Database>
346 #       <Database db_name2>
347 #               Host "localhost"
348 #               Socket "/var/run/mysql/mysqld.sock"
349 #               SlaveStats true
350 #               SlaveNotifications true
351 #       </Database>
352 #</Plugin>
354 #<Plugin netlink>
355 #       Interface "All"
356 #       VerboseInterface "All"
357 #       QDisc "eth0" "pfifo_fast-1:0"
358 #       Class "ppp0" "htb-1:10"
359 #       Filter "ppp0" "u32-1:0"
360 #       IgnoreSelected false
361 #</Plugin>
363 #<Plugin network>
364 #       # client setup:
365 #       Server "ff18::efc0:4a42" "25826"
366 #       <Server "239.192.74.66" "25826">
367 #               SecurityLevel Encrypt
368 #               Username "user"
369 #               Password "secret"
370 #       </Server>
371 #       TimeToLive "128"
373 #       # server setup:
374 #       Listen "ff18::efc0:4a42" "25826"
375 #       <Listen "239.192.74.66" "25826">
376 #               SecurityLevel Sign
377 #               AuthFile "/etc/collectd/passwd"
378 #       </Listen>
379 #       MaxPacketSize 1024
381 #       # proxy setup (client and server as above):
382 #       Forward true
383 #</Plugin>
385 #<Plugin nginx>
386 #       URL "http://localhost/status?auto"
387 #       User "www-user"
388 #       Password "secret"
389 #       VerifyPeer false
390 #       VerifyHost false
391 #       CACert "/etc/ssl/ca.crt"
392 #</Plugin>
394 #<Plugin notify_desktop>
395 #       OkayTimeout 1000
396 #       WarningTimeout 5000
397 #       FailureTimeout 0
398 #</Plugin>
400 #<Plugin notify_email>
401 #       SMTPServer "localhost"
402 #       SMTPPort 25
403 #       SMTPUser "my-username"
404 #       SMTPPassword "my-password"
405 #       From "collectd@main0server.com"
406 #       # <WARNING/FAILURE/OK> on <hostname>.
407 #       # Beware! Do not use not more than two placeholders (%)!
408 #       Subject "[collectd] %s on %s!"
409 #       Recipient "email1@domain1.net"
410 #       Recipient "email2@domain2.com"
411 #</Plugin>
413 #<Plugin ntpd>
414 #       Host "localhost"
415 #       Port 123
416 #       ReverseLookups false
417 #</Plugin>
419 #<Plugin nut>
420 #       UPS "upsname@hostname:port"
421 #</Plugin>
423 #<Plugin olsrd>
424 #       Host "127.0.0.1"
425 #       Port "2006"
426 #       CollectLinks "Summary"
427 #       CollectRoutes "Summary"
428 #       CollectTopology "Summary"
429 #</Plugin>
431 #<Plugin openvpn>
432 #       StatusFile "/etc/openvpn/openvpn-status.log"
433 #</Plugin>
435 #<Plugin perl>
436 #       IncludeDir "/my/include/path"
437 #       BaseName "Collectd::Plugin"
438 #       EnableDebugger ""
439 #       LoadPlugin "foo"
440 #       LoadPlugin "bar"
442 #       <Plugin foo>
443 #               Foo "Bar"
444 #               Qux "Baz"
445 #       </Plugin>
446 #</Plugin>
448 #<Plugin ping>
449 #       Host "host.foo.bar"
450 #       Host "host.baz.qux"
451 #       Interval 1.0
452 #       Timeout 0.9
453 #       TTL 255
454 #</Plugin>
456 #<Plugin postgresql>
457 #       <Query magic>
458 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
459 #               Param hostname
461 #               <Result>
462 #                       Type gauge
463 #                       InstancePrefix "magic"
464 #                       ValuesFrom "magic"
465 #               </Result>
466 #       </Query>
468 #       <Query rt36_tickets>
469 #               Statement "SELECT COUNT(type) AS count, type \
470 #                                 FROM (SELECT CASE \
471 #                                              WHEN resolved = 'epoch' THEN 'open' \
472 #                                              ELSE 'resolved' END AS type \
473 #                                              FROM tickets) type \
474 #                                 GROUP BY type;"
476 #               <Result>
477 #                       Type counter
478 #                       InstancePrefix "rt36_tickets"
479 #                       InstancesFrom "type"
480 #                       ValuesFrom "count"
481 #               </Result>
482 #       </Query>
484 #       <Database foo>
485 #               Host "hostname"
486 #               Port 5432
487 #               User "username"
488 #               Password "secret"
490 #               SSLMode "prefer"
491 #               KRBSrvName "kerberos_service_name"
493 #               Query magic
494 #       </Database>
496 #       <Database bar>
497 #               Service "service_name"
499 #               Query backend # predefined
500 #               Query rt36_tickets
501 #       </Database>
502 #</Plugin>
504 #<Plugin powerdns>
505 #       <Server "server_name">
506 #               Collect "latency"
507 #               Collect "udp-answers" "udp-queries"
508 #               Socket "/var/run/pdns.controlsocket"
509 #       </Server>
510 #       <Recursor "recursor_name">
511 #               Collect "questions"
512 #               Collect "cache-hits" "cache-misses"
513 #               Socket "/var/run/pdns_recursor.controlsocket"
514 #       </Recursor>
515 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
516 #</Plugin>
518 #<Plugin processes>
519 #       Process "name"
520 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
521 #</Plugin>
523 #<Plugin protocols>
524 #       Value "/^Tcp:/"
525 #       IgnoreSelected false
526 #</Plugin>
528 <Plugin rrdtool>
529         DataDir "/var/lib/collectd/rrd"
530 #       CacheTimeout 120
531 #       CacheFlush 900
532 #       WritesPerSecond 30
533 #       RandomTimeout 0
535 # The following settings are rather advanced
536 # and should usually not be touched:
537 #       StepSize 10
538 #       HeartBeat 20
539 #       RRARows 1200
540 #       RRATimespan 158112000
541 #       XFF 0.1
542 </Plugin>
544 #<Plugin sensors>
545 #       Sensor "it8712-isa-0290/temperature-temp1"
546 #       Sensor "it8712-isa-0290/fanspeed-fan3"
547 #       Sensor "it8712-isa-0290/voltage-in8"
548 #       IgnoreSelected false
549 #</Plugin>
551 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
552 # comprehensive sample configuration.
553 #<Plugin snmp>
554 #       <Data "powerplus_voltge_input">
555 #               Type "voltage"
556 #               Table false
557 #               Instance "input_line1"
558 #               Scale 0.1
559 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
560 #       </Data>
561 #       <Data "hr_users">
562 #               Type "users"
563 #               Table false
564 #               Instance ""
565 #               Shift -1
566 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
567 #       </Data>
568 #       <Data "std_traffic">
569 #               Type "if_octets"
570 #               Table true
571 #               InstancePrefix "traffic"
572 #               Instance "IF-MIB::ifDescr"
573 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
574 #       </Data>
576 #       <Host "some.switch.mydomain.org">
577 #               Address "192.168.0.2"
578 #               Version 1
579 #               Community "community_string"
580 #               Collect "std_traffic"
581 #               Inverval 120
582 #       </Host>
583 #       <Host "some.server.mydomain.org">
584 #               Address "192.168.0.42"
585 #               Version 2
586 #               Community "another_string"
587 #               Collect "std_traffic" "hr_users"
588 #       </Host>
589 #       <Host "some.ups.mydomain.org">
590 #               Address "192.168.0.3"
591 #               Version 1
592 #               Community "more_communities"
593 #               Collect "powerplus_voltge_input"
594 #               Interval 300
595 #       </Host>
596 #</Plugin>
598 #<Plugin table>
599 #       <Table "/proc/slabinfo">
600 #               Instance "slabinfo"
601 #               Separator " "
602 #               <Result>
603 #                       Type gauge
604 #                       InstancePrefix "active_objs"
605 #                       InstancesFrom 0
606 #                       ValuesFrom 1
607 #               </Result>
608 #               <Result>
609 #                       Type gauge
610 #                       InstancePrefix "objperslab"
611 #                       InstancesFrom 0
612 #                       ValuesFrom 4
613 #               </Result>
614 #       </Table>
615 #</Plugin>
617 #<Plugin "tail">
618 #       <File "/var/log/exim4/mainlog">
619 #               Instance "exim"
620 #               <Match>
621 #                       Regex "S=([1-9][0-9]*)"
622 #                       DSType "CounterAdd"
623 #                       Type "ipt_bytes"
624 #                       Instance "total"
625 #               </Match>
626 #               <Match>
627 #                       Regex "\\<R=local_user\\>"
628 #                       DSType "CounterInc"
629 #                       Type "counter"
630 #                       Instance "local_user"
631 #               </Match>
632 #       </File>
633 #</Plugin>
635 #<Plugin tcpconns>
636 #       ListeningPorts false
637 #       LocalPort "25"
638 #       RemotePort "25"
639 #</Plugin>
641 #<Plugin teamspeak2>
642 #       Host "127.0.0.1"
643 #       Port "51234"
644 #       Server "8767"
645 #</Plugin>
647 #<Plugin ted>
648 #       Device "/dev/ttyUSB0"
649 #       Retries 0
650 #</Plugin>
652 #<Plugin thermal>
653 #       ForceUseProcfs false
654 #       Device "THRM"
655 #       IgnoreSelected false
656 #</Plugin>
658 #<Plugin unixsock>
659 #       SocketFile "/var/run/collectd-unixsock"
660 #       SocketGroup "collectd"
661 #       SocketPerms "0660"
662 #</Plugin>
664 #<Plugin uuid>
665 #       UUIDFile "/etc/uuid"
666 #</Plugin>
668 #<Plugin vmem>
669 #       Verbose false
670 #</Plugin>
672 #<Plugin write_http>
673 #       <URL "http://example.com/collectd-post">
674 #               User "collectd"
675 #               Password "secret"
676 #       </URL>
677 #</Plugin>
679 Include "/etc/collectd/filters.conf"
680 Include "/etc/collectd/thresholds.conf"