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