Code

collectd.conf: Added bind, curl, dbi and openvpn plugins.
authorSebastian Harl <sh@tokkee.org>
Mon, 13 Apr 2009 21:27:40 +0000 (23:27 +0200)
committerSebastian Harl <sh@tokkee.org>
Mon, 13 Apr 2009 21:27:40 +0000 (23:27 +0200)
debian/collectd.conf

index 0a82754b4c225c2b2fdac076d7c0d6658ebe2974..d49ec293e331fcbe2b8f9e1e4066d02f8cb697e6 100644 (file)
@@ -31,9 +31,12 @@ LoadPlugin syslog
 #LoadPlugin apcups
 #LoadPlugin ascent
 LoadPlugin battery
+#LoadPlugin bind
 LoadPlugin cpu
 #LoadPlugin cpufreq
 #LoadPlugin csv
+#LoadPlugin curl
+#LoadPlugin dbi
 LoadPlugin df
 LoadPlugin disk
 #LoadPlugin dns
@@ -62,6 +65,7 @@ LoadPlugin memory
 #LoadPlugin notify_email
 #LoadPlugin ntpd
 #LoadPlugin nut
+#LoadPlugin openvpn
 #LoadPlugin perl
 #LoadPlugin ping
 #LoadPlugin postgresql
@@ -104,11 +108,67 @@ LoadPlugin users
 #      CACert "/etc/ssl/ca.crt"
 #</Plugin>
 
+#<Plugin "bind">
+#      URL "http://localhost:8053/"
+#      OpCodes true
+#      QTypes true
+#
+#      ServerStats true
+#      ZoneMaintStats true
+#      ResolverStats false
+#      MemoryStats true
+#
+#      <View "_default">
+#              QTypes true
+#              ResolverStats true
+#              CacheRRSets true
+#
+#              Zone "127.in-addr.arpa/IN"
+#      </View>
+#</Plugin>
+
 #<Plugin csv>
 #      DataDir "/var/lib/collectd/csv"
 #      StoreRates false
 #</Plugin>
 
+#<Plugin curl>
+#      <Page "stock_quotes">
+#              URL "http://finance.google.com/finance?q=NYSE%3AAMD"
+#              User "foo"
+#              Password "bar"
+#              <Match>
+#                      Regex "<span +class=\"pr\"[^>]*> *([0-9]*\\.[0-9]+) *</span>"
+#                      DSType "GaugeAverage"
+#                      Type "stock_value"
+#                      Instance "AMD"
+#              </Match>
+#      </Page>
+#</Plugin>
+
+#<Plugin dbi>
+#      <Query "num_of_customers">
+#              Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value \
+#                              FROM customers_tbl"
+#              <Result>
+#                      Type "gauge"
+#                      InstancesFrom "c_key"
+#                      ValuesFrom "c_value"
+#              </Result>
+#      </Query>
+#
+#      <Database "customers_db">
+#              Driver "mysql"
+#              DriverOption "host" "localhost"
+#              DriverOption "username" "collectd"
+#              DriverOption "password" "secret"
+#              DriverOption "dbname" "custdb0"
+#              #SelectDB "custdb0"
+#              Query "num_of_customers"
+#              #Query "..."
+#      </Database>
+#</Plugin>
+
 #<Plugin df>
 #      Device "/dev/sda1"
 #      Device "192.168.0.2:/mnt/nfs"
@@ -255,6 +315,10 @@ LoadPlugin users
 #      UPS "upsname@hostname:port"
 #</Plugin>
 
+#<Plugin openvpn>
+#      StatusFile "/etc/openvpn/openvpn-status.log"
+#</Plugin>
+
 #<Plugin perl>
 #      IncludeDir "/my/include/path"
 #      BaseName "Collectd::Plugin"