summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcheck_postgres.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/check_postgres.pl b/check_postgres.pl
index fb79e5944..b5ff62de4 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -30,7 +30,7 @@ $Data::Dumper::Varname = 'POSTGRES';
$Data::Dumper::Indent = 2;
$Data::Dumper::Useqq = 1;
-our $VERSION = '2.15.0';
+our $VERSION = '2.15.1';
use vars qw/ %opt $PSQL $res $COM $SQL $db /;
@@ -2116,7 +2116,7 @@ sub verify_version {
if (!defined $info2->{db}[0]) {
ndie msg('die-nosetting', $setting);
}
- my $val = $info2->{db}[0]{slurp};
+ my $val = $info2->{db}[0]{slurp}[0]{setting};
if ($val !~ /^\s*on\b/) {
ndie msg('die-noset', $action, $setting);
}
@@ -7164,7 +7164,7 @@ sub check_archive_ready {
B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
-This documents describes check_postgres.pl version 2.15.0
+This documents describes check_postgres.pl version 2.15.1
=head1 SYNOPSIS
@@ -8747,6 +8747,10 @@ Items not specifically attributed are by Greg Sabino Mullane.
=over 4
+=item B<Version 2.15.1>
+
+ Fix problem when examining items in pg_settings (Greg Sabino Mullane)
+
=item B<Version 2.15.0>
Add --quiet argument to surpress output on OK Nagios results