From 08b1d5f4f67c79d3b1fbad2eab5278ece6e7ff63 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Mon, 23 Feb 2009 21:27:39 -0500 Subject: [PATCH] Begin unit tests with "backend" action. --- check_postgres.pl.asc | 6 +- check_postgres.pl.html | 10 +- index.html | 2 +- t/00-signature.t | 34 ++++++ t/01connect.t | 97 ----------------- t/02backends.t | 154 ++++++++++++++++++++++++++ t/99_spellcheck.t | 4 + t/CP_Testing.pm | 238 +++++++++++++++++++++++++++++++++++++++++ 8 files changed, 442 insertions(+), 103 deletions(-) create mode 100644 t/00-signature.t delete mode 100644 t/01connect.t create mode 100644 t/02backends.t create mode 100644 t/CP_Testing.pm diff --git a/check_postgres.pl.asc b/check_postgres.pl.asc index 9dea88bc0..4579e89b8 100644 --- a/check_postgres.pl.asc +++ b/check_postgres.pl.asc @@ -1,6 +1,6 @@ -----BEGIN PGP SIGNATURE----- -iEYEABEDAAYFAkmR3/cACgkQvJuQZxSWSshFpwCfSmS1vozCrmVL/PFM8VoBqSFi -gzYAnA4pWREsuvlOsfnIsdsw3Tf2VDIh -=dt4G +iEYEABEDAAYFAkmjWs8ACgkQvJuQZxSWSsiRPwCfZc7WWECYzxNCM2TvCEVUWMkA +ZZQAoL+0pEfXuu4MCkNJWm+dq7g6eAYU +=L1hr -----END PGP SIGNATURE----- diff --git a/check_postgres.pl.html b/check_postgres.pl.html index 145d91c6b..5f343ac83 100644 --- a/check_postgres.pl.html +++ b/check_postgres.pl.html @@ -1120,6 +1120,9 @@ and/or as comma-separated lists. A leading tilde will match the following word as a regular expression.

To match a schema, end the search term with a single period. Leading tildes can be used for schemas as well.

+

Be careful when using filtering: an inclusion rule on the backends, for example, +may report no problems not only because the matching database had no backends, +but because you misspelled the name of the database!

Examples:

Only checks items named pg_class:

@@ -1253,8 +1256,11 @@ feature requests, and commit notices, send email to Version 2.7.3 (February 10, 2009)
 
diff --git a/index.html b/index.html
index 8b981c6b4..817b8c48c 100644
--- a/index.html
+++ b/index.html
@@ -21,7 +21,7 @@ h1 {
 
 

check_postgres.pl

-

check_postgres.pl 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 End Point Corporation and is BSD-licensed. The latest version is 2.8.0, and was released on February 15, 2009.

+

check_postgres.pl 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 End Point Corporation and is BSD-licensed. The latest version is 2.8.0, and was released on February 23, 2009.