Code

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