check_postgres.git
9 years agoNo tabs please
Greg Sabino Mullane [Tue, 30 Jun 2015 15:30:25 +0000 (11:30 -0400)]
No tabs please

9 years agoBump version to 2.22.0
Greg Sabino Mullane [Tue, 30 Jun 2015 15:29:59 +0000 (11:29 -0400)]
Bump version to 2.22.0

9 years agoPlaceholders for French translation strings
Greg Sabino Mullane [Tue, 30 Jun 2015 15:27:35 +0000 (11:27 -0400)]
Placeholders for French translation strings

9 years agoMerge branch 'master' of bucardo.org:/var/lib/git/check_postgres
Greg Sabino Mullane [Fri, 26 Jun 2015 14:12:09 +0000 (10:12 -0400)]
Merge branch 'master' of bucardo.org:/var/lib/git/check_postgres

9 years agoSpelling
Greg Sabino Mullane [Fri, 26 Jun 2015 13:18:02 +0000 (09:18 -0400)]
Spelling

9 years agoRearrange recent changes in rough priority order
Greg Sabino Mullane [Fri, 26 Jun 2015 12:52:32 +0000 (08:52 -0400)]
Rearrange recent changes in rough priority order

9 years agoFix txn_time regression test for 9.0/9.1
Christoph Berg [Tue, 23 Jun 2015 14:35:31 +0000 (16:35 +0200)]
Fix txn_time regression test for 9.0/9.1

Newer versions will show the last or current query here, older versions
will just show "<IDLE> in transaction" if there is currently no
query running.

9 years agoFix t/02_sequence.t for PG 9.0/1
Christoph Berg [Tue, 23 Jun 2015 14:26:10 +0000 (16:26 +0200)]
Fix t/02_sequence.t for PG 9.0/1

9 years agoUpdate release notes a bit
Greg Sabino Mullane [Tue, 23 Jun 2015 13:16:26 +0000 (09:16 -0400)]
Update release notes a bit

9 years agoVersion bump.
Greg Sabino Mullane [Tue, 23 Jun 2015 13:09:07 +0000 (09:09 -0400)]
Version bump.

9 years agoRemove tabs, cleanup whitespace
Greg Sabino Mullane [Wed, 27 May 2015 02:02:30 +0000 (22:02 -0400)]
Remove tabs, cleanup whitespace

9 years agoBump copyright
Greg Sabino Mullane [Fri, 8 May 2015 03:54:00 +0000 (23:54 -0400)]
Bump copyright

10 years agoFix issues with latest changes to check_sequence and run_command:
glyn [Wed, 15 Apr 2015 09:53:31 +0000 (10:53 +0100)]
Fix issues with latest changes to check_sequence and run_command:

check_sequence - Split big UNION of sequence selects into chunks to avoid overrunning system argument size

run_command - If we have specified a "target" database, skip all others in global targetdb list

10 years agoChange the way tables are quoted in replicate_row.
glynastill [Fri, 20 Dec 2013 13:16:43 +0000 (13:16 +0000)]
Change the way tables are quoted in replicate_row.

Change the way tables are quoted in replicate_row to allow for tables with schema name.

10 years agoAdd tests for "serial" and "smallserial" columns
Christoph Berg [Mon, 23 Mar 2015 15:38:18 +0000 (16:38 +0100)]
Add tests for "serial" and "smallserial" columns

The code was already there, but not covered by tests

10 years agoQuery all sequences per DB in parallel for action=sequence
Christoph Berg [Mon, 23 Mar 2015 14:52:49 +0000 (15:52 +0100)]
Query all sequences per DB in parallel for action=sequence

action=sequence used to open a new session for every sequence checked,
which could be very slow. Fix by creating a single SQL statement using
UNION ALL to query all sequences at once.

10 years agoAllow optional space before 'QUERY PLAN'
Greg Sabino Mullane [Sat, 1 Nov 2014 16:48:49 +0000 (12:48 -0400)]
Allow optional space before 'QUERY PLAN'

