Code

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