Code

5597d49f1efe802a18948ce10e6b1304d006755f
[pkg-collectd.git] / debian / collectd.conf
1 # Config file for collectd(1).
2 #
3 # Some plugins need additional configuration and are disabled by default.
4 # Please read collectd.conf(5) for details.
5 #
6 # You should also read /usr/share/doc/collectd/README.Debian.plugins before
7 # enabling any more plugins.
9 #Hostname "localhost"
10 FQDNLookup true
11 #BaseDir "/var/lib/collectd"
12 #PluginDir "/usr/lib/collectd"
13 #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
14 #Interval 10
15 #ReadThreads 5
17 #LoadPlugin logfile
18 LoadPlugin syslog
20 #<Plugin logfile>
21 #       LogLevel "info"
22 #       File STDOUT
23 #       Timestamp true
24 #</Plugin>
26 <Plugin syslog>
27         LogLevel info
28 </Plugin>
30 #LoadPlugin apache
31 #LoadPlugin apcups
32 #LoadPlugin ascent
33 LoadPlugin battery
34 #LoadPlugin bind
35 #LoadPlugin conntrack
36 LoadPlugin cpu
37 #LoadPlugin cpufreq
38 #LoadPlugin csv
39 #LoadPlugin curl
40 #LoadPlugin dbi
41 LoadPlugin df
42 LoadPlugin disk
43 #LoadPlugin dns
44 #LoadPlugin email
45 LoadPlugin entropy
46 #LoadPlugin exec
47 #LoadPlugin filecount
48 #LoadPlugin fscache
49 #LoadPlugin hddtemp
50 LoadPlugin interface
51 #LoadPlugin ipmi
52 #LoadPlugin iptables
53 #LoadPlugin ipvs
54 LoadPlugin irq
55 #LoadPlugin java
56 #LoadPlugin libvirt
57 LoadPlugin load
58 #LoadPlugin mbmon
59 #LoadPlugin memcachec
60 #LoadPlugin memcached
61 LoadPlugin memory
62 #LoadPlugin multimeter
63 #LoadPlugin mysql
64 #LoadPlugin netlink
65 #LoadPlugin network
66 #LoadPlugin nfs
67 #LoadPlugin nginx
68 #LoadPlugin notify_desktop
69 #LoadPlugin notify_email
70 #LoadPlugin ntpd
71 #LoadPlugin nut
72 #LoadPlugin openvpn
73 #LoadPlugin perl
74 #LoadPlugin ping
75 #LoadPlugin postgresql
76 #LoadPlugin powerdns
77 LoadPlugin processes
78 #LoadPlugin protocols
79 LoadPlugin rrdtool
80 #LoadPlugin sensors
81 #LoadPlugin serial
82 #LoadPlugin snmp
83 LoadPlugin swap
84 #LoadPlugin table
85 #LoadPlugin tail
86 #LoadPlugin tcpconns
87 #LoadPlugin teamspeak2
88 #LoadPlugin ted
89 #LoadPlugin thermal
90 #LoadPlugin unixsock
91 #LoadPlugin uptime
92 LoadPlugin users
93 #LoadPlugin uuid
94 #LoadPlugin vmem
95 #LoadPlugin vserver
96 #LoadPlugin wireless
98 #<Plugin apache>
99 #       URL "http://localhost/status?auto"
100 #       User "www-user"
101 #       Password "secret"
102 #       VerifyPeer false
103 #       VerifyHost false
104 #       CACert "/etc/ssl/ca.crt"
105 #</Plugin>
107 #<Plugin apcups>
108 #       Host "localhost"
109 #       Port "3551"
110 #</Plugin>
112 #<Plugin ascent>
113 #       URL "http://localhost/ascent/status/"
114 #       User "www-user"
115 #       Password "secret"
116 #       VerifyPeer false
117 #       VerifyHost false
118 #       CACert "/etc/ssl/ca.crt"
119 #</Plugin>
121 #<Plugin "bind">
122 #       URL "http://localhost:8053/"
124 #       OpCodes true
125 #       QTypes true
126 #       ServerStats true
127 #       ZoneMaintStats true
128 #       ResolverStats false
129 #       MemoryStats true
131 #       <View "_default">
132 #               QTypes true
133 #               ResolverStats true
134 #               CacheRRSets true
136 #               Zone "127.in-addr.arpa/IN"
137 #       </View>
138 #</Plugin>
140 #<Plugin csv>
141 #       DataDir "/var/lib/collectd/csv"
142 #       StoreRates false
143 #</Plugin>
145 #<Plugin curl>
146 #       <Page "stock_quotes">
147 #               URL "http://finance.google.com/finance?q=NYSE%3AAMD"
148 #               User "foo"
149 #               Password "bar"
150 #               VerifyPeer false
151 #               VerifyHost false
152 #               CACert "/etc/ssl/ca.crt"
153 #               <Match>
154 #                       Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
155 #                       DSType "GaugeAverage"
156 #                       Type "stock_value"
157 #                       Instance "AMD"
158 #               </Match>
159 #       </Page>
160 #</Plugin>
162 #<Plugin dbi>
163 #       <Query "num_of_customers">
164 #               Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
165 #                               FROM customers_tbl"
166 #               MinVersion 40102
167 #               MaxVersion 50042
168 #               <Result>
169 #                       Type "gauge"
170 #                       InstancePrefix "customer"
171 #                       InstancesFrom "c_key"
172 #                       ValuesFrom "c_value"
173 #               </Result>
174 #       </Query>
176 #       <Database "customers_db">
177 #               Driver "mysql"
178 #               DriverOption "host" "localhost"
179 #               DriverOption "username" "collectd"
180 #               DriverOption "password" "secret"
181 #               DriverOption "dbname" "custdb0"
182 #               SelectDB "custdb0"
183 #               Query "num_of_customers"
184 #               Query "..."
185 #       </Database>
186 #</Plugin>
188 #<Plugin df>
189 #       Device "/dev/sda1"
190 #       Device "192.168.0.2:/mnt/nfs"
191 #       MountPoint "/home"
192 #       FSType "ext3"
193 #       IgnoreSelected false
194 #</Plugin>
196 #<Plugin disk>
197 #       Disk "hda"
198 #       Disk "/sda[23]/"
199 #       IgnoreSelected false
200 #</Plugin>
202 #<Plugin dns>
203 #       Interface "eth0"
204 #       IgnoreSource "192.168.0.1"
205 #</Plugin>
207 #<Plugin email>
208 #       SocketFile "/var/run/collectd-email"
209 #       SocketGroup "collectd"
210 #       SocketPerms "0770"
211 #       MaxConns 5
212 #</Plugin>
214 #<Plugin exec>
215 #       Exec user "/path/to/exec"
216 #       Exec "user:group" "/path/to/exec"
217 #       NotificationExec user "/path/to/exec"
218 #</Plugin>
220 #<Plugin filecount>
221 #       <Directory "/path/to/dir">
222 #               Instance "foodir"
223 #               Name "*.conf"
224 #               MTime "-5m"
225 #               Size "+10k"
226 #               Recursive true
227 #       </Directory>
228 #</Plugin>
230 #<Plugin hddtemp>
231 #       Host "127.0.0.1"
232 #       Port 7634
233 #       TranslateDevicename false
234 #</Plugin>
236 #<Plugin interface>
237 #       Interface "eth0"
238 #       IgnoreSelected false
239 #</Plugin>
241 #<Plugin ipmi>
242 #       Sensor "some_sensor"
243 #       Sensor "another_one"
244 #       IgnoreSelected false
245 #       NotifySensorAdd false
246 #       NotifySensorRemove true
247 #       NotifySensorNotPresent false
248 #</Plugin>
250 #<Plugin iptables>
251 #       Chain "table" "chain"
252 #</Plugin>
254 #<Plugin irq>
255 #       Irq 7
256 #       Irq 8
257 #       Irq 9
258 #       IgnoreSelected true
259 #</Plugin>
261 #<Plugin java>
262 #       JVMArg "-verbose:jni"
264 #       LoadPlugin "org.collectd.java.Foobar"
265 #       <Plugin "org.collectd.java.Foobar">
266 #               Foo "Bar"
267 #       </Plugin>
268 #</Plugin>
270 #<Plugin libvirt>
271 #       Connection "xen:///"
272 #       RefreshInterval 60
273 #       Domain "name"
274 #       BlockDevice "name:device"
275 #       InterfaceDevice "name:device"
276 #       IgnoreSelected false
277 #       HostnameFormat name
278 #</Plugin>
280 #<Plugin mbmon>
281 #       Host "127.0.0.1"
282 #       Port 411
283 #</Plugin>
285 #<Plugin memcachec>
286 #       <Page "plugin_instance">
287 #               Server "localhost"
288 #               Key "page_key"
289 #               <Match>
290 #                       Regex "(\\d+) bytes sent"
291 #                       DSType CounterAdd
292 #                       Type "ipt_octets"
293 #                       Instance "type_instance"
294 #               </Match>
295 #       </Page>
296 #</Plugin>
298 #<Plugin memcached>
299 #       Host "127.0.0.1"
300 #       Port "11211"
301 #</Plugin>
303 #<Plugin mysql>
304 #       <Database db_name>
305 #               Host "database.serv.er"
306 #               Port "3306"
307 #               User "db_user"
308 #               Password "secret"
309 #               Database "db_name"
310 #               MasterStats true
311 #       </Database>
313 #       <Database db_name2>
314 #               Host "localhost"
315 #               Socket "/var/run/mysql/mysqld.sock"
316 #               SlaveStats true
317 #               SlaveNotifications true
318 #       </Database>
319 #</Plugin>
321 #<Plugin netlink>
322 #       Interface "All"
323 #       VerboseInterface "All"
324 #       QDisc "eth0" "pfifo_fast-1:0"
325 #       Class "ppp0" "htb-1:10"
326 #       Filter "ppp0" "u32-1:0"
327 #       IgnoreSelected false
328 #</Plugin>
330 #<Plugin network>
331 #       Server "ff18::efc0:4a42" "25826"
332 #       Server "239.192.74.66" "25826"
333 #       Listen "ff18::efc0:4a42" "25826"
334 #       Listen "239.192.74.66" "25826"
335 #       TimeToLive "128"
336 #       Forward false
337 #       CacheFlush 1800
338 #</Plugin>
340 #<Plugin nginx>
341 #       URL "http://localhost/status?auto"
342 #       User "www-user"
343 #       Password "secret"
344 #       VerifyPeer false
345 #       VerifyHost false
346 #       CACert "/etc/ssl/ca.crt"
347 #</Plugin>
349 #<Plugin notify_desktop>
350 #       OkayTimeout 1000
351 #       WarningTimeout 5000
352 #       FailureTimeout 0
353 #</Plugin>
355 #<Plugin notify_email>
356 #       SMTPServer "localhost"
357 #       SMTPPort 25
358 #       SMTPUser "my-username"
359 #       SMTPPassword "my-password"
360 #       From "collectd@main0server.com"
361 #       # <WARNING/FAILURE/OK> on <hostname>.
362 #       # Beware! Do not use not more than two placeholders (%)!
363 #       Subject "[collectd] %s on %s!"
364 #       Recipient "email1@domain1.net"
365 #       Recipient "email2@domain2.com"
366 #</Plugin>
368 #<Plugin ntpd>
369 #       Host "localhost"
370 #       Port 123
371 #       ReverseLookups false
372 #</Plugin>
374 #<Plugin nut>
375 #       UPS "upsname@hostname:port"
376 #</Plugin>
378 #<Plugin openvpn>
379 #       StatusFile "/etc/openvpn/openvpn-status.log"
380 #</Plugin>
382 #<Plugin perl>
383 #       IncludeDir "/my/include/path"
384 #       BaseName "Collectd::Plugin"
385 #       EnableDebugger ""
386 #       LoadPlugin "foo"
387 #       LoadPlugin "bar"
389 #       <Plugin foo>
390 #               Foo "Bar"
391 #               Qux "Baz"
392 #       </Plugin>
393 #</Plugin>
395 #<Plugin ping>
396 #       Host "host.foo.bar"
397 #       Host "host.baz.qux"
398 #       Interval 1.0
399 #       Timeout 0.9
400 #       TTL 255
401 #</Plugin>
403 #<Plugin postgresql>
404 #       <Query magic>
405 #               Statement "SELECT magic FROM wizard WHERE host = $1;"
406 #               Param hostname
408 #               <Result>
409 #                       Type gauge
410 #                       InstancePrefix "magic"
411 #                       ValuesFrom "magic"
412 #               </Result>
413 #       </Query>
415 #       <Query rt36_tickets>
416 #               Statement "SELECT COUNT(type) AS count, type \
417 #                                 FROM (SELECT CASE \
418 #                                              WHEN resolved = 'epoch' THEN 'open' \
419 #                                              ELSE 'resolved' END AS type \
420 #                                              FROM tickets) type \
421 #                                 GROUP BY type;"
423 #               <Result>
424 #                       Type counter
425 #                       InstancePrefix "rt36_tickets"
426 #                       InstancesFrom "type"
427 #                       ValuesFrom "count"
428 #               </Result>
429 #       </Query>
431 #       <Database foo>
432 #               Host "hostname"
433 #               Port 5432
434 #               User "username"
435 #               Password "secret"
437 #               SSLMode "prefer"
438 #               KRBSrvName "kerberos_service_name"
440 #               Query magic
441 #       </Database>
443 #       <Database bar>
444 #               Service "service_name"
446 #               Query backend # predefined
447 #               Query rt36_tickets
448 #       </Database>
449 #</Plugin>
451 #<Plugin powerdns>
452 #       <Server "server_name">
453 #               Collect "latency"
454 #               Collect "udp-answers" "udp-queries"
455 #               Socket "/var/run/pdns.controlsocket"
456 #       </Server>
457 #       <Recursor "recursor_name">
458 #               Collect "questions"
459 #               Collect "cache-hits" "cache-misses"
460 #               Socket "/var/run/pdns_recursor.controlsocket"
461 #       </Recursor>
462 #       LocalSocket "/opt/collectd/var/run/collectd-powerdns"
463 #</Plugin>
465 #<Plugin processes>
466 #       Process "name"
467 #       ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
468 #</Plugin>
470 #<Plugin protocols>
471 #       Value "/^Tcp:/"
472 #       IgnoreSelected false
473 #</Plugin>
475 <Plugin rrdtool>
476         DataDir "/var/lib/collectd/rrd"
477 #       CacheTimeout 120
478 #       CacheFlush 900
479 #       WritesPerSecond 30
481 # The following settings are rather advanced
482 # and should usually not be touched:
483 #       StepSize 10
484 #       HeartBeat 20
485 #       RRARows 1200
486 #       RRATimespan 158112000
487 #       XFF 0.1
488 </Plugin>
490 #<Plugin sensors>
491 #       Sensor "it8712-isa-0290/temperature-temp1"
492 #       Sensor "it8712-isa-0290/fanspeed-fan3"
493 #       Sensor "it8712-isa-0290/voltage-in8"
494 #       IgnoreSelected false
495 #</Plugin>
497 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
498 # comprehensive sample configuration.
499 #<Plugin snmp>
500 #       <Data "powerplus_voltge_input">
501 #               Type "voltage"
502 #               Table false
503 #               Instance "input_line1"
504 #               Scale 0.1
505 #               Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
506 #       </Data>
507 #       <Data "hr_users">
508 #               Type "users"
509 #               Table false
510 #               Instance ""
511 #               Shift -1
512 #               Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
513 #       </Data>
514 #       <Data "std_traffic">
515 #               Type "if_octets"
516 #               Table true
517 #               InstancePrefix "traffic"
518 #               Instance "IF-MIB::ifDescr"
519 #               Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
520 #       </Data>
522 #       <Host "some.switch.mydomain.org">
523 #               Address "192.168.0.2"
524 #               Version 1
525 #               Community "community_string"
526 #               Collect "std_traffic"
527 #               Inverval 120
528 #       </Host>
529 #       <Host "some.server.mydomain.org">
530 #               Address "192.168.0.42"
531 #               Version 2
532 #               Community "another_string"
533 #               Collect "std_traffic" "hr_users"
534 #       </Host>
535 #       <Host "some.ups.mydomain.org">
536 #               Address "192.168.0.3"
537 #               Version 1
538 #               Community "more_communities"
539 #               Collect "powerplus_voltge_input"
540 #               Interval 300
541 #       </Host>
542 #</Plugin>
544 #<Plugin table>
545 #       <Table "/proc/slabinfo">
546 #               Instance "slabinfo"
547 #               Separator " "
548 #               <Result>
549 #                       Type gauge
550 #                       InstancePrefix "active_objs"
551 #                       InstancesFrom 0
552 #                       ValuesFrom 1
553 #               </Result>
554 #               <Result>
555 #                       Type gauge
556 #                       InstancePrefix "objperslab"
557 #                       InstancesFrom 0
558 #                       ValuesFrom 4
559 #               </Result>
560 #       </Table>
561 #</Plugin>
563 #<Plugin "tail">
564 #       <File "/var/log/exim4/mainlog">
565 #               Instance "exim"
566 #               <Match>
567 #                       Regex "S=([1-9][0-9]*)"
568 #                       DSType "CounterAdd"
569 #                       Type "ipt_bytes"
570 #                       Instance "total"
571 #               </Match>
572 #               <Match>
573 #                       Regex "\\<R=local_user\\>"
574 #                       DSType "CounterInc"
575 #                       Type "counter"
576 #                       Instance "local_user"
577 #               </Match>
578 #       </File>
579 #</Plugin>
581 #<Plugin tcpconns>
582 #       ListeningPorts false
583 #       LocalPort "25"
584 #       RemotePort "25"
585 #</Plugin>
587 #<Plugin teamspeak2>
588 #       Host "127.0.0.1"
589 #       Port "51234"
590 #       Server "8767"
591 #</Plugin>
593 #<Plugin ted>
594 #       Device "/dev/ttyUSB0"
595 #       Retries 0
596 #</Plugin>
598 #<Plugin thermal>
599 #       ForceUseProcfs false
600 #       Device "THRM"
601 #       IgnoreSelected false
602 #</Plugin>
604 #<Plugin unixsock>
605 #       SocketFile "/var/run/collectd-unixsock"
606 #       SocketGroup "collectd"
607 #       SocketPerms "0660"
608 #</Plugin>
610 #<Plugin uuid>
611 #       UUIDFile "/etc/uuid"
612 #</Plugin>
614 #<Plugin vmem>
615 #       Verbose false
616 #</Plugin>
618 Include "/etc/collectd/filters.conf"
619 Include "/etc/collectd/thresholds.conf"