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