diff options
-rwxr-xr-x | check_postgres.pl | 10 | ||||
-rw-r--r-- | check_postgres.pl.asc | 6 | ||||
-rw-r--r-- | check_postgres.pl.html | 10 | ||||
-rw-r--r-- | 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<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. 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 @@ <hr /> <h1><a name="name">NAME</a></h1> <p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others -This documents describes check_postgres.pl version 2.5.2</p> +This documents describes check_postgres.pl version 2.5.3</p> <p> </p> <hr /> @@ -1214,6 +1214,12 @@ feature requests, and commit notices, send email to <a href="mailto:check_postgr <h1><a name="history">HISTORY</a></h1> <p>Items not specifically attributed are by Greg Sabino Mullane.</p> <dl> +<dt><strong><a name="item_3"><strong>Version 2.5.3</strong> (December 17, 2008)</a></strong></dt> + +<dd> +<pre> + Minor fix to regex in verify_version (Lee Jensen)</pre> +</dd> <dt><strong><a name="item_2"><strong>Version 2.5.2</strong> (December 16, 2008)</a></strong></dt> <dd> @@ -1235,7 +1241,7 @@ feature requests, and commit notices, send email to <a href="mailto:check_postgr <pre> Add support for the pg_Service.conf file with the --dbservice option.</pre> </dd> -<dt><strong><a name="item_3"><strong>Version 2.4.3</strong> (November 7, 2008)</a></strong></dt> +<dt><strong><strong>Version 2.4.3</strong> (November 7, 2008)</strong></dt> <dd> <pre> diff --git a/index.html b/index.html index e8b7602ab..2efad700c 100644 --- a/index.html +++ b/index.html @@ -21,14 +21,14 @@ h1 { <h1>check_postgres.pl</h1> -<p><b>check_postgres.pl</b> 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 <a href="http://www.endpoint.com/">End Point Corporation</a> and is BSD-licensed. The latest version is <b>2.5.2</b>, and was released on December 16, 2008.</p> +<p><b>check_postgres.pl</b> 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 <a href="http://www.endpoint.com/">End Point Corporation</a> and is BSD-licensed. The latest version is <b>2.5.3</b>, and was released on December 17, 2008.</p> <ul> - <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.5.2</a></li> + <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.5.3</a></li> </ul> <ul> - <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl">Download check_postgres.pl 2.5.2</a></li> - <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.5.2</a></li> + <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl">Download check_postgres.pl 2.5.3</a></li> + <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.5.3</a></li> </ul> <p>The latest development version can be downloaded via git:</p> |