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_CONNTRACK_TRUE@LoadPlugin conntrack
60 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
61 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
62 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
63 @LOAD_PLUGIN_CSV@LoadPlugin csv
64 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
65 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
66 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
67 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
68 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
69 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
70 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
71 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
72 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
73 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
74 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
75 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
76 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
77 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
78 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
79 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
80 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
81 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
82 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
83 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
84 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
85 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
86 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
87 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
88 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
89 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
90 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
91 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
92 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
93 @LOAD_PLUGIN_NETWORK@LoadPlugin network
94 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
95 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
96 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
97 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
98 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
99 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
100 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
101 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
102 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
103 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
104 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
105 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
106 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
107 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
108 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
109 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
110 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
111 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
112 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
113 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
114 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
115 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
116 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
117 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
118 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
119 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
120 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
121 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
122 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
123 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
124 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
125 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
126 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
127 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
128 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
129 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
130 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
131 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
132 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
133 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
135 ##############################################################################
136 # Plugin configuration #
137 #----------------------------------------------------------------------------#
138 # In this section configuration stubs for each plugin are provided. A desc- #
139 # ription of those options is available in the collectd.conf(5) manual page. #
140 ##############################################################################
143 # URL "http://localhost/status?auto"
146 # CACert "/etc/ssl/ca.crt"
155 # URL "http://localhost/ascent/status/"
158 # CACert "/etc/ssl/ca.crt"
162 # URL "http://localhost:8053/"
167 # ZoneMaintStats true
168 # ResolverStats false
176 # Zone "127.in-addr.arpa/IN"
181 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
186 # <Page "stock_quotes">
187 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
191 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
192 # DSType "GaugeAverage"
200 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
201 # <URL "http://localhost:5984/_stats">
203 # <Key "httpd/requests/count">
204 # Type "http_requests"
207 # <Key "httpd_request_methods/*/count">
208 # Type "http_request_methods"
211 # <Key "httpd_status_codes/*/count">
212 # Type "http_response_codes"
215 ## Database status metrics:
216 # <URL "http://localhost:5984/_all_dbs">
218 # <Key "*/doc_count">
221 # <Key "*/doc_del_count">
224 # <Key "*/disk_size">
231 # <Query "num_of_customers">
232 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
235 # InstancesFrom "c_key"
236 # ValuesFrom "c_value"
239 # <Database "customers_db">
241 # DriverOption "host" "localhost"
242 # DriverOption "username" "collectd"
243 # DriverOption "password" "AeXohy0O"
244 # DriverOption "dbname" "custdb0"
245 # #SelectDB "custdb0"
246 # Query "num_of_customers"
253 # Device "192.168.0.2:/mnt/nfs"
256 # IgnoreSelected false
257 # ReportByDevice false
258 # ReportReserved false
263 # Disk "/^[hs]d[a-f][0-9]?$/"
264 # IgnoreSelected false
269 # IgnoreSource "192.168.0.1"
270 # SelectNumericQueryTypes true
274 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
275 # SocketGroup "collectd"
281 # Exec "user:group" "/path/to/exec"
282 # NotificationExec "user:group" "/path/to/exec"
286 # <Directory "/path/to/dir">
296 # MCReceiveFrom "239.2.11.71" "8649"
297 # <Metric "swap_total">
299 # TypeInstance "total"
302 # <Metric "swap_free">
304 # TypeInstance "free"
313 # #----------------------------------------------------------------#
314 # # `TranslateDevicename' enables backwards compatibility behavior #
315 # # and is enabled by default. Setting this option to `false' is #
316 # # highly recommended. #
317 # #----------------------------------------------------------------#
318 # TranslateDevicename false
323 # IgnoreSelected false
327 # Sensor "some_sensor"
328 # Sensor "another_one"
329 # IgnoreSelected false
330 # NotifySensorAdd false
331 # NotifySensorRemove true
332 # NotifySensorNotPresent false
343 # IgnoreSelected true
347 # JVMArg "-verbose:jni"
348 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java"
350 # LoadPlugin "org.collectd.java.Foobar"
351 # <Plugin "org.collectd.java.Foobar">
352 # # To be parsed by the plugin
357 # Connection "xen:///"
360 # BlockDevice "name:device"
361 # InterfaceDevice "name:device"
362 # IgnoreSelected false
363 # HostnameFormat name
368 # IgnoreSelected false
371 # WatchAdd "node_octets"
372 # WatchAdd "node_rssi"
373 # WatchAdd "is_rx_acl"
374 # WatchAdd "is_scan_active"
383 # <Page "plugin_instance">
387 # Regex "(\\d+) bytes sent"
390 # Instance "type_instance"
402 # Host "database.serv.er"
409 # <Database db_name2>
411 # Socket "/var/run/mysql/mysqld.sock"
413 # SlaveNotifications true
419 # VerboseInterface "All"
420 # QDisc "eth0" "pfifo_fast-1:0"
421 # Class "ppp0" "htb-1:10"
422 # Filter "ppp0" "u32-1:0"
423 # IgnoreSelected false
426 @LOAD_PLUGIN_NETWORK@<Plugin network>
427 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
428 @LOAD_PLUGIN_NETWORK@ Server "239.192.74.66" "25826"
429 # Listen "ff18::efc0:4a42" "25826"
430 # Listen "239.192.74.66" "25826"
435 @LOAD_PLUGIN_NETWORK@</Plugin>
438 # URL "http://localhost/status?auto"
441 # CACert "/etc/ssl/ca.crt"
444 #<Plugin notify_desktop>
446 # WarningTimeout 5000
450 #<Plugin notify_email>
451 # SMTPServer "localhost"
453 # SMTPUser "my-username"
454 # SMTPPassword "my-password"
455 # From "collectd@main0server.com"
456 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
457 # Subject "Aaaaaa!! %s on %s!!!!!"
458 # Recipient "email1@domain1.net"
459 # Recipient "email2@domain2.com"
465 # ReverseLookups false
469 # UPS "upsname@hostname:port"
475 # CollectLinks "Summary"
476 # CollectRoutes "Summary"
477 # CollectTopology "Summary"
481 # Device "-s localhost:4304"
482 # Sensor "F10FCA000800"
483 # IgnoreSelected false
487 # StatusFile "/etc/openvpn/openvpn-status.log"
491 # <Query "out_of_stock">
492 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
495 # InstancesFrom "category"
499 # <Database "product_information">
503 # Query "out_of_stock"
508 # IncludeDir "/my/include/path"
509 # BaseName "Collectd::Plugin"
520 # Host "host.foo.bar"
526 # Statement "SELECT magic FROM wizard WHERE host = $1;"
530 # InstancePrefix "magic"
534 # <Query rt36_tickets>
535 # Statement "SELECT COUNT(type) AS count, type \
536 # FROM (SELECT CASE \
537 # WHEN resolved = 'epoch' THEN 'open' \
538 # ELSE 'resolved' END AS type \
539 # FROM tickets) type \
543 # InstancePrefix "rt36_tickets"
544 # InstancesFrom "type"
554 # KRBSrvName "kerberos_service_name"
558 # Service "service_name"
559 # Query backend # predefined
565 # <Server "server_name">
567 # Collect "udp-answers" "udp-queries"
568 # Socket "/var/run/pdns.controlsocket"
570 # <Recursor "recursor_name">
571 # Collect "questions"
572 # Collect "cache-hits" "cache-misses"
573 # Socket "/var/run/pdns_recursor.controlsocket"
575 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
584 # IgnoreSelected false
588 # DaemonAddress "unix:/tmp/rrdcached.sock"
589 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
591 # CollectStatistics true
595 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
601 # Sensor "it8712-isa-0290/temperature-temp1"
602 # Sensor "it8712-isa-0290/fanspeed-fan3"
603 # Sensor "it8712-isa-0290/voltage-in8"
604 # IgnoreSelected false
608 # <Data "powerplus_voltge_input">
611 # Instance "input_line1"
612 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
618 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
620 # <Data "std_traffic">
623 # Instance "IF-MIB::ifDescr"
624 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
627 # <Host "some.switch.mydomain.org">
628 # Address "192.168.0.2"
630 # Community "community_string"
631 # Collect "std_traffic"
634 # <Host "some.server.mydomain.org">
635 # Address "192.168.0.42"
637 # Community "another_string"
638 # Collect "std_traffic" "hr_users"
640 # <Host "some.ups.mydomain.org">
641 # Address "192.168.0.3"
643 # Community "more_communities"
644 # Collect "powerplus_voltge_input"
650 # <Table "/proc/slabinfo">
651 # Instance "slabinfo"
655 # InstancePrefix "active_objs"
661 # InstancePrefix "objperslab"
669 # <File "/var/log/exim4/mainlog">
672 # Regex "S=([1-9][0-9]*)"
673 # DSType "CounterAdd"
678 # Regex "\\<R=local_user\\>"
679 # DSType "CounterInc"
681 # Instance "local_user"
687 # ListeningPorts false
699 # Device "/dev/ttyUSB0"
704 # ForceUseProcfs false
706 # IgnoreSelected false
709 #<Plugin tokyotyrant>
715 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
716 # SocketGroup "collectd"
721 # UUIDFile "/etc/uuid"
729 # <URL "http://example.com/collectd-post">
731 # Password "weCh3ik0"
735 ##############################################################################
736 # Filter configuration #
737 #----------------------------------------------------------------------------#
738 # The following configures collectd's filtering mechanism. Before changing #
739 # anything in this section, please read the `FILTER CONFIGURATION' section #
740 # in the collectd.conf(5) manual page. #
741 ##############################################################################
743 # Load required matches:
744 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
745 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
746 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
747 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
749 # Load required targets:
750 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
751 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
752 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
754 #----------------------------------------------------------------------------#
755 # The following block demonstrates the default behavior if no filtering is #
756 # configured at all: All values will be sent to all available write plugins. #
757 #----------------------------------------------------------------------------#