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_CPU_TRUE@@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
61 #@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
62 @LOAD_PLUGIN_CSV@LoadPlugin csv
63 #@BUILD_PLUGIN_CURL_TRUE@LoadPlugin curl
64 #@BUILD_PLUGIN_CURL_JSON_TRUE@LoadPlugin curl_json
65 #@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
66 #@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
67 #@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
68 #@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
69 #@BUILD_PLUGIN_EMAIL_TRUE@LoadPlugin email
70 #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy
71 #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec
72 #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount
73 #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache
74 #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond
75 #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp
76 @BUILD_PLUGIN_INTERFACE_TRUE@@BUILD_PLUGIN_INTERFACE_TRUE@LoadPlugin interface
77 #@BUILD_PLUGIN_IPTABLES_TRUE@LoadPlugin iptables
78 #@BUILD_PLUGIN_IPMI_TRUE@LoadPlugin ipmi
79 #@BUILD_PLUGIN_IPVS_TRUE@LoadPlugin ipvs
80 #@BUILD_PLUGIN_IRQ_TRUE@LoadPlugin irq
81 #@BUILD_PLUGIN_JAVA_TRUE@LoadPlugin java
82 #@BUILD_PLUGIN_LIBVIRT_TRUE@LoadPlugin libvirt
83 @BUILD_PLUGIN_LOAD_TRUE@@BUILD_PLUGIN_LOAD_TRUE@LoadPlugin load
84 #@BUILD_PLUGIN_MBMON_TRUE@LoadPlugin mbmon
85 #@BUILD_PLUGIN_MEMCACHEC_TRUE@LoadPlugin memcachec
86 #@BUILD_PLUGIN_MEMCACHED_TRUE@LoadPlugin memcached
87 @BUILD_PLUGIN_MEMORY_TRUE@@BUILD_PLUGIN_MEMORY_TRUE@LoadPlugin memory
88 #@BUILD_PLUGIN_MULTIMETER_TRUE@LoadPlugin multimeter
89 #@BUILD_PLUGIN_MYSQL_TRUE@LoadPlugin mysql
90 #@BUILD_PLUGIN_NETLINK_TRUE@LoadPlugin netlink
91 @LOAD_PLUGIN_NETWORK@LoadPlugin network
92 #@BUILD_PLUGIN_NFS_TRUE@LoadPlugin nfs
93 #@BUILD_PLUGIN_NGINX_TRUE@LoadPlugin nginx
94 #@BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE@LoadPlugin notify_desktop
95 #@BUILD_PLUGIN_NOTIFY_EMAIL_TRUE@LoadPlugin notify_email
96 #@BUILD_PLUGIN_NTPD_TRUE@LoadPlugin ntpd
97 #@BUILD_PLUGIN_NUT_TRUE@LoadPlugin nut
98 #@BUILD_PLUGIN_OLSRD_TRUE@LoadPlugin olsrd
99 #@BUILD_PLUGIN_ONEWIRE_TRUE@LoadPlugin onewire
100 #@BUILD_PLUGIN_OPENVPN_TRUE@LoadPlugin openvpn
101 #@BUILD_PLUGIN_ORACLE_TRUE@LoadPlugin oracle
102 #@BUILD_PLUGIN_PERL_TRUE@LoadPlugin perl
103 #@BUILD_PLUGIN_PING_TRUE@LoadPlugin ping
104 #@BUILD_PLUGIN_POSTGRESQL_TRUE@LoadPlugin postgresql
105 #@BUILD_PLUGIN_POWERDNS_TRUE@LoadPlugin powerdns
106 #@BUILD_PLUGIN_PROCESSES_TRUE@LoadPlugin processes
107 #@BUILD_PLUGIN_PROTOCOLS_TRUE@LoadPlugin protocols
108 #@BUILD_PLUGIN_RRDCACHED_TRUE@LoadPlugin rrdcached
109 @LOAD_PLUGIN_RRDTOOL@LoadPlugin rrdtool
110 #@BUILD_PLUGIN_SENSORS_TRUE@LoadPlugin sensors
111 #@BUILD_PLUGIN_SERIAL_TRUE@LoadPlugin serial
112 #@BUILD_PLUGIN_SNMP_TRUE@LoadPlugin snmp
113 #@BUILD_PLUGIN_SWAP_TRUE@LoadPlugin swap
114 #@BUILD_PLUGIN_TABLE_TRUE@LoadPlugin table
115 #@BUILD_PLUGIN_TAIL_TRUE@LoadPlugin tail
116 #@BUILD_PLUGIN_TAPE_TRUE@LoadPlugin tape
117 #@BUILD_PLUGIN_TCPCONNS_TRUE@LoadPlugin tcpconns
118 #@BUILD_PLUGIN_TEAMSPEAK2_TRUE@LoadPlugin teamspeak2
119 #@BUILD_PLUGIN_TED_TRUE@LoadPlugin ted
120 #@BUILD_PLUGIN_THERMAL_TRUE@LoadPlugin thermal
121 #@BUILD_PLUGIN_TOKYOTYRANT_TRUE@LoadPlugin tokyotyrant
122 #@BUILD_PLUGIN_UNIXSOCK_TRUE@LoadPlugin unixsock
123 #@BUILD_PLUGIN_UPTIME_TRUE@LoadPlugin uptime
124 #@BUILD_PLUGIN_USERS_TRUE@LoadPlugin users
125 #@BUILD_PLUGIN_UUID_TRUE@LoadPlugin uuid
126 #@BUILD_PLUGIN_VMEM_TRUE@LoadPlugin vmem
127 #@BUILD_PLUGIN_VSERVER_TRUE@LoadPlugin vserver
128 #@BUILD_PLUGIN_WIRELESS_TRUE@LoadPlugin wireless
129 #@BUILD_PLUGIN_WRITE_HTTP_TRUE@LoadPlugin write_http
130 #@BUILD_PLUGIN_XMMS_TRUE@LoadPlugin xmms
131 #@BUILD_PLUGIN_ZFS_ARC_TRUE@LoadPlugin zfs_arc
133 ##############################################################################
134 # Plugin configuration #
135 #----------------------------------------------------------------------------#
136 # In this section configuration stubs for each plugin are provided. A desc- #
137 # ription of those options is available in the collectd.conf(5) manual page. #
138 ##############################################################################
141 # URL "http://localhost/status?auto"
144 # CACert "/etc/ssl/ca.crt"
153 # URL "http://localhost/ascent/status/"
156 # CACert "/etc/ssl/ca.crt"
160 # URL "http://localhost:8053/"
165 # ZoneMaintStats true
166 # ResolverStats false
174 # Zone "127.in-addr.arpa/IN"
179 ## See: http://wiki.apache.org/couchdb/Runtime_Statistics
180 # <URL "http://localhost:5984/_stats">
182 # <Key "httpd/requests/count">
183 # Type "http_requests"
186 # <Key "httpd_request_methods/*/count">
187 # Type "http_request_methods"
190 # <Key "httpd_status_codes/*/count">
191 # Type "http_response_codes"
194 ## Database status metrics:
195 # <URL "http://localhost:5984/_all_dbs">
197 # <Key "*/doc_count">
200 # <Key "*/doc_del_count">
203 # <Key "*/disk_size">
210 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/csv"
215 # <Page "stock_quotes">
216 # URL "http://finance.google.com/finance?q=NYSE%3AAMD"
220 # Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
221 # DSType "GaugeAverage"
229 # <Query "num_of_customers">
230 # Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
233 # InstancesFrom "c_key"
234 # ValuesFrom "c_value"
237 # <Database "customers_db">
239 # DriverOption "host" "localhost"
240 # DriverOption "username" "collectd"
241 # DriverOption "password" "AeXohy0O"
242 # DriverOption "dbname" "custdb0"
243 # #SelectDB "custdb0"
244 # Query "num_of_customers"
251 # Device "192.168.0.2:/mnt/nfs"
254 # IgnoreSelected false
255 # ReportByDevice false
259 # Disk "/^[hs]d[a-f][0-9]?$/"
260 # IgnoreSelected false
265 # IgnoreSource "192.168.0.1"
269 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-email"
270 # SocketGroup "collectd"
276 # Exec "user:group" "/path/to/exec"
277 # NotificationExec "user:group" "/path/to/exec"
281 # <Directory "/path/to/dir">
291 # MCReceiveFrom "239.2.11.71" "8649"
292 # <Metric "swap_total">
294 # TypeInstance "total"
297 # <Metric "swap_free">
299 # TypeInstance "free"
308 # #----------------------------------------------------------------#
309 # # `TranslateDevicename' enables backwards compatibility behavior #
310 # # and is enabled by default. Setting this option to `false' is #
311 # # highly recommended. #
312 # #----------------------------------------------------------------#
313 # TranslateDevicename false
317 # URL "http://example.com/collectd-import"
324 # IgnoreSelected false
328 # Sensor "some_sensor"
329 # Sensor "another_one"
330 # IgnoreSelected false
331 # NotifySensorAdd false
332 # NotifySensorRemove true
333 # NotifySensorNotPresent false
344 # IgnoreSelected true
348 # JVMArg "-verbose:jni"
349 # JVMArg "-Djava.class.path=@prefix@/share/collectd/java"
351 # LoadPlugin "org.collectd.java.Foobar"
352 # <Plugin "org.collectd.java.Foobar">
353 # # To be parsed by the plugin
358 # Connection "xen:///"
361 # BlockDevice "name:device"
362 # InterfaceDevice "name:device"
363 # IgnoreSelected false
364 # HostnameFormat name
373 # <Page "plugin_instance">
377 # Regex "(\\d+) bytes sent"
380 # Instance "type_instance"
392 # Host "database.serv.er"
399 # <Database db_name2>
401 # Socket "/var/run/mysql/mysqld.sock"
403 # SlaveNotifications true
409 # VerboseInterface "All"
410 # QDisc "eth0" "pfifo_fast-1:0"
411 # Class "ppp0" "htb-1:10"
412 # Filter "ppp0" "u32-1:0"
413 # IgnoreSelected false
416 @LOAD_PLUGIN_NETWORK@<Plugin network>
417 @LOAD_PLUGIN_NETWORK@ Server "ff18::efc0:4a42" "25826"
418 @LOAD_PLUGIN_NETWORK@ Server "239.192.74.66" "25826"
419 # Listen "ff18::efc0:4a42" "25826"
420 # Listen "239.192.74.66" "25826"
424 @LOAD_PLUGIN_NETWORK@</Plugin>
427 # URL "http://localhost/status?auto"
430 # CACert "/etc/ssl/ca.crt"
433 #<Plugin notify_desktop>
435 # WarningTimeout 5000
439 #<Plugin notify_email>
440 # SMTPServer "localhost"
442 # SMTPUser "my-username"
443 # SMTPPassword "my-password"
444 # From "collectd@main0server.com"
445 # # <WARNING/FAILURE/OK> on <hostname>. beware! do not use not more than two %s in this string!!!
446 # Subject "Aaaaaa!! %s on %s!!!!!"
447 # Recipient "email1@domain1.net"
448 # Recipient "email2@domain2.com"
454 # ReverseLookups false
458 # UPS "upsname@hostname:port"
464 # CollectLinks "Summary"
465 # CollectRoutes "Summary"
466 # CollectTopology "Summary"
470 # Device "-s localhost:4304"
471 # Sensor "F10FCA000800"
472 # IgnoreSelected false
476 # StatusFile "/etc/openvpn/openvpn-status.log"
480 # <Query "out_of_stock">
481 # Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category"
484 # InstancesFrom "category"
488 # <Database "product_information">
492 # Query "out_of_stock"
497 # IncludeDir "/my/include/path"
498 # BaseName "Collectd::Plugin"
509 # Host "host.foo.bar"
515 # Statement "SELECT magic FROM wizard WHERE host = $1;"
519 # InstancePrefix "magic"
523 # <Query rt36_tickets>
524 # Statement "SELECT COUNT(type) AS count, type \
525 # FROM (SELECT CASE \
526 # WHEN resolved = 'epoch' THEN 'open' \
527 # ELSE 'resolved' END AS type \
528 # FROM tickets) type \
532 # InstancePrefix "rt36_tickets"
533 # InstancesFrom "type"
543 # KRBSrvName "kerberos_service_name"
547 # Service "service_name"
548 # Query backend # predefined
554 # <Server "server_name">
556 # Collect "udp-answers" "udp-queries"
557 # Socket "/var/run/pdns.controlsocket"
559 # <Recursor "recursor_name">
560 # Collect "questions"
561 # Collect "cache-hits" "cache-misses"
562 # Socket "/var/run/pdns_recursor.controlsocket"
564 # LocalSocket "/opt/collectd/var/run/collectd-powerdns"
573 # IgnoreSelected false
577 # DaemonAddress "unix:/tmp/rrdcached.sock"
578 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
580 # CollectStatistics true
584 # DataDir "@prefix@/var/lib/@PACKAGE_NAME@/rrd"
590 # Sensor "it8712-isa-0290/temperature-temp1"
591 # Sensor "it8712-isa-0290/fanspeed-fan3"
592 # Sensor "it8712-isa-0290/voltage-in8"
593 # IgnoreSelected false
597 # <Data "powerplus_voltge_input">
600 # Instance "input_line1"
601 # Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
607 # Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
609 # <Data "std_traffic">
612 # Instance "IF-MIB::ifDescr"
613 # Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
616 # <Host "some.switch.mydomain.org">
617 # Address "192.168.0.2"
619 # Community "community_string"
620 # Collect "std_traffic"
623 # <Host "some.server.mydomain.org">
624 # Address "192.168.0.42"
626 # Community "another_string"
627 # Collect "std_traffic" "hr_users"
629 # <Host "some.ups.mydomain.org">
630 # Address "192.168.0.3"
632 # Community "more_communities"
633 # Collect "powerplus_voltge_input"
639 # <Table "/proc/slabinfo">
640 # Instance "slabinfo"
644 # InstancePrefix "active_objs"
650 # InstancePrefix "objperslab"
658 # <File "/var/log/exim4/mainlog">
661 # Regex "S=([1-9][0-9]*)"
662 # DSType "CounterAdd"
667 # Regex "\\<R=local_user\\>"
668 # DSType "CounterInc"
670 # Instance "local_user"
676 # ListeningPorts false
688 # Device "/dev/ttyUSB0"
693 # ForceUseProcfs false
695 # IgnoreSelected false
698 #<Plugin tokyotyrant>
704 # SocketFile "@prefix@/var/run/@PACKAGE_NAME@-unixsock"
705 # SocketGroup "collectd"
710 # UUIDFile "/etc/uuid"
718 # <URL "http://example.com/collectd-post">
720 # Password "weCh3ik0"
724 ##############################################################################
725 # Filter configuration #
726 #----------------------------------------------------------------------------#
727 # The following configures collectd's filtering mechanism. Before changing #
728 # anything in this section, please read the `FILTER CONFIGURATION' section #
729 # in the collectd.conf(5) manual page. #
730 ##############################################################################
732 # Load required matches:
733 #@BUILD_PLUGIN_MATCH_REGEX_TRUE@LoadPlugin match_regex
734 #@BUILD_PLUGIN_MATCH_VALUE_TRUE@LoadPlugin match_value
735 #@BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE@LoadPlugin match_timediff
737 # Load required targets:
738 #@BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE@LoadPlugin target_notification
739 #@BUILD_PLUGIN_TARGET_REPLACE_TRUE@LoadPlugin target_replace
740 #@BUILD_PLUGIN_TARGET_SET_TRUE@LoadPlugin target_set
742 #----------------------------------------------------------------------------#
743 # The following block demonstrates the default behavior if no filtering is #
744 # configured at all: All values will be sent to all available write plugins. #
745 #----------------------------------------------------------------------------#