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