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-core/README.Debian.plugins
7 # before 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 contextswitch
37 LoadPlugin cpu
38 #LoadPlugin cpufreq
39 #LoadPlugin csv
40 #LoadPlugin curl
41 #LoadPlugin dbi
42 LoadPlugin df
43 LoadPlugin disk
44 #LoadPlugin dns
45 #LoadPlugin email
46 LoadPlugin entropy
47 #LoadPlugin exec
48 #LoadPlugin filecount
49 #LoadPlugin fscache
50 #LoadPlugin hddtemp
51 LoadPlugin interface
52 #LoadPlugin ipmi
53 #LoadPlugin iptables
54 #LoadPlugin ipvs
55 LoadPlugin irq
56 #LoadPlugin java
57 #LoadPlugin libvirt
58 LoadPlugin load
59 #LoadPlugin madwifi
60 #LoadPlugin mbmon
61 #LoadPlugin memcached
62 LoadPlugin memory
63 #LoadPlugin multimeter
64 #LoadPlugin mysql
65 #LoadPlugin netlink
66 #LoadPlugin network
67 #LoadPlugin nfs
68 #LoadPlugin nginx
69 #LoadPlugin notify_desktop
70 #LoadPlugin notify_email
71 #LoadPlugin ntpd
72 #LoadPlugin nut
73 #LoadPlugin olsrd
74 #LoadPlugin openvpn
75 #LoadPlugin perl
76 #LoadPlugin ping
77 #LoadPlugin postgresql
78 #LoadPlugin powerdns
79 LoadPlugin processes
80 #LoadPlugin protocols
81 #LoadPlugin python
82 LoadPlugin rrdtool
83 #LoadPlugin sensors
84 #LoadPlugin serial
85 #LoadPlugin snmp
86 LoadPlugin swap
87 #LoadPlugin table
88 #LoadPlugin tail
89 #LoadPlugin tcpconns
90 #LoadPlugin teamspeak2
91 #LoadPlugin ted
92 #LoadPlugin thermal
93 #LoadPlugin unixsock
94 #LoadPlugin uptime
95 LoadPlugin users
96 #LoadPlugin uuid
97 #LoadPlugin vmem
98 #LoadPlugin vserver
99 #LoadPlugin wireless
100 #LoadPlugin write_http
102 #<Plugin apache>
103 # <Instance "foo">
104 # URL "http://localhost/server-status?auto"
105 # User "www-user"
106 # Password "secret"
107 # VerifyPeer false
108 # VerifyHost false
109 # CACert "/etc/ssl/ca.crt"
110 # Server "apache"
111 # </Instance>
112 #
113 # <Instance "bar">
114 # URL "http://some.domain.tld/status?auto"
115 # Host "some.domain.tld"
116 # Server "lighttpd"
117 # </Instance>
118 #</Plugin>
120 #<Plugin apcups>
121 # Host "localhost"
122 # Port "3551"
123 #</Plugin>
125 #<Plugin ascent>
126 # URL "http://localhost/ascent/status/"
127 # User "www-user"
128 # Password "secret"
129 # VerifyPeer false
130 # VerifyHost false
131 # CACert "/etc/ssl/ca.crt"
132 #</Plugin>
134 #<Plugin "bind">
135 # URL "http://localhost:8053/"
136 #
137 # OpCodes true
138 # QTypes true
139 # ServerStats true
140 # ZoneMaintStats true
141 # ResolverStats false
142 # MemoryStats true
143 #
144 # <View "_default">
145 # QTypes true
146 # ResolverStats true
147 # CacheRRSets true
148 #
149 # Zone "127.in-addr.arpa/IN"
150 # </View>
151 #</Plugin>
153 #<Plugin csv>
154 # DataDir "/var/lib/collectd/csv"
155 # StoreRates false
156 #</Plugin>
158 #<Plugin curl>
159 # <Page "stock_quotes">
160 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
161 # User "foo"
162 # Password "bar"
163 # VerifyPeer false
164 # VerifyHost false
165 # CACert "/etc/ssl/ca.crt"
166 # MeasureResponseTime false
167 # <Match>
168 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
169 # DSType "GaugeAverage"
170 # Type "stock_value"
171 # Instance "AMD"
172 # </Match>
173 # </Page>
174 #</Plugin>
176 #<Plugin dbi>
177 # <Query "num_of_customers">
178 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
179 # FROM customers_tbl"
180 # MinVersion 40102
181 # MaxVersion 50042
182 # <Result>
183 # Type "gauge"
184 # InstancePrefix "customer"
185 # InstancesFrom "c_key"
186 # ValuesFrom "c_value"
187 # </Result>
188 # </Query>
189 #
190 # <Database "customers_db">
191 # Driver "mysql"
192 # DriverOption "host" "localhost"
193 # DriverOption "username" "collectd"
194 # DriverOption "password" "secret"
195 # DriverOption "dbname" "custdb0"
196 # SelectDB "custdb0"
197 # Query "num_of_customers"
198 # Query "..."
199 # </Database>
200 #</Plugin>
202 #<Plugin df>
203 # Device "/dev/sda1"
204 # Device "192.168.0.2:/mnt/nfs"
205 # MountPoint "/home"
206 # FSType "ext3"
207 # IgnoreSelected false
208 # ReportByDevice false
209 # ReportReserved false
210 # ReportInodes false
211 #</Plugin>
213 #<Plugin disk>
214 # Disk "hda"
215 # Disk "/sda[23]/"
216 # IgnoreSelected false
217 #</Plugin>
219 #<Plugin dns>
220 # Interface "eth0"
221 # IgnoreSource "192.168.0.1"
222 # SelectNumericQueryTypes false
223 #</Plugin>
225 #<Plugin email>
226 # SocketFile "/var/run/collectd-email"
227 # SocketGroup "collectd"
228 # SocketPerms "0770"
229 # MaxConns 5
230 #</Plugin>
232 #<Plugin exec>
233 # Exec user "/path/to/exec"
234 # Exec "user:group" "/path/to/exec"
235 # NotificationExec user "/path/to/exec"
236 #</Plugin>
238 #<Plugin filecount>
239 # <Directory "/path/to/dir">
240 # Instance "foodir"
241 # Name "*.conf"
242 # MTime "-5m"
243 # Size "+10k"
244 # Recursive true
245 # </Directory>
246 #</Plugin>
248 #<Plugin hddtemp>
249 # Host "127.0.0.1"
250 # Port 7634
251 # TranslateDevicename false
252 #</Plugin>
254 #<Plugin interface>
255 # Interface "eth0"
256 # IgnoreSelected false
257 #</Plugin>
259 #<Plugin ipmi>
260 # Sensor "some_sensor"
261 # Sensor "another_one"
262 # IgnoreSelected false
263 # NotifySensorAdd false
264 # NotifySensorRemove true
265 # NotifySensorNotPresent false
266 #</Plugin>
268 #<Plugin iptables>
269 # Chain "table" "chain"
270 #</Plugin>
272 #<Plugin irq>
273 # Irq 7
274 # Irq 8
275 # Irq 9
276 # IgnoreSelected true
277 #</Plugin>
279 #<Plugin java>
280 # JVMArg "-verbose:jni"
281 #
282 # LoadPlugin "org.collectd.java.GenericJMX"
283 # <Plugin "GenericJMX">
284 # # See /usr/share/doc/collectd/examples/GenericJMX.conf
285 # # for an example config.
286 # </Plugin>
287 #</Plugin>
289 #<Plugin libvirt>
290 # Connection "xen:///"
291 # RefreshInterval 60
292 # Domain "name"
293 # BlockDevice "name:device"
294 # InterfaceDevice "name:device"
295 # IgnoreSelected false
296 # HostnameFormat name
297 #</Plugin>
299 #<Plugin madwifi>
300 # Interface "wlan0"
301 # IgnoreSelected false
302 # Source "SysFS"
303 # WatchSet "None"
304 # WatchAdd "node_octets"
305 # WatchAdd "node_rssi"
306 # WatchAdd "is_rx_acl"
307 # WatchAdd "is_scan_active"
308 #</Plugin>
310 #<Plugin mbmon>
311 # Host "127.0.0.1"
312 # Port 411
313 #</Plugin>
315 #<Plugin memcached>
316 # Socket "/var/run/memcached.sock"
317 # or:
318 # Host "127.0.0.1"
319 # Port "11211"
320 #</Plugin>
322 #<Plugin mysql>
323 # <Database db_name>
324 # Host "database.serv.er"
325 # Port "3306"
326 # User "db_user"
327 # Password "secret"
328 # Database "db_name"
329 # MasterStats true
330 # </Database>
331 #
332 # <Database db_name2>
333 # Host "localhost"
334 # Socket "/var/run/mysql/mysqld.sock"
335 # SlaveStats true
336 # SlaveNotifications true
337 # </Database>
338 #</Plugin>
340 #<Plugin netlink>
341 # Interface "All"
342 # VerboseInterface "All"
343 # QDisc "eth0" "pfifo_fast-1:0"
344 # Class "ppp0" "htb-1:10"
345 # Filter "ppp0" "u32-1:0"
346 # IgnoreSelected false
347 #</Plugin>
349 #<Plugin network>
350 # # client setup:
351 # Server "ff18::efc0:4a42" "25826"
352 # <Server "239.192.74.66" "25826">
353 # SecurityLevel Encrypt
354 # Username "user"
355 # Password "secret"
356 # </Server>
357 # TimeToLive "128"
358 #
359 # # server setup:
360 # Listen "ff18::efc0:4a42" "25826"
361 # <Listen "239.192.74.66" "25826">
362 # SecurityLevel Sign
363 # AuthFile "/etc/collectd/passwd"
364 # </Listen>
365 # MaxPacketSize 1024
366 #
367 # # proxy setup (client and server as above):
368 # Forward true
369 #
370 # # statistics about the network plugin itself
371 # ReportStats false
372 #</Plugin>
374 #<Plugin nginx>
375 # URL "http://localhost/status?auto"
376 # User "www-user"
377 # Password "secret"
378 # VerifyPeer false
379 # VerifyHost false
380 # CACert "/etc/ssl/ca.crt"
381 #</Plugin>
383 #<Plugin notify_desktop>
384 # OkayTimeout 1000
385 # WarningTimeout 5000
386 # FailureTimeout 0
387 #</Plugin>
389 #<Plugin notify_email>
390 # SMTPServer "localhost"
391 # SMTPPort 25
392 # SMTPUser "my-username"
393 # SMTPPassword "my-password"
394 # From "collectd@main0server.com"
395 # # <WARNING/FAILURE/OK> on <hostname>.
396 # # Beware! Do not use not more than two placeholders (%)!
397 # Subject "[collectd] %s on %s!"
398 # Recipient "email1@domain1.net"
399 # Recipient "email2@domain2.com"
400 #</Plugin>
402 #<Plugin ntpd>
403 # Host "localhost"
404 # Port 123
405 # ReverseLookups false
406 #</Plugin>
408 #<Plugin nut>
409 # UPS "upsname@hostname:port"
410 #</Plugin>
412 #<Plugin olsrd>
413 # Host "127.0.0.1"
414 # Port "2006"
415 # CollectLinks "Summary"
416 # CollectRoutes "Summary"
417 # CollectTopology "Summary"
418 #</Plugin>
420 #<Plugin openvpn>
421 # StatusFile "/etc/openvpn/openvpn-status.log"
422 #</Plugin>
424 #<Plugin perl>
425 # IncludeDir "/my/include/path"
426 # BaseName "Collectd::Plugin"
427 # EnableDebugger ""
428 # LoadPlugin Monitorus
429 # LoadPlugin OpenVZ
430 #
431 # <Plugin foo>
432 # Foo "Bar"
433 # Qux "Baz"
434 # </Plugin>
435 #</Plugin>
437 #<Plugin ping>
438 # Host "host.foo.bar"
439 # Host "host.baz.qux"
440 # Interval 1.0
441 # Timeout 0.9
442 # TTL 255
443 # SourceAddress "1.2.3.4"
444 # Device "eth0"
445 # MaxMissed -1
446 #</Plugin>
448 #<Plugin postgresql>
449 # <Query magic>
450 # Statement "SELECT magic FROM wizard WHERE host = $1;"
451 # Param hostname
452 #
453 # <Result>
454 # Type gauge
455 # InstancePrefix "magic"
456 # ValuesFrom "magic"
457 # </Result>
458 # </Query>
459 #
460 # <Query rt36_tickets>
461 # Statement "SELECT COUNT(type) AS count, type \
462 # FROM (SELECT CASE \
463 # WHEN resolved = 'epoch' THEN 'open' \
464 # ELSE 'resolved' END AS type \
465 # FROM tickets) type \
466 # GROUP BY type;"
467 #
468 # <Result>
469 # Type counter
470 # InstancePrefix "rt36_tickets"
471 # InstancesFrom "type"
472 # ValuesFrom "count"
473 # </Result>
474 # </Query>
475 #
476 # <Database foo>
477 # Host "hostname"
478 # Port 5432
479 # User "username"
480 # Password "secret"
481 #
482 # SSLMode "prefer"
483 # KRBSrvName "kerberos_service_name"
484 #
485 # Query magic
486 # </Database>
487 #
488 # <Database bar>
489 # Service "service_name"
490 #
491 # Query backend # predefined
492 # Query rt36_tickets
493 # </Database>
494 #</Plugin>
496 #<Plugin powerdns>
497 # <Server "server_name">
498 # Collect "latency"
499 # Collect "udp-answers" "udp-queries"
500 # Socket "/var/run/pdns.controlsocket"
501 # </Server>
502 # <Recursor "recursor_name">
503 # Collect "questions"
504 # Collect "cache-hits" "cache-misses"
505 # Socket "/var/run/pdns_recursor.controlsocket"
506 # </Recursor>
507 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
508 #</Plugin>
510 #<Plugin processes>
511 # Process "name"
512 # ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
513 #</Plugin>
515 #<Plugin protocols>
516 # Value "/^Tcp:/"
517 # IgnoreSelected false
518 #</Plugin>
520 #<Plugin python>
521 # ModulePath "/path/to/your/python/modules"
522 # LogTraces true
523 # Interactive true
524 # Import "spam"
525 #
526 # <Module spam>
527 # spam "wonderful" "lovely"
528 # </Module>
529 #</Plugin>
531 <Plugin rrdtool>
532 DataDir "/var/lib/collectd/rrd"
533 # CacheTimeout 120
534 # CacheFlush 900
535 # WritesPerSecond 30
536 # RandomTimeout 0
537 #
538 # The following settings are rather advanced
539 # and should usually not be touched:
540 # StepSize 10
541 # HeartBeat 20
542 # RRARows 1200
543 # RRATimespan 158112000
544 # XFF 0.1
545 </Plugin>
547 #<Plugin sensors>
548 # Sensor "it8712-isa-0290/temperature-temp1"
549 # Sensor "it8712-isa-0290/fanspeed-fan3"
550 # Sensor "it8712-isa-0290/voltage-in8"
551 # IgnoreSelected false
552 #</Plugin>
554 # See /usr/share/doc/collectd/examples/snmp-data.conf.gz for a
555 # comprehensive sample configuration.
556 #<Plugin snmp>
557 # <Data "powerplus_voltge_input">
558 # Type "voltage"
559 # Table false
560 # Instance "input_line1"
561 # Scale 0.1
562 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
563 # </Data>
564 # <Data "hr_users">
565 # Type "users"
566 # Table false
567 # Instance ""
568 # Shift -1
569 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
570 # </Data>
571 # <Data "std_traffic">
572 # Type "if_octets"
573 # Table true
574 # InstancePrefix "traffic"
575 # Instance "IF-MIB::ifDescr"
576 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
577 # </Data>
578 #
579 # <Host "some.switch.mydomain.org">
580 # Address "192.168.0.2"
581 # Version 1
582 # Community "community_string"
583 # Collect "std_traffic"
584 # Inverval 120
585 # </Host>
586 # <Host "some.server.mydomain.org">
587 # Address "192.168.0.42"
588 # Version 2
589 # Community "another_string"
590 # Collect "std_traffic" "hr_users"
591 # </Host>
592 # <Host "some.ups.mydomain.org">
593 # Address "192.168.0.3"
594 # Version 1
595 # Community "more_communities"
596 # Collect "powerplus_voltge_input"
597 # Interval 300
598 # </Host>
599 #</Plugin>
601 #<Plugin table>
602 # <Table "/proc/slabinfo">
603 # Instance "slabinfo"
604 # Separator " "
605 # <Result>
606 # Type gauge
607 # InstancePrefix "active_objs"
608 # InstancesFrom 0
609 # ValuesFrom 1
610 # </Result>
611 # <Result>
612 # Type gauge
613 # InstancePrefix "objperslab"
614 # InstancesFrom 0
615 # ValuesFrom 4
616 # </Result>
617 # </Table>
618 #</Plugin>
620 #<Plugin "tail">
621 # <File "/var/log/exim4/mainlog">
622 # Instance "exim"
623 # <Match>
624 # Regex "S=([1-9][0-9]*)"
625 # DSType "CounterAdd"
626 # Type "ipt_bytes"
627 # Instance "total"
628 # </Match>
629 # <Match>
630 # Regex "\\<R=local_user\\>"
631 # DSType "CounterInc"
632 # Type "counter"
633 # Instance "local_user"
634 # </Match>
635 # </File>
636 #</Plugin>
638 #<Plugin tcpconns>
639 # ListeningPorts false
640 # LocalPort "25"
641 # RemotePort "25"
642 #</Plugin>
644 #<Plugin teamspeak2>
645 # Host "127.0.0.1"
646 # Port "51234"
647 # Server "8767"
648 #</Plugin>
650 #<Plugin ted>
651 # Device "/dev/ttyUSB0"
652 # Retries 0
653 #</Plugin>
655 #<Plugin thermal>
656 # ForceUseProcfs false
657 # Device "THRM"
658 # IgnoreSelected false
659 #</Plugin>
661 #<Plugin unixsock>
662 # SocketFile "/var/run/collectd-unixsock"
663 # SocketGroup "collectd"
664 # SocketPerms "0660"
665 #</Plugin>
667 #<Plugin uuid>
668 # UUIDFile "/etc/uuid"
669 #</Plugin>
671 #<Plugin vmem>
672 # Verbose false
673 #</Plugin>
675 #<Plugin write_http>
676 # <URL "http://example.com/collectd-post">
677 # User "collectd"
678 # Password "secret"
679 # </URL>
680 #</Plugin>
682 Include "/etc/collectd/filters.conf"
683 Include "/etc/collectd/thresholds.conf"