38b7c90f5c5b22592f66c9f7bae6ef672355f9ad
[collectd.git] / src / collectd.conf.in
1 #
2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
4 # http://collectd.org/
5 #
6
7 ##############################################################################
8 # Global                                                                     #
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon.                                            #
11 ##############################################################################
12
13 #Hostname    "localhost"
14 #FQDNLookup   true
15 #BaseDir     "@prefix@/var/lib/@PACKAGE_NAME@"
16 #PIDFile     "@prefix@/var/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@prefix@/lib/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
19 #Interval     10
20 #Timeout      2
21 #ReadThreads  5
22
23 ##############################################################################
24 # Logging                                                                    #
25 #----------------------------------------------------------------------------#
26 # Plugins which provide logging functions should be loaded first, so log     #
27 # messages generated when loading or configuring other plugins can be        #
28 # accessed.                                                                  #
29 ##############################################################################
30
31 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
32 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
33
34 #<Plugin logfile>
35 #       LogLevel @DEFAULT_LOG_LEVEL@
36 #       File STDOUT
37 #       Timestamp true
38 #       PrintSeverity false
39 #</Plugin>
40
41 #<Plugin syslog>
42 #       LogLevel @DEFAULT_LOG_LEVEL@
43 #</Plugin>
44
45 ##############################################################################
46 # LoadPlugin section                                                         #
47 #----------------------------------------------------------------------------#
48 # Lines beginning with a single `#' belong to plugins which have been built  #
49 # but are disabled by default.                                               #
50 #                                                                            #
51 # Lines begnning with `##' belong to plugins which have not been built due   #
52 # to missing dependencies or because they have been deactivated explicitly.  #
53 ##############################################################################
54
55 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
56 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
57 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
58 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
59 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
60 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
61 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
62 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
63 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
64 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
65 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
66 @LOAD_PLUGIN_CSV@LoadPlugin csv
67 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
68 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
69 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
70 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
71 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
72 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
73 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
74 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
75 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
76 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
77 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
78 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
79 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
80 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
81 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
82 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
83 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
84 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
85 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
86 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
87 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
88 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
89 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
90 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
91 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
92 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
93 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
94 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
95 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
96 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
97 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
98 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
99 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
100 @LOAD_PLUGIN_NETWORK@LoadPlugin network
101 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
102 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
103 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
104 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
105 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
106 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
107 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
108 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
109 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
110 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
111 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
112 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
113 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
114 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
115 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
116 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
117 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
118 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
119 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
120 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
121 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
122 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
123 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
124 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
125 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
126 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
127 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
128 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
129 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
130 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
131 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
132 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
133 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
134 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
135 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
136 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
137 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
138 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
139 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
140 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
141 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
142 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
143 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
144 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
145 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
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 #</Plugin>
363
364 #<Plugin interface>
365 #       Interface "eth0"
366 #       IgnoreSelected false
367 #</Plugin>
368
369 #<Plugin ipmi>
370 #       Sensor "some_sensor"
371 #       Sensor "another_one"
372 #       IgnoreSelected false
373 #       NotifySensorAdd false
374 #       NotifySensorRemove true
375 #       NotifySensorNotPresent false
376 #</Plugin>
377
378 #<Plugin iptables>
379 #       Chain table chain
380 #</Plugin>
381
382 #<Plugin irq>
383 #       Irq 7
384 #       Irq 8
385 #       Irq 9
386 #       IgnoreSelected true
387 #</Plugin>
388
389 #<Plugin "java">
390 #       JVMArg "-verbose:jni"
391 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
392 #
393 #       LoadPlugin "org.collectd.java.Foobar"
394 #       <Plugin "org.collectd.java.Foobar">
395 #         # To be parsed by the plugin
396 #       </Plugin>
397 #</Plugin>
398
399 #<Plugin libvirt>
400 #       Connection "xen:///"
401 #       RefreshInterval 60
402 #       Domain "name"
403 #       BlockDevice "name:device"
404 #       InterfaceDevice "name:device"
405 #       IgnoreSelected false
406 #       HostnameFormat name
407 #       InterfaceFormat name
408 #</Plugin>
409
410 #<Plugin lpar>
411 #       CpuPoolStats   false
412 #       ReportBySerial false
413 #</Plugin>
414
415 #<Plugin madwifi>
416 #       Interface "wlan0"
417 #       IgnoreSelected false
418 #       Source "SysFS"
419 #       WatchSet "None"
420 #       WatchAdd "node_octets"
421 #       WatchAdd "node_rssi"
422 #       WatchAdd "is_rx_acl"
423 #       WatchAdd "is_scan_active"
424 #</Plugin>
425
426 #<Plugin mbmon>
427 #       Host "127.0.0.1"
428 #       Port "411"
429 #</Plugin>
430
431 #<Plugin memcachec>
432 #       <Page "plugin_instance">
433 #               Server "localhost"
434 #               Key "page_key"
435 #               <Match>
436 #                       Regex "(\\d+) bytes sent"
437 #                       ExcludeRegex "<lines to be excluded>"
438 #                       DSType CounterAdd
439 #                       Type "ipt_octets"
440 #                       Instance "type_instance"
441 #               </Match>
442 #       </Page>
443 #</Plugin>
444
445 #<Plugin memcached>
446 #       Host "127.0.0.1"
447 #       Port "11211"
448 #</Plugin>
449
450 #<Plugin modbus>
451 #       <Data "data_name">
452 #               RegisterBase 1234
453 #               RegisterType float
454 #               Type gauge
455 #               Instance "..."
456 #       </Data>
457 #
458 #       <Host "name">
459 #               Address "addr"
460 #               Port "1234"
461 #               Interval 60
462 #
463 #               <Slave 1>
464 #                       Instance "foobar" # optional
465 #                       Collect "data_name"
466 #               </Slave>
467 #       </Host>
468 #</Plugin>
469
470 #<Plugin mysql>
471 #       <Database db_name>
472 #               Host "database.serv.er"
473 #               User "db_user"
474 #               Password "secret"
475 #               Database "db_name"
476 #               MasterStats true
477 #       </Database>
478 #
479 #       <Database db_name2>
480 #               Host "localhost"
481 #               Socket "/var/run/mysql/mysqld.sock"
482 #               SlaveStats true
483 #               SlaveNotifications true
484 #       </Database>
485 #</Plugin>
486
487 #<Plugin netapp>
488 #       <Host "netapp1.example.com">
489 #               Protocol      "https"
490 #               Address       "10.0.0.1"
491 #               Port          443
492 #               User          "username"
493 #               Password      "aef4Aebe"
494 #               Interval      30
495 #
496 #               <WAFL>
497 #                       Interval 30
498 #                       GetNameCache   true
499 #                       GetDirCache    true
500 #                       GetBufferCache true
501 #                       GetInodeCache  true
502 #               </WAFL>
503 #
504 #               <Disks>
505 #                       Interval 30
506 #                       GetBusy true
507 #               </Disks>
508 #
509 #               <VolumePerf>
510 #                       Interval 30
511 #                       GetIO      "volume0"
512 #                       IgnoreSelectedIO      false
513 #                       GetOps     "volume0"
514 #                       IgnoreSelectedOps     false
515 #                       GetLatency "volume0"
516 #                       IgnoreSelectedLatency false
517 #               </VolumePerf>
518 #
519 #               <VolumeUsage>
520 #                       Interval 30
521 #                       GetCapacity "vol0"
522 #                       GetCapacity "vol1"
523 #                       IgnoreSelectedCapacity false
524 #                       GetSnapshot "vol1"
525 #                       GetSnapshot "vol3"
526 #                       IgnoreSelectedSnapshot false
527 #               </VolumeUsage>
528 #
529 #               <System>
530 #                       Interval 30
531 #                       GetCPULoad     true
532 #                       GetInterfaces  true
533 #                       GetDiskOps     true
534 #                       GetDiskIO      true
535 #               </System>
536 #       </Host>
537 #</Plugin>
538
539 #<Plugin netlink>
540 #       Interface "All"
541 #       VerboseInterface "All"
542 #       QDisc "eth0" "pfifo_fast-1:0"
543 #       Class "ppp0" "htb-1:10"
544 #       Filter "ppp0" "u32-1:0"
545 #       IgnoreSelected false
546 #</Plugin>
547
548 @LOAD_PLUGIN_NETWORK@<Plugin network>
549 #       # client setup:
550 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
551 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
552 #               SecurityLevel Encrypt
553 #               Username "user"
554 #               Password "secret"
555 #               Interface "eth0"
556 @LOAD_PLUGIN_NETWORK@   </Server>
557 #       TimeToLive "128"
558 #
559 #       # server setup:
560 #       Listen "ff18::efc0:4a42" "25826"
561 #       <Listen "239.192.74.66" "25826">
562 #               SecurityLevel Sign
563 #               AuthFile "/etc/collectd/passwd"
564 #               Interface "eth0"
565 #       </Listen>
566 #       MaxPacketSize 1024
567 #
568 #       # proxy setup (client and server as above):
569 #       Forward true
570 #
571 #       # statistics about the network plugin itself
572 #       ReportStats false
573 #
574 #       # "garbage collection"
575 #       CacheFlush 1800
576 @LOAD_PLUGIN_NETWORK@</Plugin>
577
578 #<Plugin nginx>
579 #       URL "http://localhost/status?auto"
580 #       User "www-user"
581 #       Password "secret"
582 #       CACert "/etc/ssl/ca.crt"
583 #</Plugin>
584
585 #<Plugin notify_desktop>
586 #       OkayTimeout 1000
587 #       WarningTimeout 5000
588 #       FailureTimeout 0
589 #</Plugin>
590
591 #<Plugin notify_email>
592 #       SMTPServer "localhost"
593 #       SMTPPort 25
594 #       SMTPUser "my-username"
595 #       SMTPPassword "my-password"
596 #       From "collectd@main0server.com"
597 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
598 #       Subject "Aaaaaa!! %s on %s!!!!!"
599 #       Recipient "email1@domain1.net"
600 #       Recipient "email2@domain2.com"
601 #</Plugin>
602
603 #<Plugin ntpd>
604 #       Host "localhost"
605 #       Port 123
606 #       ReverseLookups false
607 #</Plugin>
608
609 #<Plugin nut>
610 #       UPS "upsname@hostname:port"
611 #</Plugin>
612
613 #<Plugin olsrd>
614 #       Host "127.0.0.1"
615 #       Port "2006"
616 #       CollectLinks "Summary"
617 #       CollectRoutes "Summary"
618 #       CollectTopology "Summary"
619 #</Plugin>
620
621 #<Plugin onewire>
622 #       Device "-s localhost:4304"
623 #       Sensor "F10FCA000800"
624 #       IgnoreSelected false
625 #</Plugin>
626
627 #<Plugin openvpn>
628 #       StatusFile "/etc/openvpn/openvpn-status.log"
629 #       ImprovedNamingSchema false
630 #       CollectCompression true
631 #       CollectIndividualUsers true
632 #       CollectUserCount false
633 #</Plugin>
634
635 #<Plugin oracle>
636 #  <Query "out_of_stock">
637 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
638 #    <Result>
639 #      Type "gauge"
640 #      InstancesFrom "category"
641 #      ValuesFrom "value"
642 #    </Result>
643 #  </Query>
644 #  <Database "product_information">
645 #    ConnectID "db01"
646 #    Username "oracle"
647 #    Password "secret"
648 #    Query "out_of_stock"
649 #  </Database>
650 #</Plugin>
651
652 #<Plugin perl>
653 #       IncludeDir "/my/include/path"
654 #       BaseName "Collectd::Plugins"
655 #       EnableDebugger ""
656 #       LoadPlugin Monitorus
657 #       LoadPlugin OpenVZ
658 #
659 #       <Plugin foo>
660 #               Foo "Bar"
661 #               Qux "Baz"
662 #       </Plugin>
663 #</Plugin>
664
665 #<Plugin pinba>
666 #       Address "::0"
667 #       Port "30002"
668 #       <View "name">
669 #               Host "host name"
670 #               Server "server name"
671 #               Script "script name"
672 #       </View>
673 #</Plugin>
674
675 #<Plugin ping>
676 #       Host "host.foo.bar"
677 #       Interval 1.0
678 #       Timeout 0.9
679 #       TTL 255
680 #       SourceAddress "1.2.3.4"
681 #       Device "eth0"
682 #       MaxMissed -1
683 #</Plugin>
684
685 #<Plugin postgresql>
686 #       <Query magic>
687 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
688 #               Param hostname
689 #               <Result>
690 #                       Type gauge
691 #                       InstancePrefix "magic"
692 #                       ValuesFrom magic
693 #               </Result>
694 #       </Query>
695 #       <Query rt36_tickets>
696 #               Statement "SELECT COUNT(type) AS count, type \
697 #                                 FROM (SELECT CASE \
698 #                                              WHEN resolved = 'epoch' THEN 'open' \
699 #                                              ELSE 'resolved' END AS type \
700 #                                              FROM tickets) type \
701 #                                 GROUP BY type;"
702 #               <Result>
703 #                       Type counter
704 #                       InstancePrefix "rt36_tickets"
705 #                       InstancesFrom "type"
706 #                       ValuesFrom "count"
707 #               </Result>
708 #       </Query>
709 #       <Database foo>
710 #               Host "hostname"
711 #               Port "5432"
712 #               User "username"
713 #               Password "secret"
714 #               SSLMode "prefer"
715 #               KRBSrvName "kerberos_service_name"
716 #               Query magic
717 #       </Database>
718 #       <Database bar>
719 #               Interval 60
720 #               Service "service_name"
721 #               Query backend # predefined
722 #               Query rt36_tickets
723 #       </Database>
724 #</Plugin>
725
726 #<Plugin powerdns>
727 #  <Server "server_name">
728 #    Collect "latency"
729 #    Collect "udp-answers" "udp-queries"
730 #    Socket "/var/run/pdns.controlsocket"
731 #  </Server>
732 #  <Recursor "recursor_name">
733 #    Collect "questions"
734 #    Collect "cache-hits" "cache-misses"
735 #    Socket "/var/run/pdns_recursor.controlsocket"
736 #  </Recursor>
737 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
738 #</Plugin>
739
740 #<Plugin processes>
741 #       Process "name"
742 #</Plugin>
743
744 #<Plugin protocols>
745 #       Value "/^Tcp:/"
746 #       IgnoreSelected false
747 #</Plugin>
748
749 #<Plugin python>
750 #       ModulePath "/path/to/your/python/modules"
751 #       LogTraces true
752 #       Interactive true
753 #       Import "spam"
754 #
755 #       <Module spam>
756 #               spam "wonderful" "lovely"
757 #       </Module>
758 #</Plugin>
759
760 #<Plugin redis>
761 #   <Node example>
762 #      Host "redis.example.com"
763 #      Port "6379"
764 #      Timeout 2000
765 #   </Node>
766 #</Plugin>
767
768 #<Plugin routeros>
769 #       <Router>
770 #               Host "router.example.com"
771 #               Port "8728"
772 #               User "admin"
773 #               Password "dozaiTh4"
774 #               CollectInterface true
775 #               CollectRegistrationTable true
776 #               CollectCPULoad true
777 #               CollectMemory true
778 #               CollectDF true
779 #               CollectDisk true
780 #       </Router>
781 #</Plugin>
782
783 #<Plugin rrdcached>
784 #       DaemonAddress "unix:/tmp/rrdcached.sock"
785 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
786 #       CreateFiles true
787 #       CollectStatistics true
788 #</Plugin>
789
790 #<Plugin rrdtool>
791 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
792 #       CacheTimeout 120
793 #       CacheFlush   900
794 #</Plugin>
795
796 #<Plugin sensors>
797 #       Sensor "it8712-isa-0290/temperature-temp1"
798 #       Sensor "it8712-isa-0290/fanspeed-fan3"
799 #       Sensor "it8712-isa-0290/voltage-in8"
800 #       IgnoreSelected false
801 #</Plugin>
802
803 #<Plugin snmp>
804 #   <Data "powerplus_voltge_input">
805 #       Type "voltage"
806 #       Table false
807 #       Instance "input_line1"
808 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
809 #   </Data>
810 #   <Data "hr_users">
811 #       Type "users"
812 #       Table false
813 #       Instance ""
814 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
815 #   </Data>
816 #   <Data "std_traffic">
817 #       Type "if_octets"
818 #       Table true
819 #       Instance "IF-MIB::ifDescr"
820 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
821 #   </Data>
822 #
823 #   <Host "some.switch.mydomain.org">
824 #       Address "192.168.0.2"
825 #       Version 1
826 #       Community "community_string"
827 #       Collect "std_traffic"
828 #       Interval 120
829 #   </Host>
830 #   <Host "some.server.mydomain.org">
831 #       Address "192.168.0.42"
832 #       Version 2
833 #       Community "another_string"
834 #       Collect "std_traffic" "hr_users"
835 #   </Host>
836 #   <Host "some.ups.mydomain.org">
837 #       Address "192.168.0.3"
838 #       Version 1
839 #       Community "more_communities"
840 #       Collect "powerplus_voltge_input"
841 #       Interval 300
842 #   </Host>
843 #</Plugin>
844
845 #<Plugin "table">
846 #       <Table "/proc/slabinfo">
847 #               Instance "slabinfo"
848 #               Separator " "
849 #               <Result>
850 #                       Type gauge
851 #                       InstancePrefix "active_objs"
852 #                       InstancesFrom 0
853 #                       ValuesFrom 1
854 #               </Result>
855 #               <Result>
856 #                       Type gauge
857 #                       InstancePrefix "objperslab"
858 #                       InstancesFrom 0
859 #                       ValuesFrom 4
860 #               </Result>
861 #       </Table>
862 #</Plugin>
863
864 #<Plugin "tail">
865 #  <File "/var/log/exim4/mainlog">
866 #    Instance "exim"
867 #    <Match>
868 #      Regex "S=([1-9][0-9]*)"
869 #      DSType "CounterAdd"
870 #      Type "ipt_bytes"
871 #      Instance "total"
872 #    </Match>
873 #    <Match>
874 #      Regex "\\<R=local_user\\>"
875 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
876 #      DSType "CounterInc"
877 #      Type "counter"
878 #      Instance "local_user"
879 #    </Match>
880 #  </File>
881 #</Plugin>
882
883 #<Plugin tcpconns>
884 #       ListeningPorts false
885 #       LocalPort "25"
886 #       RemotePort "25"
887 #</Plugin>
888
889 #<Plugin teamspeak2>
890 #       Host "127.0.0.1"
891 #       Port "51234"
892 #       Server "8767"
893 #</Plugin>
894
895 #<Plugin ted>
896 #       Device "/dev/ttyUSB0"
897 #       Retries 0
898 #</Plugin>
899
900 #<Plugin thermal>
901 #       ForceUseProcfs false
902 #       Device "THRM"
903 #       IgnoreSelected false
904 #</Plugin>
905
906 #<Plugin tokyotyrant>
907 #       Host "localhost"
908 #       Port "1978"
909 #</Plugin>
910
911 #<Plugin unixsock>
912 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
913 #       SocketGroup "collectd"
914 #       SocketPerms "0660"
915 #       DeleteSocket false
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>
996
997 ##############################################################################
998 # Threshold configuration                                                    #
999 #----------------------------------------------------------------------------#
1000 # The following outlines how to configure collectd's threshold checking      #
1001 # plugin. The plugin and possible configuration options are documented in    #
1002 # the collectd-threshold(5) manual page.                                     #
1003 ##############################################################################
1004
1005 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1006 #<Plugin "threshold">
1007 #  <Type "foo">
1008 #    WarningMin    0.00
1009 #    WarningMax 1000.00
1010 #    FailureMin    0.00
1011 #    FailureMax 1200.00
1012 #    Invert false
1013 #    Instance "bar"
1014 #  </Type>
1015 #
1016 #  <Plugin "interface">
1017 #    Instance "eth0"
1018 #    <Type "if_octets">
1019 #      FailureMax 10000000
1020 #      DataSource "rx"
1021 #    </Type>
1022 #  </Plugin>
1023 #
1024 #  <Host "hostname">
1025 #    <Type "cpu">
1026 #      Instance "idle"
1027 #      FailureMin 10
1028 #    </Type>
1029 #
1030 #    <Plugin "memory">
1031 #      <Type "memory">
1032 #        Instance "cached"
1033 #        WarningMin 100000000
1034 #      </Type>
1035 #    </Plugin>
1036 #
1037 #    <Type "load">
1038 #       DataSource "midterm"
1039 #       FailureMax 4
1040 #       Hits 3
1041 #       Hysteresis 3
1042 #    </Type>
1043 #  </Host>
1044 #</Plugin>