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