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