1 #
2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
4 # http://collectd.org/
5 #
7 #Hostname "localhost"
8 FQDNLookup true
9 #BaseDir "@prefix@/var/lib/@PACKAGE_NAME@"
10 #PIDFile "@prefix@/var/run/@PACKAGE_NAME@.pid"
11 #PluginDir "@prefix@/lib/@PACKAGE_NAME@"
12 #TypesDB "@prefix@/share/@PACKAGE_NAME@/types.db"
13 #Interval 10
14 #ReadThreads 5
16 @BUILD_PLUGIN_LOGFILE_TRUE@LoadPlugin logfile
17 @BUILD_PLUGIN_SYSLOG_TRUE@LoadPlugin syslog
19 #<Plugin logfile>
20 # LogLevel info
21 # File STDOUT
22 # Timestamp true
23 #</Plugin>
25 #<Plugin syslog>
26 # LogLevel info
27 #</Plugin>
29 @BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
30 @BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
31 @BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
32 @BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
33 @BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
34 @BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
35 @BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
36 @BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
37 @BUILD_PLUGIN_CSV_TRUE@LoadPlugin csv
38 @BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
39 @BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
40 @BUILD_PLUGIN_DF_TRUE@LoadPlugin df
41 @BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
42 @BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
43 @BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
44 @BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
45 @BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
46 @BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
47 @BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
48 @BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
49 @BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
50 @BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
51 @BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
52 @BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
53 @BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
54 @BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
55 @BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
56 @BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
57 @BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
58 @BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
59 @BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
60 @BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
61 @BUILD_PLUGIN_NETWORK_TRUE@LoadPlugin network
62 @BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
63 @BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
64 @BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
65 @BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
66 @BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
67 @BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
68 @BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
69 @BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
70 @BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
71 @BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
72 @BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
73 @BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
74 @BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
75 @BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
76 @BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
77 @BUILD_PLUGIN_RRDTOOL_TRUE@LoadPlugin rrdtool
78 @BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
79 @BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
80 @BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
81 @BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
82 @BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
83 @BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
84 @BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
85 @BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
86 @BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
87 @BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
88 @BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
89 #LoadPlugin uuid
90 @BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
91 @BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
92 @BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
93 @BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
95 #<Plugin apache>
96 # URL "http://localhost/status?auto"
97 # User "www-user"
98 # Password "secret"
99 # CACert "/etc/ssl/ca.crt"
100 #</Plugin>
102 #<Plugin apcups>
103 # Host "localhost"
104 # Port "3551"
105 #</Plugin>
107 #<Plugin ascent>
108 # URL "http://localhost/ascent/status/"
109 # User "www-user"
110 # Password "secret"
111 # CACert "/etc/ssl/ca.crt"
112 #</Plugin>
114 #<Plugin bind>
115 # URL "http://localhost:8053/"
116 # # Features
117 # Requests true
118 # Rejects true
119 # Responses true
120 # Queries true
121 # RCode true
122 # ZoneStats true
123 # OpCodes true
124 # Resolver true
125 # DNSSEC true
126 # RRQueriesIn true
127 # QueryResults true
128 # Updates true
129 # ZoneMaintenance true
130 #</Plugin>
132 #<Plugin csv>
133 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
134 # StoreRates false
135 #</Plugin>
137 #<Plugin curl>
138 # <Page "stock_quotes">
139 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
140 # User "foo"
141 # Password "bar"
142 # <Match>
143 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
144 # DSType "GaugeAverage"
145 # Type "stock_value"
146 # Instance "AMD"
147 # </Match>
148 # </Page>
149 #</Plugin>
151 #<Plugin dbi>
152 # <Query "num_of_customers">
153 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
154 # <Result>
155 # Type "gauge"
156 # InstancesFrom "c_key"
157 # ValuesFrom "c_value"
158 # </Result>
159 # </Query>
160 # <Database "customers_db">
161 # Driver "mysql"
162 # DriverOption "host" "localhost"
163 # DriverOption "username" "collectd"
164 # DriverOption "password" "AeXohy0O"
165 # DriverOption "dbname" "custdb0"
166 # #SelectDB "custdb0"
167 # Query "num_of_customers"
168 # #Query "..."
169 # </Database>
170 #</Plugin>
172 #<Plugin df>
173 # Device "/dev/hda1"
174 # Device "192.168.0.2:/mnt/nfs"
175 # MountPoint "/home"
176 # FSType "ext3"
177 # IgnoreSelected false
178 #</Plugin>
180 #<Plugin disk>
181 # Disk "/^[hs]d[a-f][0-9]?$/"
182 # IgnoreSelected false
183 #</Plugin>
185 #<Plugin dns>
186 # Interface "eth0"
187 # IgnoreSource "192.168.0.1"
188 #</Plugin>
190 #<Plugin email>
191 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
192 # SocketGroup "collectd"
193 # SocketPerms "0770"
194 # MaxConns 5
195 #</Plugin>
197 #<Plugin exec>
198 # Exec "user:group" "/path/to/exec"
199 # NotificationExec "user:group" "/path/to/exec"
200 #</Plugin>
202 #<Plugin filecount>
203 # <Directory "/path/to/dir">
204 # Instance "foodir"
205 # Name "*.conf"
206 # MTime "-5m"
207 # Size "+10k"
208 # Recursive true
209 # </Directory>
210 #</Plugin>
212 @BUILD_PLUGIN_HDDTEMP_TRUE@<Plugin hddtemp>
213 # Host "127.0.0.1"
214 # Port "7634"
215 @BUILD_PLUGIN_HDDTEMP_TRUE@ TranslateDevicename false
216 @BUILD_PLUGIN_HDDTEMP_TRUE@</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 # CACert "/etc/ssl/ca.crt"
285 #</Plugin>
287 #<Plugin notify_desktop>
288 # OkayTimeout 1000
289 # WarningTimeout 5000
290 # FailureTimeout 0
291 #</Plugin>
293 #<Plugin notify_email>
294 # SMTPServer "localhost"
295 # SMTPPort 25
296 # SMTPUser "my-username"
297 # SMTPPassword "my-password"
298 # From "collectd@main0server.com"
299 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
300 # Subject "Aaaaaa!! %s on %s!!!!!"
301 # Recipient "email1@domain1.net"
302 # Recipient "email2@domain2.com"
303 #</Plugin>
305 #<Plugin ntpd>
306 # Host "localhost"
307 # Port 123
308 # ReverseLookups false
309 #</Plugin>
311 #<Plugin nut>
312 # UPS "upsname@hostname:port"
313 #</Plugin>
315 #<Plugin onewire>
316 # Device "-s localhost:4304"
317 # Sensor "F10FCA000800"
318 # IgnoreSelected false
319 #</Plugin>
321 #<Plugin openvpn>
322 # StatusFile "/etc/openvpn/openvpn-status.log"
323 #</Plugin>
325 #<Plugin oracle>
326 # <Query "out_of_stock">
327 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
328 # <Result>
329 # Type "gauge"
330 # InstancesFrom "category"
331 # ValuesFrom "value"
332 # </Result>
333 # </Query>
334 # <Database "product_information">
335 # ConnectID "db01"
336 # Username "oracle"
337 # Password "secret"
338 # Query "out_of_stock"
339 # </Database>
340 #</Plugin>
342 #<Plugin perl>
343 # IncludeDir "/my/include/path"
344 # BaseName "Collectd::Plugin"
345 # EnableDebugger ""
346 # LoadPlugin foo
347 #
348 # <Plugin foo>
349 # Foo "Bar"
350 # Qux "Baz"
351 # </Plugin>
352 #</Plugin>
354 #<Plugin ping>
355 # Host "host.foo.bar"
356 # TTL 255
357 #</Plugin>
359 #<Plugin postgresql>
360 # <Query magic>
361 # Statement "SELECT magic FROM wizard WHERE host = $1;"
362 # Param hostname
363 # <Result>
364 # Type gauge
365 # InstancePrefix "magic"
366 # ValuesFrom magic
367 # </Result>
368 # </Query>
369 # <Query rt36_tickets>
370 # Statement "SELECT COUNT(type) AS count, type \
371 # FROM (SELECT CASE \
372 # WHEN resolved = 'epoch' THEN 'open' \
373 # ELSE 'resolved' END AS type \
374 # FROM tickets) type \
375 # GROUP BY type;"
376 # <Result>
377 # Type counter
378 # InstancePrefix "rt36_tickets"
379 # InstancesFrom "type"
380 # ValuesFrom "count"
381 # </Result>
382 # </Query>
383 # <Database foo>
384 # Host "hostname"
385 # Port "5432"
386 # User "username"
387 # Password "secret"
388 # SSLMode "prefer"
389 # KRBSrvName "kerberos_service_name"
390 # Query magic
391 # </Database>
392 # <Database bar>
393 # Service "service_name"
394 # Query backend # predefined
395 # Query rt36_tickets
396 # </Database>
397 #</Plugin>
399 #<Plugin powerdns>
400 # <Server "server_name">
401 # Collect "latency"
402 # Collect "udp-answers" "udp-queries"
403 # Socket "/var/run/pdns.controlsocket"
404 # </Server>
405 # <Recursor "recursor_name">
406 # Collect "questions"
407 # Collect "cache-hits" "cache-misses"
408 # Socket "/var/run/pdns_recursor.controlsocket"
409 # </Recursor>
410 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
411 #</Plugin>
413 #<Plugin processes>
414 # Process "name"
415 #</Plugin>
417 #<Plugin rrdcached>
418 # DaemonAddress "unix:/tmp/rrdcached.sock"
419 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
420 # CreateFiles true
421 # CollectStatistics true
422 #</Plugin>
424 #<Plugin rrdtool>
425 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
426 # CacheTimeout 120
427 # CacheFlush 900
428 #</Plugin>
430 #<Plugin sensors>
431 # Sensor "it8712-isa-0290/temperature-temp1"
432 # Sensor "it8712-isa-0290/fanspeed-fan3"
433 # Sensor "it8712-isa-0290/voltage-in8"
434 # IgnoreSelected false
435 #</Plugin>
437 #<Plugin snmp>
438 # <Data "powerplus_voltge_input">
439 # Type "voltage"
440 # Table false
441 # Instance "input_line1"
442 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
443 # </Data>
444 # <Data "hr_users">
445 # Type "users"
446 # Table false
447 # Instance ""
448 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
449 # </Data>
450 # <Data "std_traffic">
451 # Type "if_octets"
452 # Table true
453 # Instance "IF-MIB::ifDescr"
454 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
455 # </Data>
456 #
457 # <Host "some.switch.mydomain.org">
458 # Address "192.168.0.2"
459 # Version 1
460 # Community "community_string"
461 # Collect "std_traffic"
462 # Inverval 120
463 # </Host>
464 # <Host "some.server.mydomain.org">
465 # Address "192.168.0.42"
466 # Version 2
467 # Community "another_string"
468 # Collect "std_traffic" "hr_users"
469 # </Host>
470 # <Host "some.ups.mydomain.org">
471 # Address "192.168.0.3"
472 # Version 1
473 # Community "more_communities"
474 # Collect "powerplus_voltge_input"
475 # Interval 300
476 # </Host>
477 #</Plugin>
479 #<Plugin "tail">
480 # <File "/var/log/exim4/mainlog">
481 # Instance "exim"
482 # <Match>
483 # Regex "S=([1-9][0-9]*)"
484 # DSType "CounterAdd"
485 # Type "ipt_bytes"
486 # Instance "total"
487 # </Match>
488 # <Match>
489 # Regex "\\<R=local_user\\>"
490 # DSType "CounterInc"
491 # Type "counter"
492 # Instance "local_user"
493 # </Match>
494 # </File>
495 #</Plugin>
497 #<Plugin tcpconns>
498 # ListeningPorts false
499 # LocalPort "25"
500 # RemotePort "25"
501 #</Plugin>
503 #<Plugin teamspeak2>
504 # Host "127.0.0.1"
505 # Port "51234"
506 # Server "8767"
507 #</Plugin>
509 #<Plugin thermal>
510 # ForceUseProcfs false
511 # Device "THRM"
512 # IgnoreSelected false
513 #</Plugin>
515 #<Plugin unixsock>
516 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
517 # SocketGroup "collectd"
518 # SocketPerms "0660"
519 #</Plugin>
521 #<Plugin uuid>
522 # UUIDFile "/etc/uuid"
523 #</Plugin>
525 #<Plugin vmem>
526 # Verbose false
527 #</Plugin>
529 # * * * * * * * * * * * * *
530 # * FILTER CONFIGURATION *
531 # * * * * * * * * * * * * *
533 # The following configures collectd's filtering mechanism. Before changing
534 # anything in this section, please read the `FILTER CONFIGURATION' section in
535 # the collectd.conf(5) manual page.
537 # Load required matches:
538 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
539 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
541 # Load required targets:
542 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
543 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
544 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
546 # The following block demonstrates the default behavior if no filtering is
547 # configured at all: All values will be sent to all available write plugins.
549 #<Chain "Main">
550 # Target "write"
551 #</Chain>