10 years agoTweak test, as the output no longer ends where it used to
Greg Sabino Mullane [Sat, 1 Nov 2014 16:47:52 +0000 (12:47 -0400)]
Tweak test, as the output no longer ends where it used to

10 years agoUse Data::Dumper when showing full output on a failed parse, as this is more often...
Greg Sabino Mullane [Sat, 1 Nov 2014 16:17:18 +0000 (12:17 -0400)]
Use Data::Dumper when showing full output on a failed parse, as this is more often than not a complex structure.

10 years agoGrrr...account for trailing whitespace in psql table output
Greg Sabino Mullane [Thu, 30 Oct 2014 22:14:58 +0000 (18:14 -0400)]
Grrr...account for trailing whitespace in psql table output

10 years agoThanks a lot, Postgres. Now featuring whitespace in psql output that has never been...
Greg Sabino Mullane [Thu, 30 Oct 2014 21:09:10 +0000 (17:09 -0400)]
Thanks a lot, Postgres. Now featuring whitespace in psql output that has never been there before.

10 years agoMerge dbname2, host2, etc. into the new array method.
Greg Sabino Mullane [Thu, 30 Oct 2014 21:02:50 +0000 (17:02 -0400)]
Merge dbname2, host2, etc. into the new array method.

10 years agoQuote values in error message when replicate_row fails
Greg Sabino Mullane [Thu, 30 Oct 2014 17:40:36 +0000 (13:40 -0400)]
Quote values in error message when replicate_row fails

10 years agoFix bloat check to use correct SQL depending on the server version.
Christoph Berg [Mon, 8 Sep 2014 15:05:35 +0000 (17:05 +0200)]
Fix bloat check to use correct SQL depending on the server version.

Previously it used the psql version which might differ when multiple
versions are installed locally, or when querying remote servers.

The hot_standby_delay check is also affected, but more involved to fix,
so leave that for later.

Adrian Vondendriesch

10 years agoShow OS on failure-to-parse errors
Greg Sabino Mullane [Mon, 14 Jul 2014 16:52:47 +0000 (12:52 -0400)]
Show OS on failure-to-parse errors

10 years agoWhen we fail to parse the psql output, show the entire output string rather than...
Greg Sabino Mullane [Mon, 14 Jul 2014 16:50:34 +0000 (12:50 -0400)]
When we fail to parse the psql output, show the entire output string rather than just the failing line, to better aid in debugging as recently seen on the list.

10 years agoTweak testing output
Greg Sabino Mullane [Mon, 14 Jul 2014 16:21:26 +0000 (12:21 -0400)]
Tweak testing output

10 years agoImproved multi-slave support in replicate_row.
Andrew Yochum [Thu, 3 Jul 2014 14:15:27 +0000 (10:15 -0400)]
Improved multi-slave support in replicate_row.

10 years agoMerge branch 'space_error' of https://github.com/jeffjanes/check_postgres
Greg Sabino Mullane [Thu, 3 Jul 2014 11:24:35 +0000 (07:24 -0400)]
Merge branch 'space_error' of https://github.com/jeffjanes/check_postgres

10 years agoMerge branch 'master' of https://github.com/terrorobe/check_postgres
Greg Sabino Mullane [Thu, 3 Jul 2014 11:22:39 +0000 (07:22 -0400)]
Merge branch 'master' of https://github.com/terrorobe/check_postgres

Conflicts:
check_postgres.pl

10 years agoMerge branch 'query-time-show-query' of https://github.com/petere/check_postgres
Greg Sabino Mullane [Thu, 3 Jul 2014 10:53:16 +0000 (06:53 -0400)]
Merge branch 'query-time-show-query' of https://github.com/petere/check_postgres

10 years agoDeclare POD encoding to be utf8
Christoph Berg [Thu, 3 Jul 2014 08:31:36 +0000 (10:31 +0200)]
Declare POD encoding to be utf8

