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