summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 94390ba)
raw | patch | inline | side by side (parent: 94390ba)
author | Florian Forster <octo@noris.net> | |
Tue, 7 Oct 2008 14:41:07 +0000 (16:41 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Tue, 7 Oct 2008 14:41:07 +0000 (16:41 +0200) |
src/collectd.conf.in | patch | blob | history |
diff --git a/src/collectd.conf.in b/src/collectd.conf.in
index a09522c982ab355e26dd2b051e6d37d00ac29292..53abd3fabdcab0f5ad92f7792da55af3ce12ed55 100644 (file)
--- a/src/collectd.conf.in
+++ b/src/collectd.conf.in
@BUILD_PLUGIN_CPU_TRUE@LoadPlugin cpu
@BUILD_PLUGIN_CPUFREQ_TRUE@LoadPlugin cpufreq
@BUILD_PLUGIN_CSV_TRUE@LoadPlugin csv
+@BUILD_PLUGIN_DBI_TRUE@LoadPlugin dbi
@BUILD_PLUGIN_DF_TRUE@LoadPlugin df
@BUILD_PLUGIN_DISK_TRUE@LoadPlugin disk
@BUILD_PLUGIN_DNS_TRUE@LoadPlugin dns
# StoreRates false
#</Plugin>
+#<Plugin dbi>
+# <Query "num_of_customers">
+# Statement "SELECT 'customers' AS c_key, COUNT(*) AS c_value FROM customers_tbl"
+# Type "gauge"
+# InstancesFrom "c_key"
+# ValuesFrom "c_value"
+# </Query>
+# <Database "customers_db">
+# Driver "mysql"
+# DriverOption "host" "localhost"
+# DriverOption "username" "collectd"
+# DriverOption "password" "AeXohy0O"
+# DriverOption "dbname" "custdb0"
+# #SelectDB "custdb0"
+# Query "num_of_customers"
+# #Query "..."
+# </Database>
+#</Plugin>
+
#<Plugin df>
# Device "/dev/hda1"
# Device "192.168.0.2:/mnt/nfs"