10 years agoQuick stub to show port when testing. Always 5432 for now (with a custom socket dir)
Greg Sabino Mullane [Thu, 12 Jun 2014 21:49:51 +0000 (17:49 -0400)]
Quick stub to show port when testing. Always 5432 for now (with a custom socket dir)

10 years agoAdd xact timestamp support to hot_standby_delay
Josh Williams [Thu, 12 Jun 2014 21:24:24 +0000 (17:24 -0400)]
Add xact timestamp support to hot_standby_delay

Allow the hot_standby_delay check to accept xlog byte position or
timestamp lag intervals as thresholds, or even both at the same time.

10 years agoShow actual long-running query in query_time output
Peter Eisentraut [Wed, 11 Jun 2014 20:04:38 +0000 (16:04 -0400)]
Show actual long-running query in query_time output

10 years agofix & extend hot_standby_delay documentation
Michael Renner [Wed, 11 Jun 2014 15:10:33 +0000 (17:10 +0200)]
fix & extend hot_standby_delay documentation

This should also account for all places where the refactoring of
the numbered dbparameters (host2, port2, etc.) was referenced in the
documentation. Drop the TODO entry.

10 years agoMerge branch 'master' of github.com:terrorobe/check_postgres
Michael Renner [Wed, 11 Jun 2014 15:08:40 +0000 (17:08 +0200)]
Merge branch 'master' of github.com:terrorobe/check_postgres

10 years agoDon't swallow space before the -c flag when reporting errors
Jeff Janes [Wed, 21 May 2014 17:48:01 +0000 (10:48 -0700)]
Don't swallow space before the -c flag when reporting errors

10 years agoQuick TODO item
Greg Sabino Mullane [Mon, 5 May 2014 15:50:39 +0000 (11:50 -0400)]
Quick TODO item

11 years agoStart 2.21.1 notes
Greg Sabino Mullane [Tue, 18 Feb 2014 01:11:20 +0000 (20:11 -0500)]
Start 2.21.1 notes

11 years agoAdd an ORDER BY to the slony_status check to account for cases in which
Jeff Frost [Tue, 18 Feb 2014 01:08:24 +0000 (20:08 -0500)]
Add an ORDER BY to the slony_status check to account for cases in which
there is more than one node in replication; we want to report on the
most lagged server.

11 years ago'no warnings' makes Perl::Critic cry. Try a different way.
Greg Sabino Mullane [Wed, 9 Oct 2013 18:14:05 +0000 (14:14 -0400)]
'no warnings' makes Perl::Critic cry. Try a different way.

11 years ago--host2 and friends no longer work.
David E. Wheeler [Tue, 24 Sep 2013 23:27:22 +0000 (16:27 -0700)]
--host2 and friends no longer work.

11 years agoEliminate some "Use of uninitialized value" warnings.
David E. Wheeler [Tue, 24 Sep 2013 23:22:44 +0000 (16:22 -0700)]
Eliminate some "Use of uninitialized value" warnings.

11 years agoGet rid of number opts in docs.
David E. Wheeler [Tue, 24 Sep 2013 23:20:46 +0000 (16:20 -0700)]
Get rid of number opts in docs.

11 years ago`curl` does not like `=` between an option and its value.
David E. Wheeler [Tue, 24 Sep 2013 22:30:21 +0000 (15:30 -0700)]
`curl` does not like `=` between an option and its value.

This gets the `t/02_new_version_cp.t` to pass on systems that use `curl`.

11 years agoSignatures for 2.21.0
Greg Sabino Mullane [Tue, 24 Sep 2013 19:12:35 +0000 (15:12 -0400)]
Signatures for 2.21.0

11 years agoWhitespace 2.21.0
Greg Sabino Mullane [Tue, 24 Sep 2013 19:10:18 +0000 (15:10 -0400)]
Whitespace

