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"
23 ##############################################################################
25 #----------------------------------------------------------------------------#
26 # Plugins which provide logging functions should be loaded first, so log #
27 # messages generated when loading or configuring other plugins can be #
29 ##############################################################################
31 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
32 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
35 # LogLevel @DEFAULT_LOG_LEVEL@
42 # LogLevel @DEFAULT_LOG_LEVEL@
45 ##############################################################################
46 # LoadPlugin section #
47 #----------------------------------------------------------------------------#
48 # Lines beginning with a single `#' belong to plugins which have been built #
49 # but are disabled by default. #
51 # Lines begnning with `##' belong to plugins which have not been built due #
52 # to missing dependencies or because they have been deactivated explicitly. #
53 ##############################################################################
55 #@BUILD_PLUGIN_AMQP_TRUE@LoadPlugin amqp
56 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
57 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
58 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
59 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
60 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
61 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
62 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
63 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
64 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
65 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
66 @LOAD_PLUGIN_CSV@LoadPlugin csv
67 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
68 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
69 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
70 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
71 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
72 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
73 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
74 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
75 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
76 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
77 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
78 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
79 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
80 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
81 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
82 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
83 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
84 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
85 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
86 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
87 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
88 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
89 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
90 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
91 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
92 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
93 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
94 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
95 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
96 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
97 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
98 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
99 @LOAD_PLUGIN_NETWORK@LoadPlugin network
100 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
101 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
102 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
103 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
104 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
105 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
106 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
107 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
108 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
109 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
110 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
111 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
112 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
113 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
114 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
115 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
116 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
117 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
118 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
119 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
120 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
121 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
122 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
123 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
124 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
125 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
126 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
127 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
128 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
129 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
130 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
131 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
132 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
133 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
134 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
135 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
136 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
137 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
138 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
139 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
140 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
141 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
142 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
143 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
145 ##############################################################################
146 # Plugin configuration #
147 #----------------------------------------------------------------------------#
148 # In this section configuration stubs for each plugin are provided. A desc- #
149 # ription of those options is available in the collectd.conf(5) manual page. #
150 ##############################################################################
157 # Password "aiwaeZ0y"
158 # Exchange "amq.direct"
159 # RoutingKey "routing_key"
165 # URL "http://localhost/status?auto"
168 # CACert "/etc/ssl/ca.crt"
177 # URL "http://localhost/ascent/status/"
180 # CACert "/etc/ssl/ca.crt"
184 # URL "http://localhost:8053/"
189 # ZoneMaintStats true
190 # ResolverStats false
198 # Zone "127.in-addr.arpa/IN"
203 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
208 # <Page "stock_quotes">
209 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
212 # MeasureResponseTime false
214 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
215 # DSType "GaugeAverage"
223 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
224 # <URL "http://localhost:5984/_stats">
226 # <Key "httpd/requests/count">
227 # Type "http_requests"
230 # <Key "httpd_request_methods/*/count">
231 # Type "http_request_methods"
234 # <Key "httpd_status_codes/*/count">
235 # Type "http_response_codes"
238 ## Database status metrics:
239 # <URL "http://localhost:5984/_all_dbs">
241 # <Key "*/doc_count">
244 # <Key "*/doc_del_count">
247 # <Key "*/disk_size">
254 # <URL "http://localhost/stats.xml">
256 # Instance "some_instance"
258 # Password "thaiNg0I"
261 # CACert "/path/to/ca.crt"
263 # <XPath "table[@id=\"magic_level\"]/tr">
265 # #InstancePrefix "prefix-"
266 # InstanceFrom "td[1]"
267 # ValuesFrom "td[2]/span[@class=\"level\"]"
273 # <Query "num_of_customers">
274 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
277 # InstancesFrom "c_key"
278 # ValuesFrom "c_value"
281 # <Database "customers_db">
283 # DriverOption "host" "localhost"
284 # DriverOption "username" "collectd"
285 # DriverOption "password" "AeXohy0O"
286 # DriverOption "dbname" "custdb0"
287 # #SelectDB "custdb0"
288 # Query "num_of_customers"
295 # Device "192.168.0.2:/mnt/nfs"
298 # IgnoreSelected false
299 # ReportByDevice false
300 # ReportReserved false
305 # Disk "/^[hs]d[a-f][0-9]?$/"
306 # IgnoreSelected false
311 # IgnoreSource "192.168.0.1"
312 # SelectNumericQueryTypes true
316 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
317 # SocketGroup "collectd"
323 # Exec "user:group" "/path/to/exec"
324 # NotificationExec "user:group" "/path/to/exec"
328 # <Directory "/path/to/dir">
334 # IncludeHidden false
339 # MCReceiveFrom "239.2.11.71" "8649"
340 # <Metric "swap_total">
342 # TypeInstance "total"
345 # <Metric "swap_free">
347 # TypeInstance "free"
356 # #----------------------------------------------------------------#
357 # # `TranslateDevicename' enables backwards compatibility behavior #
358 # # and is enabled by default. Setting this option to `false' is #
359 # # highly recommended. #
360 # #----------------------------------------------------------------#
361 # TranslateDevicename false
366 # IgnoreSelected false
370 # Sensor "some_sensor"
371 # Sensor "another_one"
372 # IgnoreSelected false
373 # NotifySensorAdd false
374 # NotifySensorRemove true
375 # NotifySensorNotPresent false
386 # IgnoreSelected true
390 # JVMArg "-verbose:jni"
391 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
393 # LoadPlugin "org.collectd.java.Foobar"
394 # <Plugin "org.collectd.java.Foobar">
395 # # To be parsed by the plugin
400 # Connection "xen:///"
403 # BlockDevice "name:device"
404 # InterfaceDevice "name:device"
405 # IgnoreSelected false
406 # HostnameFormat name
407 # InterfaceFormat name
412 # IgnoreSelected false
415 # WatchAdd "node_octets"
416 # WatchAdd "node_rssi"
417 # WatchAdd "is_rx_acl"
418 # WatchAdd "is_scan_active"
427 # <Page "plugin_instance">
431 # Regex "(\\d+) bytes sent"
432 # ExcludeRegex "<lines to be excluded>"
435 # Instance "type_instance"
459 # Instance "foobar" # optional
460 # Collect "data_name"
467 # Host "database.serv.er"
474 # <Database db_name2>
476 # Socket "/var/run/mysql/mysqld.sock"
478 # SlaveNotifications true
483 # <Host "netapp1.example.com">
488 # Password "aef4Aebe"
495 # GetBufferCache true
507 # IgnoreSelectedIO false
509 # IgnoreSelectedOps false
510 # GetLatency "volume0"
511 # IgnoreSelectedLatency false
518 # IgnoreSelectedCapacity false
521 # IgnoreSelectedSnapshot false
536 # VerboseInterface "All"
537 # QDisc "eth0" "pfifo_fast-1:0"
538 # Class "ppp0" "htb-1:10"
539 # Filter "ppp0" "u32-1:0"
540 # IgnoreSelected false
543 @LOAD_PLUGIN_NETWORK@<Plugin network>
545 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
546 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
547 # SecurityLevel Encrypt
551 @LOAD_PLUGIN_NETWORK@ </Server>
555 # Listen "ff18::efc0:4a42" "25826"
556 # <Listen "239.192.74.66" "25826">
558 # AuthFile "/etc/collectd/passwd"
563 # # proxy setup (client and server as above):
566 # # statistics about the network plugin itself
569 # # "garbage collection"
571 @LOAD_PLUGIN_NETWORK@</Plugin>
574 # URL "http://localhost/status?auto"
577 # CACert "/etc/ssl/ca.crt"
580 #<Plugin notify_desktop>
582 # WarningTimeout 5000
586 #<Plugin notify_email>
587 # SMTPServer "localhost"
589 # SMTPUser "my-username"
590 # SMTPPassword "my-password"
591 # From "collectd@main0server.com"
592 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
593 # Subject "Aaaaaa!! %s on %s!!!!!"
594 # Recipient "email1@domain1.net"
595 # Recipient "email2@domain2.com"
601 # ReverseLookups false
605 # UPS "upsname@hostname:port"
611 # CollectLinks "Summary"
612 # CollectRoutes "Summary"
613 # CollectTopology "Summary"
617 # Device "-s localhost:4304"
618 # Sensor "F10FCA000800"
619 # IgnoreSelected false
623 # StatusFile "/etc/openvpn/openvpn-status.log"
624 # ImprovedNamingSchema false
625 # CollectCompression true
626 # CollectIndividualUsers true
627 # CollectUserCount false
631 # <Query "out_of_stock">
632 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
635 # InstancesFrom "category"
639 # <Database "product_information">
643 # Query "out_of_stock"
648 # IncludeDir "/my/include/path"
649 # BaseName "Collectd::Plugins"
651 # LoadPlugin Monitorus
665 # Server "server name"
666 # Script "script name"
671 # Host "host.foo.bar"
675 # SourceAddress "1.2.3.4"
682 # Statement "SELECT magic FROM wizard WHERE host = $1;"
686 # InstancePrefix "magic"
690 # <Query rt36_tickets>
691 # Statement "SELECT COUNT(type) AS count, type \
692 # FROM (SELECT CASE \
693 # WHEN resolved = 'epoch' THEN 'open' \
694 # ELSE 'resolved' END AS type \
695 # FROM tickets) type \
699 # InstancePrefix "rt36_tickets"
700 # InstancesFrom "type"
710 # KRBSrvName "kerberos_service_name"
715 # Service "service_name"
716 # Query backend # predefined
722 # <Server "server_name">
724 # Collect "udp-answers" "udp-queries"
725 # Socket "/var/run/pdns.controlsocket"
727 # <Recursor "recursor_name">
728 # Collect "questions"
729 # Collect "cache-hits" "cache-misses"
730 # Socket "/var/run/pdns_recursor.controlsocket"
732 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
741 # IgnoreSelected false
745 # ModulePath "/path/to/your/python/modules"
751 # spam "wonderful" "lovely"
757 # Host "router.example.com"
760 # Password "dozaiTh4"
761 # CollectInterface true
762 # CollectRegistrationTable true
763 # CollectCPULoad true
771 # DaemonAddress "unix:/tmp/rrdcached.sock"
772 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
774 # CollectStatistics true
778 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
784 # Sensor "it8712-isa-0290/temperature-temp1"
785 # Sensor "it8712-isa-0290/fanspeed-fan3"
786 # Sensor "it8712-isa-0290/voltage-in8"
787 # IgnoreSelected false
791 # <Data "powerplus_voltge_input">
794 # Instance "input_line1"
795 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
801 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
803 # <Data "std_traffic">
806 # Instance "IF-MIB::ifDescr"
807 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
810 # <Host "some.switch.mydomain.org">
811 # Address "192.168.0.2"
813 # Community "community_string"
814 # Collect "std_traffic"
817 # <Host "some.server.mydomain.org">
818 # Address "192.168.0.42"
820 # Community "another_string"
821 # Collect "std_traffic" "hr_users"
823 # <Host "some.ups.mydomain.org">
824 # Address "192.168.0.3"
826 # Community "more_communities"
827 # Collect "powerplus_voltge_input"
833 # <Table "/proc/slabinfo">
834 # Instance "slabinfo"
838 # InstancePrefix "active_objs"
844 # InstancePrefix "objperslab"
852 # <File "/var/log/exim4/mainlog">
855 # Regex "S=([1-9][0-9]*)"
856 # DSType "CounterAdd"
861 # Regex "\\<R=local_user\\>"
862 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
863 # DSType "CounterInc"
865 # Instance "local_user"
871 # ListeningPorts false
883 # Device "/dev/ttyUSB0"
888 # ForceUseProcfs false
890 # IgnoreSelected false
893 #<Plugin tokyotyrant>
899 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
900 # SocketGroup "collectd"
905 # UUIDFile "/etc/uuid"
909 # This tag support an argument if you want to
910 # monitor the local instance just use </Instance>
911 # If you prefer defining another instance you can do
912 # so by using <Instance "myinstance">
915 # CollectBackend true
916 # CollectConnections true
924 # CollectTotals false
925 # CollectWorkers false
934 # <URL "http://example.com/collectd-post">
936 # Password "weCh3ik0"
939 # CACert "/etc/ssl/ca.crt"
945 ##############################################################################
946 # Filter configuration #
947 #----------------------------------------------------------------------------#
948 # The following configures collectd's filtering mechanism. Before changing #
949 # anything in this section, please read the `FILTER CONFIGURATION' section #
950 # in the collectd.conf(5) manual page. #
951 ##############################################################################
953 # Load required matches:
954 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
955 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
956 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
957 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
958 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
960 # Load required targets:
961 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
962 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
963 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
964 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
966 #----------------------------------------------------------------------------#
967 # The following block demonstrates the default behavior if no filtering is #
968 # configured at all: All values will be sent to all available write plugins. #
969 #----------------------------------------------------------------------------#