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_APACHE_TRUE@LoadPlugin apache
56 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
57 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
58 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
59 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
60 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
61 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
62 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
63 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
64 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
65 @LOAD_PLUGIN_CSV@LoadPlugin csv
66 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
67 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
68 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
69 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
70 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
71 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
72 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
73 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
74 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
75 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
76 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
77 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
78 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
79 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
80 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
81 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
82 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
83 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
84 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
85 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
86 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
87 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
88 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
89 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
90 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
91 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
92 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
93 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
94 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
95 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
96 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
97 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
98 @LOAD_PLUGIN_NETWORK@LoadPlugin network
99 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
100 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
101 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
102 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
103 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
104 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
105 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
106 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
107 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
108 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
109 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
110 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
111 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
112 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
113 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
114 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
115 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
116 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
117 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
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_WRITE_REDIS_TRUE@LoadPlugin write_redis
143 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
144 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
146 ##############################################################################
147 # Plugin configuration #
148 #----------------------------------------------------------------------------#
149 # In this section configuration stubs for each plugin are provided. A desc- #
150 # ription of those options is available in the collectd.conf(5) manual page. #
151 ##############################################################################
155 # URL "http://localhost/status?auto"
158 # CACert "/etc/ssl/ca.crt"
168 # URL "http://localhost/ascent/status/"
171 # CACert "/etc/ssl/ca.crt"
175 # URL "http://localhost:8053/"
180 # ZoneMaintStats true
181 # ResolverStats false
189 # Zone "127.in-addr.arpa/IN"
194 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
199 # <Page "stock_quotes">
200 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
203 # MeasureResponseTime false
205 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
206 # DSType "GaugeAverage"
214 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
215 # <URL "http://localhost:5984/_stats">
217 # <Key "httpd/requests/count">
218 # Type "http_requests"
221 # <Key "httpd_request_methods/*/count">
222 # Type "http_request_methods"
225 # <Key "httpd_status_codes/*/count">
226 # Type "http_response_codes"
229 ## Database status metrics:
230 # <URL "http://localhost:5984/_all_dbs">
232 # <Key "*/doc_count">
235 # <Key "*/doc_del_count">
238 # <Key "*/disk_size">
245 # <URL "http://localhost/stats.xml">
247 # Instance "some_instance"
249 # Password "thaiNg0I"
252 # CACert "/path/to/ca.crt"
254 # <XPath "table[@id=\"magic_level\"]/tr">
256 # #InstancePrefix "prefix-"
257 # InstanceFrom "td[1]"
258 # ValuesFrom "td[2]/span[@class=\"level\"]"
264 # <Query "num_of_customers">
265 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
268 # InstancesFrom "c_key"
269 # ValuesFrom "c_value"
272 # <Database "customers_db">
274 # DriverOption "host" "localhost"
275 # DriverOption "username" "collectd"
276 # DriverOption "password" "AeXohy0O"
277 # DriverOption "dbname" "custdb0"
278 # #SelectDB "custdb0"
279 # Query "num_of_customers"
286 # Device "192.168.0.2:/mnt/nfs"
289 # IgnoreSelected false
290 # ReportByDevice false
291 # ReportReserved false
296 # Disk "/^[hs]d[a-f][0-9]?$/"
297 # IgnoreSelected false
302 # IgnoreSource "192.168.0.1"
303 # SelectNumericQueryTypes true
307 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
308 # SocketGroup "collectd"
314 # Exec "user:group" "/path/to/exec"
315 # NotificationExec "user:group" "/path/to/exec"
319 # <Directory "/path/to/dir">
325 # IncludeHidden false
330 # MCReceiveFrom "239.2.11.71" "8649"
331 # <Metric "swap_total">
333 # TypeInstance "total"
336 # <Metric "swap_free">
338 # TypeInstance "free"
347 # #----------------------------------------------------------------#
348 # # `TranslateDevicename' enables backwards compatibility behavior #
349 # # and is enabled by default. Setting this option to `false' is #
350 # # highly recommended. #
351 # #----------------------------------------------------------------#
352 # TranslateDevicename false
357 # IgnoreSelected false
361 # Sensor "some_sensor"
362 # Sensor "another_one"
363 # IgnoreSelected false
364 # NotifySensorAdd false
365 # NotifySensorRemove true
366 # NotifySensorNotPresent false
377 # IgnoreSelected true
381 # JVMArg "-verbose:jni"
382 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
384 # LoadPlugin "org.collectd.java.Foobar"
385 # <Plugin "org.collectd.java.Foobar">
386 # # To be parsed by the plugin
391 # Connection "xen:///"
394 # BlockDevice "name:device"
395 # InterfaceDevice "name:device"
396 # IgnoreSelected false
397 # HostnameFormat name
398 # InterfaceFormat name
403 # IgnoreSelected false
406 # WatchAdd "node_octets"
407 # WatchAdd "node_rssi"
408 # WatchAdd "is_rx_acl"
409 # WatchAdd "is_scan_active"
418 # <Page "plugin_instance">
422 # Regex "(\\d+) bytes sent"
423 # ExcludeRegex "<lines to be excluded>"
426 # Instance "type_instance"
450 # Instance "foobar" # optional
451 # Collect "data_name"
458 # Host "database.serv.er"
465 # <Database db_name2>
467 # Socket "/var/run/mysql/mysqld.sock"
469 # SlaveNotifications true
474 # <Host "netapp1.example.com">
479 # Password "aef4Aebe"
486 # GetBufferCache true
498 # IgnoreSelectedIO false
500 # IgnoreSelectedOps false
501 # GetLatency "volume0"
502 # IgnoreSelectedLatency false
509 # IgnoreSelectedCapacity false
512 # IgnoreSelectedSnapshot false
527 # VerboseInterface "All"
528 # QDisc "eth0" "pfifo_fast-1:0"
529 # Class "ppp0" "htb-1:10"
530 # Filter "ppp0" "u32-1:0"
531 # IgnoreSelected false
534 @LOAD_PLUGIN_NETWORK@<Plugin network>
536 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
537 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
538 # SecurityLevel Encrypt
542 @LOAD_PLUGIN_NETWORK@ </Server>
546 # Listen "ff18::efc0:4a42" "25826"
547 # <Listen "239.192.74.66" "25826">
549 # AuthFile "/etc/collectd/passwd"
554 # # proxy setup (client and server as above):
557 # # statistics about the network plugin itself
560 # # "garbage collection"
562 @LOAD_PLUGIN_NETWORK@</Plugin>
565 # URL "http://localhost/status?auto"
568 # CACert "/etc/ssl/ca.crt"
571 #<Plugin notify_desktop>
573 # WarningTimeout 5000
577 #<Plugin notify_email>
578 # SMTPServer "localhost"
580 # SMTPUser "my-username"
581 # SMTPPassword "my-password"
582 # From "collectd@main0server.com"
583 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
584 # Subject "Aaaaaa!! %s on %s!!!!!"
585 # Recipient "email1@domain1.net"
586 # Recipient "email2@domain2.com"
592 # ReverseLookups false
596 # UPS "upsname@hostname:port"
602 # CollectLinks "Summary"
603 # CollectRoutes "Summary"
604 # CollectTopology "Summary"
608 # Device "-s localhost:4304"
609 # Sensor "F10FCA000800"
610 # IgnoreSelected false
614 # StatusFile "/etc/openvpn/openvpn-status.log"
615 # ImprovedNamingSchema false
616 # CollectCompression true
617 # CollectIndividualUsers true
618 # CollectUserCount false
622 # <Query "out_of_stock">
623 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
626 # InstancesFrom "category"
630 # <Database "product_information">
634 # Query "out_of_stock"
639 # IncludeDir "/my/include/path"
640 # BaseName "Collectd::Plugins"
642 # LoadPlugin Monitorus
656 # Server "server name"
657 # Script "script name"
662 # Host "host.foo.bar"
666 # SourceAddress "1.2.3.4"
673 # Statement "SELECT magic FROM wizard WHERE host = $1;"
677 # InstancePrefix "magic"
681 # <Query rt36_tickets>
682 # Statement "SELECT COUNT(type) AS count, type \
683 # FROM (SELECT CASE \
684 # WHEN resolved = 'epoch' THEN 'open' \
685 # ELSE 'resolved' END AS type \
686 # FROM tickets) type \
690 # InstancePrefix "rt36_tickets"
691 # InstancesFrom "type"
701 # KRBSrvName "kerberos_service_name"
706 # Service "service_name"
707 # Query backend # predefined
713 # <Server "server_name">
715 # Collect "udp-answers" "udp-queries"
716 # Socket "/var/run/pdns.controlsocket"
718 # <Recursor "recursor_name">
719 # Collect "questions"
720 # Collect "cache-hits" "cache-misses"
721 # Socket "/var/run/pdns_recursor.controlsocket"
723 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
732 # IgnoreSelected false
736 # ModulePath "/path/to/your/python/modules"
742 # spam "wonderful" "lovely"
748 # Host "redis.example.com"
756 # Host "router.example.com"
759 # Password "dozaiTh4"
760 # CollectInterface true
761 # CollectRegistrationTable true
762 # CollectCPULoad true
770 # DaemonAddress "unix:/tmp/rrdcached.sock"
771 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
773 # CollectStatistics true
777 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
783 # Sensor "it8712-isa-0290/temperature-temp1"
784 # Sensor "it8712-isa-0290/fanspeed-fan3"
785 # Sensor "it8712-isa-0290/voltage-in8"
786 # IgnoreSelected false
790 # <Data "powerplus_voltge_input">
793 # Instance "input_line1"
794 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
800 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
802 # <Data "std_traffic">
805 # Instance "IF-MIB::ifDescr"
806 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
809 # <Host "some.switch.mydomain.org">
810 # Address "192.168.0.2"
812 # Community "community_string"
813 # Collect "std_traffic"
816 # <Host "some.server.mydomain.org">
817 # Address "192.168.0.42"
819 # Community "another_string"
820 # Collect "std_traffic" "hr_users"
822 # <Host "some.ups.mydomain.org">
823 # Address "192.168.0.3"
825 # Community "more_communities"
826 # Collect "powerplus_voltge_input"
832 # <Table "/proc/slabinfo">
833 # Instance "slabinfo"
837 # InstancePrefix "active_objs"
843 # InstancePrefix "objperslab"
851 # <File "/var/log/exim4/mainlog">
854 # Regex "S=([1-9][0-9]*)"
855 # DSType "CounterAdd"
860 # Regex "\\<R=local_user\\>"
861 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
862 # DSType "CounterInc"
864 # Instance "local_user"
870 # ListeningPorts false
882 # Device "/dev/ttyUSB0"
887 # ForceUseProcfs false
889 # IgnoreSelected false
892 #<Plugin tokyotyrant>
898 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
899 # SocketGroup "collectd"
904 # UUIDFile "/etc/uuid"
908 # This tag support an argument if you want to
909 # monitor the local instance just use </Instance>
910 # If you prefer defining another instance you can do
911 # so by using <Instance "myinstance">
914 # CollectBackend true
915 # CollectConnections true
923 # CollectTotals false
924 # CollectWorkers false
933 # <URL "http://example.com/collectd-post">
935 # Password "weCh3ik0"
938 # CACert "/etc/ssl/ca.crt"
944 #<Plugin write_redis>
952 ##############################################################################
953 # Filter configuration #
954 #----------------------------------------------------------------------------#
955 # The following configures collectd's filtering mechanism. Before changing #
956 # anything in this section, please read the `FILTER CONFIGURATION' section #
957 # in the collectd.conf(5) manual page. #
958 ##############################################################################
960 # Load required matches:
961 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
962 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
963 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
964 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
965 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
967 # Load required targets:
968 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
969 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
970 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
971 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
973 #----------------------------------------------------------------------------#
974 # The following block demonstrates the default behavior if no filtering is #
975 # configured at all: All values will be sent to all available write plugins. #
976 #----------------------------------------------------------------------------#