diff options
author | Greg Sabino Mullane | 2010-12-27 16:43:09 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2010-12-27 16:43:09 +0000 |
commit | 6f71824e36812baef6fcae27c4a6b4ae6197eb98 (patch) | |
tree | d4e6497e03bc2e493d12ac2d449527e653cfe270 /check_postgres.pl | |
parent | c54c4d041bb164c201f5da2de217496c9f4e261c (diff) |
Fixed problem when examining items in pg_settings.
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 10 |
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 |