11 years agoRemove the no warnings hack.
Greg Sabino Mullane [Tue, 24 Sep 2013 19:08:30 +0000 (15:08 -0400)]
Remove the no warnings hack.

11 years agoVersion bump, better binmode
Greg Sabino Mullane [Tue, 24 Sep 2013 19:00:04 +0000 (15:00 -0400)]
Version bump, better binmode

11 years agoSpelling tweaks
Greg Sabino Mullane [Tue, 24 Sep 2013 18:58:28 +0000 (14:58 -0400)]
Spelling tweaks

11 years agoVersion bump
Greg Sabino Mullane [Tue, 24 Sep 2013 18:57:59 +0000 (14:57 -0400)]
Version bump

11 years agoSkip a few more files in the manifest
Greg Sabino Mullane [Tue, 24 Sep 2013 18:34:32 +0000 (14:34 -0400)]
Skip a few more files in the manifest

11 years agoSpelling fixes
Greg Sabino Mullane [Mon, 23 Sep 2013 20:22:23 +0000 (16:22 -0400)]
Spelling fixes

11 years agoTypo
Greg Sabino Mullane [Mon, 23 Sep 2013 19:46:09 +0000 (15:46 -0400)]
Typo

11 years agoPerl::Critic insipred fixes
Greg Sabino Mullane [Mon, 23 Sep 2013 19:44:38 +0000 (15:44 -0400)]
Perl::Critic insipred fixes

11 years agoMinor translation fixes
Greg Sabino Mullane [Mon, 23 Sep 2013 19:12:43 +0000 (15:12 -0400)]
Minor translation fixes

11 years agoDocument testsuite, notably the DBD::Pg version required
Christoph Berg [Mon, 23 Sep 2013 13:12:18 +0000 (15:12 +0200)]
Document testsuite, notably the DBD::Pg version required

11 years agoFix regex for cp_version testing.
Greg Sabino Mullane [Sun, 22 Sep 2013 18:53:40 +0000 (14:53 -0400)]
Fix regex for cp_version testing.

11 years agoBump version to 2.20.2
Greg Sabino Mullane [Sun, 22 Sep 2013 18:47:24 +0000 (14:47 -0400)]
Bump version to 2.20.2

11 years agoAdding a jstkind to the dummy pgagent schema, so the recent changes that reference...
Greg Sabino Mullane [Sun, 22 Sep 2013 18:33:44 +0000 (14:33 -0400)]
Adding a jstkind to the dummy pgagent schema, so the recent changes that reference it can work.

11 years agot/02_relation_size.t: Sleep 0.5s for the MRTG test
Christoph Berg [Thu, 19 Sep 2013 10:58:12 +0000 (12:58 +0200)]
t/02_relation_size.t: Sleep 0.5s for the MRTG test

Sleeping 1s created a race condition because we also check after 1s, so
it was only luck whether the result of that check is "1" or "2"

11 years agoFix same_schema check on 9.3 by ignoring relminmxid differences in pg_class
Christoph Berg [Thu, 19 Sep 2013 10:11:06 +0000 (12:11 +0200)]
Fix same_schema check on 9.3 by ignoring relminmxid differences in pg_class

11 years agot/02_slony_status.t: Fix to work with 9.3
Christoph Berg [Thu, 19 Sep 2013 09:48:50 +0000 (11:48 +0200)]
t/02_slony_status.t: Fix to work with 9.3

The error was "schema does not exist" until 9.2, and is now "table does
not exist", so just look for "does not exist".

11 years agoSetting SKIP_NETWORK_TESTS will skip the new_version tests
Christoph Berg [Thu, 19 Sep 2013 09:21:17 +0000 (11:21 +0200)]
Setting SKIP_NETWORK_TESTS will skip the new_version tests

Build daemons for Debian packages might not have network access, so
provide a way to disable the tests depeding on networking

11 years agot/02_last_vacuum.t: Reorder commit calls to make test more stable
Christoph Berg [Thu, 19 Sep 2013 09:10:44 +0000 (11:10 +0200)]
t/02_last_vacuum.t: Reorder commit calls to make test more stable

