Code

Updated changelog.
[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 contextswitch
37 LoadPlugin cpu
38 #LoadPlugin cpufreq
39 #LoadPlugin csv
40 #LoadPlugin curl
41 #LoadPlugin curl_json
42 #LoadPlugin dbi
43 LoadPlugin df
44 LoadPlugin disk
45 #LoadPlugin dns
46 #LoadPlugin email
47 LoadPlugin entropy
48 #LoadPlugin exec
49 #LoadPlugin filecount
50 #LoadPlugin fscache
51 #LoadPlugin gmond
52 #LoadPlugin hddtemp
53 LoadPlugin interface
54 #LoadPlugin ipmi
55 #LoadPlugin iptables
56 #LoadPlugin ipvs
57 LoadPlugin irq
58 #LoadPlugin java
59 #LoadPlugin libvirt
60 LoadPlugin load
61 #LoadPlugin madwifi
62 #LoadPlugin mbmon
63 #LoadPlugin memcachec
64 #LoadPlugin memcached
65 LoadPlugin memory
66 #LoadPlugin multimeter
67 #LoadPlugin mysql
68 #LoadPlugin netlink
69 #LoadPlugin network
70 #LoadPlugin nfs
71 #LoadPlugin nginx
72 #LoadPlugin notify_desktop
73 #LoadPlugin notify_email
74 #LoadPlugin ntpd
75 #LoadPlugin nut
76 #LoadPlugin olsrd
77 #LoadPlugin openvpn
78 #LoadPlugin perl
79 #LoadPlugin ping
80 #LoadPlugin postgresql
81 #LoadPlugin powerdns
82 LoadPlugin processes
83 #LoadPlugin protocols
84 #LoadPlugin python
85 LoadPlugin rrdtool
86 #LoadPlugin sensors
87 #LoadPlugin serial
88 #LoadPlugin snmp
89 LoadPlugin swap
90 #LoadPlugin table
91 #LoadPlugin tail
92 #LoadPlugin tcpconns
93 #LoadPlugin teamspeak2
94 #LoadPlugin ted
95 #LoadPlugin thermal
96 #LoadPlugin unixsock
97 #LoadPlugin uptime
98 LoadPlugin users
99 #LoadPlugin uuid
100 #LoadPlugin vmem
101 #LoadPlugin vserver
102 #LoadPlugin wireless
103 #LoadPlugin write_http
105 #<Plugin apache>
106 #       <Instance "foo">
107 #               URL "http://localhost/server-status?auto"
108 #               User "www-user"
109 #               Password "secret"
110 #               VerifyPeer false
111 #               VerifyHost false
112 #               CACert "/etc/ssl/ca.crt"
113 #               Server "apache"
114 #       </Instance>
116 #       <Instance "bar">
117 #               URL "http://some.domain.tld/status?auto"
118 #               Host "some.domain.tld"
119 #               Server "lighttpd"
120 #       </Instance>
121 #</Plugin>
123 #<Plugin apcups>
124 #       Host "localhost"
125 #       Port "3551"
126 #</Plugin>
128 #<Plugin ascent>
129 #       URL "http://localhost/ascent/status/"
130 #       User "www-user"
131 #       Password "secret"
132 #       VerifyPeer false
133 #       VerifyHost false
134 #       CACert "/etc/ssl/ca.crt"
135 #</Plugin>
137 #<Plugin "bind">
138 #       URL "http://localhost:8053/"
140 #       OpCodes true
141 #       QTypes true
142 #       ServerStats true
143 #       ZoneMaintStats true
144 #       ResolverStats false
145 #       MemoryStats true
147 #       <View "_default">
148 #               QTypes true
149 #               ResolverStats true
150 #               CacheRRSets true
152 #               Zone "127.in-addr.arpa/IN"
153 #       </View>
154 #</Plugin>
156 #<Plugin csv>
157 #       DataDir "/var/lib/collectd/csv"
158 #       StoreRates false
159 #</Plugin>
161 #<Plugin curl>
162 #       <Page "stock_quotes">
163 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
164 #               User "foo"
165 #               Password "bar"
166 #               VerifyPeer false
167 #               VerifyHost false
168 #               CACert "/etc/ssl/ca.crt"
169 #               MeasureResponseTime false
170 #               <Match>
171 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
172 #                       DSType "GaugeAverage"
173 #                       Type "stock_value"
174 #                       Instance "AMD"
175 #               </Match>
176 #       </Page>
177 #</Plugin>
179 #<Plugin curl_json>
180 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
181 #  <URL "http://localhost:5984/_stats">
182 #    Instance "httpd"
183 #    <Key "httpd/requests/count">
184 #      Type "http_requests"
185 #    </Key>
187 #    <Key "httpd_request_methods/*/count">
188 #      Type "http_request_methods"
189 #    </Key>
191 #    <Key "httpd_status_codes/*/count">
192 #      Type "http_response_codes"
193 #    </Key>
194 #  </URL>
195 ## Database status metrics:
196 #  <URL "http://localhost:5984/_all_dbs">
197 #    Instance "dbs"
198 #    <Key "*/doc_count">
199 #      Type "gauge"
200 #    </Key>
201 #    <Key "*/doc_del_count">
202 #      Type "counter"
203 #    </Key>
204 #    <Key "*/disk_size">
205 #      Type "bytes"
206 #    </Key>
207 #  </URL>
208 #</Plugin>
210 #<Plugin dbi>
211 #       <Query "num_of_customers">
212 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
213 #                               FROM customers_tbl"
214 #               MinVersion 40102
215 #               MaxVersion 50042
216 #               <Result>
217 #                       Type "gauge"
218 #                       InstancePrefix "customer"
219 #                       InstancesFrom "c_key"
220 #                       ValuesFrom "c_value"
221 #               </Result>
222 #       </Query>
224 #       <Database "customers_db">
225 #               Driver "mysql"
226 #               DriverOption "host" "localhost"
227 #               DriverOption "username" "collectd"
228 #               DriverOption "password" "secret"
229 #               DriverOption "dbname" "custdb0"
230 #               SelectDB "custdb0"
231 #               Query "num_of_customers"
232 #               Query "..."
233 #       </Database>
234 #</Plugin>
236 #<Plugin df>
237 #       Device "/dev/sda1"
238 #       Device "192.168.0.2:/mnt/nfs"
239 #       MountPoint "/home"
240 #       FSType "ext3"
241 #       IgnoreSelected false
242 #       ReportByDevice false
243 #       ReportReserved false
244 #       ReportInodes false
245 #</Plugin>
247 #<Plugin disk>
248 #       Disk "hda"
249 #       Disk "/sda[23]/"
250 #       IgnoreSelected false
251 #</Plugin>
253 #<Plugin dns>
254 #       Interface "eth0"
255 #       IgnoreSource "192.168.0.1"
256 #       SelectNumericQueryTypes false
257 #</Plugin>
259 #<Plugin email>
260 #       SocketFile "/var/run/collectd-email"
261 #       SocketGroup "collectd"
262 #       SocketPerms "0770"
263 #       MaxConns 5
264 #</Plugin>
266 #<Plugin exec>
267 #       Exec user "/path/to/exec"
268 #       Exec "user:group" "/path/to/exec"
269 #       NotificationExec user "/path/to/exec"
270 #</Plugin>
272 #<Plugin filecount>
273 #       <Directory "/path/to/dir">
274 #               Instance "foodir"
275 #               Name "*.conf"
276 #               MTime "-5m"
277 #               Size "+10k"
278 #               Recursive true
279 #       </Directory>
280 #</Plugin>
282 #<Plugin gmond>
283 #       MCReceiveFrom "239.2.11.71" "8649"
285 #       <Metric "swap_total">
286 #               Type "swap"
287 #               TypeInstance "total"
288 #               DataSource "value"
289 #       </Metric>
291 #       <Metric "swap_free">
292 #               Type "swap"
293 #               TypeInstance "free"
294 #               DataSource "value"
295 #       </Metric>
296 #</Plugin>
298 #<Plugin hddtemp>
299 #       Host "127.0.0.1"
300 #       Port 7634
301 #       TranslateDevicename false
302 #</Plugin>
304 #<Plugin interface>
305 #       Interface "eth0"
306 #       IgnoreSelected false
307 #</Plugin>
309 #<Plugin ipmi>
310 #       Sensor "some_sensor"
311 #       Sensor "another_one"
312 #       IgnoreSelected false
313 #       NotifySensorAdd false
314 #       NotifySensorRemove true
315 #       NotifySensorNotPresent false
316 #</Plugin>
318 #<Plugin iptables>
319 #       Chain "table" "chain"
320 #</Plugin>
322 #<Plugin irq>
323 #       Irq 7
324 #       Irq 8
325 #       Irq 9
326 #       IgnoreSelected true
327 #</Plugin>
329 #<Plugin java>
330 #       JVMArg "-verbose:jni"
332 #       LoadPlugin "org.collectd.java.GenericJMX"
333 #       <Plugin "GenericJMX">
334 #               # See /usr/share/doc/collectd/examples/GenericJMX.conf
335 #               # for an example config.
336 #       </Plugin>
337 #</Plugin>
339 #<Plugin libvirt>
340 #       Connection "xen:///"
341 #       RefreshInterval 60
342 #       Domain "name"
343 #       BlockDevice "name:device"
344 #       InterfaceDevice "name:device"
345 #       IgnoreSelected false
346 #       HostnameFormat name
347 #</Plugin>
349 #<Plugin madwifi>
350 #       Interface "wlan0"
351 #       IgnoreSelected false
352 #       Source "SysFS"
353 #       WatchSet "None"
354 #       WatchAdd "node_octets"
355 #       WatchAdd "node_rssi"
356 #       WatchAdd "is_rx_acl"
357 #       WatchAdd "is_scan_active"
358 #</Plugin>
360 #<Plugin mbmon>
361 #       Host "127.0.0.1"
362 #       Port 411
363 #</Plugin>
365 #<Plugin memcachec>
366 #       <Page "plugin_instance">
367 #               Server "localhost"
368 #               Key "page_key"
369 #               <Match>
370 #                       Regex "(\\d+) bytes sent"
371 #                       DSType CounterAdd
372 #                       Type "ipt_octets"
373 #                       Instance "type_instance"
374 #               </Match>
375 #       </Page>
376 #</Plugin>
378 #<Plugin memcached>
379 #       Socket "/var/run/memcached.sock"
380 # or:
381 #       Host "127.0.0.1"
382 #       Port "11211"
383 #</Plugin>
385 #<Plugin mysql>
386 #       <Database db_name>
387 #               Host "database.serv.er"
388 #               Port "3306"
389 #               User "db_user"
390 #               Password "secret"
391 #               Database "db_name"
392 #               MasterStats true
393 #       </Database>
395 #       <Database db_name2>
396 #               Host "localhost"
397 #               Socket "/var/run/mysql/mysqld.sock"
398 #               SlaveStats true
399 #               SlaveNotifications true
400 #       </Database>
401 #</Plugin>
403 #<Plugin netlink>
404 #       Interface "All"
405 #       VerboseInterface "All"
406 #       QDisc "eth0" "pfifo_fast-1:0"
407 #       Class "ppp0" "htb-1:10"
408 #       Filter "ppp0" "u32-1:0"
409 #       IgnoreSelected false
410 #</Plugin>
412 #<Plugin network>
413 #       # client setup:
414 #       Server "ff18::efc0:4a42" "25826"
415 #       <Server "239.192.74.66" "25826">
416 #               SecurityLevel Encrypt
417 #               Username "user"
418 #               Password "secret"
419 #       </Server>
420 #       TimeToLive "128"
422 #       # server setup:
423 #       Listen "ff18::efc0:4a42" "25826"
424 #       <Listen "239.192.74.66" "25826">
425 #               SecurityLevel Sign
426 #               AuthFile "/etc/collectd/passwd"
427 #       </Listen>
428 #       MaxPacketSize 1024
430 #       # proxy setup (client and server as above):
431 #       Forward true
433 #       # statistics about the network plugin itself
434 #       ReportStats false
435 #</Plugin>
437 #<Plugin nginx>
438 #       URL "http://localhost/status?auto"
439 #       User "www-user"
440 #       Password "secret"
441 #       VerifyPeer false
442 #       VerifyHost false
443 #       CACert "/etc/ssl/ca.crt"
444 #</Plugin>
446 #<Plugin notify_desktop>
447 #       OkayTimeout 1000
448 #       WarningTimeout 5000
449 #       FailureTimeout 0
450 #</Plugin>
452 #<Plugin notify_email>
453 #       SMTPServer "localhost"
454 #       SMTPPort 25
455 #       SMTPUser "my-username"
456 #       SMTPPassword "my-password"
457 #       From "collectd@main0server.com"
458 #       # <WARNING/FAILURE/OK> on <hostname>.
459 #       # Beware! Do not use not more than two placeholders (%)!
460 #       Subject "[collectd] %s on %s!"
461 #       Recipient "email1@domain1.net"
462 #       Recipient "email2@domain2.com"
463 #</Plugin>
465 #<Plugin ntpd>
466 #       Host "localhost"
467 #       Port 123
468 #       ReverseLookups false
469 #</Plugin>
471 #<Plugin nut>
472 #       UPS "upsname@hostname:port"
473 #</Plugin>
475 #<Plugin olsrd>
476 #       Host "127.0.0.1"
477 #       Port "2006"
478 #       CollectLinks "Summary"
479 #       CollectRoutes "Summary"
480 #       CollectTopology "Summary"
481 #</Plugin>
483 #<Plugin openvpn>
484 #       StatusFile "/etc/openvpn/openvpn-status.log"
485 #</Plugin>
487 #<Plugin perl>
488 #       IncludeDir "/my/include/path"
489 #       BaseName "Collectd::Plugin"
490 #       EnableDebugger ""
491 #       LoadPlugin Monitorus
492 #       LoadPlugin OpenVZ
494 #       <Plugin foo>
495 #               Foo "Bar"
496 #               Qux "Baz"
497 #       </Plugin>
498 #</Plugin>
500 #<Plugin ping>
501 #       Host "host.foo.bar"
502 #       Host "host.baz.qux"
503 #       Interval 1.0
504 #       Timeout 0.9
505 #       TTL 255
506 #       SourceAddress "1.2.3.4"
507 #       Device "eth0"
508 #       MaxMissed -1
509 #</Plugin>
511 #<Plugin postgresql>
512 #       <Query magic>
513 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
514 #               Param hostname
516 #               <Result>
517 #                       Type gauge
518 #                       InstancePrefix "magic"
519 #                       ValuesFrom "magic"
520 #               </Result>
521 #       </Query>
523 #       <Query rt36_tickets>
524 #               Statement "SELECT COUNT(type) AS count, type \
525 #                                 FROM (SELECT CASE \
526 #                                              WHEN resolved = 'epoch' THEN 'open' \
527 #                                              ELSE 'resolved' END AS type \
528 #                                              FROM tickets) type \
529 #                                 GROUP BY type;"
531 #               <Result>
532 #                       Type counter
533 #                       InstancePrefix "rt36_tickets"
534 #                       InstancesFrom "type"
535 #                       ValuesFrom "count"
536 #               </Result>
537 #       </Query>
539 #       <Database foo>
540 #               Host "hostname"
541 #               Port 5432
542 #               User "username"
543 #               Password "secret"
545 #               SSLMode "prefer"
546 #               KRBSrvName "kerberos_service_name"
548 #               Query magic
549 #       </Database>
551 #       <Database bar>
552 #               Service "service_name"
554 #               Query backend # predefined
555 #               Query rt36_tickets
556 #       </Database>
557 #</Plugin>
559 #<Plugin powerdns>
560 #       <Server "server_name">
561 #               Collect "latency"
562 #               Collect "udp-answers" "udp-queries"
563 #               Socket "/var/run/pdns.controlsocket"
564 #       </Server>
565 #       <Recursor "recursor_name">
566 #               Collect "questions"
567 #               Collect "cache-hits" "cache-misses"
568 #               Socket "/var/run/pdns_recursor.controlsocket"
569 #       </Recursor>
570 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
571 #</Plugin>
573 #<Plugin processes>
574 #       Process "name"
575 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
576 #</Plugin>
578 #<Plugin protocols>
579 #       Value "/^Tcp:/"
580 #       IgnoreSelected false
581 #</Plugin>
583 #<Plugin python>
584 #       ModulePath "/path/to/your/python/modules"
585 #       LogTraces true
586 #       Interactive true
587 #       Import "spam"
589 #       <Module spam>
590 #               spam "wonderful" "lovely"
591 #       </Module>
592 #</Plugin>
594 <Plugin rrdtool>
595         DataDir "/var/lib/collectd/rrd"
596 #       CacheTimeout 120
597 #       CacheFlush 900
598 #       WritesPerSecond 30
599 #       RandomTimeout 0
601 # The following settings are rather advanced
602 # and should usually not be touched:
603 #       StepSize 10
604 #       HeartBeat 20
605 #       RRARows 1200
606 #       RRATimespan 158112000
607 #       XFF 0.1
608 </Plugin>
610 #<Plugin sensors>
611 #       Sensor "it8712-isa-0290/temperature-temp1"
612 #       Sensor "it8712-isa-0290/fanspeed-fan3"
613 #       Sensor "it8712-isa-0290/voltage-in8"
614 #       IgnoreSelected false
615 #</Plugin>
617 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
618 # comprehensive sample configuration.
619 #<Plugin snmp>
620 #       <Data "powerplus_voltge_input">
621 #               Type "voltage"
622 #               Table false
623 #               Instance "input_line1"
624 #               Scale 0.1
625 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
626 #       </Data>
627 #       <Data "hr_users">
628 #               Type "users"
629 #               Table false
630 #               Instance ""
631 #               Shift -1
632 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
633 #       </Data>
634 #       <Data "std_traffic">
635 #               Type "if_octets"
636 #               Table true
637 #               InstancePrefix "traffic"
638 #               Instance "IF-MIB::ifDescr"
639 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
640 #       </Data>
642 #       <Host "some.switch.mydomain.org">
643 #               Address "192.168.0.2"
644 #               Version 1
645 #               Community "community_string"
646 #               Collect "std_traffic"
647 #               Inverval 120
648 #       </Host>
649 #       <Host "some.server.mydomain.org">
650 #               Address "192.168.0.42"
651 #               Version 2
652 #               Community "another_string"
653 #               Collect "std_traffic" "hr_users"
654 #       </Host>
655 #       <Host "some.ups.mydomain.org">
656 #               Address "192.168.0.3"
657 #               Version 1
658 #               Community "more_communities"
659 #               Collect "powerplus_voltge_input"
660 #               Interval 300
661 #       </Host>
662 #</Plugin>
664 #<Plugin table>
665 #       <Table "/proc/slabinfo">
666 #               Instance "slabinfo"
667 #               Separator " "
668 #               <Result>
669 #                       Type gauge
670 #                       InstancePrefix "active_objs"
671 #                       InstancesFrom 0
672 #                       ValuesFrom 1
673 #               </Result>
674 #               <Result>
675 #                       Type gauge
676 #                       InstancePrefix "objperslab"
677 #                       InstancesFrom 0
678 #                       ValuesFrom 4
679 #               </Result>
680 #       </Table>
681 #</Plugin>
683 #<Plugin "tail">
684 #       <File "/var/log/exim4/mainlog">
685 #               Instance "exim"
686 #               <Match>
687 #                       Regex "S=([1-9][0-9]*)"
688 #                       DSType "CounterAdd"
689 #                       Type "ipt_bytes"
690 #                       Instance "total"
691 #               </Match>
692 #               <Match>
693 #                       Regex "\\<R=local_user\\>"
694 #                       DSType "CounterInc"
695 #                       Type "counter"
696 #                       Instance "local_user"
697 #               </Match>
698 #       </File>
699 #</Plugin>
701 #<Plugin tcpconns>
702 #       ListeningPorts false
703 #       LocalPort "25"
704 #       RemotePort "25"
705 #</Plugin>
707 #<Plugin teamspeak2>
708 #       Host "127.0.0.1"
709 #       Port "51234"
710 #       Server "8767"
711 #</Plugin>
713 #<Plugin ted>
714 #       Device "/dev/ttyUSB0"
715 #       Retries 0
716 #</Plugin>
718 #<Plugin thermal>
719 #       ForceUseProcfs false
720 #       Device "THRM"
721 #       IgnoreSelected false
722 #</Plugin>
724 #<Plugin unixsock>
725 #       SocketFile "/var/run/collectd-unixsock"
726 #       SocketGroup "collectd"
727 #       SocketPerms "0660"
728 #</Plugin>
730 #<Plugin uuid>
731 #       UUIDFile "/etc/uuid"
732 #</Plugin>
734 #<Plugin vmem>
735 #       Verbose false
736 #</Plugin>
738 #<Plugin write_http>
739 #       <URL "http://example.com/collectd-post">
740 #               User "collectd"
741 #               Password "secret"
742 #       </URL>
743 #</Plugin>
745 Include "/etc/collectd/filters.conf"
746 Include "/etc/collectd/thresholds.conf"