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