.perlcriticrc
META.yml
TODO
-set_translations.pl
t/00_basic.t
t/00_signature.t
check_postgres-.*
test_database_check_postgres*
\.git/*
-\.tmp$
\ No newline at end of file
+\.tmp$
+set_translations.pl
--- #YAML:1.0
name : check_postgres.pl
-version : 2.9.1
+version : 2.9.2
abstract : Postgres monitoring script
author:
- Greg Sabino Mullane <greg@endpoint.com>
provides:
check_postgres:
file : check_postgres.pl
- version : 2.9.1
+ version : 2.9.2
keywords:
- Postgres
use warnings;
use 5.006001;
-my $VERSION = '2.9.1';
+my $VERSION = '2.9.2';
if ($VERSION =~ /_/) {
print "WARNING! This is a test version ($VERSION) and should not be used in production!\n";
SHA1 eef2341bfa65e95b282b90efef9fe9ebf2e6c2a1 .gitignore
SHA1 e14d35b60158528c0df790a818f22deab1fb29dd .perlcriticrc
SHA1 c9397169d5bd7edd6c69e4d9bc66e757fe87d9ae MANIFEST
-SHA1 1664d834906a588f696833c6ade972c293d4e376 MANIFEST.SKIP
-SHA1 306b248efff873f586a0a28618d8febccbc0d777 META.yml
-SHA1 1f2301d8ed80eb8767e78da0430e212df2f5aabf Makefile.PL
+SHA1 78ce6c2ad0a74b1f9a9afdc181cc1726b992f379 MANIFEST.SKIP
+SHA1 68fb613a0677f6b9f2031fd6b9522a5c329fdf51 META.yml
+SHA1 bbb3afa0e8ac4d3ce05f383a3db2774aff51b0bd Makefile.PL
SHA1 439030be7d36d3a7d3480d4ff6abda13c9030101 README
-SHA1 36ae5fd53c26921cb36ffcbca408a169090292e3 TODO
-SHA1 4968968d3df8d048be2ec395e9871d129bff353a check_postgres.pl
-SHA1 4ec526245d3b696049407aa00d78500671ca907f check_postgres.pl.asc
-SHA1 d517f704042d3f9ccb5640fe4d115174ef16502a check_postgres.pl.html
+SHA1 402367c7263659173171c17093d1356a06375ac4 TODO
+SHA1 ca7380ec50a2c68e0b06f4fb49c7f1231db1dc40 check_postgres.pl
+SHA1 add561506b554304c51981095f1751ba38b15da1 check_postgres.pl.asc
+SHA1 be37f8cd64a87013606e89db4ae4f10968a0fec8 check_postgres.pl.html
SHA1 c3d239c75a507a0b4d5a245ea82fb2e7fe2869cd t/00_basic.t
SHA1 dc767132e602a61990c69082f27650e533db53c1 t/00_signature.t
SHA1 b3b833488dca6a766aa185c2457d361a978103cb t/00_test_tester.t
SHA1 da2a58efa0652058e81fee150b6f5c7c0a973a73 t/02_autovac_freeze.t
-SHA1 5768ece10593e8a1de4d7ec54ce6588905eb4b9b t/02_backends.t
+SHA1 6f92103348dba156dcc4c60160d7f4f07e229ca6 t/02_backends.t
SHA1 4e5630e7aa41398cd614dbdad79e3ae97109ff9b t/02_bloat.t
SHA1 2df3cf128e367cb92fc74147e1b4fce405e17183 t/02_checkpoint.t
SHA1 8194ea76cca596ea9605674df8c531c7ed751c4e t/02_connection.t
SHA1 5a87c262a17e3a6681c32079723e51a59d8f95e6 t/02_last_vacuum.t
SHA1 82faf8abcd0855361047154073f05111c9d0209f t/02_listener.t
SHA1 ef95e89d40c052c240c77fbca654150480d61c08 t/02_locks.t
-SHA1 4e4658f1832bccbfcb6b431a43b3d6ce1c84f34d t/02_logfile.t
+SHA1 b948f94b3404b772d02850f48a70e19a76169791 t/02_logfile.t
SHA1 a4d49989f13ef9d13a89cdea869e10e5c59d3d1a t/02_new_version_cp.t
SHA1 b01d529b9e61fbeb63a3ea41e33c308fe2df2be8 t/02_new_version_pg.t
SHA1 1faaad7c164d9588e77afd64b8e6c3bbbd243f6e t/02_prepared_txns.t
SHA1 fa6b741f7d4fe4c4b52d03ab3bc3cd34bbc089ac t/99_perlcritic.t
SHA1 e662fbf8cac082700d67bae655be2ce905b9f3dd t/99_pod.t
SHA1 d80648bcb89d779fa8639993beaf05514a1a6f28 t/99_spellcheck.t
-SHA1 fe090e3b6da32d1e2d4e68367cbdb29930bfa014 t/CP_Testing.pm
+SHA1 8147fbc55e7f1a53b7f376fd52876acdf65557b3 t/CP_Testing.pm
-----BEGIN PGP SIGNATURE-----
-iEYEAREDAAYFAkozDsoACgkQvJuQZxSWSsjeAgCfSjlPg0u8pgN813STvbm8gXE8
-W4kAoNtVhyx6Wzq86ucFbW860V6MyVnc
-=xwYM
+iEYEAREDAAYFAkpaPdkACgkQvJuQZxSWSsjt/wCgpig55oc6O7XapquhhNWp4Rar
+4IEAn228lUemHBGfQ73wnIHmOS0dKxQs
+=aFzM
-----END PGP SIGNATURE-----
$Data::Dumper::Indent = 2;
$Data::Dumper::Useqq = 1;
-our $VERSION = '2.9.1';
+our $VERSION = '2.9.2';
use vars qw/ %opt $PSQL $res $COM $SQL $db /;
B<check_postgres.pl> - a Postgres monitoring script for Nagios, MRTG, Cacti, and others
-This documents describes check_postgres.pl version 2.9.1
+This documents describes check_postgres.pl version 2.9.2
=head1 SYNOPSIS
=over 4
-=item B<Version 2.9.2>
+=item B<Version 2.9.2> (July 12, 2009)
Allow dots and dashes in database name for the backends check (Davide Abrigo)
Check and display the database for each match in the bloat check (Cédric Villemain)
-----BEGIN PGP SIGNATURE-----
-iEYEABEDAAYFAkozDscACgkQvJuQZxSWSsj1RACdG9JfRfN/QTiNiYXUm4m7POsx
-4gQAnikiMmcF40KQwQghAc2kMBp964qc
-=JBw+
+iEYEABEDAAYFAkpaPcwACgkQvJuQZxSWSsgizQCfdSFrYNLAJg5LNwfuBjFAf/z7
+l7sAn1ojAZ8PnDMg5gg54g6wqApwE3uL
+=GqOT
-----END PGP SIGNATURE-----
<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.9.1</p>
+<p>This documents describes check_postgres.pl version 2.9.2</p>
<p>
</p>
<hr />
<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 2.9.2</strong> (July 12, 2009)</a></strong></dt>
+
+<dd>
+<pre>
+ Allow dots and dashes in database name for the backends check (Davide Abrigo)
+ Check and display the database for each match in the bloat check (Cédric Villemain)
+ Handle 'too many connections' FATAL error in the backends check with a critical,
+ rather than a generic error (Greg, idea by Jürgen Schulz-Brüssel)
+ Do not allow perflimit to interfere with exclusion rules in the vacuum and
+ analyze tests. (Greg, bug reported by Jeff Frost)</pre>
+</dd>
<dt><strong><a name="1" class="item"><strong>Version 2.9.1</strong> (June 12, 2009)</a></strong></dt>
<dd>
<pre>
Fix for multiple databases with the check_bloat action (Mark Kirkwood)
- Tests for same_schema, other minor test fixes (Jeff Boes)</pre>
+ Fixes and improvements to the same_schema action (Jeff Boes)
+ Write tests for same_schema, other minor test fixes (Jeff Boes)</pre>
</dd>
<dt><strong><a name="0" class="item"><strong>Version 2.9.0</strong> (May 28, 2009)</a></strong></dt>
Make the sequence action check if sequence being used for a int4 column and
react appropriately. (Michael Glaesemann)</pre>
</dd>
-<dt><strong><a name="2" class="item"><strong>Version 2.7.2</strong> (February 9, 2009)</a></strong></dt>
+<dt><strong><strong>Version 2.7.2</strong> (February 9, 2009)</strong></dt>
<dd>
<pre>