Bump to version 2.15.0, regenerate HTML, update release changes.
authorGreg Sabino Mullane <[email protected]>
Wed, 7 Apr 2010 15:45:40 +0000 (11:45 -0400)
committerAndy Lester <[email protected]>
Wed, 7 Apr 2010 16:46:31 +0000 (11:46 -0500)
META.yml
Makefile.PL
check_postgres.pl
check_postgres.pl.html

index 212168bc9694290de5db08ecbd8f971a47dc0d03..ab76206bd0c547b808108c6cd8dbaea71abb9e0d 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name                        : check_postgres.pl
-version                     : 2.14.4
+version                     : 2.15.0
 abstract                    : Postgres monitoring script
 author:              
   - Greg Sabino Mullane <[email protected]>
@@ -30,7 +30,7 @@ recommends:
 provides:
   check_postgres:
     file                    : check_postgres.pl
-    version                 : 2.14.4
+    version                 : 2.15.0
 
 keywords:
   - Postgres
index 8b7cf541521d7c28a58d6efae7e0d879c3f79a10..28d2130d1a27a018eb3fd32766d2f0cfd6c0a351 100644 (file)
@@ -6,7 +6,7 @@ use strict;
 use warnings;
 use 5.006001;
 
-my $VERSION = '2.14.4';
+my $VERSION = '2.15.0';
 
 if ($VERSION =~ /_/) {
        print "WARNING! This is a test version ($VERSION) and should not be used in production!\n";
index f6fb0ce94bc63b31da5f34513ded82b6f57cf990..40cb89093fd9ad76e9ffe9c4fba6124237feb175 100755 (executable)
@@ -8454,9 +8454,14 @@ Items not specifically attributed are by Greg Sabino Mullane.
 
 =over 4
 
-=item B<Version 2.15.0>
+=item B<NEXT>
 
   Add --man option to show the entire manual. (Andy Lester)
+
+=item B<Version 2.15.0>
+
+  Redo the internal run_command() sub to use -x and hashes instead of regexes.
+  Fix error in custom logic (Andreas Mager)
   Add the "pgbouncer_checksum" action (Guillaume Lelarge)
   Fix regex to work on WIN32 for check_fsm_relations and check_fsm_pages (Luke Koops)
   Don't apply a LIMIT when using --exclude on the bloat action (Marti Raudsepp)
index b3a4eaadaac2acc10083cf02927996257c9eb49d..3402c53be2713ce3e0841a15547db2315240300c 100644 (file)
@@ -62,6 +62,7 @@
                <li><a href="#new_version_cp"><strong>new_version_cp</strong></a></li>
                <li><a href="#new_version_pg"><strong>new_version_pg</strong></a></li>
                <li><a href="#new_version_bc"><strong>new_version_bc</strong></a></li>
+               <li><a href="#pgbouncer_checksum"><strong>pgbouncer_checksum</strong></a></li>
                <li><a href="#prepared_txns"><strong>prepared_txns</strong></a></li>
                <li><a href="#query_runtime"><strong>query_runtime</strong></a></li>
                <li><a href="#query_time"><strong>query_time</strong></a></li>
 <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.14.4</p>
+<p>This documents describes check_postgres.pl version 2.15.0</p>
 <p>
 </p>
 <hr />
@@ -518,10 +519,10 @@ times larger the relation is compared to how large it should be), just pass in <
 </p>
 <h2><a name="checkpoint"><strong>checkpoint</strong></a></h2>
 <p>(<code>symlink: check_postgres_checkpoint</code>) Determines how long since the last checkpoint has 
-been run. This must run on the same server as the database that is being checked. This check is 
-meant to run on a &quot;warm standby&quot; server that is actively processing shipped WAL files, and is meant 
-to check that your warm standby is truly 'warm'. The data directory must be set, either by the 
-environment variable <code>PGDATA</code>, or passing 
+been run. This must run on the same server as the database that is being checked (e.g. the -h 
+flag will not work). This check is meant to run on a &quot;warm standby&quot; server that is actively 
+processing shipped WAL files, and is meant to check that your warm standby is truly 'warm'. 
+The data directory must be set, either by the environment variable <code>PGDATA</code>, or passing 
 the <code>--datadir</code> argument. It returns the number of seconds since the last checkpoint 
 was run, as determined by parsing the call to <code>pg_controldata</code>. Because of this, the 
 pg_controldata executable must be available in the current path. Alternatively, you can 
