Code

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