collectd.conf: Added a sample ipmi config block.
[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 #Hostname    "localhost"
8 FQDNLookup   true
9 #BaseDir     "@prefix@/var/lib/@PACKAGE_NAME@"
10 #PIDFile     "@prefix@/var/run/@PACKAGE_NAME@.pid"
11 #PluginDir   "@prefix@/lib/@PACKAGE_NAME@"
12 #TypesDB     "@prefix@/share/@PACKAGE_NAME@/types.db"
13 #Interval     10
14 #ReadThreads  5
15
16 @BUILD_PLUGIN_LOGFILE_TRUE@LoadPlugin logfile
17 @BUILD_PLUGIN_SYSLOG_TRUE@LoadPlugin syslog
18
19 #<Plugin logfile>
20 #       LogLevel info
21 #       File STDOUT
22 #       Timestamp true
23 #</Plugin>
24
25 #<Plugin syslog>
26 #       LogLevel info
27 #</Plugin>
28
29 @BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
30 @BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
31 @BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
32 @BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
33 @BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
34 @BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
35 @BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
36 @BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
37 @BUILD_PLUGIN_CSV_TRUE@LoadPlugin csv
38 @BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
39 @BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
40 @BUILD_PLUGIN_DF_TRUE@LoadPlugin df
41 @BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
42 @BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
43 @BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
44 @BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
45 @BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
46 @BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
47 @BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
48 @BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
49 @BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
50 @BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
51 @BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
52 @BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
53 @BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
54 @BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
55 @BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
56 @BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
57 @BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
58 @BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
59 @BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
60 @BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
61 @BUILD_PLUGIN_NETWORK_TRUE@LoadPlugin network
62 @BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
63 @BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
64 @BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
65 @BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
66 @BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
67 @BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
68 @BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
69 @BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
70 @BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
71 @BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
72 @BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
73 @BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
74 @BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
75 @BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
76 @BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
77 @BUILD_PLUGIN_RRDTOOL_TRUE@LoadPlugin rrdtool
78 @BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
79 @BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
80 @BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
81 @BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
82 @BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
83 @BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
84 @BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
85 @BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
86 @BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
87 @BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
88 @BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
89 #LoadPlugin uuid
90 @BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
91 @BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
92 @BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
93 @BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
94
95 #<Plugin apache>
96 #       URL "http://localhost/status?auto"
97 #       User "www-user"
98 #       Password "secret"
99 #       CACert "/etc/ssl/ca.crt"
100 #</Plugin>
101
102 #<Plugin apcups>
103 #       Host "localhost"
104 #       Port "3551"
105 #</Plugin>
106
107 #<Plugin ascent>
108 #       URL "http://localhost/ascent/status/"
109 #       User "www-user"
110 #       Password "secret"
111 #       CACert "/etc/ssl/ca.crt"
112 #</Plugin>
113
114 #<Plugin "bind">
115 #  URL "http://localhost:8053/"
116 #  OpCodes         true
117 #  QTypes          true
118 #
119 #  ServerStats     true
120 #  ZoneMaintStats  true
121 #  ResolverStats   false
122 #  MemoryStats     true
123 #
124 #  <View "_default">
125 #    QTypes        true
126 #    ResolverStats true
127 #    CacheRRSets   true
128 #
129 #    Zone "127.in-addr.arpa/IN"
130 #  </View>
131 #</Plugin>
132
133 #<Plugin csv>
134 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
135 #       StoreRates false
136 #</Plugin>
137
138 #<Plugin curl>
139 #  <Page "stock_quotes">
140 #    URL "http://finance.google.com/finance?q=NYSE%3AAMD"
141 #    User "foo"
142 #    Password "bar"
143 #    <Match>
144 #      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
145 #      DSType "GaugeAverage"
146 #      Type "stock_value"
147 #      Instance "AMD"
148 #    </Match>
149 #  </Page>
150 #</Plugin>
151
152 #<Plugin dbi>
153 #       <Query "num_of_customers">
154 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
155 #               <Result>
156 #                       Type "gauge"
157 #                       InstancesFrom "c_key"
158 #                       ValuesFrom "c_value"
159 #               </Result>
160 #       </Query>
161 #       <Database "customers_db">
162 #               Driver "mysql"
163 #               DriverOption "host" "localhost"
164 #               DriverOption "username" "collectd"
165 #               DriverOption "password" "AeXohy0O"
166 #               DriverOption "dbname" "custdb0"
167 #               #SelectDB "custdb0"
168 #               Query "num_of_customers"
169 #               #Query "..."
170 #       </Database>
171 #</Plugin>
172
173 #<Plugin df>
174 #       Device "/dev/hda1"
175 #       Device "192.168.0.2:/mnt/nfs"
176 #       MountPoint "/home"
177 #       FSType "ext3"
178 #       IgnoreSelected false
179 #</Plugin>
180
181 #<Plugin disk>
182 #       Disk "/^[hs]d[a-f][0-9]?$/"
183 #       IgnoreSelected false
184 #</Plugin>
185
186 #<Plugin dns>
187 #       Interface "eth0"
188 #       IgnoreSource "192.168.0.1"
189 #</Plugin>
190
191 #<Plugin email>
192 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
193 #       SocketGroup "collectd"
194 #       SocketPerms "0770"
195 #       MaxConns 5
196 #</Plugin>
197
198 #<Plugin exec>
199 #       Exec "user:group" "/path/to/exec"
200 #       NotificationExec "user:group" "/path/to/exec"
201 #</Plugin>
202
203 #<Plugin filecount>
204 #       <Directory "/path/to/dir">
205 #               Instance "foodir"
206 #               Name "*.conf"
207 #               MTime "-5m"
208 #               Size "+10k"
209 #               Recursive true
210 #       </Directory>
211 #</Plugin>
212
213 @BUILD_PLUGIN_HDDTEMP_TRUE@<Plugin hddtemp>
214 #       Host "127.0.0.1"
215 #       Port "7634"
216 @BUILD_PLUGIN_HDDTEMP_TRUE@     TranslateDevicename false
217 @BUILD_PLUGIN_HDDTEMP_TRUE@</Plugin>
218
219 #<Plugin interface>
220 #       Interface "eth0"
221 #       IgnoreSelected false
222 #</Plugin>
223
224 #<Plugin ipmi>
225 #       Sensor "some_sensor"
226 #       Sensor "another_one"
227 #       IgnoreSelected false
228 #       NotifySensorAdd false
229 #       NotifySensorRemove true
230 #       NotifySensorNotPresent false
231 #</Plugin>
232
233 #<Plugin iptables>
234 #       Chain table chain
235 #</Plugin>
236
237 #<Plugin irq>
238 #       Irq 7
239 #       Irq 8
240 #       Irq 9
241 #       IgnoreSelected true
242 #</Plugin>
243
244 #<Plugin libvirt>
245 #       Connection "xen:///"
246 #       RefreshInterval 60
247 #       Domain "name"
248 #       BlockDevice "name:device"
249 #       InterfaceDevice "name:device"
250 #       IgnoreSelected false
251 #       HostnameFormat name
252 #</Plugin>
253
254 #<Plugin mbmon>
255 #       Host "127.0.0.1"
256 #       Port "411"
257 #</Plugin>
258
259 #<Plugin memcached>
260 #       Host "127.0.0.1"
261 #       Port "11211"
262 #</Plugin>
263
264 #<Plugin mysql>
265 #       Host "database.serv.er"
266 #       User "db_user"
267 #       Password "secret"
268 #       Database "db_name"
269 #</Plugin>
270
271 #<Plugin netlink>
272 #       Interface "All"
273 #       VerboseInterface "All"
274 #       QDisc "eth0" "pfifo_fast-1:0"
275 #       Class "ppp0" "htb-1:10"
276 #       Filter "ppp0" "u32-1:0"
277 #       IgnoreSelected false
278 #</Plugin>
279
280 #<Plugin network>
281 #       Server "ff18::efc0:4a42" "25826"
282 #       Server "239.192.74.66" "25826"
283 #       Listen "ff18::efc0:4a42" "25826"
284 #       Listen "239.192.74.66" "25826"
285 #       TimeToLive "128"
286 #       Forward false
287 #       CacheFlush 1800
288 #</Plugin>
289
290 #<Plugin nginx>
291 #       URL "http://localhost/status?auto"
292 #       User "www-user"
293 #       Password "secret"
294 #       CACert "/etc/ssl/ca.crt"
295 #</Plugin>
296
297 #<Plugin notify_desktop>
298 #       OkayTimeout 1000
299 #       WarningTimeout 5000
300 #       FailureTimeout 0
301 #</Plugin>
302
303 #<Plugin notify_email>
304 #       SMTPServer "localhost"
305 #       SMTPPort 25
306 #       SMTPUser "my-username"
307 #       SMTPPassword "my-password"
308 #       From "collectd@main0server.com"
309 #       # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
310 #       Subject "Aaaaaa!! %s on %s!!!!!"
311 #       Recipient "email1@domain1.net"
312 #       Recipient "email2@domain2.com"
313 #</Plugin>
314
315 #<Plugin ntpd>
316 #       Host "localhost"
317 #       Port 123
318 #       ReverseLookups false
319 #</Plugin>
320
321 #<Plugin nut>
322 #       UPS "upsname@hostname:port"
323 #</Plugin>
324
325 #<Plugin onewire>
326 #       Device "-s localhost:4304"
327 #       Sensor "F10FCA000800"
328 #       IgnoreSelected false
329 #</Plugin>
330
331 #<Plugin openvpn>
332 #       StatusFile "/etc/openvpn/openvpn-status.log"
333 #</Plugin>
334
335 #<Plugin oracle>
336 #  <Query "out_of_stock">
337 #    Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
338 #    <Result>
339 #      Type "gauge"
340 #      InstancesFrom "category"
341 #      ValuesFrom "value"
342 #    </Result>
343 #  </Query>
344 #  <Database "product_information">
345 #    ConnectID "db01"
346 #    Username "oracle"
347 #    Password "secret"
348 #    Query "out_of_stock"
349 #  </Database>
350 #</Plugin>
351
352 #<Plugin perl>
353 #       IncludeDir "/my/include/path"
354 #       BaseName "Collectd::Plugin"
355 #       EnableDebugger ""
356 #       LoadPlugin foo
357 #
358 #       <Plugin foo>
359 #               Foo "Bar"
360 #               Qux "Baz"
361 #       </Plugin>
362 #</Plugin>
363
364 #<Plugin ping>
365 #       Host "host.foo.bar"
366 #       TTL 255
367 #</Plugin>
368
369 #<Plugin postgresql>
370 #       <Query magic>
371 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
372 #               Param hostname
373 #               <Result>
374 #                       Type gauge
375 #                       InstancePrefix "magic"
376 #                       ValuesFrom magic
377 #               </Result>
378 #       </Query>
379 #       <Query rt36_tickets>
380 #               Statement "SELECT COUNT(type) AS count, type \
381 #                                 FROM (SELECT CASE \
382 #                                              WHEN resolved = 'epoch' THEN 'open' \
383 #                                              ELSE 'resolved' END AS type \
384 #                                              FROM tickets) type \
385 #                                 GROUP BY type;"
386 #               <Result>
387 #                       Type counter
388 #                       InstancePrefix "rt36_tickets"
389 #                       InstancesFrom "type"
390 #                       ValuesFrom "count"
391 #               </Result>
392 #       </Query>
393 #       <Database foo>
394 #               Host "hostname"
395 #               Port "5432"
396 #               User "username"
397 #               Password "secret"
398 #               SSLMode "prefer"
399 #               KRBSrvName "kerberos_service_name"
400 #               Query magic
401 #       </Database>
402 #       <Database bar>
403 #               Service "service_name"
404 #               Query backend # predefined
405 #               Query rt36_tickets
406 #       </Database>
407 #</Plugin>
408
409 #<Plugin powerdns>
410 #  <Server "server_name">
411 #    Collect "latency"
412 #    Collect "udp-answers" "udp-queries"
413 #    Socket "/var/run/pdns.controlsocket"
414 #  </Server>
415 #  <Recursor "recursor_name">
416 #    Collect "questions"
417 #    Collect "cache-hits" "cache-misses"
418 #    Socket "/var/run/pdns_recursor.controlsocket"
419 #  </Recursor>
420 #  LocalSocket "/opt/collectd/var/run/collectd-powerdns"
421 #</Plugin>
422
423 #<Plugin processes>
424 #       Process "name"
425 #</Plugin>
426
427 #<Plugin rrdcached>
428 #       DaemonAddress "unix:/tmp/rrdcached.sock"
429 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
430 #       CreateFiles true
431 #       CollectStatistics true
432 #</Plugin>
433
434 #<Plugin rrdtool>
435 #       DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
436 #       CacheTimeout 120
437 #       CacheFlush   900
438 #</Plugin>
439
440 #<Plugin sensors>
441 #       Sensor "it8712-isa-0290/temperature-temp1"
442 #       Sensor "it8712-isa-0290/fanspeed-fan3"
443 #       Sensor "it8712-isa-0290/voltage-in8"
444 #       IgnoreSelected false
445 #</Plugin>
446
447 #<Plugin snmp>
448 #   <Data "powerplus_voltge_input">
449 #       Type "voltage"
450 #       Table false
451 #       Instance "input_line1"
452 #       Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
453 #   </Data>
454 #   <Data "hr_users">
455 #       Type "users"
456 #       Table false
457 #       Instance ""
458 #       Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
459 #   </Data>
460 #   <Data "std_traffic">
461 #       Type "if_octets"
462 #       Table true
463 #       Instance "IF-MIB::ifDescr"
464 #       Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
465 #   </Data>
466 #   
467 #   <Host "some.switch.mydomain.org">
468 #       Address "192.168.0.2"
469 #       Version 1
470 #       Community "community_string"
471 #       Collect "std_traffic"
472 #       Inverval 120
473 #   </Host>
474 #   <Host "some.server.mydomain.org">
475 #       Address "192.168.0.42"
476 #       Version 2
477 #       Community "another_string"
478 #       Collect "std_traffic" "hr_users"
479 #   </Host>
480 #   <Host "some.ups.mydomain.org">
481 #       Address "192.168.0.3"
482 #       Version 1
483 #       Community "more_communities"
484 #       Collect "powerplus_voltge_input"
485 #       Interval 300
486 #   </Host>
487 #</Plugin>
488
489 #<Plugin "tail">
490 #  <File "/var/log/exim4/mainlog">
491 #    Instance "exim"
492 #    <Match>
493 #      Regex "S=([1-9][0-9]*)"
494 #      DSType "CounterAdd"
495 #      Type "ipt_bytes"
496 #      Instance "total"
497 #    </Match>
498 #    <Match>
499 #      Regex "\\<R=local_user\\>"
500 #      DSType "CounterInc"
501 #      Type "counter"
502 #      Instance "local_user"
503 #    </Match>
504 #  </File>
505 #</Plugin>
506
507 #<Plugin tcpconns>
508 #       ListeningPorts false
509 #       LocalPort "25"
510 #       RemotePort "25"
511 #</Plugin>
512
513 #<Plugin teamspeak2>
514 #       Host "127.0.0.1"
515 #       Port "51234"
516 #       Server "8767"
517 #</Plugin>
518
519 #<Plugin thermal>
520 #       ForceUseProcfs false
521 #       Device "THRM"
522 #       IgnoreSelected false
523 #</Plugin>
524
525 #<Plugin unixsock>
526 #       SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
527 #       SocketGroup "collectd"
528 #       SocketPerms "0660"
529 #</Plugin>
530
531 #<Plugin uuid>
532 #       UUIDFile "/etc/uuid"
533 #</Plugin>
534
535 #<Plugin vmem>
536 #       Verbose false
537 #</Plugin>
538
539 # * * * * * * * * * * * * *
540 # * FILTER CONFIGURATION  *
541 # * * * * * * * * * * * * *
542
543 # The following configures collectd's filtering mechanism. Before changing
544 # anything in this section, please read the `FILTER CONFIGURATION' section in
545 # the collectd.conf(5) manual page.
546
547 # Load required matches:
548 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
549 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
550 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
551
552 # Load required targets:
553 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
554 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
555 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
556  
557 # The following block demonstrates the default behavior if no filtering is
558 # configured at all: All values will be sent to all available write plugins.
559
560 #<Chain "Main">
561 #  Target "write"
562 #</Chain>