nagios-plugins/nagios-plugins — pull request #8 by tokkee (2012-06-08 09:25:33+00:00)
Title: check_dbi: New plugin to query SQL databases using libdbi

The plugin features checking the connection time, query execution
time and checking query results against specified thresholds or a
regular expression.

This plugin connects to an (SQL) database using libdbi and, optionally,
executes the specified query. The first column of the first row of the
result will be parsed and, in QUERY_RESULT mode, compared with the
warning and critical ranges. The result from the query has to be numeric
(strings representing numbers are fine).