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_PERL_TRUE@ Globals true
111 #@BUILD_PLUGIN_PERL_TRUE@</LoadPlugin>
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_PYTHON_TRUE@ Globals true
120 #@BUILD_PLUGIN_PYTHON_TRUE@</LoadPlugin>
121 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
122 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
123 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
124 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
125 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
126 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
127 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
128 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
129 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
130 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
131 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
132 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
133 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
134 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
135 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
136 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
137 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
138 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
139 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
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_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 ##############################################################################
155 # URL "http://localhost/status?auto"
158 # CACert "/etc/ssl/ca.crt"
167 # URL "http://localhost/ascent/status/"
170 # CACert "/etc/ssl/ca.crt"
174 # URL "http://localhost:8053/"
179 # ZoneMaintStats true
180 # ResolverStats false
188 # Zone "127.in-addr.arpa/IN"
193 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
198 # <Page "stock_quotes">
199 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
202 # MeasureResponseTime false
204 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
205 # DSType "GaugeAverage"
213 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
214 # <URL "http://localhost:5984/_stats">
216 # <Key "httpd/requests/count">
217 # Type "http_requests"
220 # <Key "httpd_request_methods/*/count">
221 # Type "http_request_methods"
224 # <Key "httpd_status_codes/*/count">
225 # Type "http_response_codes"
228 ## Database status metrics:
229 # <URL "http://localhost:5984/_all_dbs">
231 # <Key "*/doc_count">
234 # <Key "*/doc_del_count">
237 # <Key "*/disk_size">
244 # <URL "http://localhost/stats.xml">
246 # Instance "some_instance"
248 # Password "thaiNg0I"
251 # CACert "/path/to/ca.crt"
253 # <XPath "table[@id=\"magic_level\"]/tr">
255 # #InstancePrefix "prefix-"
256 # InstanceFrom "td[1]"
257 # ValuesFrom "td[2]/span[@class=\"level\"]"
263 # <Query "num_of_customers">
264 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
267 # InstancesFrom "c_key"
268 # ValuesFrom "c_value"
271 # <Database "customers_db">
273 # DriverOption "host" "localhost"
274 # DriverOption "username" "collectd"
275 # DriverOption "password" "AeXohy0O"
276 # DriverOption "dbname" "custdb0"
277 # #SelectDB "custdb0"
278 # Query "num_of_customers"
285 # Device "192.168.0.2:/mnt/nfs"
288 # IgnoreSelected false
289 # ReportByDevice false
290 # ReportReserved false
295 # Disk "/^[hs]d[a-f][0-9]?$/"
296 # IgnoreSelected false
301 # IgnoreSource "192.168.0.1"
302 # SelectNumericQueryTypes true
306 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
307 # SocketGroup "collectd"
313 # Exec "user:group" "/path/to/exec"
314 # NotificationExec "user:group" "/path/to/exec"
318 # <Directory "/path/to/dir">
324 # IncludeHidden false
329 # MCReceiveFrom "239.2.11.71" "8649"
330 # <Metric "swap_total">
332 # TypeInstance "total"
335 # <Metric "swap_free">
337 # TypeInstance "free"
346 # #----------------------------------------------------------------#
347 # # `TranslateDevicename' enables backwards compatibility behavior #
348 # # and is enabled by default. Setting this option to `false' is #
349 # # highly recommended. #
350 # #----------------------------------------------------------------#
351 # TranslateDevicename false
356 # IgnoreSelected false
360 # Sensor "some_sensor"
361 # Sensor "another_one"
362 # IgnoreSelected false
363 # NotifySensorAdd false
364 # NotifySensorRemove true
365 # NotifySensorNotPresent false
376 # IgnoreSelected true
380 # JVMArg "-verbose:jni"
381 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
383 # LoadPlugin "org.collectd.java.Foobar"
384 # <Plugin "org.collectd.java.Foobar">
385 # # To be parsed by the plugin
390 # Connection "xen:///"
393 # BlockDevice "name:device"
394 # InterfaceDevice "name:device"
395 # IgnoreSelected false
396 # HostnameFormat name
401 # IgnoreSelected false
404 # WatchAdd "node_octets"
405 # WatchAdd "node_rssi"
406 # WatchAdd "is_rx_acl"
407 # WatchAdd "is_scan_active"
416 # <Page "plugin_instance">
420 # Regex "(\\d+) bytes sent"
421 # ExcludeRegex "<lines to be excluded>"
424 # Instance "type_instance"
448 # Instance "foobar" # optional
449 # Collect "data_name"
456 # Host "database.serv.er"
463 # <Database db_name2>
465 # Socket "/var/run/mysql/mysqld.sock"
467 # SlaveNotifications true
472 # <Host "netapp1.example.com">
477 # Password "aef4Aebe"
484 # GetBufferCache true
496 # IgnoreSelectedIO false
498 # IgnoreSelectedOps false
499 # GetLatency "volume0"
500 # IgnoreSelectedLatency false
507 # IgnoreSelectedCapacity false
510 # IgnoreSelectedSnapshot false
525 # VerboseInterface "All"
526 # QDisc "eth0" "pfifo_fast-1:0"
527 # Class "ppp0" "htb-1:10"
528 # Filter "ppp0" "u32-1:0"
529 # IgnoreSelected false
532 @LOAD_PLUGIN_NETWORK@<Plugin network>
534 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
535 @LOAD_PLUGIN_NETWORK@ <Server "239.192.74.66" "25826">
536 # SecurityLevel Encrypt
540 @LOAD_PLUGIN_NETWORK@ </Server>
544 # Listen "ff18::efc0:4a42" "25826"
545 # <Listen "239.192.74.66" "25826">
547 # AuthFile "/etc/collectd/passwd"
552 # # proxy setup (client and server as above):
555 # # statistics about the network plugin itself
558 # # "garbage collection"
560 @LOAD_PLUGIN_NETWORK@</Plugin>
563 # URL "http://localhost/status?auto"
566 # CACert "/etc/ssl/ca.crt"
569 #<Plugin notify_desktop>
571 # WarningTimeout 5000
575 #<Plugin notify_email>
576 # SMTPServer "localhost"
578 # SMTPUser "my-username"
579 # SMTPPassword "my-password"
580 # From "collectd@main0server.com"
581 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
582 # Subject "Aaaaaa!! %s on %s!!!!!"
583 # Recipient "email1@domain1.net"
584 # Recipient "email2@domain2.com"
590 # ReverseLookups false
594 # UPS "upsname@hostname:port"
600 # CollectLinks "Summary"
601 # CollectRoutes "Summary"
602 # CollectTopology "Summary"
606 # Device "-s localhost:4304"
607 # Sensor "F10FCA000800"
608 # IgnoreSelected false
612 # StatusFile "/etc/openvpn/openvpn-status.log"
613 # ImprovedNamingSchema false
614 # CollectCompression true
615 # CollectIndividualUsers true
616 # CollectUserCount false
620 # <Query "out_of_stock">
621 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
624 # InstancesFrom "category"
628 # <Database "product_information">
632 # Query "out_of_stock"
637 # IncludeDir "/my/include/path"
638 # BaseName "Collectd::Plugins"
640 # LoadPlugin Monitorus
654 # Server "server name"
655 # Script "script name"
660 # Host "host.foo.bar"
664 # SourceAddress "1.2.3.4"
671 # Statement "SELECT magic FROM wizard WHERE host = $1;"
675 # InstancePrefix "magic"
679 # <Query rt36_tickets>
680 # Statement "SELECT COUNT(type) AS count, type \
681 # FROM (SELECT CASE \
682 # WHEN resolved = 'epoch' THEN 'open' \
683 # ELSE 'resolved' END AS type \
684 # FROM tickets) type \
688 # InstancePrefix "rt36_tickets"
689 # InstancesFrom "type"
699 # KRBSrvName "kerberos_service_name"
704 # Service "service_name"
705 # Query backend # predefined
711 # <Server "server_name">
713 # Collect "udp-answers" "udp-queries"
714 # Socket "/var/run/pdns.controlsocket"
716 # <Recursor "recursor_name">
717 # Collect "questions"
718 # Collect "cache-hits" "cache-misses"
719 # Socket "/var/run/pdns_recursor.controlsocket"
721 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
730 # IgnoreSelected false
734 # ModulePath "/path/to/your/python/modules"
740 # spam "wonderful" "lovely"
746 # Host "router.example.com"
749 # Password "dozaiTh4"
750 # CollectInterface true
751 # CollectRegistrationTable true
752 # CollectCPULoad true
760 # DaemonAddress "unix:/tmp/rrdcached.sock"
761 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
763 # CollectStatistics true
767 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
773 # Sensor "it8712-isa-0290/temperature-temp1"
774 # Sensor "it8712-isa-0290/fanspeed-fan3"
775 # Sensor "it8712-isa-0290/voltage-in8"
776 # IgnoreSelected false
780 # <Data "powerplus_voltge_input">
783 # Instance "input_line1"
784 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
790 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
792 # <Data "std_traffic">
795 # Instance "IF-MIB::ifDescr"
796 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
799 # <Host "some.switch.mydomain.org">
800 # Address "192.168.0.2"
802 # Community "community_string"
803 # Collect "std_traffic"
806 # <Host "some.server.mydomain.org">
807 # Address "192.168.0.42"
809 # Community "another_string"
810 # Collect "std_traffic" "hr_users"
812 # <Host "some.ups.mydomain.org">
813 # Address "192.168.0.3"
815 # Community "more_communities"
816 # Collect "powerplus_voltge_input"
822 # <Table "/proc/slabinfo">
823 # Instance "slabinfo"
827 # InstancePrefix "active_objs"
833 # InstancePrefix "objperslab"
841 # <File "/var/log/exim4/mainlog">
844 # Regex "S=([1-9][0-9]*)"
845 # DSType "CounterAdd"
850 # Regex "\\<R=local_user\\>"
851 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
852 # DSType "CounterInc"
854 # Instance "local_user"
860 # ListeningPorts false
872 # Device "/dev/ttyUSB0"
877 # ForceUseProcfs false
879 # IgnoreSelected false
882 #<Plugin tokyotyrant>
888 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
889 # SocketGroup "collectd"
894 # UUIDFile "/etc/uuid"
902 # <URL "http://example.com/collectd-post">
904 # Password "weCh3ik0"
907 # CACert "/etc/ssl/ca.crt"
913 ##############################################################################
914 # Filter configuration #
915 #----------------------------------------------------------------------------#
916 # The following configures collectd's filtering mechanism. Before changing #
917 # anything in this section, please read the `FILTER CONFIGURATION' section #
918 # in the collectd.conf(5) manual page. #
919 ##############################################################################
921 # Load required matches:
922 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
923 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
924 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
925 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
926 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
928 # Load required targets:
929 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
930 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
931 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
932 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
934 #----------------------------------------------------------------------------#
935 # The following block demonstrates the default behavior if no filtering is #
936 # configured at all: All values will be sent to all available write plugins. #
937 #----------------------------------------------------------------------------#