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