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"
22 ##############################################################################
24 #----------------------------------------------------------------------------#
25 # Plugins which provide logging functions should be loaded first, so log #
26 # messages generated when loading or configuring other plugins can be #
28 ##############################################################################
30 @LOAD_PLUGIN_SYSLOG@LoadPlugin syslog
31 @LOAD_PLUGIN_LOGFILE@LoadPlugin logfile
34 # LogLevel @DEFAULT_LOG_LEVEL@
40 # LogLevel @DEFAULT_LOG_LEVEL@
43 ##############################################################################
44 # LoadPlugin section #
45 #----------------------------------------------------------------------------#
46 # Lines beginning with a single `#' belong to plugins which have been built #
47 # but are disabled by default. #
49 # Lines begnning with `##' belong to plugins which have not been built due #
50 # to missing dependencies or because they have been deactivated explicitly. #
51 ##############################################################################
53 #@BUILD_PLUGIN_APACHE_TRUE@LoadPlugin apache
54 #@BUILD_PLUGIN_APCUPS_TRUE@LoadPlugin apcups
55 #@BUILD_PLUGIN_APPLE_SENSORS_TRUE@LoadPlugin apple_sensors
56 #@BUILD_PLUGIN_ASCENT_TRUE@LoadPlugin ascent
57 #@BUILD_PLUGIN_BATTERY_TRUE@LoadPlugin battery
58 #@BUILD_PLUGIN_BIND_TRUE@LoadPlugin bind
59 #@BUILD_PLUGIN_CONNTRACK_TRUE@LoadPlugin conntrack
60 #@BUILD_PLUGIN_CONTEXTSWITCH_TRUE@LoadPlugin contextswitch
61 @BUILD_PLUGIN_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
62 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
63 @LOAD_PLUGIN_CSV@LoadPlugin csv
64 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
65 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
66 #@BUILD_PLUGIN_CURL_XML_TRUE@LoadPlugin curl_xml
67 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
68 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
69 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
70 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
71 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
72 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
73 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
74 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
75 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
76 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
77 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
78 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
79 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
80 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
81 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
82 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
83 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
84 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
85 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
86 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
87 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
88 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
89 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
90 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
91 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
92 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
93 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
94 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
95 @LOAD_PLUGIN_NETWORK@LoadPlugin network
96 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
97 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
98 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
99 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
100 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
101 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
102 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
103 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
104 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
105 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
106 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
107 #@BUILD_PLUGIN_PINBA_TRUE@LoadPlugin pinba
108 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
109 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
110 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
111 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
112 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
113 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
114 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
115 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
116 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
117 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
118 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
119 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
120 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
121 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
122 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
123 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
124 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
125 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
126 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
127 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
128 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
129 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
130 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
131 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
132 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
133 #@BUILD_PLUGIN_VARNISH_TRUE@LoadPlugin varnish
134 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
135 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
136 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
137 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
138 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
139 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
141 ##############################################################################
142 # Plugin configuration #
143 #----------------------------------------------------------------------------#
144 # In this section configuration stubs for each plugin are provided. A desc- #
145 # ription of those options is available in the collectd.conf(5) manual page. #
146 ##############################################################################
149 # URL "http://localhost/status?auto"
152 # CACert "/etc/ssl/ca.crt"
161 # URL "http://localhost/ascent/status/"
164 # CACert "/etc/ssl/ca.crt"
168 # URL "http://localhost:8053/"
173 # ZoneMaintStats true
174 # ResolverStats false
182 # Zone "127.in-addr.arpa/IN"
187 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
192 # <Page "stock_quotes">
193 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
196 # MeasureResponseTime false
198 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
199 # DSType "GaugeAverage"
207 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
208 # <URL "http://localhost:5984/_stats">
210 # <Key "httpd/requests/count">
211 # Type "http_requests"
214 # <Key "httpd_request_methods/*/count">
215 # Type "http_request_methods"
218 # <Key "httpd_status_codes/*/count">
219 # Type "http_response_codes"
222 ## Database status metrics:
223 # <URL "http://localhost:5984/_all_dbs">
225 # <Key "*/doc_count">
228 # <Key "*/doc_del_count">
231 # <Key "*/disk_size">
238 # <URL "http://localhost/stats.xml">
240 # Instance "some_instance"
242 # Password "thaiNg0I"
245 # CACert "/path/to/ca.crt"
247 # <XPath "table[@id=\"magic_level\"]/tr">
249 # #InstancePrefix "prefix-"
250 # InstanceFrom "td[1]"
251 # ValuesFrom "td[2]/span[@class=\"level\"]"
257 # <Query "num_of_customers">
258 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
261 # InstancesFrom "c_key"
262 # ValuesFrom "c_value"
265 # <Database "customers_db">
267 # DriverOption "host" "localhost"
268 # DriverOption "username" "collectd"
269 # DriverOption "password" "AeXohy0O"
270 # DriverOption "dbname" "custdb0"
271 # #SelectDB "custdb0"
272 # Query "num_of_customers"
279 # Device "192.168.0.2:/mnt/nfs"
282 # IgnoreSelected false
283 # ReportByDevice false
284 # ReportReserved false
289 # Disk "/^[hs]d[a-f][0-9]?$/"
290 # IgnoreSelected false
295 # IgnoreSource "192.168.0.1"
296 # SelectNumericQueryTypes true
300 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
301 # SocketGroup "collectd"
307 # Exec "user:group" "/path/to/exec"
308 # NotificationExec "user:group" "/path/to/exec"
312 # <Directory "/path/to/dir">
322 # MCReceiveFrom "239.2.11.71" "8649"
323 # <Metric "swap_total">
325 # TypeInstance "total"
328 # <Metric "swap_free">
330 # TypeInstance "free"
339 # #----------------------------------------------------------------#
340 # # `TranslateDevicename' enables backwards compatibility behavior #
341 # # and is enabled by default. Setting this option to `false' is #
342 # # highly recommended. #
343 # #----------------------------------------------------------------#
344 # TranslateDevicename false
349 # IgnoreSelected false
353 # Sensor "some_sensor"
354 # Sensor "another_one"
355 # IgnoreSelected false
356 # NotifySensorAdd false
357 # NotifySensorRemove true
358 # NotifySensorNotPresent false
369 # IgnoreSelected true
373 # JVMArg "-verbose:jni"
374 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
376 # LoadPlugin "org.collectd.java.Foobar"
377 # <Plugin "org.collectd.java.Foobar">
378 # # To be parsed by the plugin
383 # Connection "xen:///"
386 # BlockDevice "name:device"
387 # InterfaceDevice "name:device"
388 # IgnoreSelected false
389 # HostnameFormat name
390 # InterfaceFormat name
395 # IgnoreSelected false
398 # WatchAdd "node_octets"
399 # WatchAdd "node_rssi"
400 # WatchAdd "is_rx_acl"
401 # WatchAdd "is_scan_active"
410 # <Page "plugin_instance">
414 # Regex "(\\d+) bytes sent"
417 # Instance "type_instance"
429 # Host "database.serv.er"
436 # <Database db_name2>
438 # Socket "/var/run/mysql/mysqld.sock"
440 # SlaveNotifications true
445 # <Host "netapp1.example.com">
450 # Password "aef4Aebe"
457 # GetBufferCache true
469 # IgnoreSelectedIO false
471 # IgnoreSelectedOps false
472 # GetLatency "volume0"
473 # IgnoreSelectedLatency false
480 # IgnoreSelectedCapacity false
483 # IgnoreSelectedSnapshot false
498 # VerboseInterface "All"
499 # QDisc "eth0" "pfifo_fast-1:0"
500 # Class "ppp0" "htb-1:10"
501 # Filter "ppp0" "u32-1:0"
502 # IgnoreSelected false
505 @LOAD_PLUGIN_NETWORK@<Plugin network>
506 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
507 @LOAD_PLUGIN_NETWORK@ Server "239.192.74.66" "25826"
508 # Listen "ff18::efc0:4a42" "25826"
509 # Listen "239.192.74.66" "25826"
514 @LOAD_PLUGIN_NETWORK@</Plugin>
517 # URL "http://localhost/status?auto"
520 # CACert "/etc/ssl/ca.crt"
523 #<Plugin notify_desktop>
525 # WarningTimeout 5000
529 #<Plugin notify_email>
530 # SMTPServer "localhost"
532 # SMTPUser "my-username"
533 # SMTPPassword "my-password"
534 # From "collectd@main0server.com"
535 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
536 # Subject "Aaaaaa!! %s on %s!!!!!"
537 # Recipient "email1@domain1.net"
538 # Recipient "email2@domain2.com"
544 # ReverseLookups false
548 # UPS "upsname@hostname:port"
554 # CollectLinks "Summary"
555 # CollectRoutes "Summary"
556 # CollectTopology "Summary"
560 # Device "-s localhost:4304"
561 # Sensor "F10FCA000800"
562 # IgnoreSelected false
566 # StatusFile "/etc/openvpn/openvpn-status.log"
570 # <Query "out_of_stock">
571 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
574 # InstancesFrom "category"
578 # <Database "product_information">
582 # Query "out_of_stock"
587 # IncludeDir "/my/include/path"
588 # BaseName "Collectd::Plugins"
590 # LoadPlugin Monitorus
604 # Server "server name"
605 # Script "script name"
610 # Host "host.foo.bar"
614 # SourceAddress "1.2.3.4"
621 # Statement "SELECT magic FROM wizard WHERE host = $1;"
625 # InstancePrefix "magic"
629 # <Query rt36_tickets>
630 # Statement "SELECT COUNT(type) AS count, type \
631 # FROM (SELECT CASE \
632 # WHEN resolved = 'epoch' THEN 'open' \
633 # ELSE 'resolved' END AS type \
634 # FROM tickets) type \
638 # InstancePrefix "rt36_tickets"
639 # InstancesFrom "type"
649 # KRBSrvName "kerberos_service_name"
653 # Service "service_name"
654 # Query backend # predefined
660 # <Server "server_name">
662 # Collect "udp-answers" "udp-queries"
663 # Socket "/var/run/pdns.controlsocket"
665 # <Recursor "recursor_name">
666 # Collect "questions"
667 # Collect "cache-hits" "cache-misses"
668 # Socket "/var/run/pdns_recursor.controlsocket"
670 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
679 # IgnoreSelected false
683 # ModulePath "/path/to/your/python/modules"
689 # spam "wonderful" "lovely"
695 # Host "router.example.com"
698 # Password "dozaiTh4"
699 # CollectInterface true
700 # CollectRegistrationTable true
701 # CollectCPULoad true
709 # DaemonAddress "unix:/tmp/rrdcached.sock"
710 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
712 # CollectStatistics true
716 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
722 # Sensor "it8712-isa-0290/temperature-temp1"
723 # Sensor "it8712-isa-0290/fanspeed-fan3"
724 # Sensor "it8712-isa-0290/voltage-in8"
725 # IgnoreSelected false
729 # <Data "powerplus_voltge_input">
732 # Instance "input_line1"
733 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
739 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
741 # <Data "std_traffic">
744 # Instance "IF-MIB::ifDescr"
745 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
748 # <Host "some.switch.mydomain.org">
749 # Address "192.168.0.2"
751 # Community "community_string"
752 # Collect "std_traffic"
755 # <Host "some.server.mydomain.org">
756 # Address "192.168.0.42"
758 # Community "another_string"
759 # Collect "std_traffic" "hr_users"
761 # <Host "some.ups.mydomain.org">
762 # Address "192.168.0.3"
764 # Community "more_communities"
765 # Collect "powerplus_voltge_input"
771 # <Table "/proc/slabinfo">
772 # Instance "slabinfo"
776 # InstancePrefix "active_objs"
782 # InstancePrefix "objperslab"
790 # <File "/var/log/exim4/mainlog">
793 # Regex "S=([1-9][0-9]*)"
794 # DSType "CounterAdd"
799 # Regex "\\<R=local_user\\>"
800 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
801 # DSType "CounterInc"
803 # Instance "local_user"
809 # ListeningPorts false
821 # Device "/dev/ttyUSB0"
826 # ForceUseProcfs false
828 # IgnoreSelected false
831 #<Plugin tokyotyrant>
837 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
838 # SocketGroup "collectd"
843 # UUIDFile "/etc/uuid"
847 # This tag support an argument if you want to
848 # monitor the local instance just use </Instance>
849 # If you prefer defining another instance you can do
850 # so by using <Instance "myinstance">
855 # - cache hits for pass
859 # - backend connection : success
860 # - backend connection : not attempted
861 # - backend connection : too many
862 # - backend connection : failures
863 # - backend connection : reuses
864 # - backend connection : was closed
865 # - backend connection : recycles
866 # - backend connection : unused
867 # MonitorBackend true
870 # - client connections accepted
871 # - connection dropped
872 # - client requests received
873 # MonitorConnections true
878 # - SHM flushes due to overflow
879 # - SHM MTX contention
880 # - SHM cycles through buffer
884 # - Objects ESI parsed
890 # - fetch with Length
893 # - fetch had bad headers
894 # - fetch wanted close
895 # - fetch pre HTTP/1.1 closed
896 # - fetch zero length
901 # - HCB lookups without lock
902 # - HCB lookups with lock
907 # - SMA allocator requests
908 # - SMA outstanding allocations
909 # - SMA outstanding bytes
910 # - SMA bytes allocated
915 # - SMS allocator requests
916 # - SMS outstanding allocations
917 # - SMS outstanding bytes
918 # - SMS bytes allocated
923 # - allocator requests
924 # - outstanding allocations
936 # <URL "http://example.com/collectd-post">
938 # Password "weCh3ik0"
942 ##############################################################################
943 # Filter configuration #
944 #----------------------------------------------------------------------------#
945 # The following configures collectd's filtering mechanism. Before changing #
946 # anything in this section, please read the `FILTER CONFIGURATION' section #
947 # in the collectd.conf(5) manual page. #
948 ##############################################################################
950 # Load required matches:
951 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
952 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
953 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
954 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
955 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
957 # Load required targets:
958 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
959 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
960 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
961 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
963 #----------------------------------------------------------------------------#
964 # The following block demonstrates the default behavior if no filtering is #
965 # configured at all: All values will be sent to all available write plugins. #
966 #----------------------------------------------------------------------------#