Code

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