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