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_DBI_TRUE@LoadPlugin dbi
67 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
68 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
69 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
70 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
71 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
72 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
73 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
74 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
75 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
76 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
77 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
78 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
79 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
80 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
81 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
82 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
83 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
84 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
85 #@BUILD_PLUGIN_MADWIFI_TRUE@LoadPlugin madwifi
86 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
87 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
88 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
89 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
90 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
91 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
92 #@BUILD_PLUGIN_NETAPP_TRUE@LoadPlugin netapp
93 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
94 @LOAD_PLUGIN_NETWORK@LoadPlugin network
95 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
96 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
97 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
98 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
99 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
100 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
101 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
102 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
103 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
104 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
105 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
106 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
107 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
108 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
109 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
110 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
111 #@BUILD_PLUGIN_PYTHON_TRUE@LoadPlugin python
112 #@BUILD_PLUGIN_ROUTEROS_TRUE@LoadPlugin routeros
113 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
114 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
115 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
116 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
117 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
118 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
119 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
120 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
121 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
122 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
123 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
124 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
125 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
126 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
127 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
128 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
129 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
130 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
131 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
132 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
133 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
134 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
135 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
136 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
138 ##############################################################################
139 # Plugin configuration #
140 #----------------------------------------------------------------------------#
141 # In this section configuration stubs for each plugin are provided. A desc- #
142 # ription of those options is available in the collectd.conf(5) manual page. #
143 ##############################################################################
146 # URL "http://localhost/status?auto"
149 # CACert "/etc/ssl/ca.crt"
158 # URL "http://localhost/ascent/status/"
161 # CACert "/etc/ssl/ca.crt"
165 # URL "http://localhost:8053/"
170 # ZoneMaintStats true
171 # ResolverStats false
179 # Zone "127.in-addr.arpa/IN"
184 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
189 # <Page "stock_quotes">
190 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
193 # MeasureResponseTime false
195 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
196 # DSType "GaugeAverage"
204 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
205 # <URL "http://localhost:5984/_stats">
207 # <Key "httpd/requests/count">
208 # Type "http_requests"
211 # <Key "httpd_request_methods/*/count">
212 # Type "http_request_methods"
215 # <Key "httpd_status_codes/*/count">
216 # Type "http_response_codes"
219 ## Database status metrics:
220 # <URL "http://localhost:5984/_all_dbs">
222 # <Key "*/doc_count">
225 # <Key "*/doc_del_count">
228 # <Key "*/disk_size">
235 # <Query "num_of_customers">
236 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
239 # InstancesFrom "c_key"
240 # ValuesFrom "c_value"
243 # <Database "customers_db">
245 # DriverOption "host" "localhost"
246 # DriverOption "username" "collectd"
247 # DriverOption "password" "AeXohy0O"
248 # DriverOption "dbname" "custdb0"
249 # #SelectDB "custdb0"
250 # Query "num_of_customers"
257 # Device "192.168.0.2:/mnt/nfs"
260 # IgnoreSelected false
261 # ReportByDevice false
262 # ReportReserved false
267 # Disk "/^[hs]d[a-f][0-9]?$/"
268 # IgnoreSelected false
273 # IgnoreSource "192.168.0.1"
274 # SelectNumericQueryTypes true
278 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
279 # SocketGroup "collectd"
285 # Exec "user:group" "/path/to/exec"
286 # NotificationExec "user:group" "/path/to/exec"
290 # <Directory "/path/to/dir">
300 # MCReceiveFrom "239.2.11.71" "8649"
301 # <Metric "swap_total">
303 # TypeInstance "total"
306 # <Metric "swap_free">
308 # TypeInstance "free"
317 # #----------------------------------------------------------------#
318 # # `TranslateDevicename' enables backwards compatibility behavior #
319 # # and is enabled by default. Setting this option to `false' is #
320 # # highly recommended. #
321 # #----------------------------------------------------------------#
322 # TranslateDevicename false
327 # IgnoreSelected false
331 # Sensor "some_sensor"
332 # Sensor "another_one"
333 # IgnoreSelected false
334 # NotifySensorAdd false
335 # NotifySensorRemove true
336 # NotifySensorNotPresent false
347 # IgnoreSelected true
351 # JVMArg "-verbose:jni"
352 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java"
354 # LoadPlugin "org.collectd.java.Foobar"
355 # <Plugin "org.collectd.java.Foobar">
356 # # To be parsed by the plugin
361 # Connection "xen:///"
364 # BlockDevice "name:device"
365 # InterfaceDevice "name:device"
366 # IgnoreSelected false
367 # HostnameFormat name
372 # IgnoreSelected false
375 # WatchAdd "node_octets"
376 # WatchAdd "node_rssi"
377 # WatchAdd "is_rx_acl"
378 # WatchAdd "is_scan_active"
387 # <Page "plugin_instance">
391 # Regex "(\\d+) bytes sent"
394 # Instance "type_instance"
406 # Host "database.serv.er"
413 # <Database db_name2>
415 # Socket "/var/run/mysql/mysqld.sock"
417 # SlaveNotifications true
422 # <Host "netapp1.example.com">
427 # Password "aef4Aebe"
434 # GetBufferCache true
446 # IgnoreSelectedIO false
448 # IgnoreSelectedOps false
449 # GetLatency "volume0"
450 # IgnoreSelectedLatency false
457 # IgnoreSelectedCapacity false
460 # IgnoreSelectedSnapshot false
475 # VerboseInterface "All"
476 # QDisc "eth0" "pfifo_fast-1:0"
477 # Class "ppp0" "htb-1:10"
478 # Filter "ppp0" "u32-1:0"
479 # IgnoreSelected false
482 @LOAD_PLUGIN_NETWORK@<Plugin network>
483 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
484 @LOAD_PLUGIN_NETWORK@ Server "239.192.74.66" "25826"
485 # Listen "ff18::efc0:4a42" "25826"
486 # Listen "239.192.74.66" "25826"
491 @LOAD_PLUGIN_NETWORK@</Plugin>
494 # URL "http://localhost/status?auto"
497 # CACert "/etc/ssl/ca.crt"
500 #<Plugin notify_desktop>
502 # WarningTimeout 5000
506 #<Plugin notify_email>
507 # SMTPServer "localhost"
509 # SMTPUser "my-username"
510 # SMTPPassword "my-password"
511 # From "collectd@main0server.com"
512 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
513 # Subject "Aaaaaa!! %s on %s!!!!!"
514 # Recipient "email1@domain1.net"
515 # Recipient "email2@domain2.com"
521 # ReverseLookups false
525 # UPS "upsname@hostname:port"
531 # CollectLinks "Summary"
532 # CollectRoutes "Summary"
533 # CollectTopology "Summary"
537 # Device "-s localhost:4304"
538 # Sensor "F10FCA000800"
539 # IgnoreSelected false
543 # StatusFile "/etc/openvpn/openvpn-status.log"
547 # <Query "out_of_stock">
548 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
551 # InstancesFrom "category"
555 # <Database "product_information">
559 # Query "out_of_stock"
564 # IncludeDir "/my/include/path"
565 # BaseName "Collectd::Plugin"
567 # LoadPlugin Monitorus
577 # Host "host.foo.bar"
581 # SourceAddress "1.2.3.4"
588 # Statement "SELECT magic FROM wizard WHERE host = $1;"
592 # InstancePrefix "magic"
596 # <Query rt36_tickets>
597 # Statement "SELECT COUNT(type) AS count, type \
598 # FROM (SELECT CASE \
599 # WHEN resolved = 'epoch' THEN 'open' \
600 # ELSE 'resolved' END AS type \
601 # FROM tickets) type \
605 # InstancePrefix "rt36_tickets"
606 # InstancesFrom "type"
616 # KRBSrvName "kerberos_service_name"
620 # Service "service_name"
621 # Query backend # predefined
627 # <Server "server_name">
629 # Collect "udp-answers" "udp-queries"
630 # Socket "/var/run/pdns.controlsocket"
632 # <Recursor "recursor_name">
633 # Collect "questions"
634 # Collect "cache-hits" "cache-misses"
635 # Socket "/var/run/pdns_recursor.controlsocket"
637 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
646 # IgnoreSelected false
650 # ModulePath "/path/to/your/python/modules"
656 # spam "wonderful" "lovely"
662 # Host "router.example.com"
665 # Password "dozaiTh4"
666 # CollectInterface true
667 # CollectRegistrationTable true
672 # DaemonAddress "unix:/tmp/rrdcached.sock"
673 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
675 # CollectStatistics true
679 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
685 # Sensor "it8712-isa-0290/temperature-temp1"
686 # Sensor "it8712-isa-0290/fanspeed-fan3"
687 # Sensor "it8712-isa-0290/voltage-in8"
688 # IgnoreSelected false
692 # <Data "powerplus_voltge_input">
695 # Instance "input_line1"
696 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
702 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
704 # <Data "std_traffic">
707 # Instance "IF-MIB::ifDescr"
708 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
711 # <Host "some.switch.mydomain.org">
712 # Address "192.168.0.2"
714 # Community "community_string"
715 # Collect "std_traffic"
718 # <Host "some.server.mydomain.org">
719 # Address "192.168.0.42"
721 # Community "another_string"
722 # Collect "std_traffic" "hr_users"
724 # <Host "some.ups.mydomain.org">
725 # Address "192.168.0.3"
727 # Community "more_communities"
728 # Collect "powerplus_voltge_input"
734 # <Table "/proc/slabinfo">
735 # Instance "slabinfo"
739 # InstancePrefix "active_objs"
745 # InstancePrefix "objperslab"
753 # <File "/var/log/exim4/mainlog">
756 # Regex "S=([1-9][0-9]*)"
757 # DSType "CounterAdd"
762 # Regex "\\<R=local_user\\>"
763 # DSType "CounterInc"
765 # Instance "local_user"
771 # ListeningPorts false
783 # Device "/dev/ttyUSB0"
788 # ForceUseProcfs false
790 # IgnoreSelected false
793 #<Plugin tokyotyrant>
799 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
800 # SocketGroup "collectd"
805 # UUIDFile "/etc/uuid"
813 # <URL "http://example.com/collectd-post">
815 # Password "weCh3ik0"
819 ##############################################################################
820 # Filter configuration #
821 #----------------------------------------------------------------------------#
822 # The following configures collectd's filtering mechanism. Before changing #
823 # anything in this section, please read the `FILTER CONFIGURATION' section #
824 # in the collectd.conf(5) manual page. #
825 ##############################################################################
827 # Load required matches:
828 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
829 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
830 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
831 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
832 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
834 # Load required targets:
835 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
836 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
837 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
838 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
840 #----------------------------------------------------------------------------#
841 # The following block demonstrates the default behavior if no filtering is #
842 # configured at all: All values will be sent to all available write plugins. #
843 #----------------------------------------------------------------------------#