diff options
author | Greg Sabino Mullane | 2009-02-06 13:45:56 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2009-02-06 13:45:56 +0000 |
commit | 4bf3dca891fdb7e2dd1defb7cf9a21f61f76ba7c (patch) | |
tree | d4d61b3a7115ee462c6e42fad6de8fbc289bc5c8 | |
parent | 32d9df7ad3e2fa08003e814d999f2c7a91b859af (diff) |
Bump version, minor whitespace fixes.
-rwxr-xr-x | check_postgres.pl | 8 | ||||
-rw-r--r-- | check_postgres.pl.asc | 6 | ||||
-rw-r--r-- | check_postgres.pl.html | 12 | ||||
-rw-r--r-- | 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 @@ <hr /> <h1><a name="name">NAME</a></h1> <p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others</p> -<p>This documents describes check_postgres.pl version 2.7.0</p> +<p>This documents describes check_postgres.pl version 2.7.1</p> <p> </p> <hr /> @@ -1235,14 +1235,20 @@ 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_0"><strong>Version 2.7.0</strong> (?? 2009)</a></strong></dt> +<dt><strong><a name="item_1"><strong>Version 2.7.1</strong> (February 6, 2009)</a></strong></dt> + +<dd> +<pre> + Allow the -p argument for port to work again.</pre> +</dd> +<dt><strong><a name="item_0"><strong>Version 2.7.0</strong> (February 4, 2009)</a></strong></dt> <dd> <pre> Do not require a connection argument, but use defaults and ENV variables when possible: PGHOST, PGPORT, PGUSER, PGDATABASE.</pre> </dd> -<dt><strong><a name="item_1"><strong>Version 2.6.1</strong> (February 4, 2009)</a></strong></dt> +<dt><strong><strong>Version 2.6.1</strong> (February 4, 2009)</strong></dt> <dd> <pre> diff --git a/index.html b/index.html index 094c1dedf..2f57a47e0 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.7.0</b>, and was released on February 04, 2009.</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.7.1</b>, and was released on February 06, 2009.</p> <ul> - <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.7.0</a></li> + <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.7.1</a></li> </ul> <ul> - <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl">Download check_postgres.pl 2.7.0</a></li> - <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.7.0</a></li> + <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl">Download check_postgres.pl 2.7.1</a></li> + <li><a href="/https/git.postgresql.org/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.7.1</a></li> </ul> <p>The latest development version can be downloaded via git:</p> |