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