2 # Config file for collectd(1).
3 # Please read collectd.conf(5) for a list of options.
7 ##############################################################################
9 #----------------------------------------------------------------------------#
10 # Global settings for the daemon. #
11 ##############################################################################
15 #BaseDir "@prefix@/var/lib/@PACKAGE_NAME@"
16 #PIDFile "@prefix@/var/run/@PACKAGE_NAME@.pid"
17 #PluginDir "@prefix@/lib/@PACKAGE_NAME@"
18 #TypesDB "@prefix@/share/@PACKAGE_NAME@/types.db"
22 ##############################################################################
24 #----------------------------------------------------------------------------#
25 # Plugins which provide logging functions should be loaded first, so log #
26 # messages generated when loading or configuring other plugins can be #
28 ##############################################################################
30 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
31 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
34 # LogLevel @DEFAULT_LOG_LEVEL@
40 # LogLevel @DEFAULT_LOG_LEVEL@
43 ##############################################################################
44 # LoadPlugin section #
45 #----------------------------------------------------------------------------#
46 # Lines beginning with a single `#' belong to plugins which have been built #
47 # but are disabled by default. #
49 # Lines begnning with `##' belong to plugins which have not been built due #
50 # to missing dependencies or because they have been deactivated explicitly. #
51 ##############################################################################
53 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
54 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
55 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
56 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
57 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
58 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
59 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
60 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
61 @LOAD_PLUGIN_CSV@LoadPlugin csv
62 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
63 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
64 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
65 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
66 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
67 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
68 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
69 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
70 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
71 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
72 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
73 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
74 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
75 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
76 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
77 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
78 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
79 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
80 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
81 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
82 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
83 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
84 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
85 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
86 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
87 @LOAD_PLUGIN_NETWORK@LoadPlugin network
88 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
89 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
90 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
91 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
92 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
93 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
94 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
95 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
96 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
97 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
98 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
99 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
100 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
101 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
102 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
103 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
104 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
105 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
106 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
107 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
108 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
109 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
110 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
111 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
112 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
113 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
114 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
115 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
116 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
117 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
118 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
119 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
120 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
121 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
123 ##############################################################################
124 # Plugin configuration #
125 #----------------------------------------------------------------------------#
126 # In this section configuration stubs for each plugin are provided. A desc- #
127 # ription of those options is available in the collectd.conf(5) manual page. #
128 ##############################################################################
131 # URL "http://localhost/status?auto"
134 # CACert "/etc/ssl/ca.crt"
143 # URL "http://localhost/ascent/status/"
146 # CACert "/etc/ssl/ca.crt"
150 # URL "http://localhost:8053/"
155 # ZoneMaintStats true
156 # ResolverStats false
164 # Zone "127.in-addr.arpa/IN"
169 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
174 # <Page "stock_quotes">
175 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
179 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
180 # DSType "GaugeAverage"
188 # <Query "num_of_customers">
189 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
192 # InstancesFrom "c_key"
193 # ValuesFrom "c_value"
196 # <Database "customers_db">
198 # DriverOption "host" "localhost"
199 # DriverOption "username" "collectd"
200 # DriverOption "password" "AeXohy0O"
201 # DriverOption "dbname" "custdb0"
202 # #SelectDB "custdb0"
203 # Query "num_of_customers"
210 # Device "192.168.0.2:/mnt/nfs"
213 # IgnoreSelected false
217 # Disk "/^[hs]d[a-f][0-9]?$/"
218 # IgnoreSelected false
223 # IgnoreSource "192.168.0.1"
227 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
228 # SocketGroup "collectd"
234 # Exec "user:group" "/path/to/exec"
235 # NotificationExec "user:group" "/path/to/exec"
239 # <Directory "/path/to/dir">
249 # MCReceiveFrom "239.2.11.71" "8649"
250 # <Metric "swap_total">
252 # TypeInstance "total"
255 # <Metric "swap_free">
257 # TypeInstance "free"
266 # #----------------------------------------------------------------#
267 # # `TranslateDevicename' enabled backwards compatibility behavior #
268 # # and is enabled by default. Setting this option to `false' is #
269 # # highly recommended. #
270 # #----------------------------------------------------------------#
271 # TranslateDevicename false
276 # IgnoreSelected false
287 # IgnoreSelected true
291 # JVMArg "-verbose:jni"
292 # JVMArg "-Djava.class.path=/opt/collectd/lib/collectd/bindings/java"
294 # LoadPlugin "org.collectd.java.Foobar"
295 # <Plugin "org.collectd.java.Foobar">
296 # # To be parsed by the plugin
301 # Connection "xen:///"
304 # BlockDevice "name:device"
305 # InterfaceDevice "name:device"
306 # IgnoreSelected false
307 # HostnameFormat name
322 # Host "database.serv.er"
329 # <Database db_name2>
331 # Socket "/var/run/mysql/mysqld.sock"
333 # SlaveNotifications true
339 # VerboseInterface "All"
340 # QDisc "eth0" "pfifo_fast-1:0"
341 # Class "ppp0" "htb-1:10"
342 # Filter "ppp0" "u32-1:0"
343 # IgnoreSelected false
346 @LOAD_PLUGIN_NETWORK@<Plugin network>
347 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
348 @LOAD_PLUGIN_NETWORK@ Server "239.192.74.66" "25826"
349 # Listen "ff18::efc0:4a42" "25826"
350 # Listen "239.192.74.66" "25826"
354 @LOAD_PLUGIN_NETWORK@</Plugin>
357 # URL "http://localhost/status?auto"
360 # CACert "/etc/ssl/ca.crt"
363 #<Plugin notify_desktop>
365 # WarningTimeout 5000
369 #<Plugin notify_email>
370 # SMTPServer "localhost"
372 # SMTPUser "my-username"
373 # SMTPPassword "my-password"
374 # From "collectd@main0server.com"
375 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
376 # Subject "Aaaaaa!! %s on %s!!!!!"
377 # Recipient "email1@domain1.net"
378 # Recipient "email2@domain2.com"
384 # ReverseLookups false
388 # UPS "upsname@hostname:port"
392 # Device "-s localhost:4304"
393 # Sensor "F10FCA000800"
394 # IgnoreSelected false
398 # StatusFile "/etc/openvpn/openvpn-status.log"
402 # <Query "out_of_stock">
403 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
406 # InstancesFrom "category"
410 # <Database "product_information">
414 # Query "out_of_stock"
419 # IncludeDir "/my/include/path"
420 # BaseName "Collectd::Plugin"
431 # Host "host.foo.bar"
437 # Statement "SELECT magic FROM wizard WHERE host = $1;"
441 # InstancePrefix "magic"
445 # <Query rt36_tickets>
446 # Statement "SELECT COUNT(type) AS count, type \
447 # FROM (SELECT CASE \
448 # WHEN resolved = 'epoch' THEN 'open' \
449 # ELSE 'resolved' END AS type \
450 # FROM tickets) type \
454 # InstancePrefix "rt36_tickets"
455 # InstancesFrom "type"
465 # KRBSrvName "kerberos_service_name"
469 # Service "service_name"
470 # Query backend # predefined
476 # <Server "server_name">
478 # Collect "udp-answers" "udp-queries"
479 # Socket "/var/run/pdns.controlsocket"
481 # <Recursor "recursor_name">
482 # Collect "questions"
483 # Collect "cache-hits" "cache-misses"
484 # Socket "/var/run/pdns_recursor.controlsocket"
486 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
495 # IgnoreSelected false
499 # DaemonAddress "unix:/tmp/rrdcached.sock"
500 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
502 # CollectStatistics true
506 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
512 # Sensor "it8712-isa-0290/temperature-temp1"
513 # Sensor "it8712-isa-0290/fanspeed-fan3"
514 # Sensor "it8712-isa-0290/voltage-in8"
515 # IgnoreSelected false
519 # <Data "powerplus_voltge_input">
522 # Instance "input_line1"
523 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
529 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
531 # <Data "std_traffic">
534 # Instance "IF-MIB::ifDescr"
535 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
538 # <Host "some.switch.mydomain.org">
539 # Address "192.168.0.2"
541 # Community "community_string"
542 # Collect "std_traffic"
545 # <Host "some.server.mydomain.org">
546 # Address "192.168.0.42"
548 # Community "another_string"
549 # Collect "std_traffic" "hr_users"
551 # <Host "some.ups.mydomain.org">
552 # Address "192.168.0.3"
554 # Community "more_communities"
555 # Collect "powerplus_voltge_input"
561 # <File "/var/log/exim4/mainlog">
564 # Regex "S=([1-9][0-9]*)"
565 # DSType "CounterAdd"
570 # Regex "\\<R=local_user\\>"
571 # DSType "CounterInc"
573 # Instance "local_user"
579 # ListeningPorts false
591 # ForceUseProcfs false
593 # IgnoreSelected false
597 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
598 # SocketGroup "collectd"
603 # UUIDFile "/etc/uuid"
610 ##############################################################################
611 # Filter configuration #
612 #----------------------------------------------------------------------------#
613 # The following configures collectd's filtering mechanism. Before changing #
614 # anything in this section, please read the `FILTER CONFIGURATION' section #
615 # in the collectd.conf(5) manual page. #
616 ##############################################################################
618 # Load required matches:
619 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
620 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
621 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
623 # Load required targets:
624 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
625 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
626 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
628 #----------------------------------------------------------------------------#
629 # The following block demonstrates the default behavior if no filtering is #
630 # configured at all: All values will be sent to all available write plugins. #
631 #----------------------------------------------------------------------------#