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