Code

check_pgsql: Added support for executing queries.
authorSebastian Harl <sh@teamix.net>
Wed, 6 Apr 2011 14:51:37 +0000 (16:51 +0200)
committerSebastian Harl <sh@teamix.net>
Wed, 6 Apr 2011 14:51:37 +0000 (16:51 +0200)
commit8a55b5215a1194335455594e39ac2004e4eea754
tree0dab0cf5b14a6d0a09c4aec467195321efdff566
parent1bc7a4a198aefde2389c9c1685baed0da7856bf5
check_pgsql: Added support for executing queries.

The query result (the double value of the first column in the first row, to be
precise) will be checked against threshold ranges specified using the -C and
-W options.

Note that this also allows to query PostgreSQL internal values using the
information available from the database daemon's "statistics collector" -- see
the chapter "Monitoring Database Activity" in the PostgreSQL manual for
details.
plugins/check_pgsql.c