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_VMEM_TRUE@LoadPlugin vmem
134 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
135 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
136 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
137 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
138 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
140 ##############################################################################
141 # Plugin configuration #
142 #----------------------------------------------------------------------------#
143 # In this section configuration stubs for each plugin are provided. A desc- #
144 # ription of those options is available in the collectd.conf(5) manual page. #
145 ##############################################################################
148 # URL "http://localhost/status?auto"
151 # CACert "/etc/ssl/ca.crt"
160 # URL "http://localhost/ascent/status/"
163 # CACert "/etc/ssl/ca.crt"
167 # URL "http://localhost:8053/"
172 # ZoneMaintStats true
173 # ResolverStats false
181 # Zone "127.in-addr.arpa/IN"
186 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
191 # <Page "stock_quotes">
192 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
195 # MeasureResponseTime false
197 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
198 # DSType "GaugeAverage"
206 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
207 # <URL "http://localhost:5984/_stats">
209 # <Key "httpd/requests/count">
210 # Type "http_requests"
213 # <Key "httpd_request_methods/*/count">
214 # Type "http_request_methods"
217 # <Key "httpd_status_codes/*/count">
218 # Type "http_response_codes"
221 ## Database status metrics:
222 # <URL "http://localhost:5984/_all_dbs">
224 # <Key "*/doc_count">
227 # <Key "*/doc_del_count">
230 # <Key "*/disk_size">
237 # <URL "http://localhost/stats.xml">
239 # Instance "some_instance"
241 # Password "thaiNg0I"
244 # CACert "/path/to/ca.crt"
246 # <XPath "table[@id=\"magic_level\"]/tr">
248 # #InstancePrefix "prefix-"
249 # InstanceFrom "td[1]"
250 # ValuesFrom "td[2]/span[@class=\"level\"]"
256 # <Query "num_of_customers">
257 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
260 # InstancesFrom "c_key"
261 # ValuesFrom "c_value"
264 # <Database "customers_db">
266 # DriverOption "host" "localhost"
267 # DriverOption "username" "collectd"
268 # DriverOption "password" "AeXohy0O"
269 # DriverOption "dbname" "custdb0"
270 # #SelectDB "custdb0"
271 # Query "num_of_customers"
278 # Device "192.168.0.2:/mnt/nfs"
281 # IgnoreSelected false
282 # ReportByDevice false
283 # ReportReserved false
288 # Disk "/^[hs]d[a-f][0-9]?$/"
289 # IgnoreSelected false
294 # IgnoreSource "192.168.0.1"
295 # SelectNumericQueryTypes true
299 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
300 # SocketGroup "collectd"
306 # Exec "user:group" "/path/to/exec"
307 # NotificationExec "user:group" "/path/to/exec"
311 # <Directory "/path/to/dir">
321 # MCReceiveFrom "239.2.11.71" "8649"
322 # <Metric "swap_total">
324 # TypeInstance "total"
327 # <Metric "swap_free">
329 # TypeInstance "free"
338 # #----------------------------------------------------------------#
339 # # `TranslateDevicename' enables backwards compatibility behavior #
340 # # and is enabled by default. Setting this option to `false' is #
341 # # highly recommended. #
342 # #----------------------------------------------------------------#
343 # TranslateDevicename false
348 # IgnoreSelected false
352 # Sensor "some_sensor"
353 # Sensor "another_one"
354 # IgnoreSelected false
355 # NotifySensorAdd false
356 # NotifySensorRemove true
357 # NotifySensorNotPresent false
368 # IgnoreSelected true
372 # JVMArg "-verbose:jni"
373 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java/collectd-api.jar"
375 # LoadPlugin "org.collectd.java.Foobar"
376 # <Plugin "org.collectd.java.Foobar">
377 # # To be parsed by the plugin
382 # Connection "xen:///"
385 # BlockDevice "name:device"
386 # InterfaceDevice "name:device"
387 # IgnoreSelected false
388 # HostnameFormat name
389 # InterfaceFormat name
394 # IgnoreSelected false
397 # WatchAdd "node_octets"
398 # WatchAdd "node_rssi"
399 # WatchAdd "is_rx_acl"
400 # WatchAdd "is_scan_active"
409 # <Page "plugin_instance">
413 # Regex "(\\d+) bytes sent"
416 # Instance "type_instance"
428 # Host "database.serv.er"
435 # <Database db_name2>
437 # Socket "/var/run/mysql/mysqld.sock"
439 # SlaveNotifications true
444 # <Host "netapp1.example.com">
449 # Password "aef4Aebe"
456 # GetBufferCache true
468 # IgnoreSelectedIO false
470 # IgnoreSelectedOps false
471 # GetLatency "volume0"
472 # IgnoreSelectedLatency false
479 # IgnoreSelectedCapacity false
482 # IgnoreSelectedSnapshot false
497 # VerboseInterface "All"
498 # QDisc "eth0" "pfifo_fast-1:0"
499 # Class "ppp0" "htb-1:10"
500 # Filter "ppp0" "u32-1:0"
501 # IgnoreSelected false
504 @LOAD_PLUGIN_NETWORK@<Plugin network>
505 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
506 @LOAD_PLUGIN_NETWORK@ Server "239.192.74.66" "25826"
507 # Listen "ff18::efc0:4a42" "25826"
508 # Listen "239.192.74.66" "25826"
513 @LOAD_PLUGIN_NETWORK@</Plugin>
516 # URL "http://localhost/status?auto"
519 # CACert "/etc/ssl/ca.crt"
522 #<Plugin notify_desktop>
524 # WarningTimeout 5000
528 #<Plugin notify_email>
529 # SMTPServer "localhost"
531 # SMTPUser "my-username"
532 # SMTPPassword "my-password"
533 # From "collectd@main0server.com"
534 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
535 # Subject "Aaaaaa!! %s on %s!!!!!"
536 # Recipient "email1@domain1.net"
537 # Recipient "email2@domain2.com"
543 # ReverseLookups false
547 # UPS "upsname@hostname:port"
553 # CollectLinks "Summary"
554 # CollectRoutes "Summary"
555 # CollectTopology "Summary"
559 # Device "-s localhost:4304"
560 # Sensor "F10FCA000800"
561 # IgnoreSelected false
565 # StatusFile "/etc/openvpn/openvpn-status.log"
569 # <Query "out_of_stock">
570 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
573 # InstancesFrom "category"
577 # <Database "product_information">
581 # Query "out_of_stock"
586 # IncludeDir "/my/include/path"
587 # BaseName "Collectd::Plugins"
589 # LoadPlugin Monitorus
603 # Server "server name"
604 # Script "script name"
609 # Host "host.foo.bar"
613 # SourceAddress "1.2.3.4"
620 # Statement "SELECT magic FROM wizard WHERE host = $1;"
624 # InstancePrefix "magic"
628 # <Query rt36_tickets>
629 # Statement "SELECT COUNT(type) AS count, type \
630 # FROM (SELECT CASE \
631 # WHEN resolved = 'epoch' THEN 'open' \
632 # ELSE 'resolved' END AS type \
633 # FROM tickets) type \
637 # InstancePrefix "rt36_tickets"
638 # InstancesFrom "type"
648 # KRBSrvName "kerberos_service_name"
652 # Service "service_name"
653 # Query backend # predefined
659 # <Server "server_name">
661 # Collect "udp-answers" "udp-queries"
662 # Socket "/var/run/pdns.controlsocket"
664 # <Recursor "recursor_name">
665 # Collect "questions"
666 # Collect "cache-hits" "cache-misses"
667 # Socket "/var/run/pdns_recursor.controlsocket"
669 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
678 # IgnoreSelected false
682 # ModulePath "/path/to/your/python/modules"
688 # spam "wonderful" "lovely"
694 # Host "router.example.com"
697 # Password "dozaiTh4"
698 # CollectInterface true
699 # CollectRegistrationTable true
700 # CollectCPULoad true
708 # DaemonAddress "unix:/tmp/rrdcached.sock"
709 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
711 # CollectStatistics true
715 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
721 # Sensor "it8712-isa-0290/temperature-temp1"
722 # Sensor "it8712-isa-0290/fanspeed-fan3"
723 # Sensor "it8712-isa-0290/voltage-in8"
724 # IgnoreSelected false
728 # <Data "powerplus_voltge_input">
731 # Instance "input_line1"
732 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
738 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
740 # <Data "std_traffic">
743 # Instance "IF-MIB::ifDescr"
744 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
747 # <Host "some.switch.mydomain.org">
748 # Address "192.168.0.2"
750 # Community "community_string"
751 # Collect "std_traffic"
754 # <Host "some.server.mydomain.org">
755 # Address "192.168.0.42"
757 # Community "another_string"
758 # Collect "std_traffic" "hr_users"
760 # <Host "some.ups.mydomain.org">
761 # Address "192.168.0.3"
763 # Community "more_communities"
764 # Collect "powerplus_voltge_input"
770 # <Table "/proc/slabinfo">
771 # Instance "slabinfo"
775 # InstancePrefix "active_objs"
781 # InstancePrefix "objperslab"
789 # <File "/var/log/exim4/mainlog">
792 # Regex "S=([1-9][0-9]*)"
793 # DSType "CounterAdd"
798 # Regex "\\<R=local_user\\>"
799 # ExcludeRegex "\\<R=local_user\\>.*mail_spool defer"
800 # DSType "CounterInc"
802 # Instance "local_user"
808 # ListeningPorts false
820 # Device "/dev/ttyUSB0"
825 # ForceUseProcfs false
827 # IgnoreSelected false
830 #<Plugin tokyotyrant>
836 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
837 # SocketGroup "collectd"
842 # UUIDFile "/etc/uuid"
850 # <URL "http://example.com/collectd-post">
852 # Password "weCh3ik0"
856 ##############################################################################
857 # Filter configuration #
858 #----------------------------------------------------------------------------#
859 # The following configures collectd's filtering mechanism. Before changing #
860 # anything in this section, please read the `FILTER CONFIGURATION' section #
861 # in the collectd.conf(5) manual page. #
862 ##############################################################################
864 # Load required matches:
865 #@BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE@LoadPlugin match_empty_counter
866 #@BUILD_PLUGIN_MATCH_HASHED_TRUE@LoadPlugin match_hashed
867 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
868 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
869 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
871 # Load required targets:
872 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
873 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
874 #@BUILD_PLUGIN_TARGET_SCALE_TRUE@LoadPlugin target_scale
875 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
877 #----------------------------------------------------------------------------#
878 # The following block demonstrates the default behavior if no filtering is #
879 # configured at all: All values will be sent to all available write plugins. #
880 #----------------------------------------------------------------------------#