07baf6f8339717501011410da2db03a9a5368c95
[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     "@localstatedir@/lib/@PACKAGE_NAME@"
16 #PIDFile     "@localstatedir@/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@libdir@/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
19
20 #----------------------------------------------------------------------------#
21 # When enabled, plugins are loaded automatically with the default options    #
22 # when an appropriate <Plugin ...> block is encountered.                     #
23 # Disabled by default.                                                       #
24 #----------------------------------------------------------------------------#
25 #AutoLoadPlugin false
26
27 #----------------------------------------------------------------------------#
28 # Interval at which to query values. This may be overwritten on a per-plugin #
29 # base by using the 'Interval' option of the LoadPlugin block:               #
30 #   <LoadPlugin foo>                                                         #
31 #       Interval 60                                                          #
32 #   </LoadPlugin>                                                            #
33 #----------------------------------------------------------------------------#
34 #Interval     10
35
36 #Timeout      2
37 #ReadThreads  5
38 #WriteThreads 5
39
40 # Limit the size of the write queue. Default is no limit. Setting up a limit is
41 # recommended for servers handling a high volume of traffic.
42 #WriteQueueLimitHigh 1000000
43 #WriteQueueLimitLow   800000
44
45 ##############################################################################
46 # Logging                                                                    #
47 #----------------------------------------------------------------------------#
48 # Plugins which provide logging functions should be loaded first, so log     #
49 # messages generated when loading or configuring other plugins can be        #
50 # accessed.                                                                  #
51 ##############################################################################
52
53 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
54 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
55
56 #<Plugin logfile>
57 #       LogLevel @DEFAULT_LOG_LEVEL@
58 #       File STDOUT
59 #       Timestamp true
60 #       PrintSeverity false
61 #</Plugin>
62
63 #<Plugin syslog>
64 #       LogLevel @DEFAULT_LOG_LEVEL@
65 #</Plugin>
66
67 ##############################################################################
68 # LoadPlugin section                                                         #
69 #----------------------------------------------------------------------------#
70 # Lines beginning with a single `#' belong to plugins which have been built  #
71 # but are disabled by default.                                               #
72 #                                                                            #
73 # Lines begnning with `##' belong to plugins which have not been built due   #
74 # to missing dependencies or because they have been deactivated explicitly.  #
75 ##############################################################################
76
77 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
78 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
79 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
80 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
81 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
82 #@BUILD_PLUGIN_AQUAERO_TRUE@LoadPlugin aquaero
83 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
84 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
85 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
86 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
87 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
88 #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
89 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
90 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
91 @LOAD_PLUGIN_CSV@LoadPlugin csv
92 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
93 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
94 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
95 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
96 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
97 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
98 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
99 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
100 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
101 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
102 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
103 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
104 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
105 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
106 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
107 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
108 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
109 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
110 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
111 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
112 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
113 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
114 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
115 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
116 #@BUILD_PLUGIN_LVM_TRUE@LoadPlugin lvm
117 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
118 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
119 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
120 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
121 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
122 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
123 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
124 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
125 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
126 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
127 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
128 @LOAD_PLUGIN_NETWORK@LoadPlugin network
129 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
130 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
131 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
132 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
133 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
134 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
135 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
136 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
137 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
138 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
139 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
140 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
141 #@BUILD_PLUGIN_PERL_TRUE@  Globals true
142 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
143 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
144 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
145 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
146 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
147 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
148 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
149 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
150 #@BUILD_PLUGIN_PYTHON_TRUE@  Globals true
151 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
152 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
153 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
154 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
155 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
156 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
157 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
158 #@BUILD_PLUGIN_SIGROK_TRUE@LoadPlugin sigrok
159 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
160 #@BUILD_PLUGIN_STATSD_TRUE@LoadPlugin statsd
161 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
162 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
163 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
164 #@BUILD_PLUGIN_TAIL_CSV_TRUE@LoadPlugin tail_csv
165 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
166 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
167 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
168 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
169 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
170 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
171 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
172 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
173 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
174 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
175 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
176 #@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
177 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
178 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
179 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
180 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
181 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
182 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
183 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
184 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
185 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
186 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
187
188 ##############################################################################
189 # Plugin configuration                                                       #
190 #----------------------------------------------------------------------------#
191 # In this section configuration stubs for each plugin are provided. A desc-  #
192 # ription of those options is available in the collectd.conf(5) manual page. #
193 ##############################################################################
194
195 #<Plugin "aggregation">
196 #  <Aggregation>
197 #    #Host "unspecified"
198 #    Plugin "cpu"
199 #    #PluginInstance "unspecified"
200 #    Type "cpu"
201 #    #TypeInstance "unspecified"
202 #
203 #    GroupBy "Host"
204 #    GroupBy "TypeInstance"
205 #
206 #    CalculateNum false
207 #    CalculateSum false
208 #    CalculateAverage true
209 #    CalculateMinimum false
210 #    CalculateMaximum false
211 #    CalculateStddev false
212 #  </Aggregation>
213 #</Plugin>
214
215 #<Plugin "amqp">
216 #  <Publish "name">
217 #    Host "localhost"
218 #    Port "5672"
219 #    VHost "/"
220 #    User "guest"
221 #    Password "guest"
222 #    Exchange "amq.fanout"
223 #    RoutingKey "collectd"
224 #    Persistent false
225 #    StoreRates false
226 #  </Publish>
227 #</Plugin>
228
229 #<Plugin apache>
230 #  <Instance "local">
231 #    URL "http://localhost/status?auto"
232 #    User "www-user"
233 #    Password "secret"
234 #    CACert "/etc/ssl/ca.crt"
235 #  </Instance>
236 #</Plugin>
237
238 #<Plugin apcups>
239 #       Host "localhost"
240 #       Port "3551"
241 #       ReportSeconds true
242 #</Plugin>
243
244 #<Plugin aquaero>
245 #       Device ""
246 #</Plugin>
247
248 #<Plugin ascent>
249 #       URL "http://localhost/ascent/status/"
250 #       User "www-user"
251 #       Password "secret"
252 #       CACert "/etc/ssl/ca.crt"
253 #</Plugin>
254
255 #<Plugin "bind">
256 #  URL "http://localhost:8053/"
257 #  ParseTime       false
258 #  OpCodes         true
259 #  QTypes          true
260 #
261 #  ServerStats     true
262 #  ZoneMaintStats  true
263 #  ResolverStats   false
264 #  MemoryStats     true
265 #
266 #  <View "_default">
267 #    QTypes        true
268 #    ResolverStats true
269 #    CacheRRSets   true
270 #
271 #    Zone "127.in-addr.arpa/IN"
272 #  </View>
273 #</Plugin>
274
275 #<Plugin cgroup>
276 #  CGroup "libvirt"
277 #  IgnoreSelected false
278 #</Plugin>
279
280 #<Plugin csv>
281 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
282 #       StoreRates false
283 #</Plugin>
284
285 #<Plugin curl>
286 #  <Page "stock_quotes">
287 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
288 #    User "foo"
289 #    Password "bar"
290 #    MeasureResponseTime false
291 #    <Match>
292 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
293 #      DSType "GaugeAverage"
294 #      Type "stock_value"
295 #      Instance "AMD"
296 #    </Match>
297 #  </Page>
298 #</Plugin>
299
300 #<Plugin curl_json>
301 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
302 #  <URL "http://localhost:5984/_stats">
303 #    Instance "httpd"
304 #    <Key "httpd/requests/count">
305 #      Type "http_requests"
306 #    </Key>
307 #
308 #    <Key "httpd_request_methods/*/count">
309 #      Type "http_request_methods"
310 #    </Key>
311 #
312 #    <Key "httpd_status_codes/*/count">
313 #      Type "http_response_codes"
314 #    </Key>
315 #  </URL>
316 ## Database status metrics:
317 #  <URL "http://localhost:5984/_all_dbs">
318 #    Instance "dbs"
319 #    <Key "*/doc_count">
320 #      Type "gauge"
321 #    </Key>
322 #    <Key "*/doc_del_count">
323 #      Type "counter"
324 #    </Key>
325 #    <Key "*/disk_size">
326 #      Type "bytes"
327 #    </Key>
328 #  </URL>
329 #</Plugin>
330
331 #<Plugin "curl_xml">
332 #  <URL "http://localhost/stats.xml">
333 #    Host "my_host"
334 #    Instance "some_instance"
335 #    User "collectd"
336 #    Password "thaiNg0I"
337 #    VerifyPeer true
338 #    VerifyHost true
339 #    CACert "/path/to/ca.crt"
340 #
341 #    <XPath "table[@id=\"magic_level\"]/tr">
342 #      Type "magic_level"
343 #      #InstancePrefix "prefix-"
344 #      InstanceFrom "td[1]"
345 #      ValuesFrom "td[2]/span[@class=\"level\"]"
346 #    </XPath>
347 #  </URL>
348 #</Plugin>
349
350 #<Plugin dbi>
351 #       <Query "num_of_customers">
352 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
353 #               <Result>
354 #                       Type "gauge"
355 #                       InstancesFrom "c_key"
356 #                       ValuesFrom "c_value"
357 #               </Result>
358 #       </Query>
359 #       <Database "customers_db">
360 #               Driver "mysql"
361 #               DriverOption "host" "localhost"
362 #               DriverOption "username" "collectd"
363 #               DriverOption "password" "AeXohy0O"
364 #               DriverOption "dbname" "custdb0"
365 #               #SelectDB "custdb0"
366 #               Query "num_of_customers"
367 #               #Query "..."
368 #               #Host "..."
369 #       </Database>
370 #</Plugin>
371
372 #<Plugin df>
373 #       Device "/dev/hda1"
374 #       Device "192.168.0.2:/mnt/nfs"
375 #       MountPoint "/home"
376 #       FSType "ext3"
377 #       IgnoreSelected false
378 #       ReportByDevice false
379 #       ReportReserved false
380 #       ReportInodes false
381 #       ValuesAbsolute true
382 #       ValuesPercentage false
383 #</Plugin>
384
385 #<Plugin disk>
386 #       Disk "/^[hs]d[a-f][0-9]?$/"
387 #       IgnoreSelected false
388 #</Plugin>
389
390 #<Plugin dns>
391 #       Interface "eth0"
392 #       IgnoreSource "192.168.0.1"
393 #       SelectNumericQueryTypes true
394 #</Plugin>
395
396 #<Plugin email>
397 #       SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
398 #       SocketGroup "collectd"
399 #       SocketPerms "0770"
400 #       MaxConns 5
401 #</Plugin>
402
403 #<Plugin ethstat>
404 #       Interface "eth0"
405 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
406 #       Map "multicast" "if_multicast"
407 #       MappedOnly false
408 #</Plugin>
409
410 #<Plugin exec>
411 #       Exec "user:group" "/path/to/exec"
412 #       NotificationExec "user:group" "/path/to/exec"
413 #</Plugin>
414
415 #<Plugin filecount>
416 #       <Directory "/path/to/dir">
417 #               Instance "foodir"
418 #               Name "*.conf"
419 #               MTime "-5m"
420 #               Size "+10k"
421 #               Recursive true
422 #               IncludeHidden false
423 #       </Directory>
424 #</Plugin>
425
426 #<Plugin "gmond">
427 #  MCReceiveFrom "239.2.11.71" "8649"
428 #  <Metric "swap_total">
429 #    Type "swap"
430 #    TypeInstance "total"
431 #    DataSource "value"
432 #  </Metric>
433 #  <Metric "swap_free">
434 #    Type "swap"
435 #    TypeInstance "free"
436 #    DataSource "value"
437 #  </Metric>
438 #</Plugin>
439
440 #<Plugin hddtemp>
441 #  Host "127.0.0.1"
442 #  Port "7634"
443 #</Plugin>
444
445 #<Plugin interface>
446 #       Interface "eth0"
447 #       IgnoreSelected false
448 #</Plugin>
449
450 #<Plugin ipmi>
451 #       Sensor "some_sensor"
452 #       Sensor "another_one"
453 #       IgnoreSelected false
454 #       NotifySensorAdd false
455 #       NotifySensorRemove true
456 #       NotifySensorNotPresent false
457 #</Plugin>
458
459 #<Plugin iptables>
460 #       Chain table chain
461 #</Plugin>
462
463 #<Plugin irq>
464 #       Irq 7
465 #       Irq 8
466 #       Irq 9
467 #       IgnoreSelected true
468 #</Plugin>
469
470 #<Plugin "java">
471 #       JVMArg "-verbose:jni"
472 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
473 #
474 #       LoadPlugin "org.collectd.java.Foobar"
475 #       <Plugin "org.collectd.java.Foobar">
476 #         # To be parsed by the plugin
477 #       </Plugin>
478 #</Plugin>
479
480 #<Plugin libvirt>
481 #       Connection "xen:///"
482 #       RefreshInterval 60
483 #       Domain "name"
484 #       BlockDevice "name:device"
485 #       InterfaceDevice "name:device"
486 #       IgnoreSelected false
487 #       HostnameFormat name
488 #       InterfaceFormat name
489 #</Plugin>
490
491 #<Plugin load>
492 #        ReportRelative true
493 #</Plugin>
494
495 #<Plugin lpar>
496 #       CpuPoolStats   false
497 #       ReportBySerial false
498 #</Plugin>
499
500 #<Plugin madwifi>
501 #       Interface "wlan0"
502 #       IgnoreSelected false
503 #       Source "SysFS"
504 #       WatchSet "None"
505 #       WatchAdd "node_octets"
506 #       WatchAdd "node_rssi"
507 #       WatchAdd "is_rx_acl"
508 #       WatchAdd "is_scan_active"
509 #</Plugin>
510
511 #<Plugin mbmon>
512 #       Host "127.0.0.1"
513 #       Port "411"
514 #</Plugin>
515
516 #<Plugin md>
517 #       Device "/dev/md0"
518 #       IgnoreSelected false
519 #</Plugin>
520
521 #<Plugin memcachec>
522 #       <Page "plugin_instance">
523 #               Server "localhost"
524 #               Key "page_key"
525 #               <Match>
526 #                       Regex "(\\d+) bytes sent"
527 #                       ExcludeRegex "<lines to be excluded>"
528 #                       DSType CounterAdd
529 #                       Type "ipt_octets"
530 #                       Instance "type_instance"
531 #               </Match>
532 #       </Page>
533 #</Plugin>
534
535 #<Plugin memcached>
536 #       <Instance "local">
537 #               Host "127.0.0.1"
538 #               Port "11211"
539 #       </Instance>
540 #</Plugin>
541
542 #<Plugin modbus>
543 #       <Data "data_name">
544 #               RegisterBase 1234
545 #               RegisterType float
546 #               Type gauge
547 #               Instance "..."
548 #       </Data>
549 #
550 #       <Host "name">
551 #               Address "addr"
552 #               Port "1234"
553 #               Interval 60
554 #
555 #               <Slave 1>
556 #                       Instance "foobar" # optional
557 #                       Collect "data_name"
558 #               </Slave>
559 #       </Host>
560 #</Plugin>
561
562 #<Plugin mysql>
563 #       <Database db_name>
564 #               Host "database.serv.er"
565 #               User "db_user"
566 #               Password "secret"
567 #               Database "db_name"
568 #               MasterStats true
569 #       </Database>
570 #
571 #       <Database db_name2>
572 #               Host "localhost"
573 #               Socket "/var/run/mysql/mysqld.sock"
574 #               SlaveStats true
575 #               SlaveNotifications true
576 #       </Database>
577 #</Plugin>
578
579 #<Plugin netapp>
580 #       <Host "netapp1.example.com">
581 #               Protocol      "https"
582 #               Address       "10.0.0.1"
583 #               Port          443
584 #               User          "username"
585 #               Password      "aef4Aebe"
586 #               Interval      30
587 #
588 #               <WAFL>
589 #                       Interval 30
590 #                       GetNameCache   true
591 #                       GetDirCache    true
592 #                       GetBufferCache true
593 #                       GetInodeCache  true
594 #               </WAFL>
595 #
596 #               <Disks>
597 #                       Interval 30
598 #                       GetBusy true
599 #               </Disks>
600 #
601 #               <VolumePerf>
602 #                       Interval 30
603 #                       GetIO      "volume0"
604 #                       IgnoreSelectedIO      false
605 #                       GetOps     "volume0"
606 #                       IgnoreSelectedOps     false
607 #                       GetLatency "volume0"
608 #                       IgnoreSelectedLatency false
609 #               </VolumePerf>
610 #
611 #               <VolumeUsage>
612 #                       Interval 30
613 #                       GetCapacity "vol0"
614 #                       GetCapacity "vol1"
615 #                       IgnoreSelectedCapacity false
616 #                       GetSnapshot "vol1"
617 #                       GetSnapshot "vol3"
618 #                       IgnoreSelectedSnapshot false
619 #               </VolumeUsage>
620 #
621 #               <System>
622 #                       Interval 30
623 #                       GetCPULoad     true
624 #                       GetInterfaces  true
625 #                       GetDiskOps     true
626 #                       GetDiskIO      true
627 #               </System>
628 #       </Host>
629 #</Plugin>
630
631 #<Plugin netlink>
632 #       Interface "All"
633 #       VerboseInterface "All"
634 #       QDisc "eth0" "pfifo_fast-1:0"
635 #       Class "ppp0" "htb-1:10"
636 #       Filter "ppp0" "u32-1:0"
637 #       IgnoreSelected false
638 #</Plugin>
639
640 @LOAD_PLUGIN_NETWORK@<Plugin network>
641 #       # client setup:
642 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
643 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
644 #               SecurityLevel Encrypt
645 #               Username "user"
646 #               Password "secret"
647 #               Interface "eth0"
648 @LOAD_PLUGIN_NETWORK@   </Server>
649 #       TimeToLive "128"
650 #
651 #       # server setup:
652 #       Listen "ff18::efc0:4a42" "25826"
653 #       <Listen "239.192.74.66" "25826">
654 #               SecurityLevel Sign
655 #               AuthFile "/etc/collectd/passwd"
656 #               Interface "eth0"
657 #       </Listen>
658 #       MaxPacketSize 1024
659 #
660 #       # proxy setup (client and server as above):
661 #       Forward true
662 #
663 #       # statistics about the network plugin itself
664 #       ReportStats false
665 #
666 #       # "garbage collection"
667 #       CacheFlush 1800
668 @LOAD_PLUGIN_NETWORK@</Plugin>
669
670 #<Plugin nginx>
671 #       URL "http://localhost/status?auto"
672 #       User "www-user"
673 #       Password "secret"
674 #       CACert "/etc/ssl/ca.crt"
675 #</Plugin>
676
677 #<Plugin notify_desktop>
678 #       OkayTimeout 1000
679 #       WarningTimeout 5000
680 #       FailureTimeout 0
681 #</Plugin>
682
683 #<Plugin notify_email>
684 #       SMTPServer "localhost"
685 #       SMTPPort 25
686 #       SMTPUser "my-username"
687 #       SMTPPassword "my-password"
688 #       From "collectd@main0server.com"
689 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
690 #       Subject "Aaaaaa!! %s on %s!!!!!"
691 #       Recipient "email1@domain1.net"
692 #       Recipient "email2@domain2.com"
693 #</Plugin>
694
695 #<Plugin ntpd>
696 #       Host "localhost"
697 #       Port 123
698 #       ReverseLookups false
699 #       IncludeUnitID true
700 #</Plugin>
701
702 #<Plugin nut>
703 #       UPS "upsname@hostname:port"
704 #</Plugin>
705
706 #<Plugin olsrd>
707 #       Host "127.0.0.1"
708 #       Port "2006"
709 #       CollectLinks "Summary"
710 #       CollectRoutes "Summary"
711 #       CollectTopology "Summary"
712 #</Plugin>
713
714 #<Plugin onewire>
715 #       Device "-s localhost:4304"
716 #       Sensor "F10FCA000800"
717 #       IgnoreSelected false
718 #</Plugin>
719
720 #<Plugin openvpn>
721 #       StatusFile "/etc/openvpn/openvpn-status.log"
722 #       ImprovedNamingSchema false
723 #       CollectCompression true
724 #       CollectIndividualUsers true
725 #       CollectUserCount false
726 #</Plugin>
727
728 #<Plugin oracle>
729 #  <Query "out_of_stock">
730 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
731 #    <Result>
732 #      Type "gauge"
733 #      InstancesFrom "category"
734 #      ValuesFrom "value"
735 #    </Result>
736 #  </Query>
737 #  <Database "product_information">
738 #    ConnectID "db01"
739 #    Username "oracle"
740 #    Password "secret"
741 #    Query "out_of_stock"
742 #  </Database>
743 #</Plugin>
744
745 #<Plugin perl>
746 #       IncludeDir "/my/include/path"
747 #       BaseName "Collectd::Plugins"
748 #       EnableDebugger ""
749 #       LoadPlugin Monitorus
750 #       LoadPlugin OpenVZ
751 #
752 #       <Plugin foo>
753 #               Foo "Bar"
754 #               Qux "Baz"
755 #       </Plugin>
756 #</Plugin>
757
758 #<Plugin pinba>
759 #       Address "::0"
760 #       Port "30002"
761 #       <View "name">
762 #               Host "host name"
763 #               Server "server name"
764 #               Script "script name"
765 #       </View>
766 #</Plugin>
767
768 #<Plugin ping>
769 #       Host "host.foo.bar"
770 #       Interval 1.0
771 #       Timeout 0.9
772 #       TTL 255
773 #       SourceAddress "1.2.3.4"
774 #       Device "eth0"
775 #       MaxMissed -1
776 #</Plugin>
777
778 #<Plugin postgresql>
779 #       <Query magic>
780 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
781 #               Param hostname
782 #               <Result>
783 #                       Type gauge
784 #                       InstancePrefix "magic"
785 #                       ValuesFrom magic
786 #               </Result>
787 #       </Query>
788 #       <Query rt36_tickets>
789 #               Statement "SELECT COUNT(type) AS count, type \
790 #                                 FROM (SELECT CASE \
791 #                                              WHEN resolved = 'epoch' THEN 'open' \
792 #                                              ELSE 'resolved' END AS type \
793 #                                              FROM tickets) type \
794 #                                 GROUP BY type;"
795 #               <Result>
796 #                       Type counter
797 #                       InstancePrefix "rt36_tickets"
798 #                       InstancesFrom "type"
799 #                       ValuesFrom "count"
800 #               </Result>
801 #       </Query>
802 #       <Writer sqlstore>
803 #               # See contrib/postgresql/collectd_insert.sql for details
804 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
805 #               StoreRates true
806 #       </Writer>
807 #       <Database foo>
808 #               Host "hostname"
809 #               Port "5432"
810 #               User "username"
811 #               Password "secret"
812 #               SSLMode "prefer"
813 #               KRBSrvName "kerberos_service_name"
814 #               Query magic
815 #       </Database>
816 #       <Database bar>
817 #               Interval 60
818 #               Service "service_name"
819 #               Query backend # predefined
820 #               Query rt36_tickets
821 #       </Database>
822 #       <Database qux>
823 #               Service "collectd_store"
824 #               Writer sqlstore
825 #               # see collectd.conf(5) for details
826 #               CommitInterval 30
827 #       </Database>
828 #</Plugin>
829
830 #<Plugin powerdns>
831 #  <Server "server_name">
832 #    Collect "latency"
833 #    Collect "udp-answers" "udp-queries"
834 #    Socket "/var/run/pdns.controlsocket"
835 #  </Server>
836 #  <Recursor "recursor_name">
837 #    Collect "questions"
838 #    Collect "cache-hits" "cache-misses"
839 #    Socket "/var/run/pdns_recursor.controlsocket"
840 #  </Recursor>
841 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
842 #</Plugin>
843
844 #<Plugin processes>
845 #       Process "name"
846 #</Plugin>
847
848 #<Plugin protocols>
849 #       Value "/^Tcp:/"
850 #       IgnoreSelected false
851 #</Plugin>
852
853 #<Plugin python>
854 #       ModulePath "/path/to/your/python/modules"
855 #       LogTraces true
856 #       Interactive true
857 #       Import "spam"
858 #
859 #       <Module spam>
860 #               spam "wonderful" "lovely"
861 #       </Module>
862 #</Plugin>
863
864 #<Plugin redis>
865 #   <Node example>
866 #      Host "redis.example.com"
867 #      Port "6379"
868 #      Timeout 2000
869 #   </Node>
870 #</Plugin>
871
872 #<Plugin routeros>
873 #       <Router>
874 #               Host "router.example.com"
875 #               Port "8728"
876 #               User "admin"
877 #               Password "dozaiTh4"
878 #               CollectInterface true
879 #               CollectRegistrationTable true
880 #               CollectCPULoad true
881 #               CollectMemory true
882 #               CollectDF true
883 #               CollectDisk true
884 #       </Router>
885 #</Plugin>
886
887 #<Plugin rrdcached>
888 #       DaemonAddress "unix:/tmp/rrdcached.sock"
889 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
890 #       CreateFiles true
891 #       CreateFilesAsync false
892 #       CollectStatistics true
893 #</Plugin>
894
895 #<Plugin rrdtool>
896 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
897 #       CreateFilesAsync false
898 #       CacheTimeout 120
899 #       CacheFlush   900
900 #       WritesPerSecond 50
901 #</Plugin>
902
903 #<Plugin sensors>
904 #       SensorConfigFile "/etc/sensors.conf"
905 #       Sensor "it8712-isa-0290/temperature-temp1"
906 #       Sensor "it8712-isa-0290/fanspeed-fan3"
907 #       Sensor "it8712-isa-0290/voltage-in8"
908 #       IgnoreSelected false
909 #</Plugin>
910
911 #<Plugin sigrok>
912 #  LogLevel 3
913 #  <Device "AC Voltage">
914 #    Driver "fluke-dmm"
915 #    MinimumInterval 10
916 #    Conn "/dev/ttyUSB2"
917 #  </Device>
918 #  <Device "Sound Level">
919 #    Driver "cem-dt-885x"
920 #    Conn "/dev/ttyUSB1"
921 #  </Device>
922 #</Plugin>
923
924 #<Plugin snmp>
925 #   <Data "powerplus_voltge_input">
926 #       Type "voltage"
927 #       Table false
928 #       Instance "input_line1"
929 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
930 #   </Data>
931 #   <Data "hr_users">
932 #       Type "users"
933 #       Table false
934 #       Instance ""
935 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
936 #   </Data>
937 #   <Data "std_traffic">
938 #       Type "if_octets"
939 #       Table true
940 #       Instance "IF-MIB::ifDescr"
941 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
942 #   </Data>
943 #
944 #   <Host "some.switch.mydomain.org">
945 #       Address "192.168.0.2"
946 #       Version 1
947 #       Community "community_string"
948 #       Collect "std_traffic"
949 #       Interval 120
950 #   </Host>
951 #   <Host "some.server.mydomain.org">
952 #       Address "192.168.0.42"
953 #       Version 2
954 #       Community "another_string"
955 #       Collect "std_traffic" "hr_users"
956 #   </Host>
957 #   <Host "some.ups.mydomain.org">
958 #       Address "192.168.0.3"
959 #       Version 1
960 #       Community "more_communities"
961 #       Collect "powerplus_voltge_input"
962 #       Interval 300
963 #   </Host>
964 #</Plugin>
965
966 #<Plugin statsd>
967 #  Host "::"
968 #  Port "8125"
969 #  DeleteCounters false
970 #  DeleteTimers   false
971 #  DeleteGauges   false
972 #  DeleteSets     false
973 #  TimerPercentile 90.0
974 #</Plugin>
975
976 #<Plugin "swap">
977 #       ReportByDevice false
978 #       ReportBytes true
979 #       ValuesAbsolute true
980 #       ValuesPercentage false
981 #</Plugin>
982
983 #<Plugin "table">
984 #       <Table "/proc/slabinfo">
985 #               Instance "slabinfo"
986 #               Separator " "
987 #               <Result>
988 #                       Type gauge
989 #                       InstancePrefix "active_objs"
990 #                       InstancesFrom 0
991 #                       ValuesFrom 1
992 #               </Result>
993 #               <Result>
994 #                       Type gauge
995 #                       InstancePrefix "objperslab"
996 #                       InstancesFrom 0
997 #                       ValuesFrom 4
998 #               </Result>
999 #       </Table>
1000 #</Plugin>
1001
1002 #<Plugin "tail">
1003 #  <File "/var/log/exim4/mainlog">
1004 #    Instance "exim"
1005 #    <Match>
1006 #      Regex "S=([1-9][0-9]*)"
1007 #      DSType "CounterAdd"
1008 #      Type "ipt_bytes"
1009 #      Instance "total"
1010 #    </Match>
1011 #    <Match>
1012 #      Regex "\\<R=local_user\\>"
1013 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1014 #      DSType "CounterInc"
1015 #      Type "counter"
1016 #      Instance "local_user"
1017 #    </Match>
1018 #  </File>
1019 #</Plugin>
1020
1021 #<Plugin "tail_csv">
1022 #   <Metric "dropped">
1023 #       Type "percent"
1024 #       Instance "dropped"
1025 #       ValueFrom 1
1026 #   </Metric>
1027 #   <Metric "mbps">
1028 #       Type "bytes"
1029 #       Instance "wire-realtime"
1030 #       ValueFrom 2
1031 #   </Metric>
1032 #   <Metric "alerts">
1033 #       Type "alerts_per_second"
1034 #       ValueFrom 3
1035 #   </Metric>
1036 #   <Metric "kpps">
1037 #       Type "kpackets_wire_per_sec.realtime"
1038 #       ValueFrom 4
1039 #   </Metric>
1040 #   <File "/var/log/snort/snort.stats">
1041 #       Instance "snort-eth0"
1042 #       Interval 600
1043 #       Collect "dropped" "mbps" "alerts" "kpps"
1044 #       TimeFrom 0
1045 #   </File>
1046 #</Plugin>
1047
1048 #<Plugin tcpconns>
1049 #       ListeningPorts false
1050 #       LocalPort "25"
1051 #       RemotePort "25"
1052 #</Plugin>
1053
1054 #<Plugin teamspeak2>
1055 #       Host "127.0.0.1"
1056 #       Port "51234"
1057 #       Server "8767"
1058 #</Plugin>
1059
1060 #<Plugin ted>
1061 #       Device "/dev/ttyUSB0"
1062 #       Retries 0
1063 #</Plugin>
1064
1065 #<Plugin thermal>
1066 #       ForceUseProcfs false
1067 #       Device "THRM"
1068 #       IgnoreSelected false
1069 #</Plugin>
1070
1071 #<Plugin tokyotyrant>
1072 #       Host "localhost"
1073 #       Port "1978"
1074 #</Plugin>
1075
1076 #<Plugin unixsock>
1077 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1078 #       SocketGroup "collectd"
1079 #       SocketPerms "0660"
1080 #       DeleteSocket false
1081 #</Plugin>
1082
1083 #<Plugin uuid>
1084 #       UUIDFile "/etc/uuid"
1085 #</Plugin>
1086
1087 #<Plugin mic>
1088 #   ShowCPU true
1089 #   ShowCPUCores true
1090 #   ShowMemory true
1091 #   ShowTemperatures true
1092 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1093 ##  then inverted with a IgnoreSelectedTemperature.
1094 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1095 #   Temperature vddg
1096 #   IgnoreSelectedTemperature true
1097 #   ShowPower true
1098 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1099 ##  then inverted with a IgnoreSelectedTemperature.
1100 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1101 #   Power total1
1102 #   IgnoreSelectedPower true
1103 #</Plugin>
1104
1105 #<Plugin varnish>
1106 #   This tag support an argument if you want to
1107 #   monitor the local instance just use </Instance>
1108 #   If you prefer defining another instance you can do
1109 #   so by using <Instance "myinstance">
1110 #   <Instance>
1111 #      CollectCache true
1112 #      CollectBackend true
1113 #      CollectBan false           # Varnish 3 only
1114 #      CollectConnections true
1115 #      CollectDirectorDNS false   # Varnish 3 only
1116 #      CollectSHM true
1117 #      CollectESI false
1118 #      CollectFetch false
1119 #      CollectHCB false
1120 #      CollectObjects false
1121 #      CollectPurge false         # Varnish 2 only
1122 #      CollectSession false
1123 #      CollectSMA false           # Varnish 2 only
1124 #      CollectSMS false
1125 #      CollectSM false            # Varnish 2 only
1126 #      CollectStruct false
1127 #      CollectTotals false
1128 #      CollectUptime false
1129 #      CollectVCL false
1130 #      CollectWorkers false
1131 #   </Instance>
1132 #</Plugin>
1133
1134 #<Plugin vmem>
1135 #       Verbose false
1136 #</Plugin>
1137
1138 #<Plugin write_graphite>
1139 #  <Node "example">
1140 #    Host "localhost"
1141 #    Port "2003"
1142 #    Protocol "tcp"
1143 #    LogSendErrors true
1144 #    Prefix "collectd"
1145 #    Postfix "collectd"
1146 #    StoreRates true
1147 #    AlwaysAppendDS false
1148 #    EscapeCharacter "_"
1149 #  </Node>
1150 #</Plugin>
1151
1152 #<Plugin write_http>
1153 #       <URL "http://example.com/collectd-post">
1154 #               User "collectd"
1155 #               Password "weCh3ik0"
1156 #               VerifyPeer true
1157 #               VerifyHost true
1158 #               CACert "/etc/ssl/ca.crt"
1159 #               Format "Command"
1160 #               StoreRates false
1161 #       </URL>
1162 #</Plugin>
1163
1164 #<Plugin write_mongodb>
1165 #       <Node "example">
1166 #               Host "localhost"
1167 #               Port "27017"
1168 #               Timeout 1000
1169 #               StoreRates false
1170 #               Database "auth_db"
1171 #               User "auth_user"
1172 #               Password "auth_passwd"
1173 #       </Node>
1174 #</Plugin>
1175
1176 #<Plugin write_redis>
1177 #       <Node "example">
1178 #               Host "localhost"
1179 #               Port "6379"
1180 #               Timeout 1000
1181 #       </Node>
1182 #</Plugin>
1183
1184 #<Plugin write_riemann>
1185 #       <Node "example">
1186 #               Host "localhost"
1187 #               Port 5555
1188 #               Protocol UDP
1189 #               StoreRates true
1190 #               AlwaysAppendDS false
1191 #               TTLFactor 2.0
1192 #       </Node>
1193 #       Tag "foobar"
1194 #       Attribute "foo" "bar"
1195 #</Plugin>
1196
1197 ##############################################################################
1198 # Filter configuration                                                       #
1199 #----------------------------------------------------------------------------#
1200 # The following configures collectd's filtering mechanism. Before changing   #
1201 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1202 # in the collectd.conf(5) manual page.                                       #
1203 ##############################################################################
1204
1205 # Load required matches:
1206 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1207 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1208 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1209 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1210 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1211
1212 # Load required targets:
1213 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1214 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1215 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1216 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1217 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1218
1219 #----------------------------------------------------------------------------#
1220 # The following block demonstrates the default behavior if no filtering is   #
1221 # configured at all: All values will be sent to all available write plugins. #
1222 #----------------------------------------------------------------------------#
1223
1224 #<Chain "PostCache">
1225 #  Target "write"
1226 #</Chain>
1227
1228 ##############################################################################
1229 # Threshold configuration                                                    #
1230 #----------------------------------------------------------------------------#
1231 # The following outlines how to configure collectd's threshold checking      #
1232 # plugin. The plugin and possible configuration options are documented in    #
1233 # the collectd-threshold(5) manual page.                                     #
1234 ##############################################################################
1235
1236 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1237 #<Plugin "threshold">
1238 #  <Type "foo">
1239 #    WarningMin    0.00
1240 #    WarningMax 1000.00
1241 #    FailureMin    0.00
1242 #    FailureMax 1200.00
1243 #    Invert false
1244 #    Instance "bar"
1245 #  </Type>
1246 #
1247 #  <Plugin "interface">
1248 #    Instance "eth0"
1249 #    <Type "if_octets">
1250 #      FailureMax 10000000
1251 #      DataSource "rx"
1252 #    </Type>
1253 #  </Plugin>
1254 #
1255 #  <Host "hostname">
1256 #    <Type "cpu">
1257 #      Instance "idle"
1258 #      FailureMin 10
1259 #    </Type>
1260 #
1261 #    <Plugin "memory">
1262 #      <Type "memory">
1263 #        Instance "cached"
1264 #        WarningMin 100000000
1265 #      </Type>
1266 #    </Plugin>
1267 #
1268 #    <Type "load">
1269 #       DataSource "midterm"
1270 #       FailureMax 4
1271 #       Hits 3
1272 #       Hysteresis 3
1273 #    </Type>
1274 #  </Host>
1275 #</Plugin>