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_ROUTEROS_TRUE@LoadPlugin routeros
118 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
119 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
120 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
121 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
122 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
123 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
124 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
125 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
126 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
127 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
128 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
129 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
130 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
131 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
132 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
133 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
134 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
135 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
136 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
137 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
138 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
139 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
140 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
141 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
142 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
144 ##############################################################################
145 # Plugin configuration #
146 #----------------------------------------------------------------------------#
147 # In this section configuration stubs for each plugin are provided. A desc- #
148 # ription of those options is available in the collectd.conf(5) manual page. #
149 ##############################################################################
152 # URL "http://localhost/status?auto"
155 # CACert "/etc/ssl/ca.crt"
164 # URL "http://localhost/ascent/status/"
167 # CACert "/etc/ssl/ca.crt"
171 # URL "http://localhost:8053/"
176 # ZoneMaintStats true
177 # ResolverStats false
185 # Zone "127.in-addr.arpa/IN"
190 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
195 # <Page "stock_quotes">
196 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
199 # MeasureResponseTime false
201 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
202 # DSType "GaugeAverage"
210 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
211 # <URL "http://localhost:5984/_stats">
213 # <Key "httpd/requests/count">
214 # Type "http_requests"
217 # <Key "httpd_request_methods/*/count">
218 # Type "http_request_methods"
221 # <Key "httpd_status_codes/*/count">
222 # Type "http_response_codes"
225 ## Database status metrics:
226 # <URL "http://localhost:5984/_all_dbs">
228 # <Key "*/doc_count">
231 # <Key "*/doc_del_count">
234 # <Key "*/disk_size">
241 # <URL "http://localhost/stats.xml">
243 # Instance "some_instance"
245 # Password "thaiNg0I"
248 # CACert "/path/to/ca.crt"
250 # <XPath "table[@id=\"magic_level\"]/tr">
252 # #InstancePrefix "prefix-"
253 # InstanceFrom "td[1]"
254 # ValuesFrom "td[2]/span[@class=\"level\"]"
260 # <Query "num_of_customers">
261 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
264 # InstancesFrom "c_key"
265 # ValuesFrom "c_value"
268 # <Database "customers_db">
270 # DriverOption "host" "localhost"
271 # DriverOption "username" "collectd"
272 # DriverOption "password" "AeXohy0O"
273 # DriverOption "dbname" "custdb0"
274 # #SelectDB "custdb0"
275 # Query "num_of_customers"
282 # Device "192.168.0.2:/mnt/nfs"
285 # IgnoreSelected false
286 # ReportByDevice false
287 # ReportReserved false
292 # Disk "/^[hs]d[a-f][0-9]?$/"
293 # IgnoreSelected false
298 # IgnoreSource "192.168.0.1"
299 # SelectNumericQueryTypes true
303 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
304 # SocketGroup "collectd"
310 # Exec "user:group" "/path/to/exec"
311 # NotificationExec "user:group" "/path/to/exec"
315 # <Directory "/path/to/dir">
321 # IncludeHidden false
326 # MCReceiveFrom "239.2.11.71" "8649"
327 # <Metric "swap_total">
329 # TypeInstance "total"
332 # <Metric "swap_free">
334 # TypeInstance "free"
343 # #----------------------------------------------------------------#
344 # # `TranslateDevicename' enables backwards compatibility behavior #
345 # # and is enabled by default. Setting this option to `false' is #
346 # # highly recommended. #
347 # #----------------------------------------------------------------#
348 # TranslateDevicename false
353 # IgnoreSelected false
357 # Sensor "some_sensor"
358 # Sensor "another_one"
359 # IgnoreSelected false
360 # NotifySensorAdd false
361 # NotifySensorRemove true
362 # NotifySensorNotPresent false
373 # IgnoreSelected true
377 # JVMArg "-verbose:jni"
378 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
380 # LoadPlugin "org.collectd.java.Foobar"
381 # <Plugin "org.collectd.java.Foobar">
382 # # To be parsed by the plugin
387 # Connection "xen:///"
390 # BlockDevice "name:device"
391 # InterfaceDevice "name:device"
392 # IgnoreSelected false
393 # HostnameFormat name
394 # InterfaceFormat name
399 # IgnoreSelected false
402 # WatchAdd "node_octets"
403 # WatchAdd "node_rssi"
404 # WatchAdd "is_rx_acl"
405 # WatchAdd "is_scan_active"
414 # <Page "plugin_instance">
418 # Regex "(\\d+) bytes sent"
419 # ExcludeRegex "<lines to be excluded>"
422 # Instance "type_instance"
446 # Instance "foobar" # optional
447 # Collect "data_name"
454 # Host "database.serv.er"
461 # <Database db_name2>
463 # Socket "/var/run/mysql/mysqld.sock"
465 # SlaveNotifications true
470 # <Host "netapp1.example.com">
475 # Password "aef4Aebe"
482 # GetBufferCache true
494 # IgnoreSelectedIO false
496 # IgnoreSelectedOps false
497 # GetLatency "volume0"
498 # IgnoreSelectedLatency false
505 # IgnoreSelectedCapacity false
508 # IgnoreSelectedSnapshot false
523 # VerboseInterface "All"
524 # QDisc "eth0" "pfifo_fast-1:0"
525 # Class "ppp0" "htb-1:10"
526 # Filter "ppp0" "u32-1:0"
527 # IgnoreSelected false
530 @LOAD_PLUGIN_NETWORK@<Plugin network>
532 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
533 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
534 # SecurityLevel Encrypt
538 @LOAD_PLUGIN_NETWORK@ </Server>
542 # Listen "ff18::efc0:4a42" "25826"
543 # <Listen "239.192.74.66" "25826">
545 # AuthFile "/etc/collectd/passwd"
550 # # proxy setup (client and server as above):
553 # # statistics about the network plugin itself
556 # # "garbage collection"
558 @LOAD_PLUGIN_NETWORK@</Plugin>
561 # URL "http://localhost/status?auto"
564 # CACert "/etc/ssl/ca.crt"
567 #<Plugin notify_desktop>
569 # WarningTimeout 5000
573 #<Plugin notify_email>
574 # SMTPServer "localhost"
576 # SMTPUser "my-username"
577 # SMTPPassword "my-password"
578 # From "collectd@main0server.com"
579 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
580 # Subject "Aaaaaa!! %s on %s!!!!!"
581 # Recipient "email1@domain1.net"
582 # Recipient "email2@domain2.com"
588 # ReverseLookups false
592 # UPS "upsname@hostname:port"
598 # CollectLinks "Summary"
599 # CollectRoutes "Summary"
600 # CollectTopology "Summary"
604 # Device "-s localhost:4304"
605 # Sensor "F10FCA000800"
606 # IgnoreSelected false
610 # StatusFile "/etc/openvpn/openvpn-status.log"
611 # ImprovedNamingSchema false
612 # CollectCompression true
613 # CollectIndividualUsers true
614 # CollectUserCount false
618 # <Query "out_of_stock">
619 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
622 # InstancesFrom "category"
626 # <Database "product_information">
630 # Query "out_of_stock"
635 # IncludeDir "/my/include/path"
636 # BaseName "Collectd::Plugins"
638 # LoadPlugin Monitorus
652 # Server "server name"
653 # Script "script name"
658 # Host "host.foo.bar"
662 # SourceAddress "1.2.3.4"
669 # Statement "SELECT magic FROM wizard WHERE host = $1;"
673 # InstancePrefix "magic"
677 # <Query rt36_tickets>
678 # Statement "SELECT COUNT(type) AS count, type \
679 # FROM (SELECT CASE \
680 # WHEN resolved = 'epoch' THEN 'open' \
681 # ELSE 'resolved' END AS type \
682 # FROM tickets) type \
686 # InstancePrefix "rt36_tickets"
687 # InstancesFrom "type"
697 # KRBSrvName "kerberos_service_name"
702 # Service "service_name"
703 # Query backend # predefined
709 # <Server "server_name">
711 # Collect "udp-answers" "udp-queries"
712 # Socket "/var/run/pdns.controlsocket"
714 # <Recursor "recursor_name">
715 # Collect "questions"
716 # Collect "cache-hits" "cache-misses"
717 # Socket "/var/run/pdns_recursor.controlsocket"
719 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
728 # IgnoreSelected false
732 # ModulePath "/path/to/your/python/modules"
738 # spam "wonderful" "lovely"
744 # Host "router.example.com"
747 # Password "dozaiTh4"
748 # CollectInterface true
749 # CollectRegistrationTable true
750 # CollectCPULoad true
758 # DaemonAddress "unix:/tmp/rrdcached.sock"
759 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
761 # CollectStatistics true
765 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
771 # Sensor "it8712-isa-0290/temperature-temp1"
772 # Sensor "it8712-isa-0290/fanspeed-fan3"
773 # Sensor "it8712-isa-0290/voltage-in8"
774 # IgnoreSelected false
778 # <Data "powerplus_voltge_input">
781 # Instance "input_line1"
782 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
788 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
790 # <Data "std_traffic">
793 # Instance "IF-MIB::ifDescr"
794 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
797 # <Host "some.switch.mydomain.org">
798 # Address "192.168.0.2"
800 # Community "community_string"
801 # Collect "std_traffic"
804 # <Host "some.server.mydomain.org">
805 # Address "192.168.0.42"
807 # Community "another_string"
808 # Collect "std_traffic" "hr_users"
810 # <Host "some.ups.mydomain.org">
811 # Address "192.168.0.3"
813 # Community "more_communities"
814 # Collect "powerplus_voltge_input"
820 # <Table "/proc/slabinfo">
821 # Instance "slabinfo"
825 # InstancePrefix "active_objs"
831 # InstancePrefix "objperslab"
839 # <File "/var/log/exim4/mainlog">
842 # Regex "S=([1-9][0-9]*)"
843 # DSType "CounterAdd"
848 # Regex "\\<R=local_user\\>"
849 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
850 # DSType "CounterInc"
852 # Instance "local_user"
858 # ListeningPorts false
870 # Device "/dev/ttyUSB0"
875 # ForceUseProcfs false
877 # IgnoreSelected false
880 #<Plugin tokyotyrant>
886 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
887 # SocketGroup "collectd"
892 # UUIDFile "/etc/uuid"
896 # This tag support an argument if you want to
897 # monitor the local instance just use </Instance>
898 # If you prefer defining another instance you can do
899 # so by using <Instance "myinstance">
902 # CollectBackend true
903 # CollectConnections true
911 # CollectTotals false
912 # CollectWorkers false
921 # <URL "http://example.com/collectd-post">
923 # Password "weCh3ik0"
926 # CACert "/etc/ssl/ca.crt"
932 ##############################################################################
933 # Filter configuration #
934 #----------------------------------------------------------------------------#
935 # The following configures collectd's filtering mechanism. Before changing #
936 # anything in this section, please read the `FILTER CONFIGURATION' section #
937 # in the collectd.conf(5) manual page. #
938 ##############################################################################
940 # Load required matches:
941 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
942 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
943 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
944 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
945 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
947 # Load required targets:
948 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
949 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
950 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
951 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
953 #----------------------------------------------------------------------------#
954 # The following block demonstrates the default behavior if no filtering is #
955 # configured at all: All values will be sent to all available write plugins. #
956 #----------------------------------------------------------------------------#