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