[check_postgres] [commit] Version bump and minor tweaks.

check_postgres at bucardo.org check_postgres at bucardo.org
Mon Sep 22 15:58:13 UTC 2008


Committed by Greg Sabino Mullane <greg at endpoint.com>

Version bump and minor tweaks.

---
 .perlcriticrc          |    2 +-
 check_postgres.pl      |   13 +++++++++----
 check_postgres.pl.asc  |    6 +++---
 check_postgres.pl.html |   25 +++++++++++++++++++------
 index.html             |    6 +++---
 t/99_spellcheck.t      |    1 +
 6 files changed, 36 insertions(+), 17 deletions(-)

diff --git a/.perlcriticrc b/.perlcriticrc
index 9402380..98f0b82 100644
--- a/.perlcriticrc
+++ b/.perlcriticrc
@@ -4,7 +4,7 @@ verbose = 8
 severity = 1
 
 [Documentation::PodSpelling]
-stop_words = Mullane Nagios Slony nols salesrep psql dbname postgres USERNAME usernames dbuser pgpass nagios stderr showperf symlinked timesync criticals quirm lancre exabytes sami includeuser excludeuser flagg tardis WAL tablespaces tablespace perflimit burrick mallory grimm oskar ExclusiveLock garrett artemus queryname speedtest checksum checksums morpork klatch pluto faceoff slon greg watson franklin wilkins scott Sabino Seklecki dbpass autovacuum Astill refactoring NAGIOS localhost cronjob symlink symlinks backends snazzo logfile syslog parens plugin Cwd Ioannis Tambouras schemas SQL MRTG mrtg uptime datallowconn dbhost dbport
+stop_words = Mullane Nagios Slony nols salesrep psql dbname postgres USERNAME usernames dbuser pgpass nagios stderr showperf symlinked timesync criticals quirm lancre exabytes sami includeuser excludeuser flagg tardis WAL tablespaces tablespace perflimit burrick mallory grimm oskar ExclusiveLock garrett artemus queryname speedtest checksum checksums morpork klatch pluto faceoff slon greg watson franklin wilkins scott Sabino Seklecki dbpass autovacuum Astill refactoring NAGIOS localhost cronjob symlink symlinks backends snazzo logfile syslog parens plugin Cwd Ioannis Tambouras schemas SQL MRTG mrtg uptime datallowconn dbhost dbport ok
 
 ## Severity 5:
 [-Subroutines::ProhibitNestedSubs]
