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