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