Code

Initial version of the 'check_dbi' plugin.
authorSebastian Harl <sh@teamix.net>
Thu, 7 Apr 2011 15:24:23 +0000 (17:24 +0200)
committerSebastian Harl <sh@teamix.net>
Thu, 7 Apr 2011 15:31:55 +0000 (17:31 +0200)
commitb86e5f88e547b20ffdfe8d730161cbaf2fef67d5
tree9e4d427fd51d4014309ca26b248729962af1997a
parent1bc7a4a198aefde2389c9c1685baed0da7856bf5
Initial version of the 'check_dbi' plugin.

This plugin connects to an SQL database using libdbi, thus supporting all
database backends supported by libdbi. It will then issue the specified SQL
query and check the result (the numeric value of the first column of the first
row to be precise) against the specified warning/critical ranges.

The performance data includes the connection time (µs-resolution as provided
by gettimeofday()) and the query result.
.gitignore
REQUIREMENTS
configure.in
plugins/Makefile.am
plugins/check_dbi.c [new file with mode: 0644]