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/lib/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 cpu
36 #LoadPlugin cpufreq
37 #LoadPlugin csv
38 #LoadPlugin curl
39 #LoadPlugin dbi
40 LoadPlugin df
41 LoadPlugin disk
42 #LoadPlugin dns
43 #LoadPlugin email
44 LoadPlugin entropy
45 #LoadPlugin exec
46 #LoadPlugin filecount
47 #LoadPlugin hddtemp
48 LoadPlugin interface
49 #LoadPlugin ipmi
50 #LoadPlugin iptables
51 #LoadPlugin ipvs
52 LoadPlugin irq
53 #LoadPlugin libvirt
54 LoadPlugin load
55 #LoadPlugin mbmon
56 #LoadPlugin memcached
57 LoadPlugin memory
58 #LoadPlugin multimeter
59 #LoadPlugin mysql
60 #LoadPlugin netlink
61 #LoadPlugin network
62 #LoadPlugin nfs
63 #LoadPlugin nginx
64 #LoadPlugin notify_desktop
65 #LoadPlugin notify_email
66 #LoadPlugin ntpd
67 #LoadPlugin nut
68 #LoadPlugin openvpn
69 #LoadPlugin perl
70 #LoadPlugin ping
71 #LoadPlugin postgresql
72 #LoadPlugin powerdns
73 LoadPlugin processes
74 LoadPlugin rrdtool
75 #LoadPlugin sensors
76 #LoadPlugin serial
77 #LoadPlugin snmp
78 LoadPlugin swap
79 #LoadPlugin tail
80 #LoadPlugin tcpconns
81 #LoadPlugin teamspeak2
82 #LoadPlugin thermal
83 #LoadPlugin unixsock
84 LoadPlugin users
85 #LoadPlugin uuid
86 #LoadPlugin vmem
87 #LoadPlugin vserver
88 #LoadPlugin wireless
90 #<Plugin apache>
91 # URL "http://localhost/status?auto"
92 # User "www-user"
93 # Password "secret"
94 # VerifyPeer false
95 # VerifyHost false
96 # CACert "/etc/ssl/ca.crt"
97 #</Plugin>
99 #<Plugin apcups>
100 # Host "localhost"
101 # Port "3551"
102 #</Plugin>
104 #<Plugin ascent>
105 # URL "http://localhost/ascent/status/"
106 # User "www-user"
107 # Password "secret"
108 # CACert "/etc/ssl/ca.crt"
109 #</Plugin>
111 #<Plugin "bind">
112 # URL "http://localhost:8053/"
113 # OpCodes true
114 # QTypes true
115 #
116 # ServerStats true
117 # ZoneMaintStats true
118 # ResolverStats false
119 # MemoryStats true
120 #
121 # <View "_default">
122 # QTypes true
123 # ResolverStats true
124 # CacheRRSets true
125 #
126 # Zone "127.in-addr.arpa/IN"
127 # </View>
128 #</Plugin>
130 #<Plugin csv>
131 # DataDir "/var/lib/collectd/csv"
132 # StoreRates false
133 #</Plugin>
135 #<Plugin curl>
136 # <Page "stock_quotes">
137 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
138 # User "foo"
139 # Password "bar"
140 # <Match>
141 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
142 # DSType "GaugeAverage"
143 # Type "stock_value"
144 # Instance "AMD"
145 # </Match>
146 # </Page>
147 #</Plugin>
149 #<Plugin dbi>
150 # <Query "num_of_customers">
151 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
152 # FROM customers_tbl"
153 # <Result>
154 # Type "gauge"
155 # InstancesFrom "c_key"
156 # ValuesFrom "c_value"
157 # </Result>
158 # </Query>
159 #
160 # <Database "customers_db">
161 # Driver "mysql"
162 # DriverOption "host" "localhost"
163 # DriverOption "username" "collectd"
164 # DriverOption "password" "secret"
165 # DriverOption "dbname" "custdb0"
166 # #SelectDB "custdb0"
167 # Query "num_of_customers"
168 # #Query "..."
169 # </Database>
170 #</Plugin>
172 #<Plugin df>
173 # Device "/dev/sda1"
174 # Device "192.168.0.2:/mnt/nfs"
175 # MountPoint "/home"
176 # FSType "ext3"
177 # IgnoreSelected false
178 #</Plugin>
180 #<Plugin disk>
181 # Disk "hda"
182 # Disk "/sda[23]/"
183 # IgnoreSelected false
184 #</Plugin>
186 #<Plugin dns>
187 # Interface "eth0"
188 # IgnoreSource "192.168.0.1"
189 #</Plugin>
191 #<Plugin email>
192 # SocketGroup "collectd"
193 # SocketPerms "0770"
194 # MaxConns 5
195 #</Plugin>
197 #<Plugin exec>
198 # Exec user "/path/to/exec"
199 # Exec "user:group" "/path/to/exec"
200 # NotificationExec user "/path/to/exec"
201 #</Plugin>
203 #<Plugin filecount>
204 # <Directory "/path/to/dir">
205 # Instance "foodir"
206 # Name "*.conf"
207 # MTime "-5m"
208 # Size "+10k"
209 # </Directory>
210 #</Plugin>
212 #<Plugin hddtemp>
213 # Host "127.0.0.1"
214 # Port 7634
215 # TranslateDevicename false
216 #</Plugin>
218 #<Plugin interface>
219 # Interface "eth0"
220 # IgnoreSelected false
221 #</Plugin>
223 #<Plugin iptables>
224 # Chain "table" "chain"
225 #</Plugin>
227 #<Plugin irq>
228 # Irq 7
229 # Irq 8
230 # Irq 9
231 # IgnoreSelected true
232 #</Plugin>
234 #<Plugin libvirt>
235 # Connection "xen:///"
236 # RefreshInterval 60
237 # Domain "name"
238 # BlockDevice "name:device"
239 # InterfaceDevice "name:device"
240 # IgnoreSelected false
241 # HostnameFormat name
242 #</Plugin>
244 #<Plugin mbmon>
245 # Host "127.0.0.1"
246 # Port 411
247 #</Plugin>
249 #<Plugin memcached>
250 # Host "127.0.0.1"
251 # Port "11211"
252 #</Plugin>
254 #<Plugin mysql>
255 # Host "database.serv.er"
256 # User "db_user"
257 # Password "secret"
258 # Database "db_name"
259 #</Plugin>
261 #<Plugin netlink>
262 # Interface "All"
263 # VerboseInterface "All"
264 # QDisc "eth0" "pfifo_fast-1:0"
265 # Class "ppp0" "htb-1:10"
266 # Filter "ppp0" "u32-1:0"
267 # IgnoreSelected false
268 #</Plugin>
270 #<Plugin network>
271 # Server "ff18::efc0:4a42" "25826"
272 # Server "239.192.74.66" "25826"
273 # Listen "ff18::efc0:4a42" "25826"
274 # Listen "239.192.74.66" "25826"
275 # TimeToLive "128"
276 # Forward false
277 # CacheFlush 1800
278 #</Plugin>
280 #<Plugin nginx>
281 # URL "http://localhost/status?auto"
282 # User "www-user"
283 # Password "secret"
284 # VerifyPeer false
285 # VerifyHost false
286 # CACert "/etc/ssl/ca.crt"
287 #</Plugin>
289 #<Plugin notify_desktop>
290 # OkayTimeout 1000
291 # WarningTimeout 5000
292 # FailureTimeout 0
293 #</Plugin>
295 #<Plugin notify_email>
296 # SMTPServer "localhost"
297 # SMTPPort 25
298 # SMTPUser "my-username"
299 # SMTPPassword "my-password"
300 # From "collectd@main0server.com"
301 # # <WARNING/FAILURE/OK> on <hostname>.
302 # # Beware! Do not use not more than two placeholders (%)!
303 # Subject "[collectd] %s on %s!"
304 # Recipient "email1@domain1.net"
305 # Recipient "email2@domain2.com"
306 #</Plugin>
308 #<Plugin ntpd>
309 # Host "localhost"
310 # Port 123
311 # ReverseLookups false
312 #</Plugin>
314 #<Plugin nut>
315 # UPS "upsname@hostname:port"
316 #</Plugin>
318 #<Plugin openvpn>
319 # StatusFile "/etc/openvpn/openvpn-status.log"
320 #</Plugin>
322 #<Plugin perl>
323 # IncludeDir "/my/include/path"
324 # BaseName "Collectd::Plugin"
325 # EnableDebugger ""
326 # LoadPlugin "foo"
327 # LoadPlugin "bar"
328 #
329 # <Plugin foo>
330 # Foo "Bar"
331 # Qux "Baz"
332 # </Plugin>
333 #</Plugin>
335 #<Plugin ping>
336 # Host "host.foo.bar"
337 # Host "host.baz.qux"
338 # TTL 255
339 #</Plugin>
341 #<Plugin postgresql>
342 # <Query magic>
343 # Query "SELECT magic, spells FROM wizard WHERE host = $1;"
344 # Param hostname
345 # Column gauge magic
346 # Column counter spells
347 # </Query>
348 #
349 # <Database foo>
350 # Host "hostname"
351 # Port 5432
352 # User "username"
353 # Password "secret"
354 #
355 # SSLMode "prefer"
356 # KRBSrvName "kerberos_service_name"
357 #
358 # Query magic
359 # </Database>
360 #
361 # <Database bar>
362 # Service "service_name"
363 # </Database>
364 #</Plugin>
366 #<Plugin powerdns>
367 # <Server "server_name">
368 # Collect "latency"
369 # Collect "udp-answers" "udp-queries"
370 # Socket "/var/run/pdns.controlsocket"
371 # </Server>
372 # <Recursor "recursor_name">
373 # Collect "questions"
374 # Collect "cache-hits" "cache-misses"
375 # Socket "/var/run/pdns_recursor.controlsocket"
376 # </Recursor>
377 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
378 #</Plugin>
380 #<Plugin processes>
381 # Process "name"
382 #</Plugin>
384 <Plugin rrdtool>
385 DataDir "/var/lib/collectd/rrd"
386 # CacheTimeout 120
387 # CacheFlush 900
388 #
389 # The following settings are rather advanced
390 # and should usually not be touched:
391 # StepSize 10
392 # HeartBeat 20
393 # RRARows 1200
394 # RRATimespan 158112000
395 # XFF 0.1
396 </Plugin>
398 #<Plugin sensors>
399 # Sensor "it8712-isa-0290/temperature-temp1"
400 # Sensor "it8712-isa-0290/fanspeed-fan3"
401 # Sensor "it8712-isa-0290/voltage-in8"
402 # IgnoreSelected false
403 #</Plugin>
405 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
406 # comprehensive sample configuration.
407 #<Plugin snmp>
408 # <Data "powerplus_voltge_input">
409 # Type "voltage"
410 # Table false
411 # Instance "input_line1"
412 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
413 # </Data>
414 # <Data "hr_users">
415 # Type "users"
416 # Table false
417 # Instance ""
418 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
419 # </Data>
420 # <Data "std_traffic">
421 # Type "if_octets"
422 # Table true
423 # Instance "IF-MIB::ifDescr"
424 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
425 # </Data>
426 #
427 # <Host "some.switch.mydomain.org">
428 # Address "192.168.0.2"
429 # Version 1
430 # Community "community_string"
431 # Collect "std_traffic"
432 # Inverval 120
433 # </Host>
434 # <Host "some.server.mydomain.org">
435 # Address "192.168.0.42"
436 # Version 2
437 # Community "another_string"
438 # Collect "std_traffic" "hr_users"
439 # </Host>
440 # <Host "some.ups.mydomain.org">
441 # Address "192.168.0.3"
442 # Version 1
443 # Community "more_communities"
444 # Collect "powerplus_voltge_input"
445 # Interval 300
446 # </Host>
447 #</Plugin>
449 #<Plugin "tail">
450 # <File "/var/log/exim4/mainlog">
451 # Instance "exim"
452 # <Match>
453 # Regex "S=([1-9][0-9]*)"
454 # DSType "CounterAdd"
455 # Type "ipt_bytes"
456 # Instance "total"
457 # </Match>
458 # <Match>
459 # Regex "\\<R=local_user\\>"
460 # DSType "CounterInc"
461 # Type "counter"
462 # Instance "local_user"
463 # </Match>
464 # </File>
465 #</Plugin>
467 #<Plugin tcpconns>
468 # ListeningPorts false
469 # LocalPort "25"
470 # RemotePort "25"
471 #</Plugin>
473 #<Plugin teamspeak2>
474 # Host "127.0.0.1"
475 # Port "51234"
476 # Server "8767"
477 #</Plugin>
479 #<Plugin thermal>
480 # ForceUseProcfs false
481 # Device "THRM"
482 # IgnoreSelected false
483 #</Plugin>
485 #<Plugin unixsock>
486 # SocketFile "/var/run/collectd-unixsock"
487 # SocketGroup "collectd"
488 # SocketPerms "0660"
489 #</Plugin>
491 #<Plugin uuid>
492 # UUIDFile "/etc/uuid"
493 #</Plugin>
495 #<Plugin vmem>
496 # Verbose false
497 #</Plugin>
499 Include "/etc/collectd/filters.conf"
500 Include "/etc/collectd/thresholds.conf"