Code

collectd.conf: Updated for 5.3.0.
[pkg-collectd.git] / debian / collectd.conf
index 9f1a918f851cfd3f4ee14e1e79a2b41ca53d38f8..2fcf6cf2786920153a37ece88415bdcd296a0e27 100644 (file)
@@ -6,14 +6,38 @@
 # You should also read /usr/share/doc/collectd-core/README.Debian.plugins
 # before enabling any more plugins.
 
+##############################################################################
+# Global                                                                     #
+#----------------------------------------------------------------------------#
+# Global settings for the daemon.                                            #
+##############################################################################
+
 #Hostname "localhost"
 FQDNLookup true
 #BaseDir "/var/lib/collectd"
 #PluginDir "/usr/lib/collectd"
 #TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"
+
+#----------------------------------------------------------------------------#
+# Interval at which to query values. This may be overwritten on a per-plugin #
+# base by using the 'Interval' option of the LoadPlugin block:               #
+#   <LoadPlugin foo>                                                         #
+#       Interval 60                                                          #
+#   </LoadPlugin>                                                            #
+#----------------------------------------------------------------------------#
 #Interval 10
+
 #Timeout 2
 #ReadThreads 5
+#WriteThreads 5
+
+##############################################################################
+# Logging                                                                    #
+#----------------------------------------------------------------------------#
+# Plugins which provide logging functions should be loaded first, so log     #
+# messages generated when loading or configuring other plugins can be        #
+# accessed.                                                                  #
+##############################################################################
 
 #LoadPlugin logfile
 LoadPlugin syslog
@@ -29,6 +53,13 @@ LoadPlugin syslog
        LogLevel info
 </Plugin>
 
+##############################################################################
+# LoadPlugin section                                                         #
+#----------------------------------------------------------------------------#
+# Specify what features to activate.                                         #
+##############################################################################
+
+#LoadPlugin aggregation
 #LoadPlugin amqp
 #LoadPlugin apache
 #LoadPlugin apcups
@@ -49,6 +80,7 @@ LoadPlugin disk
 #LoadPlugin dns
 #LoadPlugin email
 LoadPlugin entropy
+#LoadPlugin ethstat
 #LoadPlugin exec
 #LoadPlugin filecount
 #LoadPlugin fscache
@@ -64,9 +96,11 @@ LoadPlugin irq
 LoadPlugin load
 #LoadPlugin madwifi
 #LoadPlugin mbmon
+#LoadPlugin md
 #LoadPlugin memcachec
 #LoadPlugin memcached
 LoadPlugin memory
+#LoadPlugin modbus
 #LoadPlugin multimeter
 #LoadPlugin mysql
 #LoadPlugin netlink
@@ -76,17 +110,22 @@ LoadPlugin memory
 #LoadPlugin notify_desktop
 #LoadPlugin notify_email
 #LoadPlugin ntpd
+#LoadPlugin numa
 #LoadPlugin nut
 #LoadPlugin olsrd
 #LoadPlugin openvpn
-#LoadPlugin perl
+#<LoadPlugin perl>
+#      Globals true
+#</LoadPlugin>
 #LoadPlugin pinba
 #LoadPlugin ping
 #LoadPlugin postgresql
 #LoadPlugin powerdns
 LoadPlugin processes
 #LoadPlugin protocols
-#LoadPlugin python
+#<LoadPlugin python>
+#      Globals true
+#</LoadPlugin>
 #LoadPlugin rrdcached
 LoadPlugin rrdtool
 #LoadPlugin sensors
@@ -95,6 +134,7 @@ LoadPlugin rrdtool
 LoadPlugin swap
 #LoadPlugin table
 #LoadPlugin tail
+#LoadPlugin tail_csv
 #LoadPlugin tcpconns
 #LoadPlugin teamspeak2
 #LoadPlugin ted
@@ -108,7 +148,37 @@ LoadPlugin users
 #LoadPlugin vmem
 #LoadPlugin vserver
 #LoadPlugin wireless
+#LoadPlugin write_graphite
 #LoadPlugin write_http
