summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2009-07-13 15:08:49 +0000
committerGreg Sabino Mullane2009-07-13 15:08:49 +0000
commitfd50323a6896478c95dec275b9673cd2223273ae (patch)
treeb12824dc87bb35a1566155d47afb2541d30a2b07 /check_postgres.pl
parent353198a97a6cd0b96831665e7f4afcbbfa2f251e (diff)
Apply small fix from Davide Abrigo.
Bump version to 2.9.3
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-xcheck_postgres.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index 3a3cd6c66..ab760b3dc 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -29,7 +29,7 @@ $Data::Dumper::Varname = 'POSTGRES';
$Data::Dumper::Indent = 2;
$Data::Dumper::Useqq = 1;
-our $VERSION = '2.9.2';
+our $VERSION = '2.9.3';
use vars qw/ %opt $PSQL $res $COM $SQL $db /;
@@ -2351,7 +2351,7 @@ sub check_backends {
$limit ||= $2;
my ($current,$dbname) = ($1,$3);
## Always want perf to show all
- $db->{perf} .= " $dbname=$current";
+ $db->{perf} .= " '$dbname'=$current";
next SLURP if skip_item($dbname);
$total += $current;
}
@@ -6040,7 +6040,7 @@ sub show_dbstats {
B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
-This documents describes check_postgres.pl version 2.9.2
+This documents describes check_postgres.pl version 2.9.3
=head1 SYNOPSIS
@@ -7450,6 +7450,10 @@ Items not specifically attributed are by Greg Sabino Mullane.
=over 4
+=item B<Version 2.9.3>
+
+ Quote dbname in perf output for the backends check. (Davide Abrigo)
+
=item B<Version 2.9.2> (July 12, 2009)
Allow dots and dashes in database name for the backends check (Davide Abrigo)