Code

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