Greg Sabino Mullane [Wed, 23 May 2012 03:32:56 +0000 (23:32 -0400)]
Bail out early if the test server is completely unreachable
Greg Sabino Mullane [Wed, 23 May 2012 00:14:05 +0000 (20:14 -0400)]
Note that locks args can contain colons or semicolons or anything else: make the docs use colons.
Greg Sabino Mullane [Mon, 21 May 2012 20:32:11 +0000 (16:32 -0400)]
Add label for the recent next.
Greg Sabino Mullane [Mon, 21 May 2012 20:12:51 +0000 (16:12 -0400)]
Version bump
Greg Sabino Mullane [Mon, 21 May 2012 20:12:46 +0000 (16:12 -0400)]
Spelling fixes.
Greg Sabino Mullane [Mon, 21 May 2012 20:12:26 +0000 (16:12 -0400)]
Minor cleanups.
Greg Sabino Mullane [Mon, 21 May 2012 20:12:16 +0000 (16:12 -0400)]
Spelling fixes
Greg Sabino Mullane [Mon, 21 May 2012 19:48:20 +0000 (15:48 -0400)]
Cache our specific sequence information during same_schema.
This greatly speeds things up for large schemas!
Greg Sabino Mullane [Sun, 13 May 2012 01:17:36 +0000 (21:17 -0400)]
Merge remote branch 'f0rk/f0rk/ignore_temp_sequences'
Greg Sabino Mullane [Thu, 10 May 2012 19:21:33 +0000 (15:21 -0400)]
Cache the pg_typmod lookups.
Ryan P. Kelly [Wed, 9 May 2012 14:18:59 +0000 (10:18 -0400)]
Ignore sequences in the temporary namespace
Greg Sabino Mullane [Mon, 30 Apr 2012 14:48:11 +0000 (10:48 -0400)]
Better --dbservice docs, as pointed out by Jason Ryan on the mailing list.
Greg Sabino Mullane [Mon, 23 Apr 2012 19:08:09 +0000 (15:08 -0400)]
Merge branch 'master' of bucardo.org:/var/lib/git/check_postgres
Greg Sabino Mullane [Mon, 23 Apr 2012 19:07:50 +0000 (15:07 -0400)]
Remove odd whitespace junk.
Christoph Berg [Thu, 8 Mar 2012 08:44:42 +0000 (09:44 +0100)]
Fix check_postgres_hitratio documentation
check_postgres_hitratio was wrong called
check_postgres_database_hitratio in the documentation.
Greg Sabino Mullane [Mon, 20 Feb 2012 20:54:08 +0000 (15:54 -0500)]
Allow txn_idle to work again for < 8.3 servers by switching to query_time.
Greg Sabino Mullane [Mon, 20 Feb 2012 20:34:54 +0000 (15:34 -0500)]
Better detection of stats_command_string being off.
Start work to allow txn_idle on old systems.
Greg Sabino Mullane [Mon, 20 Feb 2012 20:27:32 +0000 (15:27 -0500)]
Cleaner "ERROR" output
Greg Sabino Mullane [Mon, 20 Feb 2012 07:57:03 +0000 (02:57 -0500)]
Fix French UTF-8 character.
Greg Sabino Mullane [Mon, 13 Feb 2012 21:50:21 +0000 (16:50 -0500)]
Allow spaces within items within same_schema action.
Bump version to 2.20.0
Greg Sabino Mullane [Fri, 10 Feb 2012 16:24:20 +0000 (11:24 -0500)]
Note recent change
Greg Sabino Mullane [Fri, 10 Feb 2012 16:22:56 +0000 (11:22 -0500)]
Merge branch 'master' of bucardo.org:/var/lib/git/check_postgres
Greg Sabino Mullane [Fri, 10 Feb 2012 16:20:21 +0000 (11:20 -0500)]
Make sure STDOUT is using utf8. Per report from Emmanuel Lesouef
Guillaume Lelarge [Fri, 10 Feb 2012 15:34:35 +0000 (16:34 +0100)]
Update the french translation
Cédric Villemain [Tue, 24 Jan 2012 12:54:03 +0000 (13:54 +0100)]
Fix repository entry in META.yml
just a trailling / and a s/https/git/ change
Cédric Villemain [Sun, 22 Jan 2012 22:44:11 +0000 (23:44 +0100)]
Allows PGBINDIR in check_postgresrc
This is the same approach as it is with PSQL variable (the $NO_PSQL_OPTION
variable har-coded *MUST* be set to 0 to use them).
PGBINDIR can be set in ENV, hard-coded in check_postgres.pl or set via
command-line argument.
PGCONTROLDATA and PSQL can still be used but should be deprecated.
the logic is if NO_PSQL_OPTION=1 :
* that PGBINDIR can be set via environment variable, but not via config
file or command-line argument.
* that PSQL can not be set explicitly, but derived from PGBINDIR
Cédric Villemain [Sun, 22 Jan 2012 22:51:12 +0000 (23:51 +0100)]
Fix the createlang during init
There was a copy-n-paste error, only affecting < 8.1 .
Cédric Villemain [Sun, 22 Jan 2012 14:38:00 +0000 (15:38 +0100)]
Revert "Minor change in bloat test"
This reverts commit
7788d081ab5ed74d53f699bc7333e00f2bb59d9a.
GSM: Data::Dumper is handy for when you do want to Dump something.
Greg Sabino Mullane [Sun, 22 Jan 2012 14:28:07 +0000 (09:28 -0500)]
Note the symlink for generic tarball
Cédric Villemain [Sun, 22 Jan 2012 13:11:30 +0000 (14:11 +0100)]
Update History for 2.20.0
Add check for pgagent jobs (David E. Wheeler)
Cédric Villemain [Sun, 22 Jan 2012 12:54:34 +0000 (13:54 +0100)]
Minor change in bloat test
The test was loading Data::Dumepr but not using it.
Cédric Villemain [Sun, 22 Jan 2012 12:46:43 +0000 (13:46 +0100)]
Add `pgagent_jobs` test.
From: "David E. Wheeler" <
[email protected]>
This patch adds support for checking for failed pgAgent jobs within a specified
period of time. You can specify either --critical or --warning as a period of
time, and it will report on failures within that period of time previous to the
current time. Job failures are determined by a non-0 status in a job step
record.
Using this test obviously requiers that the pgAgent schema be installed. I've
also included a bunch of unit tests to make sure it works the way I would expect
(the test will create a schema for testing) and documentation.
As part of this, I've introduced the `any_warning` argument to
`validate_range()`. The `pgagent_jobs` test does not care if you specify a
warning value greater than the critical value (indeed, I expect that if one used
both at all, the warning would be much longer). So this new argument prevents
the `range-warnbigtime` or `range-warnbigsize` failures from being triggered.
Cedric: I sorted the POD and added the action_info so that t/05_docs.t is ok.
I also built and push the new .html
Greg Sabino Mullane [Wed, 18 Jan 2012 16:23:16 +0000 (11:23 -0500)]
Add link
Greg Sabino Mullane [Wed, 18 Jan 2012 03:37:17 +0000 (22:37 -0500)]
More tweaks to the release process.
Greg Sabino Mullane [Wed, 18 Jan 2012 02:57:36 +0000 (21:57 -0500)]
Note need to commit before the tagging.
Greg Sabino Mullane [Wed, 18 Jan 2012 02:56:22 +0000 (21:56 -0500)]
Ready for 2.19.0 release
Greg Sabino Mullane [Wed, 18 Jan 2012 00:43:24 +0000 (19:43 -0500)]
Perl::Critic inspired changes
Greg Sabino Mullane [Tue, 17 Jan 2012 21:03:16 +0000 (16:03 -0500)]
Omit Variables::ProhibitUselessInitialization as it has an internal error.
Greg Sabino Mullane [Tue, 17 Jan 2012 19:50:04 +0000 (14:50 -0500)]
Try to wrap failing Perl::Critic calls in an eval. Does not work.
Greg Sabino Mullane [Tue, 17 Jan 2012 19:21:20 +0000 (14:21 -0500)]
Clear temp schema
Greg Sabino Mullane [Tue, 17 Jan 2012 17:58:25 +0000 (12:58 -0500)]
Remove tabs
Greg Sabino Mullane [Tue, 17 Jan 2012 17:52:43 +0000 (12:52 -0500)]
Tweaks for better "fakeschema" in the tests.
Greg Sabino Mullane [Tue, 17 Jan 2012 14:17:59 +0000 (09:17 -0500)]
Have MRTG show a set message, for times when we end up there indirectly.
Greg Sabino Mullane [Mon, 16 Jan 2012 17:38:43 +0000 (12:38 -0500)]
Spell check tweaks
Greg Sabino Mullane [Mon, 16 Jan 2012 16:59:08 +0000 (11:59 -0500)]
Translation cleanups
Greg Sabino Mullane [Mon, 16 Jan 2012 16:57:16 +0000 (11:57 -0500)]
Typo in SQL
Greg Sabino Mullane [Mon, 16 Jan 2012 16:49:48 +0000 (11:49 -0500)]
Make sure we do not force cluster ids to an int, else we get exponential notation.
Greg Sabino Mullane [Mon, 16 Jan 2012 16:01:57 +0000 (11:01 -0500)]
Add some debugging to the perlcritic test
Greg Sabino Mullane [Mon, 16 Jan 2012 14:47:44 +0000 (09:47 -0500)]
Getting tired of these !@#$!@#%! tabs in this !~@#$!@#$ code
Greg Sabino Mullane [Mon, 16 Jan 2012 14:45:51 +0000 (09:45 -0500)]
More tabs
Greg Sabino Mullane [Mon, 16 Jan 2012 14:27:12 +0000 (09:27 -0500)]
Remove tabs
Greg Sabino Mullane [Mon, 16 Jan 2012 14:26:09 +0000 (09:26 -0500)]
Bump to 2012
Greg Sabino Mullane [Fri, 9 Dec 2011 04:02:27 +0000 (23:02 -0500)]
Ignore the MYMETA auto-generated files
Greg Sabino Mullane [Fri, 9 Dec 2011 04:01:53 +0000 (23:01 -0500)]
Make version 2.19.0 everywhere
Greg Sabino Mullane [Fri, 9 Dec 2011 04:00:27 +0000 (23:00 -0500)]
Remove version 2.18.1 - going right to 2.19
Greg Sabino Mullane [Mon, 28 Nov 2011 19:37:39 +0000 (14:37 -0500)]
Note bugzilla items, per recent email.
Euler Taveira de Oliveira [Sun, 27 Nov 2011 13:10:18 +0000 (08:10 -0500)]
Fix xlog formula:
ff000000 not
ffffffff
See http://eulerto.blogspot.com/2011/11/understanding-wal-nomenclature.html
Greg Sabino Mullane [Sat, 26 Nov 2011 20:46:37 +0000 (15:46 -0500)]
Revert bug 92 tweak, per point from Robert Treat.
No more late night coding for me. #easilybrokenpromises
Greg Sabino Mullane [Thu, 24 Nov 2011 05:07:01 +0000 (00:07 -0500)]
Exclude IIT from txn_time
Greg Sabino Mullane [Wed, 23 Nov 2011 14:16:17 +0000 (09:16 -0500)]
Merge branch 'master' of bucardo.org:/var/lib/git/check_postgres
Greg Sabino Mullane [Wed, 23 Nov 2011 14:16:07 +0000 (09:16 -0500)]
Note latest fix.
Greg Sabino Mullane [Wed, 23 Nov 2011 14:13:46 +0000 (09:13 -0500)]
Change join to pg_user to a left join, as the database may be owned by a role.
Thanks to Emmanuel Lesouef for the bug report and help in tracking this down.
There are probably other incorrect inner joins to pg_user in the code.
Cédric Villemain [Wed, 9 Nov 2011 11:10:40 +0000 (12:10 +0100)]
Update history
Cédric Villemain [Wed, 9 Nov 2011 10:57:53 +0000 (11:57 +0100)]
Add MRTG to test for settings_checksum
Cédric Villemain [Wed, 9 Nov 2011 10:57:11 +0000 (11:57 +0100)]
Add a test for checkpoint and --assume-standby-mode
Cédric Villemain [Wed, 9 Nov 2011 10:56:00 +0000 (11:56 +0100)]
Add cluster_id test
for automatic testing too.
Cédric Villemain [Mon, 7 Nov 2011 13:00:02 +0000 (14:00 +0100)]
Add an --assume-prod option
This is based on --assume-standby-mode. Reduce the option name per suggestion
from Greg (but I kept the original one for standby mode).
The option is only used in check_postgres_checkpoint and allows to confirm or
emit a critical if the server is not in the expected mode.
Note: this can be used in other places, and maybe improved (to reduce the
number og open_controldata calls)
TODO/FIXME:
* I found that --assume-p or --assume-s are viewed by GetOpt like the longer
version of the option, a bug ?
* The original code to call pg_controldata does not work in French (because of
regex/locale). Why not use LANG=C in those checks where there is NO point to
use locale and error prone regex ?
Cédric Villemain [Mon, 7 Nov 2011 12:57:19 +0000 (13:57 +0100)]
Reduce code duplicates around pg_controldata
Use the open_controldata where pg_controldata was used previously.
Also split the code for make_sure_standby_mode to reduce code for the future
option make_sure_prod.
Cédric Villemain [Mon, 7 Nov 2011 12:51:15 +0000 (13:51 +0100)]
Add a check cluster_id
This check is responsible to confirm that the Database System Identifier found
by pg_controldata is the one expected.
warning and critical allowed (like check_postgres_checksum) and must be run on
PostgreSQL server (like check_postgres_checkpoint)
While here, I created a new function open_controldata which can be used in
other places where pg_controldata is used.
Greg Sabino Mullane [Sat, 8 Oct 2011 13:02:44 +0000 (09:02 -0400)]
Note last changes
Greg Sabino Mullane [Sat, 8 Oct 2011 13:01:40 +0000 (09:01 -0400)]
Create a man 3 entry
Greg Sabino Mullane [Sat, 8 Oct 2011 12:50:54 +0000 (08:50 -0400)]
We already have check_postgres.pl listed as an EXE, so prevent Makefile from putting it into the Perl lib path as well.
Greg Sabino Mullane [Sat, 8 Oct 2011 12:44:08 +0000 (08:44 -0400)]
Fix typo.
Mike Blackwell [Fri, 7 Oct 2011 18:09:54 +0000 (13:09 -0500)]
Fix uninitialized string warnings when host or port not specified (eg using dbservice)
Greg Sabino Mullane [Thu, 6 Oct 2011 20:53:36 +0000 (16:53 -0400)]
Redo latest orderby tweaks
Greg Sabino Mullane [Thu, 6 Oct 2011 20:16:25 +0000 (16:16 -0400)]
Credit last patch
Mike Blackwell [Thu, 6 Oct 2011 20:15:40 +0000 (16:15 -0400)]
Show dbservice if used at start of same_schema header.
Greg Sabino Mullane [Thu, 6 Oct 2011 19:08:19 +0000 (15:08 -0400)]
Credit bloat change.
Greg Sabino Mullane [Thu, 6 Oct 2011 19:06:43 +0000 (15:06 -0400)]
Get version 2.18.1 ready
Greg Sabino Mullane [Thu, 6 Oct 2011 19:04:01 +0000 (15:04 -0400)]
Use the full path when getting sequence information for same_schema.
Thanks to Cindy Wise for the bug report.
Greg Sabino Mullane [Thu, 6 Oct 2011 16:39:26 +0000 (12:39 -0400)]
Show bloat when indexes are high too
Guillaume Lelarge [Wed, 5 Oct 2011 10:55:03 +0000 (12:55 +0200)]
Update french translation.
Guillaume Lelarge [Wed, 5 Oct 2011 10:09:12 +0000 (12:09 +0200)]
Fix query_time action when using --dbservice option
When using --dbservice option, $db->{dbname} is not set. So the $whodunit
variable initialization should first check if the $db->{dbname} is set.
Actually, we only initialize it for the MRTG output as it is not important in
the Nagios output.
Jehan-Guillaume (ioguix) de Rorthais [Tue, 4 Oct 2011 19:40:53 +0000 (21:40 +0200)]
Fix query time action
The query_time action works before 8.1 if the query doesn't include the
xact_start column. But we need this column for the txn_time action. So, I
changed the query so that the query_time can work with 8.1 and upwards, and
that the txn_time works with 8.3 and upwards.
Guillaume Lelarge [Sun, 25 Sep 2011 19:47:30 +0000 (21:47 +0200)]
Allow the check of multiple db with connection action
We still stop at the first error.
Per request from Aziz Boultabi.
Greg Sabino Mullane [Sun, 2 Oct 2011 17:27:44 +0000 (13:27 -0400)]
PGP sig for 2.18.0
Greg Sabino Mullane [Sun, 2 Oct 2011 17:25:43 +0000 (13:25 -0400)]
Final tweaks for 2.18.0
Greg Sabino Mullane [Sun, 2 Oct 2011 17:24:27 +0000 (13:24 -0400)]
Signature for 2.18.0
Greg Sabino Mullane [Wed, 28 Sep 2011 18:27:27 +0000 (14:27 -0400)]
Spellcheck updates
Greg Sabino Mullane [Wed, 28 Sep 2011 18:11:09 +0000 (14:11 -0400)]
Message/translation cleanups.
Greg Sabino Mullane [Sun, 11 Sep 2011 13:58:13 +0000 (09:58 -0400)]
Typo.
Guillaume Lelarge [Sat, 3 Sep 2011 10:21:53 +0000 (12:21 +0200)]
Fix some "make test" issues
* backends test issue
Critical and warning values were wrong for the negative number check.
And the output message for the --include check was wrong too.
* check_replicate_row issue
The UPDATE must be executed on the first server only.
* fsm_pages and fsm_relations test issue
The version test (ie max_fsm_* not available on 8.4 and later releases) must be done earlier.
* doc test issue
check_standby_mode rename to make_sure_standby_mode because all check_*
functions are expected to have documentation, but check_standby_mode is an
internal function.
* another doc test issue
pgbouncer_checksum documentation wasn't at the right location.
* drop_schema_if_exists issue
There was an unexpected return in the middle of the function, and so the
schema was never dropped.
Guillaume Lelarge [Mon, 29 Aug 2011 10:09:41 +0000 (12:09 +0200)]
New french update
Greg Sabino Mullane [Fri, 19 Aug 2011 16:27:49 +0000 (12:27 -0400)]
Note latest changes. Quick document of same_schema --replace
Nicolas Thauvin [Fri, 19 Aug 2011 16:25:31 +0000 (12:25 -0400)]
Fix space in perfdata for hot_standby_delay action.
Greg Sabino Mullane [Thu, 18 Aug 2011 14:28:21 +0000 (10:28 -0400)]
Don't allow this test unless in RELEASE mode.
Greg Sabino Mullane [Mon, 1 Aug 2011 15:43:04 +0000 (11:43 -0400)]
Note the special ignore/exclude handling in the bloat routine, per discussion on the mailing list.
Greg Sabino Mullane [Wed, 27 Jul 2011 15:17:17 +0000 (11:17 -0400)]
New option "replace" to allow replacing the audit file after a run.
Greg Sabino Mullane [Wed, 27 Jul 2011 15:07:31 +0000 (11:07 -0400)]
More prosrc filtering tweaks.
Greg Sabino Mullane [Tue, 12 Jul 2011 14:38:01 +0000 (10:38 -0400)]
Don't tell us about the sequence number changing over time!