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