2cf0fff1316e78406db952fdc8e35562fe32c4bb
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 rrdcached
84 LoadPlugin rrdtool
85 #LoadPlugin sensors
86 #LoadPlugin serial
87 #LoadPlugin snmp
88 LoadPlugin swap
89 #LoadPlugin table
90 #LoadPlugin tail
91 #LoadPlugin tcpconns
92 #LoadPlugin teamspeak2
93 #LoadPlugin ted
94 #LoadPlugin thermal
95 #LoadPlugin tokyotyrant
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>
115 #
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/"
139 #
140 # OpCodes true
141 # QTypes true
142 # ServerStats true
143 # ZoneMaintStats true
144 # ResolverStats false
145 # MemoryStats true
146 #
147 # <View "_default">
148 # QTypes true
149 # ResolverStats true
150 # CacheRRSets true
151 #
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>
186 #
187 # <Key "httpd_request_methods/*/count">
188 # Type "http_request_methods"
189 # </Key>
190 #
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>
223 #
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 hddtemp>
283 # Host "127.0.0.1"
284 # Port 7634
285 # TranslateDevicename false
286 #</Plugin>
288 #<Plugin interface>
289 # Interface "eth0"
290 # IgnoreSelected false
291 #</Plugin>
293 #<Plugin ipmi>
294 # Sensor "some_sensor"
295 # Sensor "another_one"
296 # IgnoreSelected false
297 # NotifySensorAdd false
298 # NotifySensorRemove true
299 # NotifySensorNotPresent false
300 #</Plugin>
302 #<Plugin iptables>
303 # Chain "table" "chain"
304 #</Plugin>
306 #<Plugin irq>
307 # Irq 7
308 # Irq 8
309 # Irq 9
310 # IgnoreSelected true
311 #</Plugin>
313 #<Plugin java>
314 # JVMArg "-verbose:jni"
315 #
316 # LoadPlugin "org.collectd.java.GenericJMX"
317 # <Plugin "GenericJMX">
318 # # See /usr/share/doc/collectd/examples/GenericJMX.conf
319 # # for an example config.
320 # </Plugin>
321 #</Plugin>
323 #<Plugin libvirt>
324 # Connection "xen:///"
325 # RefreshInterval 60
326 # Domain "name"
327 # BlockDevice "name:device"
328 # InterfaceDevice "name:device"
329 # IgnoreSelected false
330 # HostnameFormat name
331 #</Plugin>
333 #<Plugin madwifi>
334 # Interface "wlan0"
335 # IgnoreSelected false
336 # Source "SysFS"
337 # WatchSet "None"
338 # WatchAdd "node_octets"
339 # WatchAdd "node_rssi"
340 # WatchAdd "is_rx_acl"
341 # WatchAdd "is_scan_active"
342 #</Plugin>
344 #<Plugin mbmon>
345 # Host "127.0.0.1"
346 # Port 411
347 #</Plugin>
349 #<Plugin memcached>
350 # Socket "/var/run/memcached.sock"
351 # or:
352 # Host "127.0.0.1"
353 # Port "11211"
354 #</Plugin>
356 #<Plugin mysql>
357 # <Database db_name>
358 # Host "database.serv.er"
359 # Port "3306"
360 # User "db_user"
361 # Password "secret"
362 # Database "db_name"
363 # MasterStats true
364 # </Database>
365 #
366 # <Database db_name2>
367 # Host "localhost"
368 # Socket "/var/run/mysql/mysqld.sock"
369 # SlaveStats true
370 # SlaveNotifications true
371 # </Database>
372 #</Plugin>
374 #<Plugin netlink>
375 # Interface "All"
376 # VerboseInterface "All"
377 # QDisc "eth0" "pfifo_fast-1:0"
378 # Class "ppp0" "htb-1:10"
379 # Filter "ppp0" "u32-1:0"
380 # IgnoreSelected false
381 #</Plugin>
383 #<Plugin network>
384 # # client setup:
385 # Server "ff18::efc0:4a42" "25826"
386 # <Server "239.192.74.66" "25826">
387 # SecurityLevel Encrypt
388 # Username "user"
389 # Password "secret"
390 # </Server>
391 # TimeToLive "128"
392 #
393 # # server setup:
394 # Listen "ff18::efc0:4a42" "25826"
395 # <Listen "239.192.74.66" "25826">
396 # SecurityLevel Sign
397 # AuthFile "/etc/collectd/passwd"
398 # </Listen>
399 # MaxPacketSize 1024
400 #
401 # # proxy setup (client and server as above):
402 # Forward true
403 #
404 # # statistics about the network plugin itself
405 # ReportStats false
406 #</Plugin>
408 #<Plugin nginx>
409 # URL "http://localhost/status?auto"
410 # User "www-user"
411 # Password "secret"
412 # VerifyPeer false
413 # VerifyHost false
414 # CACert "/etc/ssl/ca.crt"
415 #</Plugin>
417 #<Plugin notify_desktop>
418 # OkayTimeout 1000
419 # WarningTimeout 5000
420 # FailureTimeout 0
421 #</Plugin>
423 #<Plugin notify_email>
424 # SMTPServer "localhost"
425 # SMTPPort 25
426 # SMTPUser "my-username"
427 # SMTPPassword "my-password"
428 # From "collectd@main0server.com"
429 # # <WARNING/FAILURE/OK> on <hostname>.
430 # # Beware! Do not use not more than two placeholders (%)!
431 # Subject "[collectd] %s on %s!"
432 # Recipient "email1@domain1.net"
433 # Recipient "email2@domain2.com"
434 #</Plugin>
436 #<Plugin ntpd>
437 # Host "localhost"
438 # Port 123
439 # ReverseLookups false
440 #</Plugin>
442 #<Plugin nut>
443 # UPS "upsname@hostname:port"
444 #</Plugin>
446 #<Plugin olsrd>
447 # Host "127.0.0.1"
448 # Port "2006"
449 # CollectLinks "Summary"
450 # CollectRoutes "Summary"
451 # CollectTopology "Summary"
452 #</Plugin>
454 #<Plugin openvpn>
455 # StatusFile "/etc/openvpn/openvpn-status.log"
456 #</Plugin>
458 #<Plugin perl>
459 # IncludeDir "/my/include/path"
460 # BaseName "Collectd::Plugin"
461 # EnableDebugger ""
462 # LoadPlugin Monitorus
463 # LoadPlugin OpenVZ
464 #
465 # <Plugin foo>
466 # Foo "Bar"
467 # Qux "Baz"
468 # </Plugin>
469 #</Plugin>
471 #<Plugin ping>
472 # Host "host.foo.bar"
473 # Host "host.baz.qux"
474 # Interval 1.0
475 # Timeout 0.9
476 # TTL 255
477 # SourceAddress "1.2.3.4"
478 # Device "eth0"
479 # MaxMissed -1
480 #</Plugin>
482 #<Plugin postgresql>
483 # <Query magic>
484 # Statement "SELECT magic FROM wizard WHERE host = $1;"
485 # Param hostname
486 #
487 # <Result>
488 # Type gauge
489 # InstancePrefix "magic"
490 # ValuesFrom "magic"
491 # </Result>
492 # </Query>
493 #
494 # <Query rt36_tickets>
495 # Statement "SELECT COUNT(type) AS count, type \
496 # FROM (SELECT CASE \
497 # WHEN resolved = 'epoch' THEN 'open' \
498 # ELSE 'resolved' END AS type \
499 # FROM tickets) type \
500 # GROUP BY type;"
501 #
502 # <Result>
503 # Type counter
504 # InstancePrefix "rt36_tickets"
505 # InstancesFrom "type"
506 # ValuesFrom "count"
507 # </Result>
508 # </Query>
509 #
510 # <Database foo>
511 # Host "hostname"
512 # Port 5432
513 # User "username"
514 # Password "secret"
515 #
516 # SSLMode "prefer"
517 # KRBSrvName "kerberos_service_name"
518 #
519 # Query magic
520 # </Database>
521 #
522 # <Database bar>
523 # Service "service_name"
524 #
525 # Query backend # predefined
526 # Query rt36_tickets
527 # </Database>
528 #</Plugin>
530 #<Plugin powerdns>
531 # <Server "server_name">
532 # Collect "latency"
533 # Collect "udp-answers" "udp-queries"
534 # Socket "/var/run/pdns.controlsocket"
535 # </Server>
536 # <Recursor "recursor_name">
537 # Collect "questions"
538 # Collect "cache-hits" "cache-misses"
539 # Socket "/var/run/pdns_recursor.controlsocket"
540 # </Recursor>
541 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
542 #</Plugin>
544 #<Plugin processes>
545 # Process "name"
546 # ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
547 #</Plugin>
549 #<Plugin protocols>
550 # Value "/^Tcp:/"
551 # IgnoreSelected false
552 #</Plugin>
554 #<Plugin python>
555 # ModulePath "/path/to/your/python/modules"
556 # LogTraces true
557 # Interactive true
558 # Import "spam"
559 #
560 # <Module spam>
561 # spam "wonderful" "lovely"
562 # </Module>
563 #</Plugin>
565 #<Plugin rrdcached>
566 # DaemonAddress "unix:/var/run/rrdcached.sock"
567 # DataDir "/var/lib/rrdcached/db/collectd"
568 # CreateFiles true
569 # CollectStatistics true
570 #</Plugin>
572 <Plugin rrdtool>
573 DataDir "/var/lib/collectd/rrd"
574 # CacheTimeout 120
575 # CacheFlush 900
576 # WritesPerSecond 30
577 # RandomTimeout 0
578 #
579 # The following settings are rather advanced
580 # and should usually not be touched:
581 # StepSize 10
582 # HeartBeat 20
583 # RRARows 1200
584 # RRATimespan 158112000
585 # XFF 0.1
586 </Plugin>
588 #<Plugin sensors>
589 # Sensor "it8712-isa-0290/temperature-temp1"
590 # Sensor "it8712-isa-0290/fanspeed-fan3"
591 # Sensor "it8712-isa-0290/voltage-in8"
592 # IgnoreSelected false
593 #</Plugin>
595 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
596 # comprehensive sample configuration.
597 #<Plugin snmp>
598 # <Data "powerplus_voltge_input">
599 # Type "voltage"
600 # Table false
601 # Instance "input_line1"
602 # Scale 0.1
603 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
604 # </Data>
605 # <Data "hr_users">
606 # Type "users"
607 # Table false
608 # Instance ""
609 # Shift -1
610 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
611 # </Data>
612 # <Data "std_traffic">
613 # Type "if_octets"
614 # Table true
615 # InstancePrefix "traffic"
616 # Instance "IF-MIB::ifDescr"
617 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
618 # </Data>
619 #
620 # <Host "some.switch.mydomain.org">
621 # Address "192.168.0.2"
622 # Version 1
623 # Community "community_string"
624 # Collect "std_traffic"
625 # Inverval 120
626 # </Host>
627 # <Host "some.server.mydomain.org">
628 # Address "192.168.0.42"
629 # Version 2
630 # Community "another_string"
631 # Collect "std_traffic" "hr_users"
632 # </Host>
633 # <Host "some.ups.mydomain.org">
634 # Address "192.168.0.3"
635 # Version 1
636 # Community "more_communities"
637 # Collect "powerplus_voltge_input"
638 # Interval 300
639 # </Host>
640 #</Plugin>
642 #<Plugin table>
643 # <Table "/proc/slabinfo">
644 # Instance "slabinfo"
645 # Separator " "
646 # <Result>
647 # Type gauge
648 # InstancePrefix "active_objs"
649 # InstancesFrom 0
650 # ValuesFrom 1
651 # </Result>
652 # <Result>
653 # Type gauge
654 # InstancePrefix "objperslab"
655 # InstancesFrom 0
656 # ValuesFrom 4
657 # </Result>
658 # </Table>
659 #</Plugin>
661 #<Plugin "tail">
662 # <File "/var/log/exim4/mainlog">
663 # Instance "exim"
664 # <Match>
665 # Regex "S=([1-9][0-9]*)"
666 # DSType "CounterAdd"
667 # Type "ipt_bytes"
668 # Instance "total"
669 # </Match>
670 # <Match>
671 # Regex "\\<R=local_user\\>"
672 # DSType "CounterInc"
673 # Type "counter"
674 # Instance "local_user"
675 # </Match>
676 # </File>
677 #</Plugin>
679 #<Plugin tcpconns>
680 # ListeningPorts false
681 # LocalPort "25"
682 # RemotePort "25"
683 #</Plugin>
685 #<Plugin teamspeak2>
686 # Host "127.0.0.1"
687 # Port "51234"
688 # Server "8767"
689 #</Plugin>
691 #<Plugin ted>
692 # Device "/dev/ttyUSB0"
693 # Retries 0
694 #</Plugin>
696 #<Plugin thermal>
697 # ForceUseProcfs false
698 # Device "THRM"
699 # IgnoreSelected false
700 #</Plugin>
702 #<Plugin tokyotyrant>
703 # Host "localhost"
704 # Port "1978"
705 #</Plugin>
707 #<Plugin unixsock>
708 # SocketFile "/var/run/collectd-unixsock"
709 # SocketGroup "collectd"
710 # SocketPerms "0660"
711 #</Plugin>
713 #<Plugin uuid>
714 # UUIDFile "/etc/uuid"
715 #</Plugin>
717 #<Plugin vmem>
718 # Verbose false
719 #</Plugin>
721 #<Plugin write_http>
722 # <URL "http://example.com/collectd-post">
723 # User "collectd"
724 # Password "secret"
725 # </URL>
726 #</Plugin>
728 Include "/etc/collectd/filters.conf"
729 Include "/etc/collectd/thresholds.conf"