+#LoadPlugin write_mongodb
+#LoadPlugin write_riemann
+
+##############################################################################
+# Plugin configuration                                                       #
+#----------------------------------------------------------------------------#
+# In this section configuration stubs for each plugin are provided. A desc-  #
+# ription of those options is available in the collectd.conf(5) manual page. #
+##############################################################################
+
+#<Plugin "aggregation">
+#      <Aggregation>
+#              #Host "unspecified"
+#              Plugin "cpu"
+#              #PluginInstance "unspecified"
+#              Type "cpu"
+#              #TypeInstance "unspecified"
+#
+#              GroupBy "Host"
+#              GroupBy "TypeInstance"
+#
+#              CalculateNum false
+#              CalculateSum false
+#              CalculateAverage true
+#              CalculateMinimum false
+#              CalculateMaximum false
+#              CalculateStddev false
+#      </Aggregation>
+#</Plugin>
 
 #<Plugin amqp>
 #      <Publish "name">
@@ -145,6 +215,7 @@ LoadPlugin users
 #<Plugin apcups>
 #      Host "localhost"
 #      Port "3551"
+#      ReportSeconds true
 #</Plugin>
 
 #<Plugin ascent>
@@ -159,6 +230,8 @@ LoadPlugin users
 #<Plugin "bind">
 #      URL "http://localhost:8053/"
 #
+#      ParseTime false
+#
 #      OpCodes true
 #      QTypes true
 #      ServerStats true
@@ -271,19 +344,33 @@ LoadPlugin users
 #              SelectDB "custdb0"
 #              Query "num_of_customers"
 #              Query "..."
+#              Host "..."
 #      </Database>
 #</Plugin>
 
-#<Plugin df>
+<Plugin df>
 #      Device "/dev/sda1"
 #      Device "192.168.0.2:/mnt/nfs"
 #      MountPoint "/home"
 #      FSType "ext3"
-#      IgnoreSelected false
+
+       # ignore rootfs; else, the root file-system would appear twice, causing
+       # one of the updates to fail and spam the log
+       FSType rootfs
+       # ignore the usual virtual / temporary file-systems
+       FSType sysfs
+       FSType proc
+       FSType devtmpfs
+       FSType devpts
+       FSType tmpfs
+       FSType fusectl
+       FSType cgroup
+       IgnoreSelected true
+
 #      ReportByDevice false
 #      ReportReserved false
 #      ReportInodes false
-#</Plugin>
+</Plugin>
 
 #<Plugin disk>
 #      Disk "hda"
@@ -304,6 +391,13 @@ LoadPlugin users
 #      MaxConns 5
 #</Plugin>
 
+#<Plugin ethstat>
+#      Interface "eth0"
+#      Map "rx_csum_offload_errors" "if_rx_errors" "checksum_offload"
+#      Map "multicast" "if_multicast"
+#      MappedOnly false
+#</Plugin>
+
 #<Plugin exec>
 #      Exec user "/path/to/exec"
 #      Exec "user:group" "/path/to/exec"
@@ -405,6 +499,11 @@ LoadPlugin users
 #      Port 411
 #</Plugin>
 
+#<Plugin md>
+#      Device "/dev/md0"
+#      IgnoreSelected false
+#</Plugin>
+
 #<Plugin memcachec>
 #      <Page "plugin_instance">
 #              Server "localhost"
@@ -420,10 +519,32 @@ LoadPlugin users
 #</Plugin>
 
 #<Plugin memcached>
-#      Socket "/var/run/memcached.sock"
+#      <Instance "local">
+#              Socket "/var/run/memcached.sock"
 # or:
-#      Host "127.0.0.1"
-#      Port "11211"
+#              Host "127.0.0.1"
+#              Port "11211"
+#      </Instance>
+#</Plugin>
+
+#<Plugin modbus>
+#      <Data "data_name">
+#              RegisterBase 1234
+#              RegisterType float
+#              Type gauge
+#              Instance "..."
+#      </Data>
+#
+#      <Host "name">
+#              Address "addr"
+#              Port "1234"
+#              Interval 60
+#
+#              <Slave 1>
+#                      Instance "foobar" # optional
+#                      Collect "data_name"
+#              </Slave>
+#      </Host>
 #</Plugin>
 
 #<Plugin mysql>
@@ -515,6 +636,7 @@ LoadPlugin users
 #      Host "localhost"
 #      Port 123
 #      ReverseLookups false
+#      IncludeUnitID true
 #</Plugin>
 
 #<Plugin nut>
@@ -599,6 +721,12 @@ LoadPlugin users
 #              </Result>
 #      </Query>
 #
+#      <Writer sqlstore>
+#              # See /usr/share/doc/collectd-core/examples/postgresql/collectd_insert.sql for details
+#              Statement "SELECT collectd_insert($1, $2, $3, $4, $5, $6, $7, $8, $9);"
+#              StoreRates true
+#      </Writer>
+#
 #      <Database foo>
 #              Host "hostname"
 #              Port 5432
