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_LPAR_TRUE@LoadPlugin lpar
90 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
91 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
92 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
93 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
94 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
95 #@BUILD_PLUGIN_MODBUS_TRUE@LoadPlugin modbus
96 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
97 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
98 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
99 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
100 @LOAD_PLUGIN_NETWORK@LoadPlugin network
101 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
102 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
103 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
104 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
105 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
106 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
107 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
108 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
109 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
110 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
111 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
112 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
113 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
114 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
115 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
116 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
117 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
118 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
119 #@BUILD_PLUGIN_REDIS_TRUE@LoadPlugin redis
120 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
121 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
122 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
123 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
124 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
125 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
126 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
127 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
128 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
129 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
130 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
131 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
132 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
133 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
134 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
135 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
136 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
137 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
138 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
139 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
140 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
141 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
142 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
143 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
144 #@BUILD_PLUGIN_WRITE_REDIS_TRUE@LoadPlugin write_redis
145 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
146 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
148 ##############################################################################
149 # Plugin configuration #
150 #----------------------------------------------------------------------------#
151 # In this section configuration stubs for each plugin are provided. A desc- #
152 # ription of those options is available in the collectd.conf(5) manual page. #
153 ##############################################################################
162 # Exchange "amq.fanout"
163 # RoutingKey "collectd"
171 # URL "http://localhost/status?auto"
174 # CACert "/etc/ssl/ca.crt"
184 # URL "http://localhost/ascent/status/"
187 # CACert "/etc/ssl/ca.crt"
191 # URL "http://localhost:8053/"
196 # ZoneMaintStats true
197 # ResolverStats false
205 # Zone "127.in-addr.arpa/IN"
210 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
215 # <Page "stock_quotes">
216 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
219 # MeasureResponseTime false
221 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
222 # DSType "GaugeAverage"
230 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
231 # <URL "http://localhost:5984/_stats">
233 # <Key "httpd/requests/count">
234 # Type "http_requests"
237 # <Key "httpd_request_methods/*/count">
238 # Type "http_request_methods"
241 # <Key "httpd_status_codes/*/count">
242 # Type "http_response_codes"
245 ## Database status metrics:
246 # <URL "http://localhost:5984/_all_dbs">
248 # <Key "*/doc_count">
251 # <Key "*/doc_del_count">
254 # <Key "*/disk_size">
261 # <URL "http://localhost/stats.xml">
263 # Instance "some_instance"
265 # Password "thaiNg0I"
268 # CACert "/path/to/ca.crt"
270 # <XPath "table[@id=\"magic_level\"]/tr">
272 # #InstancePrefix "prefix-"
273 # InstanceFrom "td[1]"
274 # ValuesFrom "td[2]/span[@class=\"level\"]"
280 # <Query "num_of_customers">
281 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
284 # InstancesFrom "c_key"
285 # ValuesFrom "c_value"
288 # <Database "customers_db">
290 # DriverOption "host" "localhost"
291 # DriverOption "username" "collectd"
292 # DriverOption "password" "AeXohy0O"
293 # DriverOption "dbname" "custdb0"
294 # #SelectDB "custdb0"
295 # Query "num_of_customers"
302 # Device "192.168.0.2:/mnt/nfs"
305 # IgnoreSelected false
306 # ReportByDevice false
307 # ReportReserved false
312 # Disk "/^[hs]d[a-f][0-9]?$/"
313 # IgnoreSelected false
318 # IgnoreSource "192.168.0.1"
319 # SelectNumericQueryTypes true
323 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
324 # SocketGroup "collectd"
330 # Exec "user:group" "/path/to/exec"
331 # NotificationExec "user:group" "/path/to/exec"
335 # <Directory "/path/to/dir">
341 # IncludeHidden false
346 # MCReceiveFrom "239.2.11.71" "8649"
347 # <Metric "swap_total">
349 # TypeInstance "total"
352 # <Metric "swap_free">
354 # TypeInstance "free"
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 # ReportBySerial false
417 # IgnoreSelected false
420 # WatchAdd "node_octets"
421 # WatchAdd "node_rssi"
422 # WatchAdd "is_rx_acl"
423 # WatchAdd "is_scan_active"
432 # <Page "plugin_instance">
436 # Regex "(\\d+) bytes sent"
437 # ExcludeRegex "<lines to be excluded>"
440 # Instance "type_instance"
464 # Instance "foobar" # optional
465 # Collect "data_name"
472 # Host "database.serv.er"
479 # <Database db_name2>
481 # Socket "/var/run/mysql/mysqld.sock"
483 # SlaveNotifications true
488 # <Host "netapp1.example.com">
493 # Password "aef4Aebe"
500 # GetBufferCache true
512 # IgnoreSelectedIO false
514 # IgnoreSelectedOps false
515 # GetLatency "volume0"
516 # IgnoreSelectedLatency false
523 # IgnoreSelectedCapacity false
526 # IgnoreSelectedSnapshot false
541 # VerboseInterface "All"
542 # QDisc "eth0" "pfifo_fast-1:0"
543 # Class "ppp0" "htb-1:10"
544 # Filter "ppp0" "u32-1:0"
545 # IgnoreSelected false
548 @LOAD_PLUGIN_NETWORK@<Plugin network>
550 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
551 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
552 # SecurityLevel Encrypt
556 @LOAD_PLUGIN_NETWORK@ </Server>
560 # Listen "ff18::efc0:4a42" "25826"
561 # <Listen "239.192.74.66" "25826">
563 # AuthFile "/etc/collectd/passwd"
568 # # proxy setup (client and server as above):
571 # # statistics about the network plugin itself
574 # # "garbage collection"
576 @LOAD_PLUGIN_NETWORK@</Plugin>
579 # URL "http://localhost/status?auto"
582 # CACert "/etc/ssl/ca.crt"
585 #<Plugin notify_desktop>
587 # WarningTimeout 5000
591 #<Plugin notify_email>
592 # SMTPServer "localhost"
594 # SMTPUser "my-username"
595 # SMTPPassword "my-password"
596 # From "collectd@main0server.com"
597 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
598 # Subject "Aaaaaa!! %s on %s!!!!!"
599 # Recipient "email1@domain1.net"
600 # Recipient "email2@domain2.com"
606 # ReverseLookups false
610 # UPS "upsname@hostname:port"
616 # CollectLinks "Summary"
617 # CollectRoutes "Summary"
618 # CollectTopology "Summary"
622 # Device "-s localhost:4304"
623 # Sensor "F10FCA000800"
624 # IgnoreSelected false
628 # StatusFile "/etc/openvpn/openvpn-status.log"
629 # ImprovedNamingSchema false
630 # CollectCompression true
631 # CollectIndividualUsers true
632 # CollectUserCount false
636 # <Query "out_of_stock">
637 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
640 # InstancesFrom "category"
644 # <Database "product_information">
648 # Query "out_of_stock"
653 # IncludeDir "/my/include/path"
654 # BaseName "Collectd::Plugins"
656 # LoadPlugin Monitorus
670 # Server "server name"
671 # Script "script name"
676 # Host "host.foo.bar"
680 # SourceAddress "1.2.3.4"
687 # Statement "SELECT magic FROM wizard WHERE host = $1;"
691 # InstancePrefix "magic"
695 # <Query rt36_tickets>
696 # Statement "SELECT COUNT(type) AS count, type \
697 # FROM (SELECT CASE \
698 # WHEN resolved = 'epoch' THEN 'open' \
699 # ELSE 'resolved' END AS type \
700 # FROM tickets) type \
704 # InstancePrefix "rt36_tickets"
705 # InstancesFrom "type"
715 # KRBSrvName "kerberos_service_name"
720 # Service "service_name"
721 # Query backend # predefined
727 # <Server "server_name">
729 # Collect "udp-answers" "udp-queries"
730 # Socket "/var/run/pdns.controlsocket"
732 # <Recursor "recursor_name">
733 # Collect "questions"
734 # Collect "cache-hits" "cache-misses"
735 # Socket "/var/run/pdns_recursor.controlsocket"
737 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
746 # IgnoreSelected false
750 # ModulePath "/path/to/your/python/modules"
756 # spam "wonderful" "lovely"
762 # Host "redis.example.com"
770 # Host "router.example.com"
773 # Password "dozaiTh4"
774 # CollectInterface true
775 # CollectRegistrationTable true
776 # CollectCPULoad true
784 # DaemonAddress "unix:/tmp/rrdcached.sock"
785 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
787 # CollectStatistics true
791 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
797 # Sensor "it8712-isa-0290/temperature-temp1"
798 # Sensor "it8712-isa-0290/fanspeed-fan3"
799 # Sensor "it8712-isa-0290/voltage-in8"
800 # IgnoreSelected false
804 # <Data "powerplus_voltge_input">
807 # Instance "input_line1"
808 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
814 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
816 # <Data "std_traffic">
819 # Instance "IF-MIB::ifDescr"
820 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
823 # <Host "some.switch.mydomain.org">
824 # Address "192.168.0.2"
826 # Community "community_string"
827 # Collect "std_traffic"
830 # <Host "some.server.mydomain.org">
831 # Address "192.168.0.42"
833 # Community "another_string"
834 # Collect "std_traffic" "hr_users"
836 # <Host "some.ups.mydomain.org">
837 # Address "192.168.0.3"
839 # Community "more_communities"
840 # Collect "powerplus_voltge_input"
846 # ReportByDevice false
850 # <Table "/proc/slabinfo">
851 # Instance "slabinfo"
855 # InstancePrefix "active_objs"
861 # InstancePrefix "objperslab"
869 # <File "/var/log/exim4/mainlog">
872 # Regex "S=([1-9][0-9]*)"
873 # DSType "CounterAdd"
878 # Regex "\\<R=local_user\\>"
879 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
880 # DSType "CounterInc"
882 # Instance "local_user"
888 # ListeningPorts false
900 # Device "/dev/ttyUSB0"
905 # ForceUseProcfs false
907 # IgnoreSelected false
910 #<Plugin tokyotyrant>
916 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
917 # SocketGroup "collectd"
923 # UUIDFile "/etc/uuid"
927 # This tag support an argument if you want to
928 # monitor the local instance just use </Instance>
929 # If you prefer defining another instance you can do
930 # so by using <Instance "myinstance">
933 # CollectBackend true
934 # CollectConnections true
942 # CollectTotals false
943 # CollectWorkers false
952 # <URL "http://example.com/collectd-post">
954 # Password "weCh3ik0"
957 # CACert "/etc/ssl/ca.crt"
963 #<Plugin write_redis>
971 ##############################################################################
972 # Filter configuration #
973 #----------------------------------------------------------------------------#
974 # The following configures collectd's filtering mechanism. Before changing #
975 # anything in this section, please read the `FILTER CONFIGURATION' section #
976 # in the collectd.conf(5) manual page. #
977 ##############################################################################
979 # Load required matches:
980 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
981 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
982 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
983 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
984 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
986 # Load required targets:
987 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
988 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
989 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
990 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
992 #----------------------------------------------------------------------------#
993 # The following block demonstrates the default behavior if no filtering is #
994 # configured at all: All values will be sent to all available write plugins. #
995 #----------------------------------------------------------------------------#
1001 ##############################################################################
1002 # Threshold configuration #
1003 #----------------------------------------------------------------------------#
1004 # The following outlines how to configure collectd's threshold checking #
1005 # plugin. The plugin and possible configuration options are documented in #
1006 # the collectd-threshold(5) manual page. #
1007 ##############################################################################
1009 #@BUILD_PLUGIN_THRESHOLD_TRUE@LoadPlugin "threshold"
1010 #<Plugin "threshold">
1013 # WarningMax 1000.00
1015 # FailureMax 1200.00
1020 # <Plugin "interface">
1022 # <Type "if_octets">
1023 # FailureMax 10000000
1037 # WarningMin 100000000
1042 # DataSource "midterm"