Code

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