Merge branch 'collectd-4.9'
[collectd.git] / src / collectd.conf.in
1 #
2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
4 # http://collectd.org/
5 #
6
7 ##############################################################################
8 # Global                                                                     #
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon.                                            #
11 ##############################################################################
12
13 #Hostname    "localhost"
14 FQDNLookup   true
15 #BaseDir     "@prefix@/var/lib/@PACKAGE_NAME@"
16 #PIDFile     "@prefix@/var/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@prefix@/lib/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
19 #Interval     10
20 #ReadThreads  5
21
22 ##############################################################################
23 # Logging                                                                    #
24 #----------------------------------------------------------------------------#
25 # Plugins which provide logging functions should be loaded first, so log     #
26 # messages generated when loading or configuring other plugins can be        #
27 # accessed.                                                                  #
28 ##############################################################################
29
30 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
31 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
32
33 #<Plugin logfile>
34 #       LogLevel @DEFAULT_LOG_LEVEL@
35 #       File STDOUT
36 #       Timestamp true
37 #</Plugin>
38
39 #<Plugin syslog>
40 #       LogLevel @DEFAULT_LOG_LEVEL@
41 #</Plugin>
42
43 ##############################################################################
44 # LoadPlugin section                                                         #
45 #----------------------------------------------------------------------------#
46 # Lines beginning with a single `#' belong to plugins which have been built  #
47 # but are disabled by default.                                               #
48 #                                                                            #
49 # Lines begnning with `##' belong to plugins which have not been built due   #
50 # to missing dependencies or because they have been deactivated explicitly.  #
51 ##############################################################################
52
53 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
54 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
55 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
56 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
57 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
58 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
59 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
60 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
61 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
62 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
63 @LOAD_PLUGIN_CSV@LoadPlugin csv
64 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
65 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
66 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
67 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
68 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
69 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
70 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
71 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
72 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
73 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
74 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
75 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
76 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
77 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
78 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
79 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
80 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
81 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
82 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
83 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
84 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
85 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
86 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
87 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
88 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
89 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
90 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
91 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
92 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
93 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
94 @LOAD_PLUGIN_NETWORK@LoadPlugin network
95 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
96 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
97 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
98 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
99 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
100 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
101 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
102 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
103 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
104 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
105 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
106 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
107 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
108 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
109 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
110 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
111 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
112 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
113 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
114 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
115 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
116 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
117 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
118 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
119 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
120 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
121 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
122 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
123 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
124 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
125 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
126 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
127 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
128 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
129 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
130 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
131 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
132 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
133 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
134 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
135 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
136 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
137
138 ##############################################################################
139 # Plugin configuration                                                       #
140 #----------------------------------------------------------------------------#
141 # In this section configuration stubs for each plugin are provided. A desc-  #
142 # ription of those options is available in the collectd.conf(5) manual page. #
143 ##############################################################################
144
145 #<Plugin apache>
146 #       URL "http://localhost/status?auto"
147 #       User "www-user"
148 #       Password "secret"
149 #       CACert "/etc/ssl/ca.crt"
150 #</Plugin>
151
152 #<Plugin apcups>
153 #       Host "localhost"
154 #       Port "3551"
155 #</Plugin>
156
157 #<Plugin ascent>
158 #       URL "http://localhost/ascent/status/"
159 #       User "www-user"
160 #       Password "secret"
161 #       CACert "/etc/ssl/ca.crt"
162 #</Plugin>
163
164 #<Plugin "bind">
165 #  URL "http://localhost:8053/"
166 #  OpCodes         true
167 #  QTypes          true
168 #
169 #  ServerStats     true
170 #  ZoneMaintStats  true
171 #  ResolverStats   false
172 #  MemoryStats     true
173 #
174 #  <View "_default">
175 #    QTypes        true
176 #    ResolverStats true
177 #    CacheRRSets   true
178 #
179 #    Zone "127.in-addr.arpa/IN"
180 #  </View>
181 #</Plugin>
182
183 #<Plugin csv>
184 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
185 #       StoreRates false
186 #</Plugin>
187
188 #<Plugin curl>
189 #  <Page "stock_quotes">
190 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
191 #    User "foo"
192 #    Password "bar"
193 #    <Match>
194 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
195 #      DSType "GaugeAverage"
196 #      Type "stock_value"
197 #      Instance "AMD"
198 #    </Match>
199 #  </Page>
200 #</Plugin>
201
202 #<Plugin curl_json>
203 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
204 #  <URL "http://localhost:5984/_stats">
205 #    Instance "httpd"
206 #    <Key "httpd/requests/count">
207 #      Type "http_requests"
208 #    </Key>
209 #
210 #    <Key "httpd_request_methods/*/count">
211 #      Type "http_request_methods"
212 #    </Key>
213 #
214 #    <Key "httpd_status_codes/*/count">
215 #      Type "http_response_codes"
216 #    </Key>
217 #  </URL>
218 ## Database status metrics:
219 #  <URL "http://localhost:5984/_all_dbs">
220 #    Instance "dbs"
221 #    <Key "*/doc_count">
222 #      Type "gauge"
223 #    </Key>
224 #    <Key "*/doc_del_count">
225 #      Type "counter"
226 #    </Key>
227 #    <Key "*/disk_size">
228 #      Type "bytes"
229 #    </Key>
230 #  </URL>
231 #</Plugin>
232
233 #<Plugin dbi>
234 #       <Query "num_of_customers">
235 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
236 #               <Result>
237 #                       Type "gauge"
238 #                       InstancesFrom "c_key"
239 #                       ValuesFrom "c_value"
240 #               </Result>
241 #       </Query>
242 #       <Database "customers_db">
243 #               Driver "mysql"
244 #               DriverOption "host" "localhost"
245 #               DriverOption "username" "collectd"
246 #               DriverOption "password" "AeXohy0O"
247 #               DriverOption "dbname" "custdb0"
248 #               #SelectDB "custdb0"
249 #               Query "num_of_customers"
250 #               #Query "..."
251 #       </Database>
252 #</Plugin>
253
254 #<Plugin df>
255 #       Device "/dev/hda1"
256 #       Device "192.168.0.2:/mnt/nfs"
257 #       MountPoint "/home"
258 #       FSType "ext3"
259 #       IgnoreSelected false
260 #       ReportByDevice false
261 #       ReportReserved false
262 #       ReportInodes false
263 #</Plugin>
264
265 #<Plugin disk>
266 #       Disk "/^[hs]d[a-f][0-9]?$/"
267 #       IgnoreSelected false
268 #</Plugin>
269
270 #<Plugin dns>
271 #       Interface "eth0"
272 #       IgnoreSource "192.168.0.1"
273 #       SelectNumericQueryTypes true
274 #</Plugin>
275
276 #<Plugin email>
277 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
278 #       SocketGroup "collectd"
279 #       SocketPerms "0770"
280 #       MaxConns 5
281 #</Plugin>
282
283 #<Plugin exec>
284 #       Exec "user:group" "/path/to/exec"
285 #       NotificationExec "user:group" "/path/to/exec"
286 #</Plugin>
287
288 #<Plugin filecount>
289 #       <Directory "/path/to/dir">
290 #               Instance "foodir"
291 #               Name "*.conf"
292 #               MTime "-5m"
293 #               Size "+10k"
294 #               Recursive true
295 #       </Directory>
296 #</Plugin>
297
298 #<Plugin "gmond">
299 #  MCReceiveFrom "239.2.11.71" "8649"
300 #  <Metric "swap_total">
301 #    Type "swap"
302 #    TypeInstance "total"
303 #    DataSource "value"
304 #  </Metric>
305 #  <Metric "swap_free">
306 #    Type "swap"
307 #    TypeInstance "free"
308 #    DataSource "value"
309 #  </Metric>
310 #</Plugin>
311
312 #<Plugin hddtemp>
313 #  Host "127.0.0.1"
314 #  Port "7634"
315 #
316 #  #----------------------------------------------------------------#
317 #  # `TranslateDevicename' enables backwards compatibility behavior #
318 #  # and is enabled by default. Setting this option to `false' is   #
319 #  # highly recommended.                                            #
320 #  #----------------------------------------------------------------#
321 #  TranslateDevicename false
322 #</Plugin>
323
324 #<Plugin interface>
325 #       Interface "eth0"
326 #       IgnoreSelected false
327 #</Plugin>
328
329 #<Plugin ipmi>
330 #       Sensor "some_sensor"
331 #       Sensor "another_one"
332 #       IgnoreSelected false
333 #       NotifySensorAdd false
334 #       NotifySensorRemove true
335 #       NotifySensorNotPresent false
336 #</Plugin>
337
338 #<Plugin iptables>
339 #       Chain table chain
340 #</Plugin>
341
342 #<Plugin irq>
343 #       Irq 7
344 #       Irq 8
345 #       Irq 9
346 #       IgnoreSelected true
347 #</Plugin>
348
349 #<Plugin "java">
350 #       JVMArg "-verbose:jni"
351 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java"
352 #
353 #       LoadPlugin "org.collectd.java.Foobar"
354 #       <Plugin "org.collectd.java.Foobar">
355 #         # To be parsed by the plugin
356 #       </Plugin>
357 #</Plugin>
358
359 #<Plugin libvirt>
360 #       Connection "xen:///"
361 #       RefreshInterval 60
362 #       Domain "name"
363 #       BlockDevice "name:device"
364 #       InterfaceDevice "name:device"
365 #       IgnoreSelected false
366 #       HostnameFormat name
367 #</Plugin>
368
369 #<Plugin madwifi>
370 #       Interface "wlan0"
371 #       IgnoreSelected false
372 #       Source "SysFS"
373 #       WatchSet "None"
374 #       WatchAdd "node_octets"
375 #       WatchAdd "node_rssi"
376 #       WatchAdd "is_rx_acl"
377 #       WatchAdd "is_scan_active"
378 #</Plugin>
379
380 #<Plugin mbmon>
381 #       Host "127.0.0.1"
382 #       Port "411"
383 #</Plugin>
384
385 #<Plugin memcachec>
386 #       <Page "plugin_instance">
387 #               Server "localhost"
388 #               Key "page_key"
389 #               <Match>
390 #                       Regex "(\\d+) bytes sent"
391 #                       DSType CounterAdd
392 #                       Type "ipt_octets"
393 #                       Instance "type_instance"
394 #               </Match>
395 #       </Page>
396 #</Plugin>
397
398 #<Plugin memcached>
399 #       Host "127.0.0.1"
400 #       Port "11211"
401 #</Plugin>
402
403 #<Plugin mysql>
404 #       <Database db_name>
405 #               Host "database.serv.er"
406 #               User "db_user"
407 #               Password "secret"
408 #               Database "db_name"
409 #               MasterStats true
410 #       </Database>
411 #
412 #       <Database db_name2>
413 #               Host "localhost"
414 #               Socket "/var/run/mysql/mysqld.sock"
415 #               SlaveStats true
416 #               SlaveNotifications true
417 #       </Database>
418 #</Plugin>
419
420 #<Plugin netapp>
421 #       <Host "netapp1.example.com">
422 #               Protocol      "https"
423 #               Address       "10.0.0.1"
424 #               Port          443
425 #               User          "username"
426 #               Password      "aef4Aebe"
427 #               Interval      30
428 #
429 #               <WAFL>
430 #                       Interval 30
431 #                       GetNameCache   true
432 #                       GetDirCache    true
433 #                       GetBufferCache true
434 #                       GetInodeCache  true
435 #               </WAFL>
436 #
437 #               <Disks>
438 #                       Interval 30
439 #                       GetBusy true
440 #               </Disks>
441 #
442 #               <VolumePerf>
443 #                       Interval 30
444 #                       GetIO      "volume0"
445 #                       IgnoreSelectedIO      false
446 #                       GetOps     "volume0"
447 #                       IgnoreSelectedOps     false
448 #                       GetLatency "volume0"
449 #                       IgnoreSelectedLatency false
450 #               </VolumePerf>
451 #
452 #               <VolumeUsage>
453 #                       Interval 30
454 #                       GetCapacity "vol0"
455 #                       GetCapacity "vol1"
456 #                       IgnoreSelectedCapacity false
457 #                       GetSnapshot "vol1"
458 #                       GetSnapshot "vol3"
459 #                       IgnoreSelectedSnapshot false
460 #               </VolumeUsage>
461 #
462 #               <System>
463 #                       Interval 30
464 #                       GetCPULoad     true
465 #                       GetInterfaces  true
466 #                       GetDiskOps     true
467 #                       GetDiskIO      true
468 #               </System>
469 #       </Host>
470 #</Plugin>
471
472 #<Plugin netlink>
473 #       Interface "All"
474 #       VerboseInterface "All"
475 #       QDisc "eth0" "pfifo_fast-1:0"
476 #       Class "ppp0" "htb-1:10"
477 #       Filter "ppp0" "u32-1:0"
478 #       IgnoreSelected false
479 #</Plugin>
480
481 @LOAD_PLUGIN_NETWORK@<Plugin network>
482 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
483 @LOAD_PLUGIN_NETWORK@   Server "239.192.74.66" "25826"
484 #       Listen "ff18::efc0:4a42" "25826"
485 #       Listen "239.192.74.66" "25826"
486 #       TimeToLive "128"
487 #       Forward false
488 #       CacheFlush 1800
489 #       ReportStats false
490 @LOAD_PLUGIN_NETWORK@</Plugin>
491
492 #<Plugin nginx>
493 #       URL "http://localhost/status?auto"
494 #       User "www-user"
495 #       Password "secret"
496 #       CACert "/etc/ssl/ca.crt"
497 #</Plugin>
498
499 #<Plugin notify_desktop>
500 #       OkayTimeout 1000
501 #       WarningTimeout 5000
502 #       FailureTimeout 0
503 #</Plugin>
504
505 #<Plugin notify_email>
506 #       SMTPServer "localhost"
507 #       SMTPPort 25
508 #       SMTPUser "my-username"
509 #       SMTPPassword "my-password"
510 #       From "collectd@main0server.com"
511 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
512 #       Subject "Aaaaaa!! %s on %s!!!!!"
513 #       Recipient "email1@domain1.net"
514 #       Recipient "email2@domain2.com"
515 #</Plugin>
516
517 #<Plugin ntpd>
518 #       Host "localhost"
519 #       Port 123
520 #       ReverseLookups false
521 #</Plugin>
522
523 #<Plugin nut>
524 #       UPS "upsname@hostname:port"
525 #</Plugin>
526
527 #<Plugin olsrd>
528 #       Host "127.0.0.1"
529 #       Port "2006"
530 #       CollectLinks "Summary"
531 #       CollectRoutes "Summary"
532 #       CollectTopology "Summary"
533 #</Plugin>
534
535 #<Plugin onewire>
536 #       Device "-s localhost:4304"
537 #       Sensor "F10FCA000800"
538 #       IgnoreSelected false
539 #</Plugin>
540
541 #<Plugin openvpn>
542 #       StatusFile "/etc/openvpn/openvpn-status.log"
543 #</Plugin>
544
545 #<Plugin oracle>
546 #  <Query "out_of_stock">
547 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
548 #    <Result>
549 #      Type "gauge"
550 #      InstancesFrom "category"
551 #      ValuesFrom "value"
552 #    </Result>
553 #  </Query>
554 #  <Database "product_information">
555 #    ConnectID "db01"
556 #    Username "oracle"
557 #    Password "secret"
558 #    Query "out_of_stock"
559 #  </Database>
560 #</Plugin>
561
562 #<Plugin perl>
563 #       IncludeDir "/my/include/path"
564 #       BaseName "Collectd::Plugin"
565 #       EnableDebugger ""
566 #       LoadPlugin foo
567 #
568 #       <Plugin foo>
569 #               Foo "Bar"
570 #               Qux "Baz"
571 #       </Plugin>
572 #</Plugin>
573
574 #<Plugin ping>
575 #       Host "host.foo.bar"
576 #       TTL 255
577 #</Plugin>
578
579 #<Plugin postgresql>
580 #       <Query magic>
581 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
582 #               Param hostname
583 #               <Result>
584 #                       Type gauge
585 #                       InstancePrefix "magic"
586 #                       ValuesFrom magic
587 #               </Result>
588 #       </Query>
589 #       <Query rt36_tickets>
590 #               Statement "SELECT COUNT(type) AS count, type \
591 #                                 FROM (SELECT CASE \
592 #                                              WHEN resolved = 'epoch' THEN 'open' \
593 #                                              ELSE 'resolved' END AS type \
594 #                                              FROM tickets) type \
595 #                                 GROUP BY type;"
596 #               <Result>
597 #                       Type counter
598 #                       InstancePrefix "rt36_tickets"
599 #                       InstancesFrom "type"
600 #                       ValuesFrom "count"
601 #               </Result>
602 #       </Query>
603 #       <Database foo>
604 #               Host "hostname"
605 #               Port "5432"
606 #               User "username"
607 #               Password "secret"
608 #               SSLMode "prefer"
609 #               KRBSrvName "kerberos_service_name"
610 #               Query magic
611 #       </Database>
612 #       <Database bar>
613 #               Service "service_name"
614 #               Query backend # predefined
615 #               Query rt36_tickets
616 #       </Database>
617 #</Plugin>
618
619 #<Plugin powerdns>
620 #  <Server "server_name">
621 #    Collect "latency"
622 #    Collect "udp-answers" "udp-queries"
623 #    Socket "/var/run/pdns.controlsocket"
624 #  </Server>
625 #  <Recursor "recursor_name">
626 #    Collect "questions"
627 #    Collect "cache-hits" "cache-misses"
628 #    Socket "/var/run/pdns_recursor.controlsocket"
629 #  </Recursor>
630 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
631 #</Plugin>
632
633 #<Plugin processes>
634 #       Process "name"
635 #</Plugin>
636
637 #<Plugin protocols>
638 #       Value "/^Tcp:/"
639 #       IgnoreSelected false
640 #</Plugin>
641
642 #<Plugin python>
643 #       ModulePath "/path/to/your/python/modules"
644 #       LogTraces true
645 #       Interactive true
646 #       Import "spam"
647 #
648 #       <Module spam>
649 #               spam "wonderful" "lovely"
650 #       </Module>
651 #</Plugin>
652
653 #<Plugin routeros>
654 #       <Router>
655 #               Host "router.example.com"
656 #               Port "8728"
657 #               User "admin"
658 #               Password "dozaiTh4"
659 #               CollectInterface true
660 #               CollectRegistrationTable true
661 #       </Router>
662 #</Plugin>
663
664 #<Plugin rrdcached>
665 #       DaemonAddress "unix:/tmp/rrdcached.sock"
666 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
667 #       CreateFiles true
668 #       CollectStatistics true
669 #</Plugin>
670
671 #<Plugin rrdtool>
672 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
673 #       CacheTimeout 120
674 #       CacheFlush   900
675 #</Plugin>
676
677 #<Plugin sensors>
678 #       Sensor "it8712-isa-0290/temperature-temp1"
679 #       Sensor "it8712-isa-0290/fanspeed-fan3"
680 #       Sensor "it8712-isa-0290/voltage-in8"
681 #       IgnoreSelected false
682 #</Plugin>
683
684 #<Plugin snmp>
685 #   <Data "powerplus_voltge_input">
686 #       Type "voltage"
687 #       Table false
688 #       Instance "input_line1"
689 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
690 #   </Data>
691 #   <Data "hr_users">
692 #       Type "users"
693 #       Table false
694 #       Instance ""
695 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
696 #   </Data>
697 #   <Data "std_traffic">
698 #       Type "if_octets"
699 #       Table true
700 #       Instance "IF-MIB::ifDescr"
701 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
702 #   </Data>
703 #
704 #   <Host "some.switch.mydomain.org">
705 #       Address "192.168.0.2"
706 #       Version 1
707 #       Community "community_string"
708 #       Collect "std_traffic"
709 #       Interval 120
710 #   </Host>
711 #   <Host "some.server.mydomain.org">
712 #       Address "192.168.0.42"
713 #       Version 2
714 #       Community "another_string"
715 #       Collect "std_traffic" "hr_users"
716 #   </Host>
717 #   <Host "some.ups.mydomain.org">
718 #       Address "192.168.0.3"
719 #       Version 1
720 #       Community "more_communities"
721 #       Collect "powerplus_voltge_input"
722 #       Interval 300
723 #   </Host>
724 #</Plugin>
725
726 #<Plugin "table">
727 #       <Table "/proc/slabinfo">
728 #               Instance "slabinfo"
729 #               Separator " "
730 #               <Result>
731 #                       Type gauge
732 #                       InstancePrefix "active_objs"
733 #                       InstancesFrom 0
734 #                       ValuesFrom 1
735 #               </Result>
736 #               <Result>
737 #                       Type gauge
738 #                       InstancePrefix "objperslab"
739 #                       InstancesFrom 0
740 #                       ValuesFrom 4
741 #               </Result>
742 #       </Table>
743 #</Plugin>
744
745 #<Plugin "tail">
746 #  <File "/var/log/exim4/mainlog">
747 #    Instance "exim"
748 #    <Match>
749 #      Regex "S=([1-9][0-9]*)"
750 #      DSType "CounterAdd"
751 #      Type "ipt_bytes"
752 #      Instance "total"
753 #    </Match>
754 #    <Match>
755 #      Regex "\\<R=local_user\\>"
756 #      DSType "CounterInc"
757 #      Type "counter"
758 #      Instance "local_user"
759 #    </Match>
760 #  </File>
761 #</Plugin>
762
763 #<Plugin tcpconns>
764 #       ListeningPorts false
765 #       LocalPort "25"
766 #       RemotePort "25"
767 #</Plugin>
768
769 #<Plugin teamspeak2>
770 #       Host "127.0.0.1"
771 #       Port "51234"
772 #       Server "8767"
773 #</Plugin>
774
775 #<Plugin ted>
776 #       Device "/dev/ttyUSB0"
777 #       Retries 0
778 #</Plugin>
779
780 #<Plugin thermal>
781 #       ForceUseProcfs false
782 #       Device "THRM"
783 #       IgnoreSelected false
784 #</Plugin>
785
786 #<Plugin tokyotyrant>
787 #       Host "localhost"
788 #       Port "1978"
789 #</Plugin>
790
791 #<Plugin unixsock>
792 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
793 #       SocketGroup "collectd"
794 #       SocketPerms "0660"
795 #</Plugin>
796
797 #<Plugin uuid>
798 #       UUIDFile "/etc/uuid"
799 #</Plugin>
800
801 #<Plugin vmem>
802 #       Verbose false
803 #</Plugin>
804
805 #<Plugin write_http>
806 #       <URL "http://example.com/collectd-post">
807 #               User "collectd"
808 #               Password "weCh3ik0"
809 #       </URL>
810 #</Plugin>
811
812 ##############################################################################
813 # Filter configuration                                                       #
814 #----------------------------------------------------------------------------#
815 # The following configures collectd's filtering mechanism. Before changing   #
816 # anything in this section, please read the `FILTER CONFIGURATION' section   #
817 # in the collectd.conf(5) manual page.                                       #
818 ##############################################################################
819
820 # Load required matches:
821 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
822 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
823 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
824 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
825
826 # Load required targets:
827 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
828 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
829 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
830
831 #----------------------------------------------------------------------------#
832 # The following block demonstrates the default behavior if no filtering is   #
833 # configured at all: All values will be sent to all available write plugins. #
834 #----------------------------------------------------------------------------#
835
836 #<Chain "PostCache">
837 #  Target "write"
838 #</Chain>