Code

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