Merge pull request #497 from pyr/feature-conntrack-pct
[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 memory>
543 #       ValuesAbsolute true
544 #       ValuesPercentage false
545 #</Plugin>
546
547 #<Plugin modbus>
548 #       <Data "data_name">
549 #               RegisterBase 1234
550 #               RegisterType float
551 #               Type gauge
552 #               Instance "..."
553 #       </Data>
554 #
555 #       <Host "name">
556 #               Address "addr"
557 #               Port "1234"
558 #               Interval 60
559 #
560 #               <Slave 1>
561 #                       Instance "foobar" # optional
562 #                       Collect "data_name"
563 #               </Slave>
564 #       </Host>
565 #</Plugin>
566
567 #<Plugin mysql>
568 #       <Database db_name>
569 #               Host "database.serv.er"
570 #               User "db_user"
571 #               Password "secret"
572 #               Database "db_name"
573 #               MasterStats true
574 #       </Database>
575 #
576 #       <Database db_name2>
577 #               Host "localhost"
578 #               Socket "/var/run/mysql/mysqld.sock"
579 #               SlaveStats true
580 #               SlaveNotifications true
581 #       </Database>
582 #</Plugin>
583
584 #<Plugin netapp>
585 #       <Host "netapp1.example.com">
586 #               Protocol      "https"
587 #               Address       "10.0.0.1"
588 #               Port          443
589 #               User          "username"
590 #               Password      "aef4Aebe"
591 #               Interval      30
592 #
593 #               <WAFL>
594 #                       Interval 30
595 #                       GetNameCache   true
596 #                       GetDirCache    true
597 #                       GetBufferCache true
598 #                       GetInodeCache  true
599 #               </WAFL>
600 #
601 #               <Disks>
602 #                       Interval 30
603 #                       GetBusy true
604 #               </Disks>
605 #
606 #               <VolumePerf>
607 #                       Interval 30
608 #                       GetIO      "volume0"
609 #                       IgnoreSelectedIO      false
610 #                       GetOps     "volume0"
611 #                       IgnoreSelectedOps     false
612 #                       GetLatency "volume0"
613 #                       IgnoreSelectedLatency false
614 #               </VolumePerf>
615 #
616 #               <VolumeUsage>
617 #                       Interval 30
618 #                       GetCapacity "vol0"
619 #                       GetCapacity "vol1"
620 #                       IgnoreSelectedCapacity false
621 #                       GetSnapshot "vol1"
622 #                       GetSnapshot "vol3"
623 #                       IgnoreSelectedSnapshot false
624 #               </VolumeUsage>
625 #
626 #               <System>
627 #                       Interval 30
628 #                       GetCPULoad     true
629 #                       GetInterfaces  true
630 #                       GetDiskOps     true
631 #                       GetDiskIO      true
632 #               </System>
633 #       </Host>
634 #</Plugin>
635
636 #<Plugin netlink>
637 #       Interface "All"
638 #       VerboseInterface "All"
639 #       QDisc "eth0" "pfifo_fast-1:0"
640 #       Class "ppp0" "htb-1:10"
641 #       Filter "ppp0" "u32-1:0"
642 #       IgnoreSelected false
643 #</Plugin>
644
645 @LOAD_PLUGIN_NETWORK@<Plugin network>
646 #       # client setup:
647 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
648 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
649 #               SecurityLevel Encrypt
650 #               Username "user"
651 #               Password "secret"
652 #               Interface "eth0"
653 @LOAD_PLUGIN_NETWORK@   </Server>
654 #       TimeToLive "128"
655 #
656 #       # server setup:
657 #       Listen "ff18::efc0:4a42" "25826"
658 #       <Listen "239.192.74.66" "25826">
659 #               SecurityLevel Sign
660 #               AuthFile "/etc/collectd/passwd"
661 #               Interface "eth0"
662 #       </Listen>
663 #       MaxPacketSize 1024
664 #
665 #       # proxy setup (client and server as above):
666 #       Forward true
667 #
668 #       # statistics about the network plugin itself
669 #       ReportStats false
670 #
671 #       # "garbage collection"
672 #       CacheFlush 1800
673 @LOAD_PLUGIN_NETWORK@</Plugin>
674
675 #<Plugin nginx>
676 #       URL "http://localhost/status?auto"
677 #       User "www-user"
678 #       Password "secret"
679 #       CACert "/etc/ssl/ca.crt"
680 #</Plugin>
681
682 #<Plugin notify_desktop>
683 #       OkayTimeout 1000
684 #       WarningTimeout 5000
685 #       FailureTimeout 0
686 #</Plugin>
687
688 #<Plugin notify_email>
689 #       SMTPServer "localhost"
690 #       SMTPPort 25
691 #       SMTPUser "my-username"
692 #       SMTPPassword "my-password"
693 #       From "collectd@main0server.com"
694 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
695 #       Subject "Aaaaaa!! %s on %s!!!!!"
696 #       Recipient "email1@domain1.net"
697 #       Recipient "email2@domain2.com"
698 #</Plugin>
699
700 #<Plugin ntpd>
701 #       Host "localhost"
702 #       Port 123
703 #       ReverseLookups false
704 #       IncludeUnitID true
705 #</Plugin>
706
707 #<Plugin nut>
708 #       UPS "upsname@hostname:port"
709 #</Plugin>
710
711 #<Plugin olsrd>
712 #       Host "127.0.0.1"
713 #       Port "2006"
714 #       CollectLinks "Summary"
715 #       CollectRoutes "Summary"
716 #       CollectTopology "Summary"
717 #</Plugin>
718
719 #<Plugin onewire>
720 #       Device "-s localhost:4304"
721 #       Sensor "F10FCA000800"
722 #       IgnoreSelected false
723 #</Plugin>
724
725 #<Plugin openvpn>
726 #       StatusFile "/etc/openvpn/openvpn-status.log"
727 #       ImprovedNamingSchema false
728 #       CollectCompression true
729 #       CollectIndividualUsers true
730 #       CollectUserCount false
731 #</Plugin>
732
733 #<Plugin oracle>
734 #  <Query "out_of_stock">
735 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
736 #    <Result>
737 #      Type "gauge"
738 #      InstancesFrom "category"
739 #      ValuesFrom "value"
740 #    </Result>
741 #  </Query>
742 #  <Database "product_information">
743 #    ConnectID "db01"
744 #    Username "oracle"
745 #    Password "secret"
746 #    Query "out_of_stock"
747 #  </Database>
748 #</Plugin>
749
750 #<Plugin perl>
751 #       IncludeDir "/my/include/path"
752 #       BaseName "Collectd::Plugins"
753 #       EnableDebugger ""
754 #       LoadPlugin Monitorus
755 #       LoadPlugin OpenVZ
756 #
757 #       <Plugin foo>
758 #               Foo "Bar"
759 #               Qux "Baz"
760 #       </Plugin>
761 #</Plugin>
762
763 #<Plugin pinba>
764 #       Address "::0"
765 #       Port "30002"
766 #       <View "name">
767 #               Host "host name"
768 #               Server "server name"
769 #               Script "script name"
770 #       </View>
771 #</Plugin>
772
773 #<Plugin ping>
774 #       Host "host.foo.bar"
775 #       Interval 1.0
776 #       Timeout 0.9
777 #       TTL 255
778 #       SourceAddress "1.2.3.4"
779 #       Device "eth0"
780 #       MaxMissed -1
781 #</Plugin>
782
783 #<Plugin postgresql>
784 #       <Query magic>
785 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
786 #               Param hostname
787 #               <Result>
788 #                       Type gauge
789 #                       InstancePrefix "magic"
790 #                       ValuesFrom magic
791 #               </Result>
792 #       </Query>
793 #       <Query rt36_tickets>
794 #               Statement "SELECT COUNT(type) AS count, type \
795 #                                 FROM (SELECT CASE \
796 #                                              WHEN resolved = 'epoch' THEN 'open' \
797 #                                              ELSE 'resolved' END AS type \
798 #                                              FROM tickets) type \
799 #                                 GROUP BY type;"
800 #               <Result>
801 #                       Type counter
802 #                       InstancePrefix "rt36_tickets"
803 #                       InstancesFrom "type"
804 #                       ValuesFrom "count"
805 #               </Result>
806 #       </Query>
807 #       <Writer sqlstore>
808 #               # See contrib/postgresql/collectd_insert.sql for details
809 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
810 #               StoreRates true
811 #       </Writer>
812 #       <Database foo>
813 #               Host "hostname"
814 #               Port "5432"
815 #               User "username"
816 #               Password "secret"
817 #               SSLMode "prefer"
818 #               KRBSrvName "kerberos_service_name"
819 #               Query magic
820 #       </Database>
821 #       <Database bar>
822 #               Interval 60
823 #               Service "service_name"
824 #               Query backend # predefined
825 #               Query rt36_tickets
826 #       </Database>
827 #       <Database qux>
828 #               Service "collectd_store"
829 #               Writer sqlstore
830 #               # see collectd.conf(5) for details
831 #               CommitInterval 30
832 #       </Database>
833 #</Plugin>
834
835 #<Plugin powerdns>
836 #  <Server "server_name">
837 #    Collect "latency"
838 #    Collect "udp-answers" "udp-queries"
839 #    Socket "/var/run/pdns.controlsocket"
840 #  </Server>
841 #  <Recursor "recursor_name">
842 #    Collect "questions"
843 #    Collect "cache-hits" "cache-misses"
844 #    Socket "/var/run/pdns_recursor.controlsocket"
845 #  </Recursor>
846 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
847 #</Plugin>
848
849 #<Plugin processes>
850 #       Process "name"
851 #</Plugin>
852
853 #<Plugin protocols>
854 #       Value "/^Tcp:/"
855 #       IgnoreSelected false
856 #</Plugin>
857
858 #<Plugin python>
859 #       ModulePath "/path/to/your/python/modules"
860 #       LogTraces true
861 #       Interactive true
862 #       Import "spam"
863 #
864 #       <Module spam>
865 #               spam "wonderful" "lovely"
866 #       </Module>
867 #</Plugin>
868
869 #<Plugin redis>
870 #   <Node example>
871 #      Host "redis.example.com"
872 #      Port "6379"
873 #      Timeout 2000
874 #   </Node>
875 #</Plugin>
876
877 #<Plugin routeros>
878 #       <Router>
879 #               Host "router.example.com"
880 #               Port "8728"
881 #               User "admin"
882 #               Password "dozaiTh4"
883 #               CollectInterface true
884 #               CollectRegistrationTable true
885 #               CollectCPULoad true
886 #               CollectMemory true
887 #               CollectDF true
888 #               CollectDisk true
889 #       </Router>
890 #</Plugin>
891
892 #<Plugin rrdcached>
893 #       DaemonAddress "unix:/tmp/rrdcached.sock"
894 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
895 #       CreateFiles true
896 #       CreateFilesAsync false
897 #       CollectStatistics true
898 #</Plugin>
899
900 #<Plugin rrdtool>
901 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
902 #       CreateFilesAsync false
903 #       CacheTimeout 120
904 #       CacheFlush   900
905 #       WritesPerSecond 50
906 #</Plugin>
907
908 #<Plugin sensors>
909 #       SensorConfigFile "/etc/sensors.conf"
910 #       Sensor "it8712-isa-0290/temperature-temp1"
911 #       Sensor "it8712-isa-0290/fanspeed-fan3"
912 #       Sensor "it8712-isa-0290/voltage-in8"
913 #       IgnoreSelected false
914 #</Plugin>
915
916 #<Plugin sigrok>
917 #  LogLevel 3
918 #  <Device "AC Voltage">
919 #    Driver "fluke-dmm"
920 #    MinimumInterval 10
921 #    Conn "/dev/ttyUSB2"
922 #  </Device>
923 #  <Device "Sound Level">
924 #    Driver "cem-dt-885x"
925 #    Conn "/dev/ttyUSB1"
926 #  </Device>
927 #</Plugin>
928
929 #<Plugin snmp>
930 #   <Data "powerplus_voltge_input">
931 #       Type "voltage"
932 #       Table false
933 #       Instance "input_line1"
934 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
935 #   </Data>
936 #   <Data "hr_users">
937 #       Type "users"
938 #       Table false
939 #       Instance ""
940 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
941 #   </Data>
942 #   <Data "std_traffic">
943 #       Type "if_octets"
944 #       Table true
945 #       Instance "IF-MIB::ifDescr"
946 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
947 #   </Data>
948 #
949 #   <Host "some.switch.mydomain.org">
950 #       Address "192.168.0.2"
951 #       Version 1
952 #       Community "community_string"
953 #       Collect "std_traffic"
954 #       Interval 120
955 #   </Host>
956 #   <Host "some.server.mydomain.org">
957 #       Address "192.168.0.42"
958 #       Version 2
959 #       Community "another_string"
960 #       Collect "std_traffic" "hr_users"
961 #   </Host>
962 #   <Host "some.ups.mydomain.org">
963 #       Address "192.168.0.3"
964 #       Version 1
965 #       Community "more_communities"
966 #       Collect "powerplus_voltge_input"
967 #       Interval 300
968 #   </Host>
969 #</Plugin>
970
971 #<Plugin statsd>
972 #  Host "::"
973 #  Port "8125"
974 #  DeleteCounters false
975 #  DeleteTimers   false
976 #  DeleteGauges   false
977 #  DeleteSets     false
978 #  TimerPercentile 90.0
979 #</Plugin>
980
981 #<Plugin "swap">
982 #       ReportByDevice false
983 #       ReportBytes true
984 #       ValuesAbsolute true
985 #       ValuesPercentage false
986 #</Plugin>
987
988 #<Plugin "table">
989 #       <Table "/proc/slabinfo">
990 #               Instance "slabinfo"
991 #               Separator " "
992 #               <Result>
993 #                       Type gauge
994 #                       InstancePrefix "active_objs"
995 #                       InstancesFrom 0
996 #                       ValuesFrom 1
997 #               </Result>
998 #               <Result>
999 #                       Type gauge
1000 #                       InstancePrefix "objperslab"
1001 #                       InstancesFrom 0
1002 #                       ValuesFrom 4
1003 #               </Result>
1004 #       </Table>
1005 #</Plugin>
1006
1007 #<Plugin "tail">
1008 #  <File "/var/log/exim4/mainlog">
1009 #    Instance "exim"
1010 #    <Match>
1011 #      Regex "S=([1-9][0-9]*)"
1012 #      DSType "CounterAdd"
1013 #      Type "ipt_bytes"
1014 #      Instance "total"
1015 #    </Match>
1016 #    <Match>
1017 #      Regex "\\<R=local_user\\>"
1018 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1019 #      DSType "CounterInc"
1020 #      Type "counter"
1021 #      Instance "local_user"
1022 #    </Match>
1023 #  </File>
1024 #</Plugin>
1025
1026 #<Plugin "tail_csv">
1027 #   <Metric "dropped">
1028 #       Type "percent"
1029 #       Instance "dropped"
1030 #       ValueFrom 1
1031 #   </Metric>
1032 #   <Metric "mbps">
1033 #       Type "bytes"
1034 #       Instance "wire-realtime"
1035 #       ValueFrom 2
1036 #   </Metric>
1037 #   <Metric "alerts">
1038 #       Type "alerts_per_second"
1039 #       ValueFrom 3
1040 #   </Metric>
1041 #   <Metric "kpps">
1042 #       Type "kpackets_wire_per_sec.realtime"
1043 #       ValueFrom 4
1044 #   </Metric>
1045 #   <File "/var/log/snort/snort.stats">
1046 #       Instance "snort-eth0"
1047 #       Interval 600
1048 #       Collect "dropped" "mbps" "alerts" "kpps"
1049 #       TimeFrom 0
1050 #   </File>
1051 #</Plugin>
1052
1053 #<Plugin tcpconns>
1054 #       ListeningPorts false
1055 #       LocalPort "25"
1056 #       RemotePort "25"
1057 #</Plugin>
1058
1059 #<Plugin teamspeak2>
1060 #       Host "127.0.0.1"
1061 #       Port "51234"
1062 #       Server "8767"
1063 #</Plugin>
1064
1065 #<Plugin ted>
1066 #       Device "/dev/ttyUSB0"
1067 #       Retries 0
1068 #</Plugin>
1069
1070 #<Plugin thermal>
1071 #       ForceUseProcfs false
1072 #       Device "THRM"
1073 #       IgnoreSelected false
1074 #</Plugin>
1075
1076 #<Plugin tokyotyrant>
1077 #       Host "localhost"
1078 #       Port "1978"
1079 #</Plugin>
1080
1081 #<Plugin unixsock>
1082 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1083 #       SocketGroup "collectd"
1084 #       SocketPerms "0660"
1085 #       DeleteSocket false
1086 #</Plugin>
1087
1088 #<Plugin uuid>
1089 #       UUIDFile "/etc/uuid"
1090 #</Plugin>
1091
1092 #<Plugin mic>
1093 #   ShowCPU true
1094 #   ShowCPUCores true
1095 #   ShowMemory true
1096 #   ShowTemperatures true
1097 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1098 ##  then inverted with a IgnoreSelectedTemperature.
1099 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1100 #   Temperature vddg
1101 #   IgnoreSelectedTemperature true
1102 #   ShowPower true
1103 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1104 ##  then inverted with a IgnoreSelectedTemperature.
1105 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1106 #   Power total1
1107 #   IgnoreSelectedPower true
1108 #</Plugin>
1109
1110 #<Plugin varnish>
1111 #   This tag support an argument if you want to
1112 #   monitor the local instance just use </Instance>
1113 #   If you prefer defining another instance you can do
1114 #   so by using <Instance "myinstance">
1115 #   <Instance>
1116 #      CollectCache true
1117 #      CollectBackend true
1118 #      CollectBan false           # Varnish 3 only
1119 #      CollectConnections true
1120 #      CollectDirectorDNS false   # Varnish 3 only
1121 #      CollectSHM true
1122 #      CollectESI false
1123 #      CollectFetch false
1124 #      CollectHCB false
1125 #      CollectObjects false
1126 #      CollectPurge false         # Varnish 2 only
1127 #      CollectSession false
1128 #      CollectSMA false           # Varnish 2 only
1129 #      CollectSMS false
1130 #      CollectSM false            # Varnish 2 only
1131 #      CollectStruct false
1132 #      CollectTotals false
1133 #      CollectUptime false
1134 #      CollectVCL false
1135 #      CollectWorkers false
1136 #   </Instance>
1137 #</Plugin>
1138
1139 #<Plugin vmem>
1140 #       Verbose false
1141 #</Plugin>
1142
1143 #<Plugin write_graphite>
1144 #  <Node "example">
1145 #    Host "localhost"
1146 #    Port "2003"
1147 #    Protocol "tcp"
1148 #    LogSendErrors true
1149 #    Prefix "collectd"
1150 #    Postfix "collectd"
1151 #    StoreRates true
1152 #    AlwaysAppendDS false
1153 #    EscapeCharacter "_"
1154 #  </Node>
1155 #</Plugin>
1156
1157 #<Plugin write_http>
1158 #       <URL "http://example.com/collectd-post">
1159 #               User "collectd"
1160 #               Password "weCh3ik0"
1161 #               VerifyPeer true
1162 #               VerifyHost true
1163 #               CACert "/etc/ssl/ca.crt"
1164 #               Format "Command"
1165 #               StoreRates false
1166 #       </URL>
1167 #</Plugin>
1168
1169 #<Plugin write_mongodb>
1170 #       <Node "example">
1171 #               Host "localhost"
1172 #               Port "27017"
1173 #               Timeout 1000
1174 #               StoreRates false
1175 #               Database "auth_db"
1176 #               User "auth_user"
1177 #               Password "auth_passwd"
1178 #       </Node>
1179 #</Plugin>
1180
1181 #<Plugin write_redis>
1182 #       <Node "example">
1183 #               Host "localhost"
1184 #               Port "6379"
1185 #               Timeout 1000
1186 #       </Node>
1187 #</Plugin>
1188
1189 #<Plugin write_riemann>
1190 #       <Node "example">
1191 #               Host "localhost"
1192 #               Port 5555
1193 #               Protocol UDP
1194 #               StoreRates true
1195 #               AlwaysAppendDS false
1196 #               TTLFactor 2.0
1197 #       </Node>
1198 #       Tag "foobar"
1199 #       Attribute "foo" "bar"
1200 #</Plugin>
1201
1202 ##############################################################################
1203 # Filter configuration                                                       #
1204 #----------------------------------------------------------------------------#
1205 # The following configures collectd's filtering mechanism. Before changing   #
1206 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1207 # in the collectd.conf(5) manual page.                                       #
1208 ##############################################################################
1209
1210 # Load required matches:
1211 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1212 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1213 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1214 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1215 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1216
1217 # Load required targets:
1218 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1219 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1220 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1221 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1222 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1223
1224 #----------------------------------------------------------------------------#
1225 # The following block demonstrates the default behavior if no filtering is   #
1226 # configured at all: All values will be sent to all available write plugins. #
1227 #----------------------------------------------------------------------------#
1228
1229 #<Chain "PostCache">
1230 #  Target "write"
1231 #</Chain>
1232
1233 ##############################################################################
1234 # Threshold configuration                                                    #
1235 #----------------------------------------------------------------------------#
1236 # The following outlines how to configure collectd's threshold checking      #
1237 # plugin. The plugin and possible configuration options are documented in    #
1238 # the collectd-threshold(5) manual page.                                     #
1239 ##############################################################################
1240
1241 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1242 #<Plugin "threshold">
1243 #  <Type "foo">
1244 #    WarningMin    0.00
1245 #    WarningMax 1000.00
1246 #    FailureMin    0.00
1247 #    FailureMax 1200.00
1248 #    Invert false
1249 #    Instance "bar"
1250 #  </Type>
1251 #
1252 #  <Plugin "interface">
1253 #    Instance "eth0"
1254 #    <Type "if_octets">
1255 #      FailureMax 10000000
1256 #      DataSource "rx"
1257 #    </Type>
1258 #  </Plugin>
1259 #
1260 #  <Host "hostname">
1261 #    <Type "cpu">
1262 #      Instance "idle"
1263 #      FailureMin 10
1264 #    </Type>
1265 #
1266 #    <Plugin "memory">
1267 #      <Type "memory">
1268 #        Instance "cached"
1269 #        WarningMin 100000000
1270 #      </Type>
1271 #    </Plugin>
1272 #
1273 #    <Type "load">
1274 #       DataSource "midterm"
1275 #       FailureMax 4
1276 #       Hits 3
1277 #       Hysteresis 3
1278 #    </Type>
1279 #  </Host>
1280 #</Plugin>