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