$Data::Dumper::Indent = 2;
$Data::Dumper::Useqq = 1;
-our $VERSION = '2.2.1';
+our $VERSION = '2.2.2';
use vars qw/ %opt $PSQL $res $COM $SQL $db /;
=head1 NAME
B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, and others
-This documents describes check_postgres.pl version 2.2.1
+This documents describes check_postgres.pl version 2.2.2
=head1 SYNOPSIS
=over 4
+=item B<Version 2.2.2> (September 30, 2008)
+
+ Fixes for minor output and scoping problems.
+
=item B<Version 2.2.1> (September 28, 2008)
Add MRTG output to fsm_pages and fsm_relations.
<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.2.1</p>
+This documents describes check_postgres.pl version 2.2.2</p>
<p>
</p>
<hr />
warning and <strong>95%</strong> for the critical.</p>
<p>Example 1: Give a warning when our cluster has used up 76% of the free-space pageslots, with pg_freespacemap installed in database robert</p>
<pre>
- check_postgres_autovac_freeze --dbname=robert --warning="76%"</pre>
+ check_postgres_fsm_pages --dbname=robert --warning="76%"</pre>
<p>While you need to pass in the name of the database where pg_freespacemap is installed (and optionally a schema name if you have
installed the module in a non-standard schema), you only need to run this check once per cluster. Also, checking this information
does require obtaining special locks on the free-space-map, so it is recommend you do not run this check with short intervals.</p>
-<p>For MRTG output, returns the percent of free-space-map on the first line, the number of pages currently used on
+<p>For MRTG output, returns the percent of free-space-map on the first line, and the number of pages currently used on
the second line.</p>
<p>
</p>
the warning and <strong>95%</strong> for the critical.</p>
<p>Example 1: Give a warning when our cluster has used up 80% of the free-space relations, with pg_freespacemap installed in database dylan, in non-standard schema emma</p>
<pre>
- check_postgres_autovac_freeze --dbname=dylan --warning="75%" --schema=emma</pre>
+ check_postgres_fsm_relations --dbname=dylan --warning="75%" --schema=emma</pre>
<p>While you need to pass in the name of the database where pg_freespacemap is installed (and optionally a schema name
if you have installed the module in a non-standard schema), you only need to run this check once per cluster. Also,
checking this information does require obtaining special locks on the free-space-map, so it is recommend you do not
<h1><a name="history">HISTORY</a></h1>
<p>Items not specifically attributed are by Greg Sabino Mullane.</p>
<dl>
+<dt><strong><a name="item_2"><strong>Version 2.2.2</strong> (September 30, 2008)</a></strong></dt>
+
+<dd>
+<pre>
+ Fixes for minor output and scoping problems.</pre>
+</dd>
<dt><strong><a name="item_1"><strong>Version 2.2.1</strong> (September 28, 2008)</a></strong></dt>
<dd>
Allow alternate arguments "dbhost" for "host" and "dbport" for "port".
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>
+<dt><strong><strong>Version 2.1.2</strong> (July 28, 2008)</strong></dt>
<dd>
<pre>
<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.2.1</b>, and was released on September 28, 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.2.2</b>, and was released on September 30, 2008.</p>
<ul>
- <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.2.1</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 2.2.2</a></li>
</ul>
<ul>
- <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.2.1</a></li>
- <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl</a></li>
+ <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 2.2.2</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl 2.2.2</a></li>
</ul>
<p>The latest development version can be downloaded via git:</p>