Code

3788455f34cf5cd400c61731c3debec43a5549d1
[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 #
7 ##############################################################################
8 # Global                                                                     #
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon.                                            #
11 ##############################################################################
13 #Hostname    "localhost"
14 #FQDNLookup   true
15 #BaseDir     "@localstatedir@/lib/@PACKAGE_NAME@"
16 #PIDFile     "@localstatedir@/run/@PACKAGE_NAME@.pid"
17 #PluginDir   "@libdir@/@PACKAGE_NAME@"
18 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
20 #----------------------------------------------------------------------------#
21 # When enabled, plugins are loaded automatically with the default options    #
22 # when an appropriate <Plugin ...> block is encountered.                     #
23 # Disabled by default.                                                       #
24 #----------------------------------------------------------------------------#
25 #AutoLoadPlugin false
27 #----------------------------------------------------------------------------#
28 # Interval at which to query values. This may be overwritten on a per-plugin #
29 # base by using the 'Interval' option of the LoadPlugin block:               #
30 #   <LoadPlugin foo>                                                         #
31 #       Interval 60                                                          #
32 #   </LoadPlugin>                                                            #
33 #----------------------------------------------------------------------------#
34 #Interval     10
36 #Timeout      2
37 #ReadThreads  5
38 #WriteThreads 5
40 ##############################################################################
41 # Logging                                                                    #
42 #----------------------------------------------------------------------------#
43 # Plugins which provide logging functions should be loaded first, so log     #
44 # messages generated when loading or configuring other plugins can be        #
45 # accessed.                                                                  #
46 ##############################################################################
48 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
49 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
51 #<Plugin logfile>
52 #       LogLevel @DEFAULT_LOG_LEVEL@
53 #       File STDOUT
54 #       Timestamp true
55 #       PrintSeverity false
56 #</Plugin>
58 #<Plugin syslog>
59 #       LogLevel @DEFAULT_LOG_LEVEL@
60 #</Plugin>
62 ##############################################################################
63 # LoadPlugin section                                                         #
64 #----------------------------------------------------------------------------#
65 # Lines beginning with a single `#' belong to plugins which have been built  #
66 # but are disabled by default.                                               #
67 #                                                                            #
68 # Lines begnning with `##' belong to plugins which have not been built due   #
69 # to missing dependencies or because they have been deactivated explicitly.  #
70 ##############################################################################
72 #@BUILD_PLUGIN_AGGREGATION_TRUE@LoadPlugin aggregation
73 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
74 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
75 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
76 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
77 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
78 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
79 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
80 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
81 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
82 #@BUILD_PLUGIN_CGROUPS_TRUE@LoadPlugin cgroups
83 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
84 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
85 @LOAD_PLUGIN_CSV@LoadPlugin csv
86 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
87 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
88 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
89 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
90 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
91 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
92 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
93 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
94 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
95 #@BUILD_PLUGIN_ETHSTAT_TRUE@LoadPlugin ethstat
96 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
97 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
98 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
99 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
100 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
101 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
102 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
103 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
104 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
105 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
106 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
107 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
108 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
109 #@BUILD_PLUGIN_LPAR_TRUE@LoadPlugin lpar
110 #@BUILD_PLUGIN_LVM_TRUE@LoadPlugin lvm
111 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
112 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
113 #@BUILD_PLUGIN_MD_TRUE@LoadPlugin md
114 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
115 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
116 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
117 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
118 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
119 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
120 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
121 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
122 @LOAD_PLUGIN_NETWORK@LoadPlugin network
123 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
124 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
125 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
126 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
127 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
128 #@BUILD_PLUGIN_NUMA_TRUE@LoadPlugin numa
129 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
130 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
131 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
132 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
133 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
134 #@BUILD_PLUGIN_PERL_TRUE@<LoadPlugin perl>
135 #@BUILD_PLUGIN_PERL_TRUE@  Globals true
136 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
137 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
138 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
139 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
140 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
141 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
142 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
143 #@BUILD_PLUGIN_PYTHON_TRUE@<LoadPlugin python>
144 #@BUILD_PLUGIN_PYTHON_TRUE@  Globals true
145 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
146 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
147 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
148 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
149 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
150 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
151 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
152 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
153 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
154 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
155 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
156 #@BUILD_PLUGIN_TAIL_CSV_TRUE@LoadPlugin tail_csv
157 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
158 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
159 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
160 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
161 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
162 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
163 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
164 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
165 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
166 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
167 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
168 #@BUILD_PLUGIN_MIC_TRUE@LoadPlugin mic
169 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
170 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
171 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
172 #@BUILD_PLUGIN_WRITE_GRAPHITE_TRUE@LoadPlugin write_graphite
173 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
174 #@BUILD_PLUGIN_WRITE_MONGODB_TRUE@LoadPlugin write_mongodb
175 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
176 #@BUILD_PLUGIN_WRITE_RIEMANN_TRUE@LoadPlugin write_riemann
177 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
178 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
180 ##############################################################################
181 # Plugin configuration                                                       #
182 #----------------------------------------------------------------------------#
183 # In this section configuration stubs for each plugin are provided. A desc-  #
184 # ription of those options is available in the collectd.conf(5) manual page. #
185 ##############################################################################
187 #<Plugin "aggregation">
188 #  <Aggregation>
189 #    #Host "unspecified"
190 #    Plugin "cpu"
191 #    #PluginInstance "unspecified"
192 #    Type "cpu"
193 #    #TypeInstance "unspecified"
195 #    GroupBy "Host"
196 #    GroupBy "TypeInstance"
198 #    CalculateNum false
199 #    CalculateSum false
200 #    CalculateAverage true
201 #    CalculateMinimum false
202 #    CalculateMaximum false
203 #    CalculateStddev false
204 #  </Aggregation>
205 #</Plugin>
207 #<Plugin "amqp">
208 #  <Publish "name">
209 #    Host "localhost"
210 #    Port "5672"
211 #    VHost "/"
212 #    User "guest"
213 #    Password "guest"
214 #    Exchange "amq.fanout"
215 #    RoutingKey "collectd"
216 #    Persistent false
217 #    StoreRates false
218 #  </Publish>
219 #</Plugin>
221 #<Plugin apache>
222 #  <Instance "local">
223 #    URL "http://localhost/status?auto"
224 #    User "www-user"
225 #    Password "secret"
226 #    CACert "/etc/ssl/ca.crt"
227 #  </Instance>
228 #</Plugin>
230 #<Plugin apcups>
231 #       Host "localhost"
232 #       Port "3551"
233 #       ReportSeconds true
234 #</Plugin>
236 #<Plugin ascent>
237 #       URL "http://localhost/ascent/status/"
238 #       User "www-user"
239 #       Password "secret"
240 #       CACert "/etc/ssl/ca.crt"
241 #</Plugin>
243 #<Plugin "bind">
244 #  URL "http://localhost:8053/"
245 #  ParseTime       false
246 #  OpCodes         true
247 #  QTypes          true
249 #  ServerStats     true
250 #  ZoneMaintStats  true
251 #  ResolverStats   false
252 #  MemoryStats     true
254 #  <View "_default">
255 #    QTypes        true
256 #    ResolverStats true
257 #    CacheRRSets   true
259 #    Zone "127.in-addr.arpa/IN"
260 #  </View>
261 #</Plugin>
263 #<Plugin csv>
264 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/csv"
265 #       StoreRates false
266 #</Plugin>
268 #<Plugin curl>
269 #  <Page "stock_quotes">
270 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
271 #    User "foo"
272 #    Password "bar"
273 #    MeasureResponseTime false
274 #    <Match>
275 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
276 #      DSType "GaugeAverage"
277 #      Type "stock_value"
278 #      Instance "AMD"
279 #    </Match>
280 #  </Page>
281 #</Plugin>
283 #<Plugin curl_json>
284 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
285 #  <URL "http://localhost:5984/_stats">
286 #    Instance "httpd"
287 #    <Key "httpd/requests/count">
288 #      Type "http_requests"
289 #    </Key>
291 #    <Key "httpd_request_methods/*/count">
292 #      Type "http_request_methods"
293 #    </Key>
295 #    <Key "httpd_status_codes/*/count">
296 #      Type "http_response_codes"
297 #    </Key>
298 #  </URL>
299 ## Database status metrics:
300 #  <URL "http://localhost:5984/_all_dbs">
301 #    Instance "dbs"
302 #    <Key "*/doc_count">
303 #      Type "gauge"
304 #    </Key>
305 #    <Key "*/doc_del_count">
306 #      Type "counter"
307 #    </Key>
308 #    <Key "*/disk_size">
309 #      Type "bytes"
310 #    </Key>
311 #  </URL>
312 #</Plugin>
314 #<Plugin "curl_xml">
315 #  <URL "http://localhost/stats.xml">
316 #    Host "my_host"
317 #    Instance "some_instance"
318 #    User "collectd"
319 #    Password "thaiNg0I"
320 #    VerifyPeer true
321 #    VerifyHost true
322 #    CACert "/path/to/ca.crt"
324 #    <XPath "table[@id=\"magic_level\"]/tr">
325 #      Type "magic_level"
326 #      #InstancePrefix "prefix-"
327 #      InstanceFrom "td[1]"
328 #      ValuesFrom "td[2]/span[@class=\"level\"]"
329 #    </XPath>
330 #  </URL>
331 #</Plugin>
333 #<Plugin dbi>
334 #       <Query "num_of_customers">
335 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
336 #               <Result>
337 #                       Type "gauge"
338 #                       InstancesFrom "c_key"
339 #                       ValuesFrom "c_value"
340 #               </Result>
341 #       </Query>
342 #       <Database "customers_db">
343 #               Driver "mysql"
344 #               DriverOption "host" "localhost"
345 #               DriverOption "username" "collectd"
346 #               DriverOption "password" "AeXohy0O"
347 #               DriverOption "dbname" "custdb0"
348 #               #SelectDB "custdb0"
349 #               Query "num_of_customers"
350 #               #Query "..."
351 #               #Host "..."
352 #       </Database>
353 #</Plugin>
355 #<Plugin df>
356 #       Device "/dev/hda1"
357 #       Device "192.168.0.2:/mnt/nfs"
358 #       MountPoint "/home"
359 #       FSType "ext3"
360 #       IgnoreSelected false
361 #       ReportByDevice false
362 #       ReportReserved false
363 #       ReportInodes false
364 #</Plugin>
366 #<Plugin disk>
367 #       Disk "/^[hs]d[a-f][0-9]?$/"
368 #       IgnoreSelected false
369 #</Plugin>
371 #<Plugin dns>
372 #       Interface "eth0"
373 #       IgnoreSource "192.168.0.1"
374 #       SelectNumericQueryTypes true
375 #</Plugin>
377 #<Plugin email>
378 #       SocketFile "@localstatedir@/run/@PACKAGE_NAME@-email"
379 #       SocketGroup "collectd"
380 #       SocketPerms "0770"
381 #       MaxConns 5
382 #</Plugin>
384 #<Plugin ethstat>
385 #       Interface "eth0"
386 #       Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
387 #       Map "multicast" "if_multicast"
388 #       MappedOnly false
389 #</Plugin>
391 #<Plugin exec>
392 #       Exec "user:group" "/path/to/exec"
393 #       NotificationExec "user:group" "/path/to/exec"
394 #</Plugin>
396 #<Plugin filecount>
397 #       <Directory "/path/to/dir">
398 #               Instance "foodir"
399 #               Name "*.conf"
400 #               MTime "-5m"
401 #               Size "+10k"
402 #               Recursive true
403 #               IncludeHidden false
404 #       </Directory>
405 #</Plugin>
407 #<Plugin "gmond">
408 #  MCReceiveFrom "239.2.11.71" "8649"
409 #  <Metric "swap_total">
410 #    Type "swap"
411 #    TypeInstance "total"
412 #    DataSource "value"
413 #  </Metric>
414 #  <Metric "swap_free">
415 #    Type "swap"
416 #    TypeInstance "free"
417 #    DataSource "value"
418 #  </Metric>
419 #</Plugin>
421 #<Plugin hddtemp>
422 #  Host "127.0.0.1"
423 #  Port "7634"
424 #</Plugin>
426 #<Plugin interface>
427 #       Interface "eth0"
428 #       IgnoreSelected false
429 #</Plugin>
431 #<Plugin ipmi>
432 #       Sensor "some_sensor"
433 #       Sensor "another_one"
434 #       IgnoreSelected false
435 #       NotifySensorAdd false
436 #       NotifySensorRemove true
437 #       NotifySensorNotPresent false
438 #</Plugin>
440 #<Plugin iptables>
441 #       Chain table chain
442 #</Plugin>
444 #<Plugin irq>
445 #       Irq 7
446 #       Irq 8
447 #       Irq 9
448 #       IgnoreSelected true
449 #</Plugin>
451 #<Plugin "java">
452 #       JVMArg "-verbose:jni"
453 #       JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
455 #       LoadPlugin "org.collectd.java.Foobar"
456 #       <Plugin "org.collectd.java.Foobar">
457 #         # To be parsed by the plugin
458 #       </Plugin>
459 #</Plugin>
461 #<Plugin libvirt>
462 #       Connection "xen:///"
463 #       RefreshInterval 60
464 #       Domain "name"
465 #       BlockDevice "name:device"
466 #       InterfaceDevice "name:device"
467 #       IgnoreSelected false
468 #       HostnameFormat name
469 #       InterfaceFormat name
470 #</Plugin>
472 #<Plugin lpar>
473 #       CpuPoolStats   false
474 #       ReportBySerial false
475 #</Plugin>
477 #<Plugin madwifi>
478 #       Interface "wlan0"
479 #       IgnoreSelected false
480 #       Source "SysFS"
481 #       WatchSet "None"
482 #       WatchAdd "node_octets"
483 #       WatchAdd "node_rssi"
484 #       WatchAdd "is_rx_acl"
485 #       WatchAdd "is_scan_active"
486 #</Plugin>
488 #<Plugin mbmon>
489 #       Host "127.0.0.1"
490 #       Port "411"
491 #</Plugin>
493 #<Plugin md>
494 #       Device "/dev/md0"
495 #       IgnoreSelected false
496 #</Plugin>
498 #<Plugin memcachec>
499 #       <Page "plugin_instance">
500 #               Server "localhost"
501 #               Key "page_key"
502 #               <Match>
503 #                       Regex "(\\d+) bytes sent"
504 #                       ExcludeRegex "<lines to be excluded>"
505 #                       DSType CounterAdd
506 #                       Type "ipt_octets"
507 #                       Instance "type_instance"
508 #               </Match>
509 #       </Page>
510 #</Plugin>
512 #<Plugin memcached>
513 #       <Instance "local">
514 #               Host "127.0.0.1"
515 #               Port "11211"
516 #       </Instance>
517 #</Plugin>
519 #<Plugin modbus>
520 #       <Data "data_name">
521 #               RegisterBase 1234
522 #               RegisterType float
523 #               Type gauge
524 #               Instance "..."
525 #       </Data>
527 #       <Host "name">
528 #               Address "addr"
529 #               Port "1234"
530 #               Interval 60
532 #               <Slave 1>
533 #                       Instance "foobar" # optional
534 #                       Collect "data_name"
535 #               </Slave>
536 #       </Host>
537 #</Plugin>
539 #<Plugin mysql>
540 #       <Database db_name>
541 #               Host "database.serv.er"
542 #               User "db_user"
543 #               Password "secret"
544 #               Database "db_name"
545 #               MasterStats true
546 #       </Database>
548 #       <Database db_name2>
549 #               Host "localhost"
550 #               Socket "/var/run/mysql/mysqld.sock"
551 #               SlaveStats true
552 #               SlaveNotifications true
553 #       </Database>
554 #</Plugin>
556 #<Plugin netapp>
557 #       <Host "netapp1.example.com">
558 #               Protocol      "https"
559 #               Address       "10.0.0.1"
560 #               Port          443
561 #               User          "username"
562 #               Password      "aef4Aebe"
563 #               Interval      30
565 #               <WAFL>
566 #                       Interval 30
567 #                       GetNameCache   true
568 #                       GetDirCache    true
569 #                       GetBufferCache true
570 #                       GetInodeCache  true
571 #               </WAFL>
573 #               <Disks>
574 #                       Interval 30
575 #                       GetBusy true
576 #               </Disks>
578 #               <VolumePerf>
579 #                       Interval 30
580 #                       GetIO      "volume0"
581 #                       IgnoreSelectedIO      false
582 #                       GetOps     "volume0"
583 #                       IgnoreSelectedOps     false
584 #                       GetLatency "volume0"
585 #                       IgnoreSelectedLatency false
586 #               </VolumePerf>
588 #               <VolumeUsage>
589 #                       Interval 30
590 #                       GetCapacity "vol0"
591 #                       GetCapacity "vol1"
592 #                       IgnoreSelectedCapacity false
593 #                       GetSnapshot "vol1"
594 #                       GetSnapshot "vol3"
595 #                       IgnoreSelectedSnapshot false
596 #               </VolumeUsage>
598 #               <System>
599 #                       Interval 30
600 #                       GetCPULoad     true
601 #                       GetInterfaces  true
602 #                       GetDiskOps     true
603 #                       GetDiskIO      true
604 #               </System>
605 #       </Host>
606 #</Plugin>
608 #<Plugin netlink>
609 #       Interface "All"
610 #       VerboseInterface "All"
611 #       QDisc "eth0" "pfifo_fast-1:0"
612 #       Class "ppp0" "htb-1:10"
613 #       Filter "ppp0" "u32-1:0"
614 #       IgnoreSelected false
615 #</Plugin>
617 @LOAD_PLUGIN_NETWORK@<Plugin network>
618 #       # client setup:
619 @LOAD_PLUGIN_NETWORK@   Server "ff18::efc0:4a42" "25826"
620 @LOAD_PLUGIN_NETWORK@   <Server "239.192.74.66" "25826">
621 #               SecurityLevel Encrypt
622 #               Username "user"
623 #               Password "secret"
624 #               Interface "eth0"
625 @LOAD_PLUGIN_NETWORK@   </Server>
626 #       TimeToLive "128"
628 #       # server setup:
629 #       Listen "ff18::efc0:4a42" "25826"
630 #       <Listen "239.192.74.66" "25826">
631 #               SecurityLevel Sign
632 #               AuthFile "/etc/collectd/passwd"
633 #               Interface "eth0"
634 #       </Listen>
635 #       MaxPacketSize 1024
637 #       # proxy setup (client and server as above):
638 #       Forward true
640 #       # statistics about the network plugin itself
641 #       ReportStats false
643 #       # "garbage collection"
644 #       CacheFlush 1800
645 @LOAD_PLUGIN_NETWORK@</Plugin>
647 #<Plugin nginx>
648 #       URL "http://localhost/status?auto"
649 #       User "www-user"
650 #       Password "secret"
651 #       CACert "/etc/ssl/ca.crt"
652 #</Plugin>
654 #<Plugin notify_desktop>
655 #       OkayTimeout 1000
656 #       WarningTimeout 5000
657 #       FailureTimeout 0
658 #</Plugin>
660 #<Plugin notify_email>
661 #       SMTPServer "localhost"
662 #       SMTPPort 25
663 #       SMTPUser "my-username"
664 #       SMTPPassword "my-password"
665 #       From "collectd@main0server.com"
666 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
667 #       Subject "Aaaaaa!! %s on %s!!!!!"
668 #       Recipient "email1@domain1.net"
669 #       Recipient "email2@domain2.com"
670 #</Plugin>
672 #<Plugin ntpd>
673 #       Host "localhost"
674 #       Port 123
675 #       ReverseLookups false
676 #       IncludeUnitID true
677 #</Plugin>
679 #<Plugin nut>
680 #       UPS "upsname@hostname:port"
681 #</Plugin>
683 #<Plugin olsrd>
684 #       Host "127.0.0.1"
685 #       Port "2006"
686 #       CollectLinks "Summary"
687 #       CollectRoutes "Summary"
688 #       CollectTopology "Summary"
689 #</Plugin>
691 #<Plugin onewire>
692 #       Device "-s localhost:4304"
693 #       Sensor "F10FCA000800"
694 #       IgnoreSelected false
695 #</Plugin>
697 #<Plugin openvpn>
698 #       StatusFile "/etc/openvpn/openvpn-status.log"
699 #       ImprovedNamingSchema false
700 #       CollectCompression true
701 #       CollectIndividualUsers true
702 #       CollectUserCount false
703 #</Plugin>
705 #<Plugin oracle>
706 #  <Query "out_of_stock">
707 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
708 #    <Result>
709 #      Type "gauge"
710 #      InstancesFrom "category"
711 #      ValuesFrom "value"
712 #    </Result>
713 #  </Query>
714 #  <Database "product_information">
715 #    ConnectID "db01"
716 #    Username "oracle"
717 #    Password "secret"
718 #    Query "out_of_stock"
719 #  </Database>
720 #</Plugin>
722 #<Plugin perl>
723 #       IncludeDir "/my/include/path"
724 #       BaseName "Collectd::Plugins"
725 #       EnableDebugger ""
726 #       LoadPlugin Monitorus
727 #       LoadPlugin OpenVZ
729 #       <Plugin foo>
730 #               Foo "Bar"
731 #               Qux "Baz"
732 #       </Plugin>
733 #</Plugin>
735 #<Plugin pinba>
736 #       Address "::0"
737 #       Port "30002"
738 #       <View "name">
739 #               Host "host name"
740 #               Server "server name"
741 #               Script "script name"
742 #       </View>
743 #</Plugin>
745 #<Plugin ping>
746 #       Host "host.foo.bar"
747 #       Interval 1.0
748 #       Timeout 0.9
749 #       TTL 255
750 #       SourceAddress "1.2.3.4"
751 #       Device "eth0"
752 #       MaxMissed -1
753 #</Plugin>
755 #<Plugin postgresql>
756 #       <Query magic>
757 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
758 #               Param hostname
759 #               <Result>
760 #                       Type gauge
761 #                       InstancePrefix "magic"
762 #                       ValuesFrom magic
763 #               </Result>
764 #       </Query>
765 #       <Query rt36_tickets>
766 #               Statement "SELECT COUNT(type) AS count, type \
767 #                                 FROM (SELECT CASE \
768 #                                              WHEN resolved = 'epoch' THEN 'open' \
769 #                                              ELSE 'resolved' END AS type \
770 #                                              FROM tickets) type \
771 #                                 GROUP BY type;"
772 #               <Result>
773 #                       Type counter
774 #                       InstancePrefix "rt36_tickets"
775 #                       InstancesFrom "type"
776 #                       ValuesFrom "count"
777 #               </Result>
778 #       </Query>
779 #       <Writer sqlstore>
780 #               # See contrib/postgresql/collectd_insert.sql for details
781 #               Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
782 #               StoreRates true
783 #       </Writer>
784 #       <Database foo>
785 #               Host "hostname"
786 #               Port "5432"
787 #               User "username"
788 #               Password "secret"
789 #               SSLMode "prefer"
790 #               KRBSrvName "kerberos_service_name"
791 #               Query magic
792 #       </Database>
793 #       <Database bar>
794 #               Interval 60
795 #               Service "service_name"
796 #               Query backend # predefined
797 #               Query rt36_tickets
798 #       </Database>
799 #       <Database qux>
800 #               Service "collectd_store"
801 #               Writer sqlstore
802 #               # see collectd.conf(5) for details
803 #               CommitInterval 30
804 #       </Database>
805 #</Plugin>
807 #<Plugin powerdns>
808 #  <Server "server_name">
809 #    Collect "latency"
810 #    Collect "udp-answers" "udp-queries"
811 #    Socket "/var/run/pdns.controlsocket"
812 #  </Server>
813 #  <Recursor "recursor_name">
814 #    Collect "questions"
815 #    Collect "cache-hits" "cache-misses"
816 #    Socket "/var/run/pdns_recursor.controlsocket"
817 #  </Recursor>
818 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
819 #</Plugin>
821 #<Plugin processes>
822 #       Process "name"
823 #</Plugin>
825 #<Plugin protocols>
826 #       Value "/^Tcp:/"
827 #       IgnoreSelected false
828 #</Plugin>
830 #<Plugin python>
831 #       ModulePath "/path/to/your/python/modules"
832 #       LogTraces true
833 #       Interactive true
834 #       Import "spam"
836 #       <Module spam>
837 #               spam "wonderful" "lovely"
838 #       </Module>
839 #</Plugin>
841 #<Plugin redis>
842 #   <Node example>
843 #      Host "redis.example.com"
844 #      Port "6379"
845 #      Timeout 2000
846 #   </Node>
847 #</Plugin>
849 #<Plugin routeros>
850 #       <Router>
851 #               Host "router.example.com"
852 #               Port "8728"
853 #               User "admin"
854 #               Password "dozaiTh4"
855 #               CollectInterface true
856 #               CollectRegistrationTable true
857 #               CollectCPULoad true
858 #               CollectMemory true
859 #               CollectDF true
860 #               CollectDisk true
861 #       </Router>
862 #</Plugin>
864 #<Plugin rrdcached>
865 #       DaemonAddress "unix:/tmp/rrdcached.sock"
866 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
867 #       CreateFiles true
868 #       CreateFilesAsync false
869 #       CollectStatistics true
870 #</Plugin>
872 #<Plugin rrdtool>
873 #       DataDir "@localstatedir@/lib/@PACKAGE_NAME@/rrd"
874 #       CreateFilesAsync false
875 #       CacheTimeout 120
876 #       CacheFlush   900
877 #       WritesPerSecond 50
878 #</Plugin>
880 #<Plugin sensors>
881 #       SensorConfigFile "/etc/sensors.conf"
882 #       Sensor "it8712-isa-0290/temperature-temp1"
883 #       Sensor "it8712-isa-0290/fanspeed-fan3"
884 #       Sensor "it8712-isa-0290/voltage-in8"
885 #       IgnoreSelected false
886 #</Plugin>
888 #<Plugin snmp>
889 #   <Data "powerplus_voltge_input">
890 #       Type "voltage"
891 #       Table false
892 #       Instance "input_line1"
893 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
894 #   </Data>
895 #   <Data "hr_users">
896 #       Type "users"
897 #       Table false
898 #       Instance ""
899 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
900 #   </Data>
901 #   <Data "std_traffic">
902 #       Type "if_octets"
903 #       Table true
904 #       Instance "IF-MIB::ifDescr"
905 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
906 #   </Data>
908 #   <Host "some.switch.mydomain.org">
909 #       Address "192.168.0.2"
910 #       Version 1
911 #       Community "community_string"
912 #       Collect "std_traffic"
913 #       Interval 120
914 #   </Host>
915 #   <Host "some.server.mydomain.org">
916 #       Address "192.168.0.42"
917 #       Version 2
918 #       Community "another_string"
919 #       Collect "std_traffic" "hr_users"
920 #   </Host>
921 #   <Host "some.ups.mydomain.org">
922 #       Address "192.168.0.3"
923 #       Version 1
924 #       Community "more_communities"
925 #       Collect "powerplus_voltge_input"
926 #       Interval 300
927 #   </Host>
928 #</Plugin>
930 #<Plugin "swap">
931 #       ReportByDevice false
932 #       ReportBytes true
933 #</Plugin>
935 #<Plugin "table">
936 #       <Table "/proc/slabinfo">
937 #               Instance "slabinfo"
938 #               Separator " "
939 #               <Result>
940 #                       Type gauge
941 #                       InstancePrefix "active_objs"
942 #                       InstancesFrom 0
943 #                       ValuesFrom 1
944 #               </Result>
945 #               <Result>
946 #                       Type gauge
947 #                       InstancePrefix "objperslab"
948 #                       InstancesFrom 0
949 #                       ValuesFrom 4
950 #               </Result>
951 #       </Table>
952 #</Plugin>
954 #<Plugin "tail">
955 #  <File "/var/log/exim4/mainlog">
956 #    Instance "exim"
957 #    <Match>
958 #      Regex "S=([1-9][0-9]*)"
959 #      DSType "CounterAdd"
960 #      Type "ipt_bytes"
961 #      Instance "total"
962 #    </Match>
963 #    <Match>
964 #      Regex "\\<R=local_user\\>"
965 #      ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
966 #      DSType "CounterInc"
967 #      Type "counter"
968 #      Instance "local_user"
969 #    </Match>
970 #  </File>
971 #</Plugin>
973 #<Plugin "tail_csv">
974 #   <Metric "dropped">
975 #       Type "percent"
976 #       Instance "dropped"
977 #       ValueFrom 1
978 #   </Metric>
979 #   <Metric "mbps">
980 #       Type "bytes"
981 #       Instance "wire-realtime"
982 #       ValueFrom 2
983 #   </Metric>
984 #   <Metric "alerts">
985 #       Type "alerts_per_second"
986 #       ValueFrom 3
987 #   </Metric>
988 #   <Metric "kpps">
989 #       Type "kpackets_wire_per_sec.realtime"
990 #       ValueFrom 4
991 #   </Metric>
992 #   <File "/var/log/snort/snort.stats">
993 #       Instance "snort-eth0"
994 #       Interval 600
995 #       Collect "dropped" "mbps" "alerts" "kpps"
996 #       TimeFrom 0
997 #   </File>
998 #</Plugin>
1000 #<Plugin tcpconns>
1001 #       ListeningPorts false
1002 #       LocalPort "25"
1003 #       RemotePort "25"
1004 #</Plugin>
1006 #<Plugin teamspeak2>
1007 #       Host "127.0.0.1"
1008 #       Port "51234"
1009 #       Server "8767"
1010 #</Plugin>
1012 #<Plugin ted>
1013 #       Device "/dev/ttyUSB0"
1014 #       Retries 0
1015 #</Plugin>
1017 #<Plugin thermal>
1018 #       ForceUseProcfs false
1019 #       Device "THRM"
1020 #       IgnoreSelected false
1021 #</Plugin>
1023 #<Plugin tokyotyrant>
1024 #       Host "localhost"
1025 #       Port "1978"
1026 #</Plugin>
1028 #<Plugin unixsock>
1029 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
1030 #       SocketGroup "collectd"
1031 #       SocketPerms "0660"
1032 #       DeleteSocket false
1033 #</Plugin>
1035 #<Plugin uuid>
1036 #       UUIDFile "/etc/uuid"
1037 #</Plugin>
1039 #<Plugin mic>
1040 #   ShowCPU true
1041 #   ShowCPUCores true
1042 #   ShowMemory true
1043 #   ShowTemperatures true
1044 ##  Temperature Sensors can be ignored/shown by repeated #Temperature lines, and
1045 ##  then inverted with a IgnoreSelectedTemperature.
1046 ##  Known Temperature sensors: die, devmem, fin, fout, vccp, vddg, vddq
1047 #   Temperature vddg
1048 #   IgnoreSelectedTemperature true
1049 #   ShowPower true
1050 ##  Power Sensors can be ignored/shown by repeated #Power lines, and
1051 ##  then inverted with a IgnoreSelectedTemperature.
1052 ##  Known Temperature sensors: total0, total1, inst, imax, pci3, c2x3, c2x4, vccp, vddg, vddq
1053 #   Power total1
1054 #   IgnoreSelectedPower true
1055 #</Plugin>
1057 #<Plugin varnish>
1058 #   This tag support an argument if you want to
1059 #   monitor the local instance just use </Instance>
1060 #   If you prefer defining another instance you can do
1061 #   so by using <Instance "myinstance">
1062 #   <Instance>
1063 #      CollectCache true
1064 #      CollectBackend true
1065 #      CollectBan false           # Varnish 3 only
1066 #      CollectConnections true
1067 #      CollectDirectorDNS false   # Varnish 3 only
1068 #      CollectSHM true
1069 #      CollectESI false
1070 #      CollectFetch false
1071 #      CollectHCB false
1072 #      CollectObjects false
1073 #      CollectPurge false         # Varnish 2 only
1074 #      CollectSession false
1075 #      CollectSMA false           # Varnish 2 only
1076 #      CollectSMS false
1077 #      CollectSM false            # Varnish 2 only
1078 #      CollectStruct false
1079 #      CollectTotals false
1080 #      CollectUptime false
1081 #      CollectVCL false
1082 #      CollectWorkers false
1083 #   </Instance>
1084 #</Plugin>
1086 #<Plugin vmem>
1087 #       Verbose false
1088 #</Plugin>
1090 #<Plugin write_graphite>
1091 #  <Node "example">
1092 #    Host "localhost"
1093 #    Port "2003"
1094 #    Protocol "udp"
1095 #    Prefix "collectd"
1096 #    Postfix "collectd"
1097 #    StoreRates true
1098 #    AlwaysAppendDS false
1099 #    EscapeCharacter "_"
1100 #  </Node>
1101 #</Plugin>
1103 #<Plugin write_http>
1104 #       <URL "http://example.com/collectd-post">
1105 #               User "collectd"
1106 #               Password "weCh3ik0"
1107 #               VerifyPeer true
1108 #               VerifyHost true
1109 #               CACert "/etc/ssl/ca.crt"
1110 #               Format "Command"
1111 #               StoreRates false
1112 #       </URL>
1113 #</Plugin>
1115 #<Plugin write_mongodb>
1116 #       <Node "example">
1117 #               Host "localhost"
1118 #               Port "27017"
1119 #               Timeout 1000
1120 #               StoreRates false
1121 #               Database "auth_db"
1122 #               User "auth_user"
1123 #               Password "auth_passwd"
1124 #       </Node>
1125 #</Plugin>
1127 #<Plugin write_redis>
1128 #       <Node "example">
1129 #               Host "localhost"
1130 #               Port "6379"
1131 #               Timeout 1000
1132 #       </Node>
1133 #</Plugin>
1135 #<Plugin write_riemann>
1136 #       <Node "example">
1137 #               Host "localhost"
1138 #               Port 5555
1139 #               Protocol UDP
1140 #               StoreRates true
1141 #               AlwaysAppendDS false
1142 #       </Node>
1143 #       Tag "foobar"
1144 #</Plugin>
1146 ##############################################################################
1147 # Filter configuration                                                       #
1148 #----------------------------------------------------------------------------#
1149 # The following configures collectd's filtering mechanism. Before changing   #
1150 # anything in this section, please read the `FILTER CONFIGURATION' section   #
1151 # in the collectd.conf(5) manual page.                                       #
1152 ##############################################################################
1154 # Load required matches:
1155 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
1156 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
1157 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
1158 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
1159 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
1161 # Load required targets:
1162 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
1163 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
1164 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
1165 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
1166 #@BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE@LoadPlugin target_v5upgrade
1168 #----------------------------------------------------------------------------#
1169 # The following block demonstrates the default behavior if no filtering is   #
1170 # configured at all: All values will be sent to all available write plugins. #
1171 #----------------------------------------------------------------------------#
1173 #<Chain "PostCache">
1174 #  Target "write"
1175 #</Chain>
1177 ##############################################################################
1178 # Threshold configuration                                                    #
1179 #----------------------------------------------------------------------------#
1180 # The following outlines how to configure collectd's threshold checking      #
1181 # plugin. The plugin and possible configuration options are documented in    #
1182 # the collectd-threshold(5) manual page.                                     #
1183 ##############################################################################
1185 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1186 #<Plugin "threshold">
1187 #  <Type "foo">
1188 #    WarningMin    0.00
1189 #    WarningMax 1000.00
1190 #    FailureMin    0.00
1191 #    FailureMax 1200.00
1192 #    Invert false
1193 #    Instance "bar"
1194 #  </Type>
1196 #  <Plugin "interface">
1197 #    Instance "eth0"
1198 #    <Type "if_octets">
1199 #      FailureMax 10000000
1200 #      DataSource "rx"
1201 #    </Type>
1202 #  </Plugin>
1204 #  <Host "hostname">
1205 #    <Type "cpu">
1206 #      Instance "idle"
1207 #      FailureMin 10
1208 #    </Type>
1210 #    <Plugin "memory">
1211 #      <Type "memory">
1212 #        Instance "cached"
1213 #        WarningMin 100000000
1214 #      </Type>
1215 #    </Plugin>
1217 #    <Type "load">
1218 #       DataSource "midterm"
1219 #       FailureMax 4
1220 #       Hits 3
1221 #       Hysteresis 3
1222 #    </Type>
1223 #  </Host>
1224 #</Plugin>