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