From: Greg Sabino Mullane Date: Mon, 27 Dec 2010 16:43:09 +0000 (-0500) Subject: Fixed problem when examining items in pg_settings. X-Git-Tag: 2.15.1~3 X-Git-Url: http://git.postgresql.org/gitweb/stat%3Cscript%20data-cfasync=?a=commitdiff_plain;h=6f71824e36812baef6fcae27c4a6b4ae6197eb98;p=check_postgres.git Fixed problem when examining items in pg_settings. --- 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 - 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 + + Fix problem when examining items in pg_settings (Greg Sabino Mullane) + =item B Add --quiet argument to surpress output on OK Nagios results