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