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