$Data::Dumper::Indent = 2;
$Data::Dumper::Useqq = 1;
-our $VERSION = '1.8.1';
+our $VERSION = '1.8.2';
use vars qw/ %opt $PSQL $res $COM $SQL $db /;
=head1 VERSION
-This documents describes B<check_postgres.pl> version 1.8.1
+This documents describes B<check_postgres.pl> version 1.8.2
=head1 SYNOPSIS
=over 4
+=item B<Version 1.8.2> (June 10, 2008)
+
+Changes to allow working under Nagios' embedded Perl mode. (Ioannis Tambouras)
+
=item B<Version 1.8.1> (June 9, 2008)
Allow check_bloat to work on Postgres version 8.0.
-----BEGIN PGP SIGNATURE-----
-iEYEABEDAAYFAkhN1IQACgkQvJuQZxSWSsgLqwCgpRL15EkJhLYLjWwBlGF//cZM
-R68AoOcgP4TebpZbEEQ2roMqfpQtsYlU
-=8x3Y
+iEYEABEDAAYFAkhOiaoACgkQvJuQZxSWSsjiXACfTQ5n9lSVQWFgAMOo9j4d6qhn
+zVwAoIzRQtavotWmtpCznryp2T3EeofU
+=7RHX
-----END PGP SIGNATURE-----
<li><a href="#basic_filtering">BASIC FILTERING</a></li>
<li><a href="#user_name_filtering">USER NAME FILTERING</a></li>
<li><a href="#test_mode">TEST MODE</a></li>
+ <li><a href="#tips_and_tricks">TIPS AND TRICKS</a></li>
<li><a href="#dependencies">DEPENDENCIES</a></li>
<li><a href="#development">DEVELOPMENT</a></li>
<li><a href="#history">HISTORY</a></li>
</p>
<hr />
<h1><a name="version">VERSION</a></h1>
-<p>This documents describes <strong>check_postgres.pl</strong> version 1.8.1</p>
+<p>This documents describes <strong>check_postgres.pl</strong> version 1.8.2</p>
<p>
</p>
<hr />
<p>
</p>
<hr />
+<h1><a name="tips_and_tricks">TIPS AND TRICKS</a></h1>
+<p>Since this program uses the <strong>psql</strong> program, make sure it is accesible to the
+uer running the script. If run as a cronjob, this often means modifying the
+<strong>PATH</strong> environment variable.</p>
+<p>If you are using Nagios in embedded Perl mode, use the --action argument
+instead of symlinks, so that the plugin only gets compiled one time.</p>
+<p>
+</p>
+<hr />
<h1><a name="dependencies">DEPENDENCIES</a></h1>
<p>Access to a working version of psql, and the following very standard Perl modules:</p>
<dl>
<h1><a name="history">HISTORY</a></h1>
<p>Items not specifically attributed are by Greg Sabino Mullane.</p>
<dl>
+<dt><strong><a name="2" class="item"><strong>Version 1.8.2</strong> (June 10, 2008)</a></strong>
+
+<dd>
+<p>Changes to allow working under Nagios' embedded Perl mode. (Ioannis Tambouras)</p>
+</dd>
+</li>
<dt><strong><a name="1" class="item"><strong>Version 1.8.1</strong> (June 9, 2008)</a></strong>
<dd>
<p>Add the custom_query action.</p>
</dd>
</li>
-<dt><strong><a name="2" class="item"><strong>Version 1.5.2</strong> (May 2, 2008)</a></strong>
+<dt><strong><strong>Version 1.5.2</strong> (May 2, 2008)</strong>
<dd>
<p>Fix problem with too eager creation of custom pgpass file.</p>
<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>1.8.1</b>, and was released on June 3, 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>1.8.2</b>, and was released on June 10, 2008.</p>
<ul>
- <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 1.8.1</a></li>
+ <li><a href="/check_postgres/check_postgres.pl.html">Documentation for check_postgres 1.8.2</a></li>
</ul>
<ul>
- <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 1.8.1</a></li>
+ <li><a href="/check_postgres/check_postgres.pl">Download check_postgres.pl 1.8.2</a></li>
<li><a href="/check_postgres/check_postgres.pl.asc">PGP signature for check_postgres.pl</a></li>
</ul>