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