Code

collectd.conf: Updated sample configuration.
authorSebastian Harl <sh@tokkee.org>
Wed, 27 May 2009 11:59:48 +0000 (13:59 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 27 May 2009 11:59:48 +0000 (13:59 +0200)
Added further config options that did not yet appear.

debian/collectd.conf

index 11bf8e0f772c74ff47001a97905b1c14032c0ce0..8b5ca60e444aa033d6c5a9429a81fa4f28bcddaa 100644 (file)
@@ -112,14 +112,16 @@ LoadPlugin users
 #      URL "http://localhost/ascent/status/"
 #      User "www-user"
 #      Password "secret"
+#      VerifyPeer false
+#      VerifyHost false
 #      CACert "/etc/ssl/ca.crt"
 #</Plugin>
 
 #<Plugin "bind">
 #      URL "http://localhost:8053/"
+#
 #      OpCodes true
 #      QTypes true
-#
 #      ServerStats true
 #      ZoneMaintStats true
 #      ResolverStats false
@@ -144,6 +146,9 @@ LoadPlugin users
 #              URL "http://finance.google.com/finance?q=NYSE%3AAMD"
 #              User "foo"
 #              Password "bar"
+#              VerifyPeer false
+#              VerifyHost false
+#              CACert "/etc/ssl/ca.crt"
 #              <Match>
 #                      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
 #                      DSType "GaugeAverage"
@@ -157,8 +162,11 @@ LoadPlugin users
 #      <Query "num_of_customers">
 #              Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
 #                              FROM customers_tbl"
+#              MinVersion 40102
+#              MaxVersion 50042
 #              <Result>
 #                      Type "gauge"
+#                      InstancePrefix "customer"
 #                      InstancesFrom "c_key"
 #                      ValuesFrom "c_value"
 #              </Result>
@@ -170,9 +178,9 @@ LoadPlugin users
 #              DriverOption "username" "collectd"
 #              DriverOption "password" "secret"
 #              DriverOption "dbname" "custdb0"
-#              #SelectDB "custdb0"
+#              SelectDB "custdb0"
 #              Query "num_of_customers"
-#              #Query "..."
+#              Query "..."
 #      </Database>
 #</Plugin>
 
@@ -196,6 +204,7 @@ LoadPlugin users
 #</Plugin>
 
 #<Plugin email>
+#      SocketFile "/var/run/collectd-email"
 #      SocketGroup "collectd"
 #      SocketPerms "0770"
 #      MaxConns 5
@@ -213,6 +222,7 @@ LoadPlugin users
 #              Name "*.conf"
 #              MTime "-5m"
 #              Size "+10k"
+#              Recursive true
 #      </Directory>
 #</Plugin>
 
@@ -227,6 +237,15 @@ LoadPlugin users
 #      IgnoreSelected false
 #</Plugin>
 
+#<Plugin ipmi>
+#      Sensor "some_sensor"
+#      Sensor "another_one"
+#      IgnoreSelected false
+#      NotifySensorAdd false
+#      NotifySensorRemove true
+#      NotifySensorNotPresent false
+#</Plugin>
+
 #<Plugin iptables>
 #      Chain "table" "chain"
 #</Plugin>
@@ -268,10 +287,21 @@ LoadPlugin users
 #</Plugin>
 
 #<Plugin mysql>
-#      Host "database.serv.er"
-#      User "db_user"
-#      Password "secret"
-#      Database "db_name"
+#      <Database db_name>
+#              Host "database.serv.er"
+#              Port "3306"
+#              User "db_user"
+#              Password "secret"
+#              Database "db_name"
+#              MasterStats true
+#      </Database>
+#
+#      <Database db_name2>
+#              Host "localhost"
+#              Socket "/var/run/mysql/mysqld.sock"
+#              SlaveStats true
+#              SlaveNotifications true
+#      </Database>
 #</Plugin>
 
 #<Plugin netlink>
@@ -351,15 +381,37 @@ LoadPlugin users
 #<Plugin ping>
 #      Host "host.foo.bar"
 #      Host "host.baz.qux"
+#      Interval 1.0
+#      Timeout 0.9
 #      TTL 255
 #</Plugin>
 
 #<Plugin postgresql>
 #      <Query magic>
-#              Query "SELECT magic, spells FROM wizard WHERE host = $1;"
+#              Statement "SELECT magic FROM wizard WHERE host = $1;"
 #              Param hostname
-#              Column gauge magic
-#              Column counter spells
+#
+#              <Result>
+#                      Type gauge
+#                      InstancePrefix "magic"
+#                      ValuesFrom "magic"
+#              </Result>
+#      </Query>
+#
+#      <Query rt36_tickets>
+#              Statement "SELECT COUNT(type) AS count, type \
+#                                FROM (SELECT CASE \
+#                                             WHEN resolved = 'epoch' THEN 'open' \
+#                                             ELSE 'resolved' END AS type \
+#                                             FROM tickets) type \
+#                                GROUP BY type;"
+#
+#              <Result>
+#                      Type counter
+#                      InstancePrefix "rt36_tickets"
+#                      InstancesFrom "type"
+#                      ValuesFrom "count"
+#              </Result>
 #      </Query>
 #
 #      <Database foo>
@@ -376,6 +428,9 @@ LoadPlugin users
 #
 #      <Database bar>
 #              Service "service_name"
+#
+#              Query backend # predefined
+#              Query rt36_tickets
 #      </Database>
 #</Plugin>
 
@@ -395,6 +450,7 @@ LoadPlugin users
 
 #<Plugin processes>
 #      Process "name"
+#      ProcessMatch "foobar" "/usr/bin/perl foobar\\.pl.*"
 #</Plugin>
 
 #<Plugin protocols>
@@ -406,6 +462,7 @@ LoadPlugin users
        DataDir "/var/lib/collectd/rrd"
 #      CacheTimeout 120
 #      CacheFlush 900
+#      WritesPerSecond 30
 #
 # The following settings are rather advanced
 # and should usually not be touched:
@@ -430,17 +487,20 @@ LoadPlugin users
 #              Type "voltage"
 #              Table false
 #              Instance "input_line1"
+#              Scale 0.1
 #              Values "SNMPv2-SMI::enterprises.6050.5.4.1.1.2.1"
 #      </Data>
 #      <Data "hr_users">
 #              Type "users"
 #              Table false
 #              Instance ""
+#              Shift -1
 #              Values "HOST-RESOURCES-MIB::hrSystemNumUsers.0"
 #      </Data>
 #      <Data "std_traffic">
 #              Type "if_octets"
 #              Table true
+#              InstancePrefix "traffic"
 #              Instance "IF-MIB::ifDescr"
 #              Values "IF-MIB::ifInOctets" "IF-MIB::ifOutOctets"
 #      </Data>