@@ -618,6 +746,13 @@ LoadPlugin users
 #              Query backend # predefined
 #              Query rt36_tickets
 #      </Database>
+#
+#      <Database qux>
+#              Service "collectd_store"
+#              Writer sqlstore
+#              # see collectd.conf(5) for details
+#              CommitInterval 30
+#      </Database>
 #</Plugin>
 
 #<Plugin powerdns>
@@ -659,7 +794,16 @@ LoadPlugin users
 #      DaemonAddress "unix:/var/run/rrdcached.sock"
 #      DataDir "/var/lib/rrdcached/db/collectd"
 #      CreateFiles true
+#      CreateFilesAsync false
 #      CollectStatistics true
+#
+# The following settings are rather advanced
+# and should usually not be touched:
+#      StepSize 10
+#      HeartBeat 20
+#      RRARows 1200
+#      RRATimespan 158112000
+#      XFF 0.1
 #</Plugin>
 
 <Plugin rrdtool>
@@ -667,6 +811,7 @@ LoadPlugin users
 #      CacheTimeout 120
 #      CacheFlush 900
 #      WritesPerSecond 30
+#      CreateFilesAsync false
 #      RandomTimeout 0
 #
 # The following settings are rather advanced
@@ -679,6 +824,7 @@ LoadPlugin users
 </Plugin>
 
 #<Plugin sensors>
+#      SensorConfigFile "/etc/sensors3.conf"
 #      Sensor "it8712-isa-0290/temperature-temp1"
 #      Sensor "it8712-isa-0290/fanspeed-fan3"
 #      Sensor "it8712-isa-0290/voltage-in8"
@@ -732,6 +878,11 @@ LoadPlugin users
 #      </Host>
 #</Plugin>
 
+#<Plugin swap>
+#      ReportByDevice false
+#      ReportBytes true
+#</Plugin>
+
 #<Plugin table>
 #      <Table "/proc/slabinfo">
 #              Instance "slabinfo"
@@ -770,6 +921,33 @@ LoadPlugin users
 #      </File>
 #</Plugin>
 
+#<Plugin "tail_csv">
+#      <Metric "dropped">
+#              Type "percent"
+#              Instance "dropped"
+#              ValueFrom 1
+#      </Metric>
+#      <Metric "mbps">
+#              Type "bytes"
+#              Instance "wire-realtime"
+#              ValueFrom 2
+#      </Metric>
+#      <Metric "alerts">
+#              Type "alerts_per_second"
+#              ValueFrom 3
+#      </Metric>
+#      <Metric "kpps">
+#              Type "kpackets_wire_per_sec.realtime"
+#              ValueFrom 4
+#      </Metric>
+#      <File "/var/log/snort/snort.stats">
+#              Instance "snort-eth0"
+#              Interval 600
+#              Collect "dropped" "mbps" "alerts" "kpps"
+#              TimeFrom 0
+#      </File>
+#</Plugin>
+
 #<Plugin tcpconns>
 #      ListeningPorts false
 #      LocalPort "25"
@@ -834,6 +1012,18 @@ LoadPlugin users
 #      Verbose false
 #</Plugin>
 
+#<Plugin write_graphite>
+#      <Node "example">
+#              Host "localhost"
+#              Port "2003"
+#              Prefix "collectd"
+#              Postfix "collectd"
+#              StoreRates true
+#              AlwaysAppendDS false
+#              EscapeCharacter "_"
+#      </Node>
+#</Plugin>
+
 #<Plugin write_http>
 #      <URL "http://example.com/collectd-post">
 #              User "collectd"
@@ -846,6 +1036,26 @@ LoadPlugin users
 #      </URL>
 #</Plugin>
 
+#<Plugin write_mongodb>
+#      <Node "example">
+#              Host "localhost"
+#              Port "27017"
+#              Timeout 1000
+#              StoreRates false
+#      <Node>
+#</Plugin>
+
+#<Plugin write_riemann>
+#      <Node "example">
+#              Host "localhost"
+#              Port 5555
+#              Protocol UDP
+#              StoreRates true
+#              AlwaysAppendDS false
+#      </Node>
+#      Tag "foobar"
+#</Plugin>
+
 Include "/etc/collectd/filters.conf"
 Include "/etc/collectd/thresholds.conf"