11 years agoInstall man page in section 1
Christoph Berg [Thu, 19 Sep 2013 09:07:47 +0000 (11:07 +0200)]
Install man page in section 1

Peter Eisentraut, bug 53, github issue 26

11 years agoAdd a changelog entry for the locks fix
Christoph Berg [Wed, 18 Sep 2013 15:44:40 +0000 (17:44 +0200)]
Add a changelog entry for the locks fix

11 years agoSkipping disk_space tests if df doesn't work
Christoph Berg [Wed, 18 Sep 2013 15:37:11 +0000 (17:37 +0200)]
Skipping disk_space tests if df doesn't work

df might fail in chroot environments, e.g. on build daemons where
check-postgres packages are built

11 years agoSort lock types so the output ordering is predicatable
Christoph Berg [Wed, 18 Sep 2013 15:04:38 +0000 (17:04 +0200)]
Sort lock types so the output ordering is predicatable

11 years agoCredit recent change.
Greg Sabino Mullane [Wed, 28 Aug 2013 15:27:05 +0000 (11:27 -0400)]
Credit recent change.

11 years agoUpdate check_postgres.pl
mintsoft [Wed, 28 Aug 2013 09:03:17 +0000 (10:03 +0100)]
Update check_postgres.pl

Fixing issue with SQL steps in check_pgagent_jobs for jobs which perform deletes, these return non-0 yet are still successful.
Behaviour should now be that <>0 on batch is a failure, but only -1 is a failure for sql steps.

11 years agoREADME: Fix two typos
Christoph Berg [Thu, 4 Jul 2013 11:17:57 +0000 (13:17 +0200)]
README: Fix two typos

11 years agot/02_settings_checksum.t: Accept hex digits
Christoph Berg [Tue, 2 Jul 2013 13:27:58 +0000 (15:27 +0200)]
t/02_settings_checksum.t: Accept hex digits

Previously, this check only worked by chance if the returned checksum
started with a plain digit.

11 years agoSignatures for 2.20.1 2.20.1
Greg Sabino Mullane [Tue, 25 Jun 2013 02:59:13 +0000 (22:59 -0400)]
Signatures for 2.20.1

11 years agoFinal html doc tweak
Greg Sabino Mullane [Tue, 25 Jun 2013 02:56:34 +0000 (22:56 -0400)]
Final html doc tweak

11 years agoLet's get 2.20.1 out the door
Greg Sabino Mullane [Tue, 25 Jun 2013 02:55:50 +0000 (22:55 -0400)]
Let's get 2.20.1 out the door

11 years agoCannot test for bad sequences in that manner: we already exclude temp schemas!
Greg Sabino Mullane [Tue, 25 Jun 2013 02:50:20 +0000 (22:50 -0400)]
Cannot test for bad sequences in that manner: we already exclude temp schemas!

11 years agoNo tabs please.
Greg Sabino Mullane [Tue, 25 Jun 2013 02:37:24 +0000 (22:37 -0400)]
No tabs please.

11 years agoMove issue tracking from Bugzilla to github
Greg Sabino Mullane [Tue, 25 Jun 2013 02:36:14 +0000 (22:36 -0400)]
Move issue tracking from Bugzilla to github

11 years agoBump version to 2.20.1; update docs
Greg Sabino Mullane [Tue, 25 Jun 2013 02:34:37 +0000 (22:34 -0400)]
Bump version to 2.20.1; update docs

11 years agoUpdate credits.
Greg Sabino Mullane [Tue, 25 Jun 2013 02:32:26 +0000 (22:32 -0400)]
Update credits.

11 years agoBetter "simple" output
Greg Sabino Mullane [Tue, 25 Jun 2013 02:28:31 +0000 (22:28 -0400)]
Better "simple" output

