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