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_DBI_TRUE@LoadPlugin dbi
39 @BUILD_PLUGIN_DF_TRUE@LoadPlugin df
40 @BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
41 @BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
42 @BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
43 @BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
44 @BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
45 @BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
46 @BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
47 @BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
48 @BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
49 @BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
50 @BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
51 @BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
52 @BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
53 @BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
54 @BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
55 @BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
56 @BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
57 @BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
58 @BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
59 @BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
60 @BUILD_PLUGIN_NETWORK_TRUE@LoadPlugin network
61 @BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
62 @BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
63 @BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
64 @BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
65 @BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
66 @BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
67 @BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
68 @BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
69 @BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
70 @BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
71 @BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
72 @BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
73 @BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
74 @BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
75 @BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
76 @BUILD_PLUGIN_RRDTOOL_TRUE@LoadPlugin rrdtool
77 @BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
78 @BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
79 @BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
80 @BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
81 @BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
82 @BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
83 @BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
84 @BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
85 @BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
86 @BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
87 @BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
88 #LoadPlugin uuid
89 @BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
90 @BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
91 @BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
92 @BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
94 #<Plugin apache>
95 # URL "http://localhost/status?auto"
96 # User "www-user"
97 # Password "secret"
98 # CACert "/etc/ssl/ca.crt"
99 #</Plugin>
101 #<Plugin apcups>
102 # Host "localhost"
103 # Port "3551"
104 #</Plugin>
106 #<Plugin ascent>
107 # URL "http://localhost/ascent/status/"
108 # User "www-user"
109 # Password "secret"
110 # CACert "/etc/ssl/ca.crt"
111 #</Plugin>
113 #<Plugin bind>
114 # URL "http://localhost:8053/"
115 # # Features
116 # Requests true
117 # Rejects true
118 # Responses true
119 # Queries true
120 # RCode true
121 # ZoneStats true
122 # OpCodes true
123 # Resolver true
124 # DNSSEC true
125 # RRQueriesIn true
126 # QueryResults true
127 # Updates true
128 # ZoneMaintenance true
129 #</Plugin>
131 #<Plugin csv>
132 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
133 # StoreRates false
134 #</Plugin>
136 #<Plugin dbi>
137 # <Query "num_of_customers">
138 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
139 # <Result>
140 # Type "gauge"
141 # InstancesFrom "c_key"
142 # ValuesFrom "c_value"
143 # </Result>
144 # </Query>
145 # <Database "customers_db">
146 # Driver "mysql"
147 # DriverOption "host" "localhost"
148 # DriverOption "username" "collectd"
149 # DriverOption "password" "AeXohy0O"
150 # DriverOption "dbname" "custdb0"
151 # #SelectDB "custdb0"
152 # Query "num_of_customers"
153 # #Query "..."
154 # </Database>
155 #</Plugin>
157 #<Plugin df>
158 # Device "/dev/hda1"
159 # Device "192.168.0.2:/mnt/nfs"
160 # MountPoint "/home"
161 # FSType "ext3"
162 # IgnoreSelected false
163 #</Plugin>
165 #<Plugin disk>
166 # Disk "/^[hs]d[a-f][0-9]?$/"
167 # IgnoreSelected false
168 #</Plugin>
170 #<Plugin dns>
171 # Interface "eth0"
172 # IgnoreSource "192.168.0.1"
173 #</Plugin>
175 #<Plugin email>
176 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
177 # SocketGroup "collectd"
178 # SocketPerms "0770"
179 # MaxConns 5
180 #</Plugin>
182 #<Plugin exec>
183 # Exec "user:group" "/path/to/exec"
184 # NotificationExec "user:group" "/path/to/exec"
185 #</Plugin>
187 #<Plugin filecount>
188 # <Directory "/path/to/dir">
189 # Instance "foodir"
190 # Name "*.conf"
191 # MTime "-5m"
192 # Size "+10k"
193 # Recursive true
194 # </Directory>
195 #</Plugin>
197 @BUILD_PLUGIN_HDDTEMP_TRUE@<Plugin hddtemp>
198 # Host "127.0.0.1"
199 # Port "7634"
200 @BUILD_PLUGIN_HDDTEMP_TRUE@ TranslateDevicename false
201 @BUILD_PLUGIN_HDDTEMP_TRUE@</Plugin>
203 #<Plugin interface>
204 # Interface "eth0"
205 # IgnoreSelected false
206 #</Plugin>
208 #<Plugin iptables>
209 # Chain table chain
210 #</Plugin>
212 #<Plugin irq>
213 # Irq 7
214 # Irq 8
215 # Irq 9
216 # IgnoreSelected true
217 #</Plugin>
219 #<Plugin libvirt>
220 # Connection "xen:///"
221 # RefreshInterval 60
222 # Domain "name"
223 # BlockDevice "name:device"
224 # InterfaceDevice "name:device"
225 # IgnoreSelected false
226 # HostnameFormat name
227 #</Plugin>
229 #<Plugin mbmon>
230 # Host "127.0.0.1"
231 # Port "411"
232 #</Plugin>
234 #<Plugin memcached>
235 # Host "127.0.0.1"
236 # Port "11211"
237 #</Plugin>
239 #<Plugin mysql>
240 # Host "database.serv.er"
241 # User "db_user"
242 # Password "secret"
243 # Database "db_name"
244 #</Plugin>
246 #<Plugin netlink>
247 # Interface "All"
248 # VerboseInterface "All"
249 # QDisc "eth0" "pfifo_fast-1:0"
250 # Class "ppp0" "htb-1:10"
251 # Filter "ppp0" "u32-1:0"
252 # IgnoreSelected false
253 #</Plugin>
255 #<Plugin network>
256 # Server "ff18::efc0:4a42" "25826"
257 # Server "239.192.74.66" "25826"
258 # Listen "ff18::efc0:4a42" "25826"
259 # Listen "239.192.74.66" "25826"
260 # TimeToLive "128"
261 # Forward false
262 # CacheFlush 1800
263 #</Plugin>
265 #<Plugin nginx>
266 # URL "http://localhost/status?auto"
267 # User "www-user"
268 # Password "secret"
269 # CACert "/etc/ssl/ca.crt"
270 #</Plugin>
272 #<Plugin notify_desktop>
273 # OkayTimeout 1000
274 # WarningTimeout 5000
275 # FailureTimeout 0
276 #</Plugin>
278 #<Plugin notify_email>
279 # SMTPServer "localhost"
280 # SMTPPort 25
281 # SMTPUser "my-username"
282 # SMTPPassword "my-password"
283 # From "collectd@main0server.com"
284 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
285 # Subject "Aaaaaa!! %s on %s!!!!!"
286 # Recipient "email1@domain1.net"
287 # Recipient "email2@domain2.com"
288 #</Plugin>
290 #<Plugin ntpd>
291 # Host "localhost"
292 # Port 123
293 # ReverseLookups false
294 #</Plugin>
296 #<Plugin nut>
297 # UPS "upsname@hostname:port"
298 #</Plugin>
300 #<Plugin onewire>
301 # Device "-s localhost:4304"
302 # Sensor "F10FCA000800"
303 # IgnoreSelected false
304 #</Plugin>
306 #<Plugin openvpn>
307 # StatusFile "/etc/openvpn/openvpn-status.log"
308 #</Plugin>
310 #<Plugin oracle>
311 # <Query "out_of_stock">
312 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
313 # <Result>
314 # Type "gauge"
315 # InstancesFrom "category"
316 # ValuesFrom "value"
317 # </Result>
318 # </Query>
319 # <Database "product_information">
320 # ConnectID "db01"
321 # Username "oracle"
322 # Password "secret"
323 # Query "out_of_stock"
324 # </Database>
325 #</Plugin>
327 #<Plugin perl>
328 # IncludeDir "/my/include/path"
329 # BaseName "Collectd::Plugin"
330 # EnableDebugger ""
331 # LoadPlugin foo
332 #
333 # <Plugin foo>
334 # Foo "Bar"
335 # Qux "Baz"
336 # </Plugin>
337 #</Plugin>
339 #<Plugin ping>
340 # Host "host.foo.bar"
341 # TTL 255
342 #</Plugin>
344 #<Plugin postgresql>
345 # <Query magic>
346 # Statement "SELECT magic FROM wizard WHERE host = $1;"
347 # Param hostname
348 # <Result>
349 # Type gauge
350 # InstancePrefix "magic"
351 # ValuesFrom magic
352 # </Result>
353 # </Query>
354 # <Query rt36_tickets>
355 # Statement "SELECT COUNT(type) AS count, type \
356 # FROM (SELECT CASE \
357 # WHEN resolved = 'epoch' THEN 'open' \
358 # ELSE 'resolved' END AS type \
359 # FROM tickets) type \
360 # GROUP BY type;"
361 # <Result>
362 # Type counter
363 # InstancePrefix "rt36_tickets"
364 # InstancesFrom "type"
365 # ValuesFrom "count"
366 # </Result>
367 # </Query>
368 # <Database foo>
369 # Host "hostname"
370 # Port "5432"
371 # User "username"
372 # Password "secret"
373 # SSLMode "prefer"
374 # KRBSrvName "kerberos_service_name"
375 # Query magic
376 # </Database>
377 # <Database bar>
378 # Service "service_name"
379 # Query backend # predefined
380 # Query rt36_tickets
381 # </Database>
382 #</Plugin>
384 #<Plugin powerdns>
385 # <Server "server_name">
386 # Collect "latency"
387 # Collect "udp-answers" "udp-queries"
388 # Socket "/var/run/pdns.controlsocket"
389 # </Server>
390 # <Recursor "recursor_name">
391 # Collect "questions"
392 # Collect "cache-hits" "cache-misses"
393 # Socket "/var/run/pdns_recursor.controlsocket"
394 # </Recursor>
395 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
396 #</Plugin>
398 #<Plugin processes>
399 # Process "name"
400 #</Plugin>
402 #<Plugin rrdcached>
403 # DaemonAddress "unix:/tmp/rrdcached.sock"
404 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
405 # CreateFiles true
406 # CollectStatistics true
407 #</Plugin>
409 #<Plugin rrdtool>
410 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
411 # CacheTimeout 120
412 # CacheFlush 900
413 #</Plugin>
415 #<Plugin sensors>
416 # Sensor "it8712-isa-0290/temperature-temp1"
417 # Sensor "it8712-isa-0290/fanspeed-fan3"
418 # Sensor "it8712-isa-0290/voltage-in8"
419 # IgnoreSelected false
420 #</Plugin>
422 #<Plugin snmp>
423 # <Data "powerplus_voltge_input">
424 # Type "voltage"
425 # Table false
426 # Instance "input_line1"
427 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
428 # </Data>
429 # <Data "hr_users">
430 # Type "users"
431 # Table false
432 # Instance ""
433 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
434 # </Data>
435 # <Data "std_traffic">
436 # Type "if_octets"
437 # Table true
438 # Instance "IF-MIB::ifDescr"
439 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
440 # </Data>
441 #
442 # <Host "some.switch.mydomain.org">
443 # Address "192.168.0.2"
444 # Version 1
445 # Community "community_string"
446 # Collect "std_traffic"
447 # Inverval 120
448 # </Host>
449 # <Host "some.server.mydomain.org">
450 # Address "192.168.0.42"
451 # Version 2
452 # Community "another_string"
453 # Collect "std_traffic" "hr_users"
454 # </Host>
455 # <Host "some.ups.mydomain.org">
456 # Address "192.168.0.3"
457 # Version 1
458 # Community "more_communities"
459 # Collect "powerplus_voltge_input"
460 # Interval 300
461 # </Host>
462 #</Plugin>
464 #<Plugin "tail">
465 # <File "/var/log/exim4/mainlog">
466 # Instance "exim"
467 # <Match>
468 # Regex "S=([1-9][0-9]*)"
469 # DSType "CounterAdd"
470 # Type "ipt_bytes"
471 # Instance "total"
472 # </Match>
473 # <Match>
474 # Regex "\\<R=local_user\\>"
475 # DSType "CounterInc"
476 # Type "counter"
477 # Instance "local_user"
478 # </Match>
479 # </File>
480 #</Plugin>
482 #<Plugin tcpconns>
483 # ListeningPorts false
484 # LocalPort "25"
485 # RemotePort "25"
486 #</Plugin>
488 #<Plugin teamspeak2>
489 # Host "127.0.0.1"
490 # Port "51234"
491 # Server "8767"
492 #</Plugin>
494 #<Plugin thermal>
495 # ForceUseProcfs false
496 # Device "THRM"
497 # IgnoreSelected false
498 #</Plugin>
500 #<Plugin unixsock>
501 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
502 # SocketGroup "collectd"
503 # SocketPerms "0660"
504 #</Plugin>
506 #<Plugin uuid>
507 # UUIDFile "/etc/uuid"
508 #</Plugin>
510 #<Plugin vmem>
511 # Verbose false
512 #</Plugin>
514 # * * * * * * * * * * * * *
515 # * FILTER CONFIGURATION *
516 # * * * * * * * * * * * * *
518 # The following configures collectd's filtering mechanism. Before changing
519 # anything in this section, please read the `FILTER CONFIGURATION' section in
520 # the collectd.conf(5) manual page.
522 # Load required matches:
523 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
524 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
526 # Load required targets:
527 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
528 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
529 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
531 # The following block demonstrates the default behavior if no filtering is
532 # configured at all: All values will be sent to all available write plugins.
534 #<Chain "Main">
535 # Target "write"
536 #</Chain>