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_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 ##############################################################################
153 # URL "http://localhost/status?auto"
156 # CACert "/etc/ssl/ca.crt"
165 # URL "http://localhost/ascent/status/"
168 # CACert "/etc/ssl/ca.crt"
172 # URL "http://localhost:8053/"
177 # ZoneMaintStats true
178 # ResolverStats false
186 # Zone "127.in-addr.arpa/IN"
191 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
196 # <Page "stock_quotes">
197 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
200 # MeasureResponseTime false
202 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
203 # DSType "GaugeAverage"
211 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
212 # <URL "http://localhost:5984/_stats">
214 # <Key "httpd/requests/count">
215 # Type "http_requests"
218 # <Key "httpd_request_methods/*/count">
219 # Type "http_request_methods"
222 # <Key "httpd_status_codes/*/count">
223 # Type "http_response_codes"
226 ## Database status metrics:
227 # <URL "http://localhost:5984/_all_dbs">
229 # <Key "*/doc_count">
232 # <Key "*/doc_del_count">
235 # <Key "*/disk_size">
242 # <URL "http://localhost/stats.xml">
244 # Instance "some_instance"
246 # Password "thaiNg0I"
249 # CACert "/path/to/ca.crt"
251 # <XPath "table[@id=\"magic_level\"]/tr">
253 # #InstancePrefix "prefix-"
254 # InstanceFrom "td[1]"
255 # ValuesFrom "td[2]/span[@class=\"level\"]"
261 # <Query "num_of_customers">
262 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
265 # InstancesFrom "c_key"
266 # ValuesFrom "c_value"
269 # <Database "customers_db">
271 # DriverOption "host" "localhost"
272 # DriverOption "username" "collectd"
273 # DriverOption "password" "AeXohy0O"
274 # DriverOption "dbname" "custdb0"
275 # #SelectDB "custdb0"
276 # Query "num_of_customers"
283 # Device "192.168.0.2:/mnt/nfs"
286 # IgnoreSelected false
287 # ReportByDevice false
288 # ReportReserved false
293 # Disk "/^[hs]d[a-f][0-9]?$/"
294 # IgnoreSelected false
299 # IgnoreSource "192.168.0.1"
300 # SelectNumericQueryTypes true
304 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
305 # SocketGroup "collectd"
311 # Exec "user:group" "/path/to/exec"
312 # NotificationExec "user:group" "/path/to/exec"
316 # <Directory "/path/to/dir">
322 # IncludeHidden false
327 # MCReceiveFrom "239.2.11.71" "8649"
328 # <Metric "swap_total">
330 # TypeInstance "total"
333 # <Metric "swap_free">
335 # TypeInstance "free"
344 # #----------------------------------------------------------------#
345 # # `TranslateDevicename' enables backwards compatibility behavior #
346 # # and is enabled by default. Setting this option to `false' is #
347 # # highly recommended. #
348 # #----------------------------------------------------------------#
349 # TranslateDevicename false
354 # IgnoreSelected false
358 # Sensor "some_sensor"
359 # Sensor "another_one"
360 # IgnoreSelected false
361 # NotifySensorAdd false
362 # NotifySensorRemove true
363 # NotifySensorNotPresent false
374 # IgnoreSelected true
378 # JVMArg "-verbose:jni"
379 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
381 # LoadPlugin "org.collectd.java.Foobar"
382 # <Plugin "org.collectd.java.Foobar">
383 # # To be parsed by the plugin
388 # Connection "xen:///"
391 # BlockDevice "name:device"
392 # InterfaceDevice "name:device"
393 # IgnoreSelected false
394 # HostnameFormat name
395 # InterfaceFormat name
400 # IgnoreSelected false
403 # WatchAdd "node_octets"
404 # WatchAdd "node_rssi"
405 # WatchAdd "is_rx_acl"
406 # WatchAdd "is_scan_active"
415 # <Page "plugin_instance">
419 # Regex "(\\d+) bytes sent"
420 # ExcludeRegex "<lines to be excluded>"
423 # Instance "type_instance"
447 # Instance "foobar" # optional
448 # Collect "data_name"
455 # Host "database.serv.er"
462 # <Database db_name2>
464 # Socket "/var/run/mysql/mysqld.sock"
466 # SlaveNotifications true
471 # <Host "netapp1.example.com">
476 # Password "aef4Aebe"
483 # GetBufferCache true
495 # IgnoreSelectedIO false
497 # IgnoreSelectedOps false
498 # GetLatency "volume0"
499 # IgnoreSelectedLatency false
506 # IgnoreSelectedCapacity false
509 # IgnoreSelectedSnapshot false
524 # VerboseInterface "All"
525 # QDisc "eth0" "pfifo_fast-1:0"
526 # Class "ppp0" "htb-1:10"
527 # Filter "ppp0" "u32-1:0"
528 # IgnoreSelected false
531 @LOAD_PLUGIN_NETWORK@<Plugin network>
533 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
534 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
535 # SecurityLevel Encrypt
539 @LOAD_PLUGIN_NETWORK@ </Server>
543 # Listen "ff18::efc0:4a42" "25826"
544 # <Listen "239.192.74.66" "25826">
546 # AuthFile "/etc/collectd/passwd"
551 # # proxy setup (client and server as above):
554 # # statistics about the network plugin itself
557 # # "garbage collection"
559 @LOAD_PLUGIN_NETWORK@</Plugin>
562 # URL "http://localhost/status?auto"
565 # CACert "/etc/ssl/ca.crt"
568 #<Plugin notify_desktop>
570 # WarningTimeout 5000
574 #<Plugin notify_email>
575 # SMTPServer "localhost"
577 # SMTPUser "my-username"
578 # SMTPPassword "my-password"
579 # From "collectd@main0server.com"
580 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
581 # Subject "Aaaaaa!! %s on %s!!!!!"
582 # Recipient "email1@domain1.net"
583 # Recipient "email2@domain2.com"
589 # ReverseLookups false
593 # UPS "upsname@hostname:port"
599 # CollectLinks "Summary"
600 # CollectRoutes "Summary"
601 # CollectTopology "Summary"
605 # Device "-s localhost:4304"
606 # Sensor "F10FCA000800"
607 # IgnoreSelected false
611 # StatusFile "/etc/openvpn/openvpn-status.log"
612 # ImprovedNamingSchema false
613 # CollectCompression true
614 # CollectIndividualUsers true
615 # CollectUserCount false
619 # <Query "out_of_stock">
620 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
623 # InstancesFrom "category"
627 # <Database "product_information">
631 # Query "out_of_stock"
636 # IncludeDir "/my/include/path"
637 # BaseName "Collectd::Plugins"
639 # LoadPlugin Monitorus
653 # Server "server name"
654 # Script "script name"
659 # Host "host.foo.bar"
663 # SourceAddress "1.2.3.4"
670 # Statement "SELECT magic FROM wizard WHERE host = $1;"
674 # InstancePrefix "magic"
678 # <Query rt36_tickets>
679 # Statement "SELECT COUNT(type) AS count, type \
680 # FROM (SELECT CASE \
681 # WHEN resolved = 'epoch' THEN 'open' \
682 # ELSE 'resolved' END AS type \
683 # FROM tickets) type \
687 # InstancePrefix "rt36_tickets"
688 # InstancesFrom "type"
698 # KRBSrvName "kerberos_service_name"
703 # Service "service_name"
704 # Query backend # predefined
710 # <Server "server_name">
712 # Collect "udp-answers" "udp-queries"
713 # Socket "/var/run/pdns.controlsocket"
715 # <Recursor "recursor_name">
716 # Collect "questions"
717 # Collect "cache-hits" "cache-misses"
718 # Socket "/var/run/pdns_recursor.controlsocket"
720 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
729 # IgnoreSelected false
733 # ModulePath "/path/to/your/python/modules"
739 # spam "wonderful" "lovely"
745 # Host "redis.example.com"
753 # Host "router.example.com"
756 # Password "dozaiTh4"
757 # CollectInterface true
758 # CollectRegistrationTable true
759 # CollectCPULoad true
767 # DaemonAddress "unix:/tmp/rrdcached.sock"
768 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
770 # CollectStatistics true
774 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
780 # Sensor "it8712-isa-0290/temperature-temp1"
781 # Sensor "it8712-isa-0290/fanspeed-fan3"
782 # Sensor "it8712-isa-0290/voltage-in8"
783 # IgnoreSelected false
787 # <Data "powerplus_voltge_input">
790 # Instance "input_line1"
791 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
797 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
799 # <Data "std_traffic">
802 # Instance "IF-MIB::ifDescr"
803 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
806 # <Host "some.switch.mydomain.org">
807 # Address "192.168.0.2"
809 # Community "community_string"
810 # Collect "std_traffic"
813 # <Host "some.server.mydomain.org">
814 # Address "192.168.0.42"
816 # Community "another_string"
817 # Collect "std_traffic" "hr_users"
819 # <Host "some.ups.mydomain.org">
820 # Address "192.168.0.3"
822 # Community "more_communities"
823 # Collect "powerplus_voltge_input"
829 # <Table "/proc/slabinfo">
830 # Instance "slabinfo"
834 # InstancePrefix "active_objs"
840 # InstancePrefix "objperslab"
848 # <File "/var/log/exim4/mainlog">
851 # Regex "S=([1-9][0-9]*)"
852 # DSType "CounterAdd"
857 # Regex "\\<R=local_user\\>"
858 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
859 # DSType "CounterInc"
861 # Instance "local_user"
867 # ListeningPorts false
879 # Device "/dev/ttyUSB0"
884 # ForceUseProcfs false
886 # IgnoreSelected false
889 #<Plugin tokyotyrant>
895 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
896 # SocketGroup "collectd"
901 # UUIDFile "/etc/uuid"
905 # This tag support an argument if you want to
906 # monitor the local instance just use </Instance>
907 # If you prefer defining another instance you can do
908 # so by using <Instance "myinstance">
911 # CollectBackend true
912 # CollectConnections true
920 # CollectTotals false
921 # CollectWorkers false
930 # <URL "http://example.com/collectd-post">
932 # Password "weCh3ik0"
935 # CACert "/etc/ssl/ca.crt"
941 ##############################################################################
942 # Filter configuration #
943 #----------------------------------------------------------------------------#
944 # The following configures collectd's filtering mechanism. Before changing #
945 # anything in this section, please read the `FILTER CONFIGURATION' section #
946 # in the collectd.conf(5) manual page. #
947 ##############################################################################
949 # Load required matches:
950 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
951 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
952 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
953 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
954 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
956 # Load required targets:
957 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
958 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
959 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
960 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
962 #----------------------------------------------------------------------------#
963 # The following block demonstrates the default behavior if no filtering is #
964 # configured at all: All values will be sent to all available write plugins. #
965 #----------------------------------------------------------------------------#