Merge branch 'collectd-4.10' into collectd-5.0
[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     "@prefix@/var/lib/@PACKAGE_NAME@"
16 #PIDFile     "@prefix@/var/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@prefix@/lib/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
19 #Interval     10
20 #Timeout      2
21 #ReadThreads  5
22
23 ##############################################################################
24 # Logging                                                                    #
25 #----------------------------------------------------------------------------#
26 # Plugins which provide logging functions should be loaded first, so log     #
27 # messages generated when loading or configuring other plugins can be        #
28 # accessed.                                                                  #
29 ##############################################################################
30
31 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
32 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
33
34 #<Plugin logfile>
35 #       LogLevel @DEFAULT_LOG_LEVEL@
36 #       File STDOUT
37 #       Timestamp true
38 #       PrintSeverity false
39 #</Plugin>
40
41 #<Plugin syslog>
42 #       LogLevel @DEFAULT_LOG_LEVEL@
43 #</Plugin>
44
45 ##############################################################################
46 # LoadPlugin section                                                         #
47 #----------------------------------------------------------------------------#
48 # Lines beginning with a single `#' belong to plugins which have been built  #
49 # but are disabled by default.                                               #
50 #                                                                            #
51 # Lines begnning with `##' belong to plugins which have not been built due   #
52 # to missing dependencies or because they have been deactivated explicitly.  #
53 ##############################################################################
54
55 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
56 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
57 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
58 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
59 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
60 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
61 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
62 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
63 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
64 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
65 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
66 @LOAD_PLUGIN_CSV@LoadPlugin csv
67 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
68 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
69 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
70 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
71 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
72 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
73 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
74 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
75 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
76 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
77 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
78 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
79 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
80 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
81 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
82 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
83 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
84 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
85 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
86 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
87 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
88 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
89 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
90 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
91 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
92 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
93 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
94 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
95 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
96 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
97 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
98 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
99 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
100 @LOAD_PLUGIN_NETWORK@LoadPlugin network
101 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
102 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
103 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
104 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
105 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
106 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
107 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
108 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
109 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
110 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
111 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
112 #@BUILD_PLUGIN_PERL_TRUE@  Globals true
113 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
114 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
115 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
116 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
117 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
118 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
119 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
120 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
121 #@BUILD_PLUGIN_PYTHON_TRUE@  Globals true
122 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
123 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
124 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
125 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
126 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
127 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
128 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
129 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
130 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
131 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
132 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
133 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
134 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
135 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
136 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
137 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
138 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
139 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
140 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
141 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
142 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
143 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
144 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
145 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
146 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
147 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
148 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
149 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
150 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
151
152 ##############################################################################
153 # Plugin configuration                                                       #
154 #----------------------------------------------------------------------------#
155 # In this section configuration stubs for each plugin are provided. A desc-  #
156 # ription of those options is available in the collectd.conf(5) manual page. #
157 ##############################################################################
158
159 #<Plugin "amqp">
160 #  <Publish "name">
161 #    Host "localhost"
162 #    Port "5672"
163 #    VHost "/"
164 #    User "guest"
165 #    Password "guest"
166 #    Exchange "amq.fanout"
167 #    RoutingKey "collectd"
168 #    Persistent false
169 #    StoreRates false
170 #  </Publish>
171 #</Plugin>
172
173 #<Plugin apache>
174 #  <Instance "local">
175 #    URL "http://localhost/status?auto"
176 #    User "www-user"
177 #    Password "secret"
178 #    CACert "/etc/ssl/ca.crt"
179 #  </Instance>
180 #</Plugin>
181
182 #<Plugin apcups>
183 #       Host "localhost"
184 #       Port "3551"
185 #</Plugin>
186
187 #<Plugin ascent>
188 #       URL "http://localhost/ascent/status/"
189 #       User "www-user"
190 #       Password "secret"
191 #       CACert "/etc/ssl/ca.crt"
192 #</Plugin>
193
194 #<Plugin "bind">
195 #  URL "http://localhost:8053/"
196 #  OpCodes         true
197 #  QTypes          true
198 #
199 #  ServerStats     true
200 #  ZoneMaintStats  true
201 #  ResolverStats   false
202 #  MemoryStats     true
203 #
204 #  <View "_default">
205 #    QTypes        true
206 #    ResolverStats true
207 #    CacheRRSets   true
208 #
209 #    Zone "127.in-addr.arpa/IN"
210 #  </View>
211 #</Plugin>
212
213 #<Plugin csv>
214 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
215 #       StoreRates false
216 #</Plugin>
217
218 #<Plugin curl>
219 #  <Page "stock_quotes">
220 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
221 #    User "foo"
222 #    Password "bar"
223 #    MeasureResponseTime false
224 #    <Match>
225 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
226 #      DSType "GaugeAverage"
227 #      Type "stock_value"
228 #      Instance "AMD"
229 #    </Match>
230 #  </Page>
231 #</Plugin>
232
233 #<Plugin curl_json>
234 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
235 #  <URL "http://localhost:5984/_stats">
236 #    Instance "httpd"
237 #    <Key "httpd/requests/count">
238 #      Type "http_requests"
239 #    </Key>
240 #
241 #    <Key "httpd_request_methods/*/count">
242 #      Type "http_request_methods"
243 #    </Key>
244 #
245 #    <Key "httpd_status_codes/*/count">
246 #      Type "http_response_codes"
247 #    </Key>
248 #  </URL>
249 ## Database status metrics:
250 #  <URL "http://localhost:5984/_all_dbs">
251 #    Instance "dbs"
252 #    <Key "*/doc_count">
253 #      Type "gauge"
254 #    </Key>
255 #    <Key "*/doc_del_count">
256 #      Type "counter"
257 #    </Key>
258 #    <Key "*/disk_size">
259 #      Type "bytes"
260 #    </Key>
261 #  </URL>
262 #</Plugin>
263
264 #<Plugin "curl_xml">
265 #  <URL "http://localhost/stats.xml">
266 #    Host "my_host"
267 #    Instance "some_instance"
268 #    User "collectd"
269 #    Password "thaiNg0I"
270 #    VerifyPeer true
271 #    VerifyHost true
272 #    CACert "/path/to/ca.crt"
273 #
274 #    <XPath "table[@id=\"magic_level\"]/tr">
275 #      Type "magic_level"
276 #      #InstancePrefix "prefix-"
277 #      InstanceFrom "td[1]"
278 #      ValuesFrom "td[2]/span[@class=\"level\"]"
279 #    </XPath>
280 #  </URL>
281 #</Plugin>
282
283 #<Plugin dbi>
284 #       <Query "num_of_customers">
285 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
286 #               <Result>
287 #                       Type "gauge"
288 #                       InstancesFrom "c_key"
289 #                       ValuesFrom "c_value"
290 #               </Result>
291 #       </Query>
292 #       <Database "customers_db">
293 #               Driver "mysql"
294 #               DriverOption "host" "localhost"
295 #               DriverOption "username" "collectd"
296 #               DriverOption "password" "AeXohy0O"
297 #               DriverOption "dbname" "custdb0"
298 #               #SelectDB "custdb0"
299 #               Query "num_of_customers"
300 #               #Query "..."
301 #       </Database>
302 #</Plugin>
303
304 #<Plugin df>
305 #       Device "/dev/hda1"
306 #       Device "192.168.0.2:/mnt/nfs"
307 #       MountPoint "/home"
308 #       FSType "ext3"
309 #       IgnoreSelected false
310 #       ReportByDevice false
311 #       ReportReserved false
312 #       ReportInodes false
313 #</Plugin>
314
315 #<Plugin disk>
316 #       Disk "/^[hs]d[a-f][0-9]?$/"
317 #       IgnoreSelected false
318 #</Plugin>
319
320 #<Plugin dns>
321 #       Interface "eth0"
322 #       IgnoreSource "192.168.0.1"
323 #       SelectNumericQueryTypes true
324 #</Plugin>
325
326 #<Plugin email>
327 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
328 #       SocketGroup "collectd"
329 #       SocketPerms "0770"
330 #       MaxConns 5
331 #</Plugin>
332
333 #<Plugin exec>
334 #       Exec "user:group" "/path/to/exec"
335 #       NotificationExec "user:group" "/path/to/exec"
336 #</Plugin>
337
338 #<Plugin filecount>
339 #       <Directory "/path/to/dir">
340 #               Instance "foodir"
341 #               Name "*.conf"
342 #               MTime "-5m"
343 #               Size "+10k"
344 #               Recursive true
345 #               IncludeHidden false
346 #       </Directory>
347 #</Plugin>
348
349 #<Plugin "gmond">
350 #  MCReceiveFrom "239.2.11.71" "8649"
351 #  <Metric "swap_total">
352 #    Type "swap"
353 #    TypeInstance "total"
354 #    DataSource "value"
355 #  </Metric>
356 #  <Metric "swap_free">
357 #    Type "swap"
358 #    TypeInstance "free"
359 #    DataSource "value"
360 #  </Metric>
361 #</Plugin>
362
363 #<Plugin hddtemp>
364 #  Host "127.0.0.1"
365 #  Port "7634"
366 #</Plugin>
367
368 #<Plugin interface>
369 #       Interface "eth0"
370 #       IgnoreSelected false
371 #</Plugin>
372
373 #<Plugin ipmi>
374 #       Sensor "some_sensor"
375 #       Sensor "another_one"
376 #       IgnoreSelected false
377 #       NotifySensorAdd false
378 #       NotifySensorRemove true
379 #       NotifySensorNotPresent false
380 #</Plugin>
381
382 #<Plugin iptables>
383 #       Chain table chain
384 #</Plugin>
385
386 #<Plugin irq>
387 #       Irq 7
388 #       Irq 8
389 #       Irq 9
390 #       IgnoreSelected true
391 #</Plugin>
392
393 #<Plugin "java">
394 #       JVMArg "-verbose:jni"
395 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
396 #
397 #       LoadPlugin "org.collectd.java.Foobar"
398 #       <Plugin "org.collectd.java.Foobar">
399 #         # To be parsed by the plugin
400 #       </Plugin>
401 #</Plugin>
402
403 #<Plugin libvirt>
404 #       Connection "xen:///"
405 #       RefreshInterval 60
406 #       Domain "name"
407 #       BlockDevice "name:device"
408 #       InterfaceDevice "name:device"
409 #       IgnoreSelected false
410 #       HostnameFormat name
411 #       InterfaceFormat name
412 #</Plugin>
413
414 #<Plugin lpar>
415 #       CpuPoolStats   false
416 #       ReportBySerial false
417 #</Plugin>
418
419 #<Plugin madwifi>
420 #       Interface "wlan0"
421 #       IgnoreSelected false
422 #       Source "SysFS"
423 #       WatchSet "None"
424 #       WatchAdd "node_octets"
425 #       WatchAdd "node_rssi"
426 #       WatchAdd "is_rx_acl"
427 #       WatchAdd "is_scan_active"
428 #</Plugin>
429
430 #<Plugin mbmon>
431 #       Host "127.0.0.1"
432 #       Port "411"
433 #</Plugin>
434
435 #<Plugin memcachec>
436 #       <Page "plugin_instance">
437 #               Server "localhost"
438 #               Key "page_key"
439 #               <Match>
440 #                       Regex "(\\d+) bytes sent"
441 #                       ExcludeRegex "<lines to be excluded>"
442 #                       DSType CounterAdd
443 #                       Type "ipt_octets"
444 #                       Instance "type_instance"
445 #               </Match>
446 #       </Page>
447 #</Plugin>
448
449 #<Plugin memcached>
450 #       Host "127.0.0.1"
451 #       Port "11211"
452 #</Plugin>
453
454 #<Plugin modbus>
455 #       <Data "data_name">
456 #               RegisterBase 1234
457 #               RegisterType float
458 #               Type gauge
459 #               Instance "..."
460 #       </Data>
461 #
462 #       <Host "name">
463 #               Address "addr"
464 #               Port "1234"
465 #               Interval 60
466 #
467 #               <Slave 1>
468 #                       Instance "foobar" # optional
469 #                       Collect "data_name"
470 #               </Slave>
471 #       </Host>
472 #</Plugin>
473
474 #<Plugin mysql>
475 #       <Database db_name>
476 #               Host "database.serv.er"
477 #               User "db_user"
478 #               Password "secret"
479 #               Database "db_name"
480 #               MasterStats true
481 #       </Database>
482 #
483 #       <Database db_name2>
484 #               Host "localhost"
485 #               Socket "/var/run/mysql/mysqld.sock"
486 #               SlaveStats true
487 #               SlaveNotifications true
488 #       </Database>
489 #</Plugin>
490
491 #<Plugin netapp>
492 #       <Host "netapp1.example.com">
493 #               Protocol      "https"
494 #               Address       "10.0.0.1"
495 #               Port          443
496 #               User          "username"
497 #               Password      "aef4Aebe"
498 #               Interval      30
499 #
500 #               <WAFL>
501 #                       Interval 30
502 #                       GetNameCache   true
503 #                       GetDirCache    true
504 #                       GetBufferCache true
505 #                       GetInodeCache  true
506 #               </WAFL>
507 #
508 #               <Disks>
509 #                       Interval 30
510 #                       GetBusy true
511 #               </Disks>
512 #
513 #               <VolumePerf>
514 #                       Interval 30
515 #                       GetIO      "volume0"
516 #                       IgnoreSelectedIO      false
517 #                       GetOps     "volume0"
518 #                       IgnoreSelectedOps     false
519 #                       GetLatency "volume0"
520 #                       IgnoreSelectedLatency false
521 #               </VolumePerf>
522 #
523 #               <VolumeUsage>
524 #                       Interval 30
525 #                       GetCapacity "vol0"
526 #                       GetCapacity "vol1"
527 #                       IgnoreSelectedCapacity false
528 #                       GetSnapshot "vol1"
529 #                       GetSnapshot "vol3"
530 #                       IgnoreSelectedSnapshot false
531 #               </VolumeUsage>
532 #
533 #               <System>
534 #                       Interval 30
535 #                       GetCPULoad     true
536 #                       GetInterfaces  true
537 #                       GetDiskOps     true
538 #                       GetDiskIO      true
539 #               </System>
540 #       </Host>
541 #</Plugin>
542
543 #<Plugin netlink>
544 #       Interface "All"
545 #       VerboseInterface "All"
546 #       QDisc "eth0" "pfifo_fast-1:0"
547 #       Class "ppp0" "htb-1:10"
548 #       Filter "ppp0" "u32-1:0"
549 #       IgnoreSelected false
550 #</Plugin>
551
552 @LOAD_PLUGIN_NETWORK@<Plugin network>
553 #       # client setup:
554 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
555 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
556 #               SecurityLevel Encrypt
557 #               Username "user"
558 #               Password "secret"
559 #               Interface "eth0"
560 @LOAD_PLUGIN_NETWORK@   </Server>
561 #       TimeToLive "128"
562 #
563 #       # server setup:
564 #       Listen "ff18::efc0:4a42" "25826"
565 #       <Listen "239.192.74.66" "25826">
566 #               SecurityLevel Sign
567 #               AuthFile "/etc/collectd/passwd"
568 #               Interface "eth0"
569 #       </Listen>
570 #       MaxPacketSize 1024
571 #
572 #       # proxy setup (client and server as above):
573 #       Forward true
574 #
575 #       # statistics about the network plugin itself
576 #       ReportStats false
577 #
578 #       # "garbage collection"
579 #       CacheFlush 1800
580 @LOAD_PLUGIN_NETWORK@</Plugin>
581
582 #<Plugin nginx>
583 #       URL "http://localhost/status?auto"
584 #       User "www-user"
585 #       Password "secret"
586 #       CACert "/etc/ssl/ca.crt"
587 #</Plugin>
588
589 #<Plugin notify_desktop>
590 #       OkayTimeout 1000
591 #       WarningTimeout 5000
592 #       FailureTimeout 0
593 #</Plugin>
594
595 #<Plugin notify_email>
596 #       SMTPServer "localhost"
597 #       SMTPPort 25
598 #       SMTPUser "my-username"
599 #       SMTPPassword "my-password"
600 #       From "collectd@main0server.com"
601 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
602 #       Subject "Aaaaaa!! %s on %s!!!!!"
603 #       Recipient "email1@domain1.net"
604 #       Recipient "email2@domain2.com"
605 #</Plugin>
606
607 #<Plugin ntpd>
608 #       Host "localhost"
609 #       Port 123
610 #       ReverseLookups false
611 #</Plugin>
612
613 #<Plugin nut>
614 #       UPS "upsname@hostname:port"
615 #</Plugin>
616
617 #<Plugin olsrd>
618 #       Host "127.0.0.1"
619 #       Port "2006"
620 #       CollectLinks "Summary"
621 #       CollectRoutes "Summary"
622 #       CollectTopology "Summary"
623 #</Plugin>
624
625 #<Plugin onewire>
626 #       Device "-s localhost:4304"
627 #       Sensor "F10FCA000800"
628 #       IgnoreSelected false
629 #</Plugin>
630
631 #<Plugin openvpn>
632 #       StatusFile "/etc/openvpn/openvpn-status.log"
633 #       ImprovedNamingSchema false
634 #       CollectCompression true
635 #       CollectIndividualUsers true
636 #       CollectUserCount false
637 #</Plugin>
638
639 #<Plugin oracle>
640 #  <Query "out_of_stock">
641 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
642 #    <Result>
643 #      Type "gauge"
644 #      InstancesFrom "category"
645 #      ValuesFrom "value"
646 #    </Result>
647 #  </Query>
648 #  <Database "product_information">
649 #    ConnectID "db01"
650 #    Username "oracle"
651 #    Password "secret"
652 #    Query "out_of_stock"
653 #  </Database>
654 #</Plugin>
655
656 #<Plugin perl>
657 #       IncludeDir "/my/include/path"
658 #       BaseName "Collectd::Plugins"
659 #       EnableDebugger ""
660 #       LoadPlugin Monitorus
661 #       LoadPlugin OpenVZ
662 #
663 #       <Plugin foo>
664 #               Foo "Bar"
665 #               Qux "Baz"
666 #       </Plugin>
667 #</Plugin>
668
669 #<Plugin pinba>
670 #       Address "::0"
671 #       Port "30002"
672 #       <View "name">
673 #               Host "host name"
674 #               Server "server name"
675 #               Script "script name"
676 #       </View>
677 #</Plugin>
678
679 #<Plugin ping>
680 #       Host "host.foo.bar"
681 #       Interval 1.0
682 #       Timeout 0.9
683 #       TTL 255
684 #       SourceAddress "1.2.3.4"
685 #       Device "eth0"
686 #       MaxMissed -1
687 #</Plugin>
688
689 #<Plugin postgresql>
690 #       <Query magic>
691 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
692 #               Param hostname
693 #               <Result>
694 #                       Type gauge
695 #                       InstancePrefix "magic"
696 #                       ValuesFrom magic
697 #               </Result>
698 #       </Query>
699 #       <Query rt36_tickets>
700 #               Statement "SELECT COUNT(type) AS count, type \
701 #                                 FROM (SELECT CASE \
702 #                                              WHEN resolved = 'epoch' THEN 'open' \
703 #                                              ELSE 'resolved' END AS type \
704 #                                              FROM tickets) type \
705 #                                 GROUP BY type;"
706 #               <Result>
707 #                       Type counter
708 #                       InstancePrefix "rt36_tickets"
709 #                       InstancesFrom "type"
710 #                       ValuesFrom "count"
711 #               </Result>
712 #       </Query>
713 #       <Database foo>
714 #               Host "hostname"
715 #               Port "5432"
716 #               User "username"
717 #               Password "secret"
718 #               SSLMode "prefer"
719 #               KRBSrvName "kerberos_service_name"
720 #               Query magic
721 #       </Database>
722 #       <Database bar>
723 #               Interval 60
724 #               Service "service_name"
725 #               Query backend # predefined
726 #               Query rt36_tickets
727 #       </Database>
728 #</Plugin>
729
730 #<Plugin powerdns>
731 #  <Server "server_name">
732 #    Collect "latency"
733 #    Collect "udp-answers" "udp-queries"
734 #    Socket "/var/run/pdns.controlsocket"
735 #  </Server>
736 #  <Recursor "recursor_name">
737 #    Collect "questions"
738 #    Collect "cache-hits" "cache-misses"
739 #    Socket "/var/run/pdns_recursor.controlsocket"
740 #  </Recursor>
741 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
742 #</Plugin>
743
744 #<Plugin processes>
745 #       Process "name"
746 #</Plugin>
747
748 #<Plugin protocols>
749 #       Value "/^Tcp:/"
750 #       IgnoreSelected false
751 #</Plugin>
752
753 #<Plugin python>
754 #       ModulePath "/path/to/your/python/modules"
755 #       LogTraces true
756 #       Interactive true
757 #       Import "spam"
758 #
759 #       <Module spam>
760 #               spam "wonderful" "lovely"
761 #       </Module>
762 #</Plugin>
763
764 #<Plugin redis>
765 #   <Node example>
766 #      Host "redis.example.com"
767 #      Port "6379"
768 #      Timeout 2000
769 #   </Node>
770 #</Plugin>
771
772 #<Plugin routeros>
773 #       <Router>
774 #               Host "router.example.com"
775 #               Port "8728"
776 #               User "admin"
777 #               Password "dozaiTh4"
778 #               CollectInterface true
779 #               CollectRegistrationTable true
780 #               CollectCPULoad true
781 #               CollectMemory true
782 #               CollectDF true
783 #               CollectDisk true
784 #       </Router>
785 #</Plugin>
786
787 #<Plugin rrdcached>
788 #       DaemonAddress "unix:/tmp/rrdcached.sock"
789 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
790 #       CreateFiles true
791 #       CollectStatistics true
792 #</Plugin>
793
794 #<Plugin rrdtool>
795 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
796 #       CacheTimeout 120
797 #       CacheFlush   900
798 #</Plugin>
799
800 #<Plugin sensors>
801 #       Sensor "it8712-isa-0290/temperature-temp1"
802 #       Sensor "it8712-isa-0290/fanspeed-fan3"
803 #       Sensor "it8712-isa-0290/voltage-in8"
804 #       IgnoreSelected false
805 #</Plugin>
806
807 #<Plugin snmp>
808 #   <Data "powerplus_voltge_input">
809 #       Type "voltage"
810 #       Table false
811 #       Instance "input_line1"
812 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
813 #   </Data>
814 #   <Data "hr_users">
815 #       Type "users"
816 #       Table false
817 #       Instance ""
818 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
819 #   </Data>
820 #   <Data "std_traffic">
821 #       Type "if_octets"
822 #       Table true
823 #       Instance "IF-MIB::ifDescr"
824 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
825 #   </Data>
826 #
827 #   <Host "some.switch.mydomain.org">
828 #       Address "192.168.0.2"
829 #       Version 1
830 #       Community "community_string"
831 #       Collect "std_traffic"
832 #       Interval 120
833 #   </Host>
834 #   <Host "some.server.mydomain.org">
835 #       Address "192.168.0.42"
836 #       Version 2
837 #       Community "another_string"
838 #       Collect "std_traffic" "hr_users"
839 #   </Host>
840 #   <Host "some.ups.mydomain.org">
841 #       Address "192.168.0.3"
842 #       Version 1
843 #       Community "more_communities"
844 #       Collect "powerplus_voltge_input"
845 #       Interval 300
846 #   </Host>
847 #</Plugin>
848
849 #<Plugin "table">
850 #       <Table "/proc/slabinfo">
851 #               Instance "slabinfo"
852 #               Separator " "
853 #               <Result>
854 #                       Type gauge
855 #                       InstancePrefix "active_objs"
856 #                       InstancesFrom 0
857 #                       ValuesFrom 1
858 #               </Result>
859 #               <Result>
860 #                       Type gauge
861 #                       InstancePrefix "objperslab"
862 #                       InstancesFrom 0
863 #                       ValuesFrom 4
864 #               </Result>
865 #       </Table>
866 #</Plugin>
867
868 #<Plugin "tail">
869 #  <File "/var/log/exim4/mainlog">
870 #    Instance "exim"
871 #    <Match>
872 #      Regex "S=([1-9][0-9]*)"
873 #      DSType "CounterAdd"
874 #      Type "ipt_bytes"
875 #      Instance "total"
876 #    </Match>
877 #    <Match>
878 #      Regex "\\<R=local_user\\>"
879 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
880 #      DSType "CounterInc"
881 #      Type "counter"
882 #      Instance "local_user"
883 #    </Match>
884 #  </File>
885 #</Plugin>
886
887 #<Plugin tcpconns>
888 #       ListeningPorts false
889 #       LocalPort "25"
890 #       RemotePort "25"
891 #</Plugin>
892
893 #<Plugin teamspeak2>
894 #       Host "127.0.0.1"
895 #       Port "51234"
896 #       Server "8767"
897 #</Plugin>
898
899 #<Plugin ted>
900 #       Device "/dev/ttyUSB0"
901 #       Retries 0
902 #</Plugin>
903
904 #<Plugin thermal>
905 #       ForceUseProcfs false
906 #       Device "THRM"
907 #       IgnoreSelected false
908 #</Plugin>
909
910 #<Plugin tokyotyrant>
911 #       Host "localhost"
912 #       Port "1978"
913 #</Plugin>
914
915 #<Plugin unixsock>
916 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
917 #       SocketGroup "collectd"
918 #       SocketPerms "0660"
919 #       DeleteSocket false
920 #</Plugin>
921
922 #<Plugin uuid>
923 #       UUIDFile "/etc/uuid"
924 #</Plugin>
925
926 #<Plugin varnish>
927 #   This tag support an argument if you want to
928 #   monitor the local instance just use </Instance>
929 #   If you prefer defining another instance you can do
930 #   so by using <Instance "myinstance">
931 #   <Instance>
932 #      CollectCache true
933 #      CollectBackend true
934 #      CollectConnections true
935 #      CollectSHM true
936 #      CollectESI false
937 #      CollectFetch false
938 #      CollectHCB false
939 #      CollectSMA false
940 #      CollectSMS false
941 #      CollectSM false
942 #      CollectTotals false
943 #      CollectWorkers false
944 #   </Instance>
945 #</Plugin>
946
947 #<Plugin vmem>
948 #       Verbose false
949 #</Plugin>
950
951 #<Plugin write_http>
952 #       <URL "http://example.com/collectd-post">
953 #               User "collectd"
954 #               Password "weCh3ik0"
955 #               VerifyPeer true
956 #               VerifyHost true
957 #               CACert "/etc/ssl/ca.crt"
958 #               Format "Command"
959 #               StoreRates false
960 #       </URL>
961 #</Plugin>
962
963 #<Plugin write_redis>
964 #       <Node "example">
965 #               Host "localhost"
966 #               Port "6379"
967 #               Timeout 1000
968 #       </Node>
969 #</Plugin>
970
971 ##############################################################################
972 # Filter configuration                                                       #
973 #----------------------------------------------------------------------------#
974 # The following configures collectd's filtering mechanism. Before changing   #
975 # anything in this section, please read the `FILTER CONFIGURATION' section   #
976 # in the collectd.conf(5) manual page.                                       #
977 ##############################################################################
978
979 # Load required matches:
980 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
981 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
982 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
983 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
984 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
985
986 # Load required targets:
987 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
988 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
989 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
990 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
991 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
992
993 #----------------------------------------------------------------------------#
994 # The following block demonstrates the default behavior if no filtering is   #
995 # configured at all: All values will be sent to all available write plugins. #
996 #----------------------------------------------------------------------------#
997
998 #<Chain "PostCache">
999 #  Target "write"
1000 #</Chain>
1001
1002 ##############################################################################
1003 # Threshold configuration                                                    #
1004 #----------------------------------------------------------------------------#
1005 # The following outlines how to configure collectd's threshold checking      #
1006 # plugin. The plugin and possible configuration options are documented in    #
1007 # the collectd-threshold(5) manual page.                                     #
1008 ##############################################################################
1009
1010 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1011 #<Plugin "threshold">
1012 #  <Type "foo">
1013 #    WarningMin    0.00
1014 #    WarningMax 1000.00
1015 #    FailureMin    0.00
1016 #    FailureMax 1200.00
1017 #    Invert false
1018 #    Instance "bar"
1019 #  </Type>
1020 #
1021 #  <Plugin "interface">
1022 #    Instance "eth0"
1023 #    <Type "if_octets">
1024 #      FailureMax 10000000
1025 #      DataSource "rx"
1026 #    </Type>
1027 #  </Plugin>
1028 #
1029 #  <Host "hostname">
1030 #    <Type "cpu">
1031 #      Instance "idle"
1032 #      FailureMin 10
1033 #    </Type>
1034 #
1035 #    <Plugin "memory">
1036 #      <Type "memory">
1037 #        Instance "cached"
1038 #        WarningMin 100000000
1039 #      </Type>
1040 #    </Plugin>
1041 #
1042 #    <Type "load">
1043 #       DataSource "midterm"
1044 #       FailureMax 4
1045 #       Hits 3
1046 #       Hysteresis 3
1047 #    </Type>
1048 #  </Host>
1049 #</Plugin>