From 0e000411bb970766fb869c99fcc5a7e339af3d91 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 4 Feb 2009 09:51:26 +0100 Subject: [PATCH] collectd.conf(5): Document the `{Min,Max}Version' options of the dbi plugin. --- src/collectd.conf.pod | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index ffffa1c1..519185af 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -354,6 +354,8 @@ than those of other plugins. It usually looks something like this: Statement "SELECT category, COUNT(*) AS value FROM products WHERE in_stock = 0 GROUP BY category" + # Use with MySQL 5.0.0 or later + MinVersion 50000 Type "gauge" InstancePrefix "out_of_stock" @@ -433,6 +435,38 @@ like this: use a more strict database server, you may have to select from a dummy table or something.) +=item B I + +=item B I + +Only use this query for the specified database version. You can use these +options to provide multiple queries with the same name but with a slightly +different syntax. The plugin will use only those queries, where the specified +minimum and maximum versions fit the version of the database in use. + +The database version is determined by C, see the +L +for details. Basically, each part of the version is assumed to be in the range +from B<00> to B<99> and all dots are removed. So version "4.1.2" becomes +"40102", version "5.0.42" becomes "50042". + +B The plugin will use B matching queries, so if you specify +multiple queries with the same name and B ranges, weird stuff will +happen. Don't to it! A valid example would be something along these lines: + + MinVersion 40000 + MaxVersion 49999 + ... + MinVersion 50000 + MaxVersion 50099 + ... + MinVersion 50100 + # No maximum + +In the above example, there are three ranges that don't overlap. The last one +goes from version "5.1.0" to infinity, meaning "all later versions". Versions +before "4.0.0" are not specified. + =item B I The B that's used for each line returned. See L for more -- 2.30.2