@@ -542,7 +543,8 @@ Takes no <em>--warning</em> or <em>--critical</em> options.</p>
 <p>(<code>symlink: check_postgres_custom_query</code>) Runs a custom query of your choosing, and parses the results. The query itself is passed in through 
 the <code>custom_query</code> argument, and should be kept as simple as possible. If at all possible, wrap it in 
 a view or a function to keep things easier to manage. The query should return one or two columns: the first 
-is the result that will be checked, and the second is any performance data you want sent.</p>
+is the result that will be checked, and the second is any performance data you want sent. They must be returned 
+as columns named <em>result</em> and <em>data</em>.</p>
 <p>At least one warning or critical argument must be specified. What these are set to depends on the type of 
 query you are running. There are four types of custom_queries that can be run, specified by the <code>valtype</code> 
 argument. If none is specified, this action defaults to 'integer'. The four types are:</p>
@@ -957,6 +959,27 @@ replication system for Postgres: see <a href="http://bucardo.org">http://bucardo
 See also the information on the <code>--get_method</code> option.</p>
 <p>
 </p>
+<h2><a name="pgbouncer_checksum"><strong>pgbouncer_checksum</strong></a></h2>
+<p>(<code>symlink: check_postgres_pgbouncer_checksum</code>) Checks that all the
+pgBouncer settings are the same as last time you checked. 
+This is done by generating a checksum of a sorted list of setting names and 
+their values. Note that you shouldn't specify the database name, it will
+automatically default to pgbouncer.  Either the <em>--warning</em> or the <em>--critical</em> option 
+should be given, but not both. The value of each one is the checksum, a 
+32-character hexadecimal value. You can run with the special <code>--critical=0</code> option 
+to find out an existing checksum.</p>
+<p>This action requires the Digest::MD5 module.</p>
+<p>Example 1: Find the initial checksum for pgbouncer configuration on port 6432 using the default user (usually postgres)</p>
+<pre>
+  check_postgres_pgbouncer_checksum --port=6432 --critical=0</pre>
+<p>Example 2: Make sure no settings have changed and warn if so, using the checksum from above.</p>
+<pre>
+  check_postgres_pgbouncer_checksum --port=6432 --warning=cd2f3b5e129dc2b4f5c0f6d8d2e64231</pre>
+<p>For MRTG output, returns a 1 or 0 indicating success of failure of the checksum to match. A 
+checksum must be provided as the <code>--mrtg</code> argument. The fourth line always gives the 
+current checksum.</p>
+<p>
+</p>
 <h2><a name="prepared_txns"><strong>prepared_txns</strong></a></h2>
 <p>(<code>symlink: check_postgres_prepared_txns</code>) Check on the age of any existing prepared transactions. 
 Note that most people will NOT use prepared transactions, as they are part of two-part commit 
@@ -1461,11 +1484,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="version_2_14_4" class="item"><strong></strong>Version 2.14.4</a></strong></dt>
+<dt><strong><a name="version_2_15_0" class="item"><strong>Version 2.15.0</strong></a></strong></dt>
 
 <dd>
 <pre>
-  Fix to show database properly when using slony_status (Guillaume Lelarge)</pre>
+  Redo the internal run_command() sub to use -x and hashes instead of regexes.
+  Fix error in custom logic (Andreas Mager)
+  Add the &quot;pgbouncer_checksum&quot; action (Guillaume Lelarge)
+  Fix regex to work on WIN32 for check_fsm_relations and check_fsm_pages (Luke Koops)
+  Don't apply a LIMIT when using --exclude on the bloat action (Marti Raudsepp)
+  Change the output of query_time to show pid,user,port, and address (Giles Westwood)
+  Fix to show database properly when using slony_status (Guillaume Lelarge)
+  Allow warning items for same_schema to be comma-separated (Guillaume Lelarge)</pre>
 </dd>
 <dt><strong><a name="3" class="item"><strong>Version 2.14.3</strong> (March 1, 2010)</a></strong></dt>