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_REDIS_TRUE@LoadPlugin redis
119 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
120 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
121 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
122 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
123 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
124 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
125 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
126 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
127 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
128 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
129 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
130 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
131 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
132 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
133 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
134 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
135 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
136 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
137 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
138 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
139 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
140 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
141 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
142 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
143 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
144 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
145 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
147 ##############################################################################
148 # Plugin configuration #
149 #----------------------------------------------------------------------------#
150 # In this section configuration stubs for each plugin are provided. A desc- #
151 # ription of those options is available in the collectd.conf(5) manual page. #
152 ##############################################################################
161 # Exchange "amq.fanout"
162 # RoutingKey "collectd"
170 # URL "http://localhost/status?auto"
173 # CACert "/etc/ssl/ca.crt"
183 # URL "http://localhost/ascent/status/"
186 # CACert "/etc/ssl/ca.crt"
190 # URL "http://localhost:8053/"
195 # ZoneMaintStats true
196 # ResolverStats false
204 # Zone "127.in-addr.arpa/IN"
209 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
214 # <Page "stock_quotes">
215 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
218 # MeasureResponseTime false
220 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
221 # DSType "GaugeAverage"
229 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
230 # <URL "http://localhost:5984/_stats">
232 # <Key "httpd/requests/count">
233 # Type "http_requests"
236 # <Key "httpd_request_methods/*/count">
237 # Type "http_request_methods"
240 # <Key "httpd_status_codes/*/count">
241 # Type "http_response_codes"
244 ## Database status metrics:
245 # <URL "http://localhost:5984/_all_dbs">
247 # <Key "*/doc_count">
250 # <Key "*/doc_del_count">
253 # <Key "*/disk_size">
260 # <URL "http://localhost/stats.xml">
262 # Instance "some_instance"
264 # Password "thaiNg0I"
267 # CACert "/path/to/ca.crt"
269 # <XPath "table[@id=\"magic_level\"]/tr">
271 # #InstancePrefix "prefix-"
272 # InstanceFrom "td[1]"
273 # ValuesFrom "td[2]/span[@class=\"level\"]"
279 # <Query "num_of_customers">
280 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
283 # InstancesFrom "c_key"
284 # ValuesFrom "c_value"
287 # <Database "customers_db">
289 # DriverOption "host" "localhost"
290 # DriverOption "username" "collectd"
291 # DriverOption "password" "AeXohy0O"
292 # DriverOption "dbname" "custdb0"
293 # #SelectDB "custdb0"
294 # Query "num_of_customers"
301 # Device "192.168.0.2:/mnt/nfs"
304 # IgnoreSelected false
305 # ReportByDevice false
306 # ReportReserved false
311 # Disk "/^[hs]d[a-f][0-9]?$/"
312 # IgnoreSelected false
317 # IgnoreSource "192.168.0.1"
318 # SelectNumericQueryTypes true
322 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
323 # SocketGroup "collectd"
329 # Exec "user:group" "/path/to/exec"
330 # NotificationExec "user:group" "/path/to/exec"
334 # <Directory "/path/to/dir">
340 # IncludeHidden false
345 # MCReceiveFrom "239.2.11.71" "8649"
346 # <Metric "swap_total">
348 # TypeInstance "total"
351 # <Metric "swap_free">
353 # TypeInstance "free"
362 # #----------------------------------------------------------------#
363 # # `TranslateDevicename' enables backwards compatibility behavior #
364 # # and is enabled by default. Setting this option to `false' is #
365 # # highly recommended. #
366 # #----------------------------------------------------------------#
367 # TranslateDevicename false
372 # IgnoreSelected false
376 # Sensor "some_sensor"
377 # Sensor "another_one"
378 # IgnoreSelected false
379 # NotifySensorAdd false
380 # NotifySensorRemove true
381 # NotifySensorNotPresent false
392 # IgnoreSelected true
396 # JVMArg "-verbose:jni"
397 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
399 # LoadPlugin "org.collectd.java.Foobar"
400 # <Plugin "org.collectd.java.Foobar">
401 # # To be parsed by the plugin
406 # Connection "xen:///"
409 # BlockDevice "name:device"
410 # InterfaceDevice "name:device"
411 # IgnoreSelected false
412 # HostnameFormat name
413 # InterfaceFormat name
418 # IgnoreSelected false
421 # WatchAdd "node_octets"
422 # WatchAdd "node_rssi"
423 # WatchAdd "is_rx_acl"
424 # WatchAdd "is_scan_active"
433 # <Page "plugin_instance">
437 # Regex "(\\d+) bytes sent"
438 # ExcludeRegex "<lines to be excluded>"
441 # Instance "type_instance"
465 # Instance "foobar" # optional
466 # Collect "data_name"
473 # Host "database.serv.er"
480 # <Database db_name2>
482 # Socket "/var/run/mysql/mysqld.sock"
484 # SlaveNotifications true
489 # <Host "netapp1.example.com">
494 # Password "aef4Aebe"
501 # GetBufferCache true
513 # IgnoreSelectedIO false
515 # IgnoreSelectedOps false
516 # GetLatency "volume0"
517 # IgnoreSelectedLatency false
524 # IgnoreSelectedCapacity false
527 # IgnoreSelectedSnapshot false
542 # VerboseInterface "All"
543 # QDisc "eth0" "pfifo_fast-1:0"
544 # Class "ppp0" "htb-1:10"
545 # Filter "ppp0" "u32-1:0"
546 # IgnoreSelected false
549 @LOAD_PLUGIN_NETWORK@<Plugin network>
551 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
552 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
553 # SecurityLevel Encrypt
557 @LOAD_PLUGIN_NETWORK@ </Server>
561 # Listen "ff18::efc0:4a42" "25826"
562 # <Listen "239.192.74.66" "25826">
564 # AuthFile "/etc/collectd/passwd"
569 # # proxy setup (client and server as above):
572 # # statistics about the network plugin itself
575 # # "garbage collection"
577 @LOAD_PLUGIN_NETWORK@</Plugin>
580 # URL "http://localhost/status?auto"
583 # CACert "/etc/ssl/ca.crt"
586 #<Plugin notify_desktop>
588 # WarningTimeout 5000
592 #<Plugin notify_email>
593 # SMTPServer "localhost"
595 # SMTPUser "my-username"
596 # SMTPPassword "my-password"
597 # From "collectd@main0server.com"
598 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
599 # Subject "Aaaaaa!! %s on %s!!!!!"
600 # Recipient "email1@domain1.net"
601 # Recipient "email2@domain2.com"
607 # ReverseLookups false
611 # UPS "upsname@hostname:port"
617 # CollectLinks "Summary"
618 # CollectRoutes "Summary"
619 # CollectTopology "Summary"
623 # Device "-s localhost:4304"
624 # Sensor "F10FCA000800"
625 # IgnoreSelected false
629 # StatusFile "/etc/openvpn/openvpn-status.log"
630 # ImprovedNamingSchema false
631 # CollectCompression true
632 # CollectIndividualUsers true
633 # CollectUserCount false
637 # <Query "out_of_stock">
638 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
641 # InstancesFrom "category"
645 # <Database "product_information">
649 # Query "out_of_stock"
654 # IncludeDir "/my/include/path"
655 # BaseName "Collectd::Plugins"
657 # LoadPlugin Monitorus
671 # Server "server name"
672 # Script "script name"
677 # Host "host.foo.bar"
681 # SourceAddress "1.2.3.4"
688 # Statement "SELECT magic FROM wizard WHERE host = $1;"
692 # InstancePrefix "magic"
696 # <Query rt36_tickets>
697 # Statement "SELECT COUNT(type) AS count, type \
698 # FROM (SELECT CASE \
699 # WHEN resolved = 'epoch' THEN 'open' \
700 # ELSE 'resolved' END AS type \
701 # FROM tickets) type \
705 # InstancePrefix "rt36_tickets"
706 # InstancesFrom "type"
716 # KRBSrvName "kerberos_service_name"
721 # Service "service_name"
722 # Query backend # predefined
728 # <Server "server_name">
730 # Collect "udp-answers" "udp-queries"
731 # Socket "/var/run/pdns.controlsocket"
733 # <Recursor "recursor_name">
734 # Collect "questions"
735 # Collect "cache-hits" "cache-misses"
736 # Socket "/var/run/pdns_recursor.controlsocket"
738 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
747 # IgnoreSelected false
751 # ModulePath "/path/to/your/python/modules"
757 # spam "wonderful" "lovely"
763 # Host "redis.example.com"
771 # Host "router.example.com"
774 # Password "dozaiTh4"
775 # CollectInterface true
776 # CollectRegistrationTable true
777 # CollectCPULoad true
785 # DaemonAddress "unix:/tmp/rrdcached.sock"
786 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
788 # CollectStatistics true
792 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
798 # Sensor "it8712-isa-0290/temperature-temp1"
799 # Sensor "it8712-isa-0290/fanspeed-fan3"
800 # Sensor "it8712-isa-0290/voltage-in8"
801 # IgnoreSelected false
805 # <Data "powerplus_voltge_input">
808 # Instance "input_line1"
809 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
815 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
817 # <Data "std_traffic">
820 # Instance "IF-MIB::ifDescr"
821 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
824 # <Host "some.switch.mydomain.org">
825 # Address "192.168.0.2"
827 # Community "community_string"
828 # Collect "std_traffic"
831 # <Host "some.server.mydomain.org">
832 # Address "192.168.0.42"
834 # Community "another_string"
835 # Collect "std_traffic" "hr_users"
837 # <Host "some.ups.mydomain.org">
838 # Address "192.168.0.3"
840 # Community "more_communities"
841 # Collect "powerplus_voltge_input"
847 # <Table "/proc/slabinfo">
848 # Instance "slabinfo"
852 # InstancePrefix "active_objs"
858 # InstancePrefix "objperslab"
866 # <File "/var/log/exim4/mainlog">
869 # Regex "S=([1-9][0-9]*)"
870 # DSType "CounterAdd"
875 # Regex "\\<R=local_user\\>"
876 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
877 # DSType "CounterInc"
879 # Instance "local_user"
885 # ListeningPorts false
897 # Device "/dev/ttyUSB0"
902 # ForceUseProcfs false
904 # IgnoreSelected false
907 #<Plugin tokyotyrant>
913 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
914 # SocketGroup "collectd"
920 # UUIDFile "/etc/uuid"
924 # This tag support an argument if you want to
925 # monitor the local instance just use </Instance>
926 # If you prefer defining another instance you can do
927 # so by using <Instance "myinstance">
930 # CollectBackend true
931 # CollectConnections true
939 # CollectTotals false
940 # CollectWorkers false
949 # <URL "http://example.com/collectd-post">
951 # Password "weCh3ik0"
954 # CACert "/etc/ssl/ca.crt"
960 #<Plugin write_redis>
968 ##############################################################################
969 # Filter configuration #
970 #----------------------------------------------------------------------------#
971 # The following configures collectd's filtering mechanism. Before changing #
972 # anything in this section, please read the `FILTER CONFIGURATION' section #
973 # in the collectd.conf(5) manual page. #
974 ##############################################################################
976 # Load required matches:
977 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
978 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
979 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
980 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
981 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
983 # Load required targets:
984 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
985 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
986 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
987 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
989 #----------------------------------------------------------------------------#
990 # The following block demonstrates the default behavior if no filtering is #
991 # configured at all: All values will be sent to all available write plugins. #
992 #----------------------------------------------------------------------------#