summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorGreg Sabino Mullane2008-12-17 18:29:45 +0000
committerGreg Sabino Mullane2008-12-17 18:29:45 +0000
commit6bc58adaa6e80820b9ee4af881e36d2993f95203 (patch)
tree7223219f3695919afc0ad76aadc3569a410ef325 /check_postgres.pl
parentb63004db13de7f8986b0ba69f3b8d45510b43e65 (diff)
Version 2.5.3: small regex fix in verify_version (Lee Jensen via Jeff Frost)
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 19504b017..51df7209e 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -28,7 +28,7 @@ $Data::Dumper::Varname = 'POSTGRES';
$Data::Dumper::Indent = 2;
$Data::Dumper::Useqq = 1;
-our $VERSION = '2.5.2';
+our $VERSION = '2.5.3';
use vars qw/ %opt $PSQL $res $COM $SQL $db /;
@@ -1222,7 +1222,7 @@ sub verify_version {
die "Could not fetch setting '$setting'\n";
}
my $val = $info->{db}[0]{slurp};
- if ($val ne 'on') {
+ if ($val !~ /^on\b/) {
die qq{Cannot run "$action": $setting is not set to on\n};
}
}
@@ -3748,7 +3748,7 @@ sub show_dbstats {
=head1 NAME
B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
-This documents describes check_postgres.pl version 2.5.2
+This documents describes check_postgres.pl version 2.5.3
=head1 SYNOPSIS
@@ -4976,6 +4976,10 @@ Items not specifically attributed are by Greg Sabino Mullane.
=over 4
+=item B<Version 2.5.3> (December 17, 2008)
+
+ Minor fix to regex in verify_version (Lee Jensen)
+
=item B<Version 2.5.2> (December 16, 2008)
Minor documentation tweak.