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