From 6bc58adaa6e80820b9ee4af881e36d2993f95203 Mon Sep 17 00:00:00 2001
From: Greg Sabino Mullane
Date: Wed, 17 Dec 2008 13:29:45 -0500
Subject: [PATCH] Version 2.5.3: small regex fix in verify_version (Lee Jensen
via Jeff Frost)
---
check_postgres.pl | 10 +++++++---
check_postgres.pl.asc | 6 +++---
check_postgres.pl.html | 10 ++++++++--
index.html | 8 ++++----
4 files changed, 22 insertions(+), 12 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 - 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 (December 17, 2008)
+
+ Minor fix to regex in verify_version (Lee Jensen)
+
=item B (December 16, 2008)
Minor documentation tweak.
diff --git a/check_postgres.pl.asc b/check_postgres.pl.asc
index 0c1cca341..0bf1fde00 100644
--- a/check_postgres.pl.asc
+++ b/check_postgres.pl.asc
@@ -1,6 +1,6 @@
-----BEGIN PGP SIGNATURE-----
-iEYEABEDAAYFAklIaw0ACgkQvJuQZxSWSshfLQCg2ygQmvxjz2SpOIyKuzvbJDxA
-yToAnAh71TN/AmzNAVsC1Mg+4w07KVaA
-=xhJ4
+iEYEABEDAAYFAklJRQ4ACgkQvJuQZxSWSshRHQCfRdntkPvpLerV4sptA2rOrhJJ
+GbsAoKnoyomZDQpRSN3LXDuXGfMeedF8
+=wGIc
-----END PGP SIGNATURE-----
diff --git a/check_postgres.pl.html b/check_postgres.pl.html
index 0d135a84f..723cf90a6 100644
--- a/check_postgres.pl.html
+++ b/check_postgres.pl.html
@@ -92,7 +92,7 @@
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
@@ -1214,6 +1214,12 @@ feature requests, and commit notices, send email to HISTORY
Items not specifically attributed are by Greg Sabino Mullane.
+- Version 2.5.3 (December 17, 2008)
+
+-
+
+ Minor fix to regex in verify_version (Lee Jensen)
+
- Version 2.5.2 (December 16, 2008)
-
@@ -1235,7 +1241,7 @@ feature requests, and commit notices, send email to Version 2.4.3 (November 7, 2008)
+
- Version 2.4.3 (November 7, 2008)
-
diff --git a/index.html b/index.html
index e8b7602ab..2efad700c 100644
--- a/index.html
+++ b/index.html
@@ -21,14 +21,14 @@ h1 {
check_postgres.pl
-check_postgres.pl is a script for checking the state of one or more Postgres databases and reporting back in a Nagios-friendly manner. It was developed by Greg Sabino Mullane of End Point Corporation and is BSD-licensed. The latest version is 2.5.2, and was released on December 16, 2008.
+check_postgres.pl is a script for checking the state of one or more Postgres databases and reporting back in a Nagios-friendly manner. It was developed by Greg Sabino Mullane of End Point Corporation and is BSD-licensed. The latest version is 2.5.3, and was released on December 17, 2008.
The latest development version can be downloaded via git:
--
2.39.5