From 4bf3dca891fdb7e2dd1defb7cf9a21f61f76ba7c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Fri, 6 Feb 2009 08:45:56 -0500 Subject: Bump version, minor whitespace fixes. --- check_postgres.pl | 8 +++++++- check_postgres.pl.asc | 6 +++--- check_postgres.pl.html | 12 +++++++++--- index.html | 8 ++++---- 4 files changed, 23 insertions(+), 11 deletions(-) diff --git a/check_postgres.pl b/check_postgres.pl index b09cec441..47e42ed50 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -354,6 +354,7 @@ our %template = 'T-BAD-QUERY' => 'Invalid query returned:', ); + sub add_response { my ($type,$msg) = @_; @@ -371,6 +372,7 @@ sub add_response { push @{$type->{$header}} => [$msg,$perf]; } + sub add_unknown { my $msg = shift || $db->{error}; $msg =~ s/[\r\n]\s*/\\n /g; @@ -387,6 +389,7 @@ sub add_ok { add_response \%ok, shift; } + sub do_mrtg { ## Hashref of info to pass out for MRTG or stat my $arg = shift; @@ -419,6 +422,7 @@ sub do_mrtg { exit 0; } + sub bad_mrtg { my $msg = shift; $ERROR and ndie $ERROR; @@ -426,6 +430,7 @@ sub bad_mrtg { exit 3; } + sub do_mrtg_stats { ## Show the two highest items for mrtg stats hash @@ -2502,6 +2507,7 @@ sub check_relation_size { } ## end of check_relations_size + sub check_table_size { return check_relation_size('table'); } @@ -2902,7 +2908,6 @@ sub check_logfile { } ## end of check_logfile - sub check_query_runtime { ## Make sure a known query runs at least as fast as we think it should @@ -3703,6 +3708,7 @@ sub check_sequence { } ## end of check_sequence + sub check_checkpoint { ## Checks how long in seconds since the last checkpoint on a WAL slave diff --git a/check_postgres.pl.asc b/check_postgres.pl.asc index 024e420b0..aee4fa918 100644 --- a/check_postgres.pl.asc +++ b/check_postgres.pl.asc @@ -1,6 +1,6 @@ -----BEGIN PGP SIGNATURE----- -iEYEABEDAAYFAkmJ0o4ACgkQvJuQZxSWSsgtCACdHn3rf2QIDUcquD/O1CFmV5eE -KIIAn3L4Mu3B7rmEQqltvdfolM6vA4wT -=hieS +iEYEABEDAAYFAkmMPw4ACgkQvJuQZxSWSsi7HACgx+yN8FQgTkOVy5dyhrSbK0ls +12MAn3IaYg1Ex1GjAcA73Hb/sa4G2lB6 +=E/p9 -----END PGP SIGNATURE----- diff --git a/check_postgres.pl.html b/check_postgres.pl.html index e9815beca..65d04a5c9 100644 --- a/check_postgres.pl.html +++ b/check_postgres.pl.html @@ -92,7 +92,7 @@

NAME

check_postgres.pl - a Postgres monitoring script for Nagios, MRTG, Cacti, and others

-

This documents describes check_postgres.pl version 2.7.0

+

This documents describes check_postgres.pl version 2.7.1


@@ -1235,14 +1235,20 @@ feature requests, and commit notices, send email to HISTORY

Items not specifically attributed are by Greg Sabino Mullane.

-
Version 2.7.0 (?? 2009)
+
Version 2.7.1 (February 6, 2009)
+ +
+
+  Allow the -p argument for port to work again.
+
+
Version 2.7.0 (February 4, 2009)
   Do not require a connection argument, but use defaults and ENV variables when 
     possible: PGHOST, PGPORT, PGUSER, PGDATABASE.
-
Version 2.6.1 (February 4, 2009)
+
Version 2.6.1 (February 4, 2009)
diff --git a/index.html b/index.html
index 094c1dedf..2f57a47e0 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.7.0, and was released on February 04, 2009.

+

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.7.1, and was released on February 06, 2009.

The latest development version can be downloaded via git:

-- cgit v1.2.3