11 years agoDon't compare the new 'relallvisible' ccolumn
Greg Sabino Mullane [Mon, 24 Jun 2013 12:57:50 +0000 (08:57 -0400)]
Don't compare the new 'relallvisible' ccolumn

11 years agoUpdate TODO file
Greg Sabino Mullane [Mon, 24 Jun 2013 12:42:24 +0000 (08:42 -0400)]
Update TODO file

11 years agoCredit recent change
Greg Sabino Mullane [Wed, 8 May 2013 21:32:20 +0000 (17:32 -0400)]
Credit recent change

11 years agoRemove host reordering in hot_standby_delay check
Josh Williams [Wed, 8 May 2013 19:26:10 +0000 (15:26 -0400)]
Remove host reordering in hot_standby_delay check

This was resulting in the master queries being sent to the replica and
vice versa, if the replica is listed first.  Will probably still want to
reorder the hosts in output (or just list them all) later.
Thanks to Jacobo Blasco for debug assistance.

12 years agoCredit the 9.2 fixes
Greg Sabino Mullane [Wed, 1 May 2013 02:08:10 +0000 (22:08 -0400)]
Credit the 9.2 fixes

12 years agoTypo
Greg Sabino Mullane [Wed, 1 May 2013 01:55:35 +0000 (21:55 -0400)]
Typo

12 years agoDo things the right way and run different versions of the bloat query depending on...
Greg Sabino Mullane [Wed, 1 May 2013 01:35:55 +0000 (21:35 -0400)]
Do things the right way and run different versions of the bloat query depending on the target version.

12 years agoDo not use pg_stats "inherited" column in bloat query, if the database is 8.4 or...
Greg Sabino Mullane [Wed, 1 May 2013 01:18:37 +0000 (21:18 -0400)]
Do not use pg_stats "inherited" column in bloat query, if the database is 8.4 or older.
Technically, we are not checking the target's version.

12 years agoCredit last change
Greg Sabino Mullane [Wed, 1 May 2013 01:07:54 +0000 (21:07 -0400)]
Credit last change

12 years agobloat query: fix totalwastedbytes
Michael Renner [Wed, 3 Apr 2013 10:40:39 +0000 (12:40 +0200)]
bloat query: fix totalwastedbytes

totalwastedbytes returned only the number of wasted pages - fix that by
multiplying with the blocksize

12 years agoCredit last change
Greg Sabino Mullane [Wed, 1 May 2013 01:00:08 +0000 (21:00 -0400)]
Credit last change

12 years agobloat query: fix totalwastedbytes
Michael Renner [Wed, 3 Apr 2013 10:40:39 +0000 (12:40 +0200)]
bloat query: fix totalwastedbytes

totalwastedbytes returned only the number of wasted pages - fix that by
multiplying with the blocksize

12 years agocause the --reverse flag to invert string comparisons in custom queries
Nathaniel Waisbrot [Mon, 1 Apr 2013 15:33:18 +0000 (11:33 -0400)]
cause the --reverse flag to invert string comparisons in custom queries

12 years agoCredit last change
Greg Sabino Mullane [Sat, 23 Mar 2013 16:14:06 +0000 (12:14 -0400)]
Credit last change

12 years agoMake sure connection checks return CRITICAL rather than UNKNOWN.
Dominic Hargreaves [Sat, 23 Mar 2013 16:09:34 +0000 (12:09 -0400)]
Make sure connection checks return CRITICAL rather than UNKNOWN.
Patch by Dominic Hargreaves with minor tweaks by Greg Sabino Mullane.
Thanks to Christoph Berg for the forward (this came in via the Debian bugs system)

12 years agoNew signatures
Greg Sabino Mullane [Wed, 13 Mar 2013 18:48:00 +0000 (14:48 -0400)]
New signatures

12 years agoSignature for 2.20.0 2.20.0
Greg Sabino Mullane [Wed, 13 Mar 2013 18:41:43 +0000 (14:41 -0400)]
Signature for 2.20.0