Merge branch 'pr/1649'
[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 # When enabled, internal statistics are collected, using "collectd" as the   #
29 # plugin name.                                                               #
30 # Disabled by default.                                                       #
31 #----------------------------------------------------------------------------#
32 #CollectInternalStats false
33
34 #----------------------------------------------------------------------------#
35 # Interval at which to query values. This may be overwritten on a per-plugin #
36 # base by using the 'Interval' option of the LoadPlugin block:               #
37 #   <LoadPlugin foo>                                                         #
38 #       Interval 60                                                          #
39 #   </LoadPlugin>                                                            #
40 #----------------------------------------------------------------------------#
41 #Interval     10
42
43 #MaxReadInterval 86400
44 #Timeout         2
45 #ReadThreads     5
46 #WriteThreads    5
47
48 # Limit the size of the write queue. Default is no limit. Setting up a limit is
49 # recommended for servers handling a high volume of traffic.
50 #WriteQueueLimitHigh 1000000
51 #WriteQueueLimitLow   800000
52
53 ##############################################################################
54 # Logging                                                                    #
55 #----------------------------------------------------------------------------#
56 # Plugins which provide logging functions should be loaded first, so log     #
57 # messages generated when loading or configuring other plugins can be        #
58 # accessed.                                                                  #
59 ##############################################################################
60
61 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
62 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
63 @LOAD_PLUGIN_LOG_LOGSTASH@LoadPlugin log_logstash
64
65 #<Plugin logfile>
66 #       LogLevel @DEFAULT_LOG_LEVEL@
67 #       File STDOUT
68 #       Timestamp true
69 #       PrintSeverity false
70 #</Plugin>
71
72 #<Plugin log_logstash>
73 #       LogLevel @DEFAULT_LOG_LEVEL@
74 #       File "@localstatedir@/log/@PACKAGE_NAME@.json.log"
75 #</Plugin>
76
77 #<Plugin syslog>
78 #       LogLevel @DEFAULT_LOG_LEVEL@
79 #</Plugin>
80
81 ##############################################################################
82 # LoadPlugin section                                                         #
83 #----------------------------------------------------------------------------#
84 # Lines beginning with a single `#' belong to plugins which have been built  #
85 # but are disabled by default.                                               #
86 #                                                                            #
87 # Lines beginning with `##' belong to plugins which have not been built due  #
88 # to missing dependencies or because they have been deactivated explicitly.  #
89 ##############################################################################
90
91 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
92 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
93 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
94 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
95 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
96 #@BUILD_PLUGIN_AQUAERO_TRUE@LoadPlugin aquaero
97 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
98 #@BUILD_PLUGIN_BAROMETER_TRUE@LoadPlugin barometer
99 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
100 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
101 #@BUILD_PLUGIN_CEPH_TRUE@LoadPlugin ceph
102 #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
103 #@BUILD_PLUGIN_CHRONY_TRUE@LoadPlugin chrony
104 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
105 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
106 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
107 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
108 #@BUILD_PLUGIN_CPUSLEEP_TRUE@LoadPlugin cpusleep
109 @LOAD_PLUGIN_CSV@LoadPlugin csv
110 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
111 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
112 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
113 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
114 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
115 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
116 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
117 #@BUILD_PLUGIN_DPDKSTAT_TRUE@LoadPlugin dpdkstat
118 #@BUILD_PLUGIN_DRBD_TRUE@LoadPlugin drbd
119 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
120 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
121 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
122 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
123 #@BUILD_PLUGIN_FHCOUNT_TRUE@LoadPlugin fhcount
124 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
125 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
126 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
127 #@BUILD_PLUGIN_GPS_TRUE@LoadPlugin gps
128 #@BUILD_PLUGIN_GRPC_TRUE@LoadPlugin grpc
129 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
130 #@BUILD_PLUGIN_HUGEPAGES_TRUE@LoadPlugin hugepages
131 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
132 #@BUILD_PLUGIN_IPC_TRUE@LoadPlugin ipc
133 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
134 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
135 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
136 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
137 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
138 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
139 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
140 #@BUILD_PLUGIN_LUA_TRUE@LoadPlugin lua
141 #@BUILD_PLUGIN_LVM_TRUE@LoadPlugin lvm
142 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
143 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
144 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
145 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
146 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
147 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
148 #@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
149 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
150 #@BUILD_PLUGIN_MQTT_TRUE@LoadPlugin mqtt
151 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
152 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
153 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
154 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
155 @LOAD_PLUGIN_NETWORK@LoadPlugin network
156 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
157 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
158 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
159 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
160 #@BUILD_PLUGIN_NOTIFY_NAGIOS_TRUE@LoadPlugin notify_nagios
161 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
162 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
163 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
164 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
165 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
166 #@BUILD_PLUGIN_OPENLDAP_TRUE@LoadPlugin openldap
167 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
168 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
169 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
170 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
171 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
172 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
173 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
174 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
175 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
176 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
177 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
178 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
179 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
180 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
181 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
182 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
183 #@BUILD_PLUGIN_SIGROK_TRUE@LoadPlugin sigrok
184 #@BUILD_PLUGIN_SMART_TRUE@LoadPlugin smart
185 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
186 #@BUILD_PLUGIN_STATSD_TRUE@LoadPlugin statsd
187 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
188 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
189 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
190 #@BUILD_PLUGIN_TAIL_CSV_TRUE@LoadPlugin tail_csv
191 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
192 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
193 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
194 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
195 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
196 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
197 #@BUILD_PLUGIN_TURBOSTAT_TRUE@LoadPlugin turbostat
198 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
199 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
200 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
201 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
202 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
203 #@BUILD_PLUGIN_VIRT_TRUE@LoadPlugin virt
204 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
205 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
206 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
207 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
208 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
209 #@BUILD_PLUGIN_WRITE_KAFKA_TRUE@LoadPlugin write_kafka
210 #@BUILD_PLUGIN_WRITE_LOG_TRUE@LoadPlugin write_log
211 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
212 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
213 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
214 #@BUILD_PLUGIN_WRITE_SENSU_TRUE@LoadPlugin write_sensu
215 #@BUILD_PLUGIN_WRITE_TSDB_TRUE@LoadPlugin write_tsdb
216 #@BUILD_PLUGIN_XENCPU_TRUE@LoadPlugin xencpu
217 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
218 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
219 #@BUILD_PLUGIN_ZONE_TRUE@LoadPlugin zone
220 #@BUILD_PLUGIN_ZOOKEEPER_TRUE@LoadPlugin zookeeper
221
222 ##############################################################################
223 # Plugin configuration                                                       #
224 #----------------------------------------------------------------------------#
225 # In this section configuration stubs for each plugin are provided. A desc-  #
226 # ription of those options is available in the collectd.conf(5) manual page. #
227 ##############################################################################
228
229 #<Plugin aggregation>
230 #  <Aggregation>
231 #    #Host "unspecified"
232 #    Plugin "cpu"
233 #    #PluginInstance "unspecified"
234 #    Type "cpu"
235 #    #TypeInstance "unspecified"
236 #
237 #    GroupBy "Host"
238 #    GroupBy "TypeInstance"
239 #
240 #    CalculateNum false
241 #    CalculateSum false
242 #    CalculateAverage true
243 #    CalculateMinimum false
244 #    CalculateMaximum false
245 #    CalculateStddev false
246 #  </Aggregation>
247 #</Plugin>
248
249 #<Plugin amqp>
250 #  <Publish "name">
251 #    Host "localhost"
252 #    Port "5672"
253 #    VHost "/"
254 #    User "guest"
255 #    Password "guest"
256 #    Exchange "amq.fanout"
257 #    RoutingKey "collectd"
258 #    Persistent false
259 #    StoreRates false
260 #    ConnectionRetryDelay 0
261 #  </Publish>
262 #</Plugin>
263
264 #<Plugin apache>
265 #  <Instance "local">
266 #    URL "http://localhost/status?auto"
267 #    User "www-user"
268 #    Password "secret"
269 #    CACert "/etc/ssl/ca.crt"
270 #  </Instance>
271 #</Plugin>
272
273 #<Plugin apcups>
274 #       Host "localhost"
275 #       Port "3551"
276 #       ReportSeconds true
277 #       PersistentConnection true
278 #</Plugin>
279
280 #<Plugin aquaero>
281 #       Device ""
282 #</Plugin>
283
284 #<Plugin ascent>
285 #       URL "http://localhost/ascent/status/"
286 #       User "www-user"
287 #       Password "secret"
288 #       CACert "/etc/ssl/ca.crt"
289 #</Plugin>
290
291 #<Plugin "barometer">
292 #   Device            "/dev/i2c-0";
293 #   Oversampling      512
294 #   PressureOffset    0.0
295 #   TemperatureOffset 0.0
296 #   Normalization     2
297 #   Altitude          238.0
298 #   TemperatureSensor "myserver/onewire-F10FCA000800/temperature"
299 #</Plugin>
300
301 #<Plugin "battery">
302 #  ValuesPercentage false
303 #  ReportDegraded false
304 #  QueryStateFS false
305 #</Plugin>
306
307 #<Plugin "bind">
308 #  URL "http://localhost:8053/"
309 #  ParseTime       false
310 #  OpCodes         true
311 #  QTypes          true
312 #
313 #  ServerStats     true
314 #  ZoneMaintStats  true
315 #  ResolverStats   false
316 #  MemoryStats     true
317 #
318 #  <View "_default">
319 #    QTypes        true
320 #    ResolverStats true
321 #    CacheRRSets   true
322 #
323 #    Zone "127.in-addr.arpa/IN"
324 #  </View>
325 #</Plugin>
326
327 #<Plugin ceph>
328 #  LongRunAvgLatency false
329 #  ConvertSpecialMetricTypes true
330 #  <Daemon "osd.0">
331 #    SocketPath "/var/run/ceph/ceph-osd.0.asok"
332 #  </Daemon>
333 #  <Daemon "osd.1">
334 #    SocketPath "/var/run/ceph/ceph-osd.1.asok"
335 #  </Daemon>
336 #  <Daemon "mon.a">
337 #    SocketPath "/var/run/ceph/ceph-mon.ceph1.asok"
338 #  </Daemon>
339 #  <Daemon "mds.a">
340 #    SocketPath "/var/run/ceph/ceph-mds.ceph1.asok"
341 #  </Daemon>
342 #</Plugin>
343
344 #<Plugin chrony>
345 #       Host    "localhost"
346 #       Port    "323"
347 #       Timeout "2"
348 #</Plugin>
349
350 #<Plugin cgroups>
351 #  CGroup "libvirt"
352 #  IgnoreSelected false
353 #</Plugin>
354
355 #<Plugin cpu>
356 #  ReportByCpu true
357 #  ReportByState true
358 #  ValuesPercentage false
359 #</Plugin>
360 #
361 #<Plugin csv>
362 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
363 #       StoreRates false
364 #</Plugin>
365
366 #<Plugin curl>
367 #  <Page "stock_quotes">
368 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
369 #    User "foo"
370 #    Password "bar"
371 #    Digest false
372 #    VerifyPeer true
373 #    VerifyHost true
374 #    CACert "/path/to/ca.crt"
375 #    Header "X-Custom-Header: foobar"
376 #    Post "foo=bar"
377 #
378 #    MeasureResponseTime false
379 #    MeasureResponseCode false
380 #    <Match>
381 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
382 #      DSType "GaugeAverage"
383 #      Type "stock_value"
384 #      Instance "AMD"
385 #    </Match>
386 #  </Page>
387 #</Plugin>
388
389 #<Plugin curl_json>
390 #  <URL "http://localhost:80/test.json">
391 #    Instance "test_http_json"
392 #    <Key "testArray/0">
393 #      Type "gauge"
394 #      # Expect: 1
395 #    </Key>
396 #    <Key "testArray/1">
397 #      Type "gauge"
398 #      # Expect: 2
399 #    </Key>
400 #    <Key "testArrayInbetween/0/blarg">
401 #      Type "gauge"
402 #      # Expect: 3
403 #    </Key>
404 #    <Key "testArrayInbetween/1/blub">
405 #      Type "gauge"
406 #      # Expect: 4
407 #    </Key>
408 #    <Key "testDirectHit">
409 #      Type "gauge"
410 #      # Expect: 5
411 #    </Key>
412 #    <Key "testSubLevelHit/oneMoreLevel">
413 #      Type "gauge"
414 #      # Expect: 6
415 #    </Key>
416 #  </URL>
417 # put this as test.json on your webserver, the above config demonstraces
418 # how to match them.
419 # {
420 #  "testArray":[1,2],
421 #  "testArrayInbetween":[{"blarg":3},{"blub":4}],
422 #  "testDirectHit":5,
423 #  "testSubLevelHit":{"oneMoreLevel":6}
424 # }
425 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
426 #  <URL "http://localhost:5984/_stats">
427 #    Instance "httpd"
428 #    <Key "httpd/requests/count">
429 #      Type "http_requests"
430 #    </Key>
431 #
432 #    <Key "httpd_request_methods/*/count">
433 #      Type "http_request_methods"
434 #    </Key>
435 #
436 #    <Key "httpd_status_codes/*/count">
437 #      Type "http_response_codes"
438 #    </Key>
439 #  </URL>
440 ## Database status metrics:
441 #  <URL "http://localhost:5984/_all_dbs">
442 #    Instance "dbs"
443 #    <Key "*/doc_count">
444 #      Type "gauge"
445 #    </Key>
446 #    <Key "*/doc_del_count">
447 #      Type "counter"
448 #    </Key>
449 #    <Key "*/disk_size">
450 #      Type "bytes"
451 #    </Key>
452 #  </URL>
453 #</Plugin>
454
455 #<Plugin curl_xml>
456 #  <URL "http://localhost/stats.xml">
457 #    Host "my_host"
458 #    Instance "some_instance"
459 #    User "collectd"
460 #    Password "thaiNg0I"
461 #    Digest false
462 #    VerifyPeer true
463 #    VerifyHost true
464 #    CACert "/path/to/ca.crt"
465 #    Header "X-Custom-Header: foobar"
466 #    Post "foo=bar"
467 #
468 #    <XPath "table[@id=\"magic_level\"]/tr">
469 #      Type "magic_level"
470 #      #InstancePrefix "prefix-"
471 #      InstanceFrom "td[1]"
472 #      ValuesFrom "td[2]/span[@class=\"level\"]"
473 #    </XPath>
474 #  </URL>
475 #</Plugin>
476
477 #<Plugin dbi>
478 #       <Query "num_of_customers">
479 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
480 #               <Result>
481 #                       Type "gauge"
482 #                       InstancesFrom "c_key"
483 #                       ValuesFrom "c_value"
484 #               </Result>
485 #       </Query>
486 #       <Database "customers_db">
487 #               Driver "mysql"
488 #               DriverOption "host" "localhost"
489 #               DriverOption "username" "collectd"
490 #               DriverOption "password" "AeXohy0O"
491 #               DriverOption "dbname" "custdb0"
492 #               #SelectDB "custdb0"
493 #               Query "num_of_customers"
494 #               #Query "..."
495 #               #Host "..."
496 #       </Database>
497 #</Plugin>
498
499 #<Plugin df>
500 #       Device "/dev/hda1"
501 #       Device "192.168.0.2:/mnt/nfs"
502 #       MountPoint "/home"
503 #       FSType "ext3"
504 #       IgnoreSelected false
505 #       ReportByDevice false
506 #       ReportInodes false
507 #       ValuesAbsolute true
508 #       ValuesPercentage false
509 #</Plugin>
510
511 #<Plugin disk>
512 #       Disk "/^[hs]d[a-f][0-9]?$/"
513 #       IgnoreSelected false
514 #       UseBSDName false
515 #       UdevNameAttr "DEVNAME"
516 #</Plugin>
517
518 #<Plugin dns>
519 #       Interface "eth0"
520 #       IgnoreSource "192.168.0.1"
521 #       SelectNumericQueryTypes true
522 #</Plugin>
523
524 #<Plugin dpdkstat>
525 #       Interval 1
526 #       Coremask "0xf"
527 #       ProcessType "secondary"
528 #       FilePrefix "rte"
529 #       EnabledPortMask 0xffff
530 #       PortName "interface1"
531 #       PortName "interface2"
532 #</Plugin>
533
534 #<Plugin email>
535 #       SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
536 #       SocketGroup "collectd"
537 #       SocketPerms "0770"
538 #       MaxConns 5
539 #</Plugin>
540
541 #<Plugin ethstat>
542 #       Interface "eth0"
543 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
544 #       Map "multicast" "if_multicast"
545 #       MappedOnly false
546 #</Plugin>
547
548 #<Plugin exec>
549 #       Exec "user:group" "/path/to/exec"
550 #       NotificationExec "user:group" "/path/to/exec"
551 #</Plugin>
552
553 #<Plugin fhcount>
554 #       ValuesAbsolute true
555 #       ValuesPercentage false
556 #</Plugin>
557
558 #<Plugin filecount>
559 #       <Directory "/path/to/dir">
560 #               Instance "foodir"
561 #               Name "*.conf"
562 #               MTime "-5m"
563 #               Size "+10k"
564 #               Recursive true
565 #               IncludeHidden false
566 #       </Directory>
567 #</Plugin>
568
569 #<Plugin gmond>
570 #  MCReceiveFrom "239.2.11.71" "8649"
571 #  <Metric "swap_total">
572 #    Type "swap"
573 #    TypeInstance "total"
574 #    DataSource "value"
575 #  </Metric>
576 #  <Metric "swap_free">
577 #    Type "swap"
578 #    TypeInstance "free"
579 #    DataSource "value"
580 #  </Metric>
581 #</Plugin>
582
583 #<Plugin gps>
584 #  Host "127.0.0.1"
585 #  Port "2947"
586 #  Timeout 0.015
587 #  PauseConnect 5
588 #</Plugin>
589
590 #<Plugin grpc>
591 #       <Server "example.com" "50051">
592 #               EnableSSL true
593 #               SSLCACertificateFile "/path/to/root.pem"
594 #               SSLCertificateFile "/path/to/server.pem"
595 #               SSLCertificateKeyFile "/path/to/server.key"
596 #       </Server>
597 #       <Listen "0.0.0.0" "50051">
598 #               EnableSSL true
599 #               SSLCACertificateFile "/path/to/root.pem"
600 #               SSLCertificateFile "/path/to/client.pem"
601 #               SSLCertificateKeyFile "/path/to/client.key"
602 #       </Listen>
603 #</Plugin>
604
605 #<Plugin hddtemp>
606 #  Host "127.0.0.1"
607 #  Port "7634"
608 #</Plugin>
609
610 #<Plugin hugepages>
611 #    ReportPerNodeHP  true
612 #    ReportRootHP     true
613 #    ValuesPages      true
614 #    ValuesBytes      false
615 #    ValuesPercentage false
616 #</Plugin>
617
618 #<Plugin interface>
619 #       Interface "eth0"
620 #       IgnoreSelected false
621 #       ReportInactive true
622 #       UniqueName false
623 #</Plugin>
624
625 #<Plugin ipmi>
626 #       Sensor "some_sensor"
627 #       Sensor "another_one"
628 #       IgnoreSelected false
629 #       NotifySensorAdd false
630 #       NotifySensorRemove true
631 #       NotifySensorNotPresent false
632 #</Plugin>
633
634 #<Plugin iptables>
635 #       Chain table chain
636 #       Chain6 table chain
637 #</Plugin>
638
639 #<Plugin irq>
640 #       Irq 7
641 #       Irq 8
642 #       Irq 9
643 #       IgnoreSelected true
644 #</Plugin>
645
646 #<Plugin java>
647 #       JVMArg "-verbose:jni"
648 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
649 #
650 #       LoadPlugin "org.collectd.java.Foobar"
651 #       <Plugin "org.collectd.java.Foobar">
652 #         # To be parsed by the plugin
653 #       </Plugin>
654 #</Plugin>
655
656 #<Plugin load>
657 #        ReportRelative true
658 #</Plugin>
659
660 #<Plugin lpar>
661 #       CpuPoolStats   false
662 #       ReportBySerial false
663 #</Plugin>
664
665 #<Plugin lua>
666 #       BasePath "@prefix@/share/@PACKAGE_NAME@/lua"
667 #       Script "script1.lua"
668 #       Script "script2.lua"
669 #</Plugin>
670
671 #<Plugin madwifi>
672 #       Interface "wlan0"
673 #       IgnoreSelected false
674 #       Source "SysFS"
675 #       WatchSet "None"
676 #       WatchAdd "node_octets"
677 #       WatchAdd "node_rssi"
678 #       WatchAdd "is_rx_acl"
679 #       WatchAdd "is_scan_active"
680 #</Plugin>
681
682 #<Plugin mbmon>
683 #       Host "127.0.0.1"
684 #       Port "411"
685 #</Plugin>
686
687 #<Plugin md>
688 #       Device "/dev/md0"
689 #       IgnoreSelected false
690 #</Plugin>
691
692 #<Plugin memcachec>
693 #       <Page "plugin_instance">
694 #               Server "localhost"
695 #               Key "page_key"
696 #               <Match>
697 #                       Regex "(\\d+) bytes sent"
698 #                       ExcludeRegex "<lines to be excluded>"
699 #                       DSType CounterAdd
700 #                       Type "ipt_octets"
701 #                       Instance "type_instance"
702 #               </Match>
703 #       </Page>
704 #</Plugin>
705
706 #<Plugin memcached>
707 #       <Instance "local">
708 #               Host "127.0.0.1"
709 #               Port "11211"
710 #       </Instance>
711 #</Plugin>
712
713 #<Plugin memory>
714 #       ValuesAbsolute true
715 #       ValuesPercentage false
716 #</Plugin>
717
718 #<Plugin modbus>
719 #       <Data "data_name">
720 #               RegisterBase 1234
721 #               RegisterCmd ReadHolding
722 #               RegisterType float
723 #               Type gauge
724 #               Instance "..."
725 #       </Data>
726 #
727 #       <Host "name">
728 #               Address "addr"
729 #               Port "1234"
730 #               Interval 60
731 #
732 #               <Slave 1>
733 #                       Instance "foobar" # optional
734 #                       Collect "data_name"
735 #               </Slave>
736 #       </Host>
737 #</Plugin>
738
739 #<Plugin mqtt>
740 #       <Publish "name">
741 #               Host "localhost"
742 #               Port 1883
743 #               ClientId "localhost"
744 #               User "user"
745 #               Password "secret"
746 #               QoS 0
747 #               Prefix "collectd"
748 #               StoreRates true
749 #               Retain false
750 #               CACert "/etc/ssl/ca.crt"
751 #               CertificateFile "/etc/ssl/client.crt"
752 #               CertificateKeyFile "/etc/ssl/client.pem"
753 #               TLSProtocol "tlsv1.2"
754 #               CipherSuite "ciphers"
755 #       </Publish>
756 #       <Subscribe "name">
757 #               Host "localhost"
758 #               Port 1883
759 #               ClientId "localhost"
760 #               User "user"
761 #               Password "secret"
762 #               QoS 2
763 #               Topic "collectd/#"
764 #               CleanSession true
765 #       </Subscribe>
766 #</Plugin>
767
768 #<Plugin mysql>
769 #       <Database db_name>
770 #               Host "database.serv.er"
771 #               User "db_user"
772 #               Password "secret"
773 #               Database "db_name"
774 #               SSLKey "/path/to/key.pem"
775 #               SSLCert "/path/to/cert.pem"
776 #               SSLCA "/path/to/ca.pem"
777 #               SSLCAPath "/path/to/cas/"
778 #               SSLCipher "DHE-RSA-AES256-SHA"
779 #               MasterStats true
780 #               ConnectTimeout 10
781 #               InnodbStats true
782 #       </Database>
783 #
784 #       <Database db_name2>
785 #               Alias "squeeze"
786 #               Host "localhost"
787 #               Socket "/var/run/mysql/mysqld.sock"
788 #               SlaveStats true
789 #               SlaveNotifications true
790 #       </Database>
791 #       <Database galera>
792 #               Alias "galera"
793 #               Host "localhost"
794 #               Socket "/var/run/mysql/mysqld.sock"
795 #               WsrepStats true
796 #       </Database>
797 #</Plugin>
798
799 #<Plugin netapp>
800 #       <Host "netapp1.example.com">
801 #               Protocol      "https"
802 #               Address       "10.0.0.1"
803 #               Port          443
804 #               User          "username"
805 #               Password      "aef4Aebe"
806 #               Interval      30
807 #
808 #               <WAFL>
809 #                       Interval 30
810 #                       GetNameCache   true
811 #                       GetDirCache    true
812 #                       GetBufferCache true
813 #                       GetInodeCache  true
814 #               </WAFL>
815 #
816 #               <Disks>
817 #                       Interval 30
818 #                       GetBusy true
819 #               </Disks>
820 #
821 #               <VolumePerf>
822 #                       Interval 30
823 #                       GetIO      "volume0"
824 #                       IgnoreSelectedIO      false
825 #                       GetOps     "volume0"
826 #                       IgnoreSelectedOps     false
827 #                       GetLatency "volume0"
828 #                       IgnoreSelectedLatency false
829 #               </VolumePerf>
830 #
831 #               <VolumeUsage>
832 #                       Interval 30
833 #                       GetCapacity "vol0"
834 #                       GetCapacity "vol1"
835 #                       IgnoreSelectedCapacity false
836 #                       GetSnapshot "vol1"
837 #                       GetSnapshot "vol3"
838 #                       IgnoreSelectedSnapshot false
839 #               </VolumeUsage>
840 #
841 #               <System>
842 #                       Interval 30
843 #                       GetCPULoad     true
844 #                       GetInterfaces  true
845 #                       GetDiskOps     true
846 #                       GetDiskIO      true
847 #               </System>
848 #       </Host>
849 #</Plugin>
850
851 #<Plugin netlink>
852 #       Interface "All"
853 #       VerboseInterface "All"
854 #       QDisc "eth0" "pfifo_fast-1:0"
855 #       Class "ppp0" "htb-1:10"
856 #       Filter "ppp0" "u32-1:0"
857 #       IgnoreSelected false
858 #</Plugin>
859
860 @LOAD_PLUGIN_NETWORK@<Plugin network>
861 #       # client setup:
862 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
863 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
864 #               SecurityLevel Encrypt
865 #               Username "user"
866 #               Password "secret"
867 #               Interface "eth0"
868 #               ResolveInterval 14400
869 @LOAD_PLUGIN_NETWORK@   </Server>
870 #       TimeToLive 128
871 #
872 #       # server setup:
873 #       Listen "ff18::efc0:4a42" "25826"
874 #       <Listen "239.192.74.66" "25826">
875 #               SecurityLevel Sign
876 #               AuthFile "/etc/collectd/passwd"
877 #               Interface "eth0"
878 #       </Listen>
879 #       MaxPacketSize 1452
880 #
881 #       # proxy setup (client and server as above):
882 #       Forward true
883 #
884 #       # statistics about the network plugin itself
885 #       ReportStats false
886 #
887 #       # "garbage collection"
888 #       CacheFlush 1800
889 @LOAD_PLUGIN_NETWORK@</Plugin>
890
891 #<Plugin nginx>
892 #       URL "http://localhost/status?auto"
893 #       User "www-user"
894 #       Password "secret"
895 #       CACert "/etc/ssl/ca.crt"
896 #</Plugin>
897
898 #<Plugin notify_desktop>
899 #       OkayTimeout 1000
900 #       WarningTimeout 5000
901 #       FailureTimeout 0
902 #</Plugin>
903
904 #<Plugin notify_email>
905 #       SMTPServer "localhost"
906 #       SMTPPort 25
907 #       SMTPUser "my-username"
908 #       SMTPPassword "my-password"
909 #       From "collectd@main0server.com"
910 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
911 #       Subject "Aaaaaa!! %s on %s!!!!!"
912 #       Recipient "email1@domain1.net"
913 #       Recipient "email2@domain2.com"
914 #</Plugin>
915
916 #<Plugin notify_nagios>
917 #       CommandFile "/usr/local/nagios/var/rw/nagios.cmd"
918 #</Plugin>
919
920 #<Plugin ntpd>
921 #       Host "localhost"
922 #       Port 123
923 #       ReverseLookups false
924 #       IncludeUnitID true
925 #</Plugin>
926
927 #<Plugin nut>
928 #       UPS "upsname@hostname:port"
929 #</Plugin>
930
931 #<Plugin olsrd>
932 #       Host "127.0.0.1"
933 #       Port "2006"
934 #       CollectLinks "Summary"
935 #       CollectRoutes "Summary"
936 #       CollectTopology "Summary"
937 #</Plugin>
938
939 #<Plugin onewire>
940 #       Device "-s localhost:4304"
941 #       Sensor "F10FCA000800"
942 #       IgnoreSelected false
943 #</Plugin>
944
945 #<Plugin openldap>
946 #  <Instance "localhost">
947 #    URL "ldap://localhost:389"
948 #    StartTLS false
949 #    VerifyHost true
950 #    CACert "/path/to/ca.crt"
951 #    Timeout -1
952 #    Version 3
953 #  </Instance>
954 #</Plugin>
955
956 #<Plugin openvpn>
957 #       StatusFile "/etc/openvpn/openvpn-status.log"
958 #       ImprovedNamingSchema false
959 #       CollectCompression true
960 #       CollectIndividualUsers true
961 #       CollectUserCount false
962 #</Plugin>
963
964 #<Plugin oracle>
965 #  <Query "out_of_stock">
966 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
967 #    <Result>
968 #      Type "gauge"
969 #      InstancesFrom "category"
970 #      ValuesFrom "value"
971 #    </Result>
972 #  </Query>
973 #  <Database "product_information">
974 #    ConnectID "db01"
975 #    Username "oracle"
976 #    Password "secret"
977 #    Query "out_of_stock"
978 #  </Database>
979 #</Plugin>
980
981 #<Plugin perl>
982 #       IncludeDir "/my/include/path"
983 #       BaseName "Collectd::Plugins"
984 #       EnableDebugger ""
985 #       LoadPlugin Monitorus
986 #       LoadPlugin OpenVZ
987 #
988 #       <Plugin foo>
989 #               Foo "Bar"
990 #               Qux "Baz"
991 #       </Plugin>
992 #</Plugin>
993
994 #<Plugin pinba>
995 #       Address "::0"
996 #       Port "30002"
997 #       <View "name">
998 #               Host "host name"
999 #               Server "server name"
1000 #               Script "script name"
1001 #       </View>
1002 #</Plugin>
1003
1004 #<Plugin ping>
1005 #       Host "host.foo.bar"
1006 #       Interval 1.0
1007 #       Timeout 0.9
1008 #       TTL 255
1009 #       SourceAddress "1.2.3.4"
1010 #       Device "eth0"
1011 #       MaxMissed -1
1012 #</Plugin>
1013
1014 #<Plugin postgresql>
1015 #       <Query magic>
1016 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
1017 #               Param hostname
1018 #               <Result>
1019 #                       Type gauge
1020 #                       InstancePrefix "magic"
1021 #                       ValuesFrom magic
1022 #               </Result>
1023 #       </Query>
1024 #       <Query rt36_tickets>
1025 #               Statement "SELECT COUNT(type) AS count, type \
1026 #                                 FROM (SELECT CASE \
1027 #                                              WHEN resolved = 'epoch' THEN 'open' \
1028 #                                              ELSE 'resolved' END AS type \
1029 #                                              FROM tickets) type \
1030 #                                 GROUP BY type;"
1031 #               <Result>
1032 #                       Type counter
1033 #                       InstancePrefix "rt36_tickets"
1034 #                       InstancesFrom "type"
1035 #                       ValuesFrom "count"
1036 #               </Result>
1037 #       </Query>
1038 #       <Writer sqlstore>
1039 #               # See contrib/postgresql/collectd_insert.sql for details
1040 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
1041 #               StoreRates true
1042 #       </Writer>
1043 #       <Database foo>
1044 #               Host "hostname"
1045 #               Port "5432"
1046 #               User "username"
1047 #               Password "secret"
1048 #               SSLMode "prefer"
1049 #               KRBSrvName "kerberos_service_name"
1050 #               Query magic
1051 #       </Database>
1052 #       <Database bar>
1053 #               Interval 60
1054 #               Service "service_name"
1055 #               Query backend # predefined
1056 #               Query rt36_tickets
1057 #       </Database>
1058 #       <Database qux>
1059 #               Service "collectd_store"
1060 #               Writer sqlstore
1061 #               # see collectd.conf(5) for details
1062 #               CommitInterval 30
1063 #       </Database>
1064 #</Plugin>
1065
1066 #<Plugin powerdns>
1067 #  <Server "server_name">
1068 #    Collect "latency"
1069 #    Collect "udp-answers" "udp-queries"
1070 #    Socket "/var/run/pdns.controlsocket"
1071 #  </Server>
1072 #  <Recursor "recursor_name">
1073 #    Collect "questions"
1074 #    Collect "cache-hits" "cache-misses"
1075 #    Socket "/var/run/pdns_recursor.controlsocket"
1076 #  </Recursor>
1077 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
1078 #</Plugin>
1079
1080 #<Plugin processes>
1081 #       Process "name"
1082 #</Plugin>
1083
1084 #<Plugin protocols>
1085 #       Value "/^Tcp:/"
1086 #       IgnoreSelected false
1087 #</Plugin>
1088
1089 #<Plugin python>
1090 #       ModulePath "/path/to/your/python/modules"
1091 #       LogTraces true
1092 #       Interactive true
1093 #       Import "spam"
1094 #
1095 #       <Module spam>
1096 #               spam "wonderful" "lovely"
1097 #       </Module>
1098 #</Plugin>
1099
1100 #<Plugin redis>
1101 #   <Node example>
1102 #      Host "redis.example.com"
1103 #      Port "6379"
1104 #      Timeout 2000
1105 #   </Node>
1106 #</Plugin>
1107
1108 #<Plugin routeros>
1109 #       <Router>
1110 #               Host "router.example.com"
1111 #               Port "8728"
1112 #               User "admin"
1113 #               Password "dozaiTh4"
1114 #               CollectInterface true
1115 #               CollectRegistrationTable true
1116 #               CollectCPULoad true
1117 #               CollectMemory true
1118 #               CollectDF true
1119 #               CollectDisk true
1120 #       </Router>
1121 #</Plugin>
1122
1123 #<Plugin rrdcached>
1124 #       DaemonAddress "unix:/tmp/rrdcached.sock"
1125 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1126 #       CreateFiles true
1127 #       CreateFilesAsync false
1128 #       CollectStatistics true
1129 #</Plugin>
1130
1131 #<Plugin rrdtool>
1132 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
1133 #       CreateFilesAsync false
1134 #       CacheTimeout 120
1135 #       CacheFlush   900
1136 #       WritesPerSecond 50
1137 #</Plugin>
1138
1139 #<Plugin sensors>
1140 #       SensorConfigFile "/etc/sensors.conf"
1141 #       Sensor "it8712-isa-0290/temperature-temp1"
1142 #       Sensor "it8712-isa-0290/fanspeed-fan3"
1143 #       Sensor "it8712-isa-0290/voltage-in8"
1144 #       IgnoreSelected false
1145 #</Plugin>
1146
1147 #<Plugin sigrok>
1148 #  LogLevel 3
1149 #  <Device "AC Voltage">
1150 #    Driver "fluke-dmm"
1151 #    MinimumInterval 10
1152 #    Conn "/dev/ttyUSB2"
1153 #  </Device>
1154 #  <Device "Sound Level">
1155 #    Driver "cem-dt-885x"
1156 #    Conn "/dev/ttyUSB1"
1157 #  </Device>
1158 #</Plugin>
1159
1160 #<Plugin smart>
1161 #  Disk "/^[hs]d[a-f][0-9]?$/"
1162 #  IgnoreSelected false
1163 #</Plugin>
1164
1165 #<Plugin snmp>
1166 #   <Data "powerplus_voltge_input">
1167 #       Type "voltage"
1168 #       Table false
1169 #       Instance "input_line1"
1170 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
1171 #   </Data>
1172 #   <Data "hr_users">
1173 #       Type "users"
1174 #       Table false
1175 #       Instance ""
1176 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
1177 #   </Data>
1178 #   <Data "std_traffic">
1179 #       Type "if_octets"
1180 #       Table true
1181 #       Instance "IF-MIB::ifDescr"
1182 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
1183 #   </Data>
1184 #
1185 #   <Host "some.switch.mydomain.org">
1186 #       Address "192.168.0.2"
1187 #       Version 1
1188 #       Community "community_string"
1189 #       Collect "std_traffic"
1190 #       Interval 120
1191 #   </Host>
1192 #   <Host "some.server.mydomain.org">
1193 #       Address "192.168.0.42"
1194 #       Version 2
1195 #       Community "another_string"
1196 #       Collect "std_traffic" "hr_users"
1197 #   </Host>
1198 #   <Host "some.ups.mydomain.org">
1199 #       Address "192.168.0.3"
1200 #       Version 1
1201 #       Community "more_communities"
1202 #       Collect "powerplus_voltge_input"
1203 #       Interval 300
1204 #   </Host>
1205 #</Plugin>
1206
1207 #<Plugin statsd>
1208 #  Host "::"
1209 #  Port "8125"
1210 #  DeleteCounters false
1211 #  DeleteTimers   false
1212 #  DeleteGauges   false
1213 #  DeleteSets     false
1214 #  CounterSum     false
1215 #  TimerPercentile 90.0
1216 #  TimerPercentile 95.0
1217 #  TimerPercentile 99.0
1218 #  TimerLower     false
1219 #  TimerUpper     false
1220 #  TimerSum       false
1221 #  TimerCount     false
1222 #</Plugin>
1223
1224 #<Plugin swap>
1225 #       ReportByDevice false
1226 #       ReportBytes true
1227 #       ValuesAbsolute true
1228 #       ValuesPercentage false
1229 #</Plugin>
1230
1231 #<Plugin table>
1232 #       <Table "/proc/slabinfo">
1233 #               Instance "slabinfo"
1234 #               Separator " "
1235 #               <Result>
1236 #                       Type gauge
1237 #                       InstancePrefix "active_objs"
1238 #                       InstancesFrom 0
1239 #                       ValuesFrom 1
1240 #               </Result>
1241 #               <Result>
1242 #                       Type gauge
1243 #                       InstancePrefix "objperslab"
1244 #                       InstancesFrom 0
1245 #                       ValuesFrom 4
1246 #               </Result>
1247 #       </Table>
1248 #</Plugin>
1249
1250 #<Plugin tail>
1251 #  <File "/var/log/exim4/mainlog">
1252 #    Instance "exim"
1253 #    Interval 60
1254 #    <Match>
1255 #      Regex "S=([1-9][0-9]*)"
1256 #      DSType "CounterAdd"
1257 #      Type "ipt_bytes"
1258 #      Instance "total"
1259 #    </Match>
1260 #    <Match>
1261 #      Regex "\\<R=local_user\\>"
1262 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
1263 #      DSType "CounterInc"
1264 #      Type "counter"
1265 #      Instance "local_user"
1266 #    </Match>
1267 #  </File>
1268 #</Plugin>
1269
1270 #<Plugin tail_csv>
1271 #   <Metric "dropped">
1272 #       Type "percent"
1273 #       Instance "dropped"
1274 #       ValueFrom 1
1275 #   </Metric>
1276 #   <Metric "mbps">
1277 #       Type "bytes"
1278 #       Instance "wire-realtime"
1279 #       ValueFrom 2
1280 #   </Metric>
1281 #   <Metric "alerts">
1282 #       Type "alerts_per_second"
1283 #       ValueFrom 3
1284 #   </Metric>
1285 #   <Metric "kpps">
1286 #       Type "kpackets_wire_per_sec.realtime"
1287 #       ValueFrom 4
1288 #   </Metric>
1289 #   <File "/var/log/snort/snort.stats">
1290 #       Instance "snort-eth0"
1291 #       Interval 600
1292 #       Collect "dropped" "mbps" "alerts" "kpps"
1293 #       TimeFrom 0
1294 #   </File>
1295 #</Plugin>
1296
1297 #<Plugin tcpconns>
1298 #       ListeningPorts false
1299 #       AllPortsSummary false
1300 #       LocalPort "25"
1301 #       RemotePort "25"
1302 #</Plugin>
1303
1304 #<Plugin teamspeak2>
1305 #       Host "127.0.0.1"
1306 #       Port "51234"
1307 #       Server "8767"
1308 #</Plugin>
1309
1310 #<Plugin ted>
1311 #       Device "/dev/ttyUSB0"
1312 #       Retries 0
1313 #</Plugin>
1314
1315 #<Plugin thermal>
1316 #       ForceUseProcfs false
1317 #       Device "THRM"
1318 #       IgnoreSelected false
1319 #</Plugin>
1320
1321 #<Plugin tokyotyrant>
1322 #       Host "localhost"
1323 #       Port "1978"
1324 #</Plugin>
1325
1326 #<Plugin turbostat>
1327 ##      None of the following option should be set manually
1328 ##      This plugin automatically detect most optimal options
1329 ##      Only set values here if:
1330 ##      - The module asks you to
1331 ##      - You want to disable the collection of some data
1332 ##      - Your (Intel) CPU is not supported (yet) by the module
1333 ##      - The module generates a lot of errors 'MSR offset 0x... read failed'
1334 ##      In the last two cases, please open a bug request
1335 #
1336 #       TCCActivationTemp "100"
1337 #       CoreCstates "392"
1338 #       PackageCstates "396"
1339 #       SystemManagementInterrupt true
1340 #       DigitalTemperatureSensor true
1341 #       PackageThermalManagement true
1342 #       RunningAveragePowerLimit "7"    
1343 #</Plugin>
1344
1345 #<Plugin unixsock>
1346 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1347 #       SocketGroup "collectd"
1348 #       SocketPerms "0660"
1349 #       DeleteSocket false
1350 #</Plugin>
1351
1352 #<Plugin uuid>
1353 #       UUIDFile "/etc/uuid"
1354 #</Plugin>
1355
1356 #<Plugin mic>
1357 #   ShowCPU true
1358 #   ShowCPUCores true
1359 #   ShowMemory true
1360 #   ShowTemperatures true
1361 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1362 ##  then inverted with a IgnoreSelectedTemperature.
1363 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1364 #   Temperature vddg
1365 #   IgnoreSelectedTemperature true
1366 #   ShowPower true
1367 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1368 ##  then inverted with a IgnoreSelectedTemperature.
1369 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1370 #   Power total1
1371 #   IgnoreSelectedPower true
1372 #</Plugin>
1373
1374 #<Plugin varnish>
1375 #   This tag support an argument if you want to
1376 #   monitor the local instance just use </Instance>
1377 #   If you prefer defining another instance you can do
1378 #   so by using <Instance "myinstance">
1379 #   <Instance>
1380 #      CollectBackend true
1381 #      CollectBan false           # Varnish 3 and above
1382 #      CollectCache true
1383 #      CollectConnections true
1384 #      CollectDirectorDNS false   # Varnish 3 only
1385 #      CollectESI false
1386 #      CollectFetch false
1387 #      CollectHCB false
1388 #      CollectObjects false
1389 #      CollectPurge false         # Varnish 2 only
1390 #      CollectSession false
1391 #      CollectSHM true
1392 #      CollectSMA false           # Varnish 2 only
1393 #      CollectSMS false
1394 #      CollectSM false            # Varnish 2 only
1395 #      CollectStruct false
1396 #      CollectTotals false
1397 #      CollectUptime false        # Varnish 3 and above
1398 #      CollectVCL false
1399 #      CollectVSM false           # Varnish 4 only
1400 #      CollectWorkers false
1401 #   </Instance>
1402 #</Plugin>
1403
1404 #<Plugin virt>
1405 #       Connection "xen:///"
1406 #       RefreshInterval 60
1407 #       Domain "name"
1408 #       BlockDevice "name:device"
1409 #       InterfaceDevice "name:device"
1410 #       IgnoreSelected false
1411 #       HostnameFormat name
1412 #       InterfaceFormat name
1413 #       PluginInstanceFormat name
1414 #</Plugin>
1415
1416 #<Plugin vmem>
1417 #       Verbose false
1418 #</Plugin>
1419
1420 #<Plugin write_graphite>
1421 #  <Node "example">
1422 #    Host "localhost"
1423 #    Port "2003"
1424 #    Protocol "tcp"
1425 #    ReconnectInterval 0
1426 #    LogSendErrors true
1427 #    Prefix "collectd"
1428 #    Postfix "collectd"
1429 #    StoreRates true
1430 #    AlwaysAppendDS false
1431 #    EscapeCharacter "_"
1432 #    SeparateInstances false
1433 #    DropDuplicateFields false
1434 #  </Node>
1435 #</Plugin>
1436
1437 #<Plugin write_http>
1438 #       <Node "example">
1439 #               URL "http://example.com/collectd-post"
1440 #               User "collectd"
1441 #               Password "weCh3ik0"
1442 #               VerifyPeer true
1443 #               VerifyHost true
1444 #               CACert "/etc/ssl/ca.crt"
1445 #               CAPath "/etc/ssl/certs/"
1446 #               ClientKey "/etc/ssl/client.pem"
1447 #               ClientCert "/etc/ssl/client.crt"
1448 #               ClientKeyPass "secret"
1449 #               Header "X-Custom-Header: custom_value"
1450 #               SSLVersion "TLSv1"
1451 #               Format "Command"
1452 #               Metrics true
1453 #               Notifications false
1454 #               StoreRates false
1455 #               BufferSize 4096
1456 #               LowSpeedLimit 0
1457 #               Timeout 0
1458 #       </Node>
1459 #</Plugin>
1460
1461 #<Plugin write_kafka>
1462 #  Property "metadata.broker.list" "localhost:9092"
1463 #  <Topic "collectd">
1464 #    Format JSON
1465 #  </Topic>
1466 #</Plugin>
1467
1468 #<Plugin write_mongodb>
1469 #       <Node "example">
1470 #               Host "localhost"
1471 #               Port "27017"
1472 #               Timeout 1000
1473 #               StoreRates false
1474 #               Database "auth_db"
1475 #               User "auth_user"
1476 #               Password "auth_passwd"
1477 #       </Node>
1478 #</Plugin>
1479
1480 #<Plugin write_redis>
1481 #       <Node "example">
1482 #               Host "localhost"
1483 #               Port "6379"
1484 #               Timeout 1000
1485 #               Prefix "collectd/"
1486 #       </Node>
1487 #</Plugin>
1488
1489 #<Plugin write_riemann>
1490 #       <Node "example">
1491 #               Host "localhost"
1492 #               Port 5555
1493 #               Protocol TCP
1494 #               Batch true
1495 #               BatchMaxSize 8192
1496 #               StoreRates true
1497 #               AlwaysAppendDS false
1498 #               TTLFactor 2.0
1499 #               Notifications true
1500 #               CheckThresholds false
1501 #               EventServicePrefix ""
1502 #       </Node>
1503 #       Tag "foobar"
1504 #       Attribute "foo" "bar"
1505 #</Plugin>
1506
1507 #<Plugin write_sensu>
1508 #       <Node "example">
1509 #               Host "localhost"
1510 #               Port 3030
1511 #               StoreRates true
1512 #               AlwaysAppendDS false
1513 #               Notifications true
1514 #               Metrics true
1515 #               EventServicePrefix ""
1516 #               MetricHandler "influx"
1517 #               MetricHandler "default"
1518 #               NotificationHandler "flapjack"
1519 #               NotificationHandler "howling_monkey"
1520 #       </Node>
1521 #       Tag "foobar"
1522 #       Attribute "foo" "bar"
1523 #</Plugin>
1524
1525 #<Plugin write_tsdb>
1526 #       <Node>
1527 #               Host "localhost"
1528 #               Port "4242"
1529 #               HostTags "status=production"
1530 #               StoreRates false
1531 #               AlwaysAppendDS false
1532 #       </Node>
1533 #</Plugin>
1534
1535 #<Plugin zookeeper>
1536 #    Host "localhost"
1537 #    Port "2181"
1538 #</Plugin>
1539
1540 ##############################################################################
1541 # Filter configuration                                                       #
1542 #----------------------------------------------------------------------------#
1543 # The following configures collectd's filtering mechanism. Before changing   #
1544 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1545 # in the collectd.conf(5) manual page.                                       #
1546 ##############################################################################
1547
1548 # Load required matches:
1549 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1550 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1551 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1552 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1553 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1554
1555 # Load required targets:
1556 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1557 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1558 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1559 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1560 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1561
1562 #----------------------------------------------------------------------------#
1563 # The following block demonstrates the default behavior if no filtering is   #
1564 # configured at all: All values will be sent to all available write plugins. #
1565 #----------------------------------------------------------------------------#
1566
1567 #<Chain "PostCache">
1568 #  Target "write"
1569 #</Chain>
1570
1571 ##############################################################################
1572 # Threshold configuration                                                    #
1573 #----------------------------------------------------------------------------#
1574 # The following outlines how to configure collectd's threshold checking      #
1575 # plugin. The plugin and possible configuration options are documented in    #
1576 # the collectd-threshold(5) manual page.                                     #
1577 ##############################################################################
1578
1579 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1580 #<Plugin threshold>
1581 #  <Type "foo">
1582 #    WarningMin    0.00
1583 #    WarningMax 1000.00
1584 #    FailureMin    0.00
1585 #    FailureMax 1200.00
1586 #    Invert false
1587 #    Instance "bar"
1588 #  </Type>
1589 #
1590 #  <Plugin "interface">
1591 #    Instance "eth0"
1592 #    <Type "if_octets">
1593 #      FailureMax 10000000
1594 #      DataSource "rx"
1595 #    </Type>
1596 #  </Plugin>
1597 #
1598 #  <Host "hostname">
1599 #    <Type "cpu">
1600 #      Instance "idle"
1601 #      FailureMin 10
1602 #    </Type>
1603 #
1604 #    <Plugin "memory">
1605 #      <Type "memory">
1606 #        Instance "cached"
1607 #        WarningMin 100000000
1608 #      </Type>
1609 #    </Plugin>
1610 #
1611 #    <Type "load">
1612 #       DataSource "midterm"
1613 #       FailureMax 4
1614 #       Hits 3
1615 #       Hysteresis 3
1616 #    </Type>
1617 #  </Host>
1618 #</Plugin>