diff --git a/check_postgres.pl b/check_postgres.pl
index 6ab86d7..e04d982 100755
--- a/check_postgres.pl
+++ b/check_postgres.pl
@@ -419,8 +419,8 @@ sub finishup {
 	}
 
 	sub dumpresult {
-		my $SEP = ' * ';
 		my ($type,$info) = @_;
+		my $SEP = ' * ';
 		## Are we showing DEBUG_INFO?
 		my $showdebug = 0;
 		if ($DEBUGOUTPUT) {
@@ -3514,7 +3514,7 @@ Creates symlinks to the main program for each action.
 
 =item B<--output=VAL>
 
-Determines the format of the output, for use in various programs. The default is 'nagios'. No 
+Determines the format of the output, for use in various programs. The default is 'nagios'. No
 other systems are supported yet.
 
 =item B<--mrtg=VAL>
@@ -3523,8 +3523,8 @@ Used only for the MRTG or simple output, for a few specific actions.
 
 =item B<--debugoutput=VAL>
 
-Outputs the exact string returned by psql, for use in debugging. The value is one or more letters, 
-deterining if the output is displayed or not, where 'a' = all, 'c' = critical, 'w' = warning, 
+Outputs the exact string returned by psql, for use in debugging. The value is one or more letters,
+which determine if the output is displayed or not, where 'a' = all, 'c' = critical, 'w' = warning,
 'o' = ok, and 'u' = unknown. Letters can be combined.
 
 =back
@@ -4364,6 +4364,11 @@ Items not specifically attributed are by Greg Sabino Mullane.
 
 =over 4
 
+=item B<Version 2.1.4> (September 22, 2008)
+
+ Fix for race condition in txn_time action.
+ Add --debugoutput option.
+
 =item B<Version 2.1.3> (September 22, 2008)
 
  Allow alternate arguments "dbhost" for "host" and "dbport" for "port".
diff --git a/check_postgres.pl.asc b/check_postgres.pl.asc
index 8bbc541..2ce5ae7 100644
--- a/check_postgres.pl.asc
+++ b/check_postgres.pl.asc
@@ -1,6 +1,6 @@
 -----BEGIN PGP SIGNATURE-----
 
-iEYEABEDAAYFAkjXt0UACgkQvJuQZxSWSsgH8wCgsyZaQ6n4XnIfIX3HtpjUz+U6
-UrUAn31OXoEDPW84JNhhiMlycNFxAiv7
-=4Zkz
+iEYEABEDAAYFAkjXwIcACgkQvJuQZxSWSshPfwCfdotYQx8VG0ib68byMj4likfR
+f14AoKbtj1D7545jSuOwmDdCljovI02y
+=iF8H
 -----END PGP SIGNATURE-----
diff --git a/check_postgres.pl.html b/check_postgres.pl.html
index d47946b..2ee4119 100644
--- a/check_postgres.pl.html
+++ b/check_postgres.pl.html
@@ -3,7 +3,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 <title>B&lt;check_postgres.pl&gt; - a Postgres monitoring script for Nagios, MRTG, and others
-This documents describes check_postgres.pl version 2.1.3</title>
+This documents describes check_postgres.pl version 2.1.4</title>
 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
 </head>
@@ -87,7 +87,7 @@ This documents describes check_postgres.pl version 2.1.3</title>
 <hr />
 <h1><a name="name">NAME</a></h1>
 <p><strong>check_postgres.pl</strong> - a Postgres monitoring script for Nagios, MRTG, and others
-This documents describes check_postgres.pl version 2.1.3</p>
+This documents describes check_postgres.pl version 2.1.4</p>
 <p>
 </p>
 <hr />
@@ -333,6 +333,13 @@ other systems are supported yet.</p>
 <dd>
 <p>Used only for the MRTG or simple output, for a few specific actions.</p>
 </dd>
+<dt><strong><a name="item__2d_2ddebugoutput_3dval"><strong>--debugoutput=VAL</strong></a></strong></dt>
+
+<dd>
+<p>Outputs the exact string returned by psql, for use in debugging. The value is one or more letters, 
+deterining if the output is displayed or not, where 'a' = all, 'c' = critical, 'w' = warning, 
+'o' = ok, and 'u' = unknown. Letters can be combined.</p>
+</dd>
 </dl>
 <p>
 </p>
@@ -1051,12 +1058,18 @@ 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.1.3</strong> (September 22, 2008)</a></strong></dt>
+<dt><strong><a name="item_4"><strong>Version 2.1.4</strong> (September 22, 2008)</a></strong></dt>
 
 <dd>
 <pre>
- Allow alternate arguments &quot;dbhost&quot; for &quot;host&quot; and &quot;dbport&quot; for &quot;port&quot;.</pre>
+ Fix for race condition in txn_time action.
+ Add --debugoutput option.</pre>
+</dd>
+<dt><strong><a name="item_3"><strong>Version 2.1.3</strong> (September 22, 2008)</a></strong></dt>
+
+<dd>
 <pre>
+ Allow alternate arguments &quot;dbhost&quot; for &quot;host&quot; and &quot;dbport&quot; for &quot;port&quot;.
  Output a zero as default value for second line of MRTG output.</pre>
 </dd>
 <dt><strong><a name="item_2"><strong>Version 2.1.2</strong> (July 28, 2008)</a></strong></dt>
@@ -1115,7 +1128,7 @@ feature requests, and commit notices, send email to <a href="mailto:check_postgr
  Output schema name before table name where appropriate.
  Thanks to Jeff Frost.</pre>
 </dd>
-<dt><strong><a name="item_4"><strong>Version 1.8.4</strong> (June 19, 2008)</a></strong></dt>
+<dt><strong><strong>Version 1.8.4</strong> (June 19, 2008)</strong></dt>
 
 <dd>
 <pre>
@@ -1125,7 +1138,7 @@ feature requests, and commit notices, send email to <a href="mailto:check_postgr
 
 <dd>
 <pre>
- Fix check_backends action: there may be no rows in pg_stat_activity, so run a second 
+ Fix check_backends action: there may be no rows in pg_stat_activity, so run a second
    query if needed to find the max_connections setting.
  Thanks to Jeff Frost for the bug report.</pre>
 </dd>
diff --git a/index.html b/index.html
index f31066d..98c41be 100644
--- a/index.html
+++ b/index.html
@@ -21,13 +21,13 @@ 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.1.3</b>, and was released on September 22, 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.1.4</b>, and was released on September 22, 2008.</p>
 
 <ul>
- <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.1.3</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.1.4</a></li>
 </ul>
 <ul>
- <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.1.3</a></li>
+ <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.1.4</a></li>
  <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl</a></li>
 </ul>
 
diff --git a/t/99_spellcheck.t b/t/99_spellcheck.t
index f4e1d29..d9f44cd 100644
--- a/t/99_spellcheck.t
+++ b/t/99_spellcheck.t
@@ -219,6 +219,7 @@ MRTG
 nagios
 NAGIOS
 nols
+ok
 oskar
 perflimit
 pgpass
-- 
1.5.5.4



More information about the Check_postgres mailing list