check_postgres.git
13 years agoBump to 2.18.0.
Greg Sabino Mullane [Thu, 30 Jun 2011 02:53:57 +0000 (22:53 -0400)]
Bump to 2.18.0.
Update Changes

13 years agoSpell check updates.
Greg Sabino Mullane [Thu, 30 Jun 2011 02:37:17 +0000 (22:37 -0400)]
Spell check updates.

13 years agoComplete rewrite of the same_schema action.
Greg Sabino Mullane [Thu, 30 Jun 2011 02:24:53 +0000 (22:24 -0400)]
Complete rewrite of the same_schema action.
Now supports >2 databases for comparison,
as well as "historical" comparisons of the same db over time!

13 years agoFix ORDER BY in the last vacuum/analyze action
Nicolas Thauvin [Mon, 27 Jun 2011 15:26:47 +0000 (17:26 +0200)]
Fix ORDER BY in the last vacuum/analyze action

Before this patch, the "ORDER BY" was on the relname column. This fixes it to
get an ORDER BY on the last time column, which is more interesting
(especially when you have a perflimit).

13 years agoFix check_hot_standby_delay perfdata output
Nicolas Thauvin [Mon, 27 Jun 2011 15:05:54 +0000 (17:05 +0200)]
Fix check_hot_standby_delay perfdata output

There was a missing space in the perfdata output for this action.

13 years agoFix the archive_ready action
Nicolas Thauvin [Mon, 27 Jun 2011 14:55:06 +0000 (16:55 +0200)]
Fix the archive_ready action

The .ready files are not in the pg_xlog directory, but in the
pg_xlog/archive_ready one. This patch adds another argument to the
check_wal_files() function so that it could find the subdirectory in which it
has to look for files.

13 years agoRename recent tests: 'database' is implicit for most things.
Greg Sabino Mullane [Mon, 27 Jun 2011 14:50:48 +0000 (10:50 -0400)]
Rename recent tests: 'database' is implicit for most things.
Plus, I didn't want to have to re-line up everything inside $action_info :)

13 years agoAdd the hitratio action
Guillaume Lelarge [Mon, 27 Jun 2011 14:15:54 +0000 (16:15 +0200)]
Add the hitratio action

This new action allows a user to track the hit ratio, ie the difference
between cache and disk reads, in each database.

13 years agoAdd the commitratio action
Guillaume Lelarge [Tue, 19 Apr 2011 12:40:43 +0000 (14:40 +0200)]
Add the commitratio action

This new action allows a user to track the commit ratio, ie the difference
between commit and rollback, in each database.

13 years agoMake sure --action overrides the naming trick.
Greg Sabino Mullane [Fri, 24 Jun 2011 17:50:55 +0000 (13:50 -0400)]
Make sure --action overrides the naming trick.

13 years agoQuick fix for cases when client_port is set to an empty string, per bug report 79...
Greg Sabino Mullane [Wed, 22 Jun 2011 16:02:58 +0000 (12:02 -0400)]
Quick fix for cases when client_port is set to an empty string, per bug report 79 from Fabrice Metge

13 years agoAccount for "empty row" -x output (especially in the source of functions).
Greg Sabino Mullane [Tue, 21 Jun 2011 11:41:22 +0000 (07:41 -0400)]
Account for "empty row" -x output (especially in the source of functions).
May fix a recnt bug seen on the list.

13 years agoMerge branch 'master' of [email protected]:/var/lib/git/check_postgres
Greg Sabino Mullane [Tue, 21 Jun 2011 11:29:29 +0000 (07:29 -0400)]
Merge branch 'master' of [email protected]:/var/lib/git/check_postgres

13 years agoShould be warning, not printing, here.
Greg Sabino Mullane [Tue, 21 Jun 2011 11:25:00 +0000 (07:25 -0400)]
Should be warning, not printing, here.

13 years agoAllow msg() non-matches to sometimes be non-fatal.
Greg Sabino Mullane [Tue, 21 Jun 2011 11:22:30 +0000 (07:22 -0400)]
Allow msg() non-matches to sometimes be non-fatal.

13 years agoMake a better (runable) output for the error report.
Greg Sabino Mullane [Tue, 21 Jun 2011 03:49:01 +0000 (23:49 -0400)]
Make a better (runable) output for the error report.

13 years agoSmall french update
Guillaume Lelarge [Thu, 16 Jun 2011 20:09:04 +0000 (22:09 +0200)]
Small french update

13 years agoAllow unlimited number of databases, e.g. dbname2, dbname3, dbname4, ...
Greg Sabino Mullane [Tue, 7 Jun 2011 03:28:13 +0000 (23:28 -0400)]
Allow unlimited number of databases, e.g. dbname2, dbname3, dbname4, ...

13 years agoOn a parsing problem, output the Postgres version as well.
Greg Sabino Mullane [Tue, 31 May 2011 14:16:39 +0000 (10:16 -0400)]
On a parsing problem, output the Postgres version as well.

13 years agoMerge branch 'master' of [email protected]:/var/lib/git/check_postgres
Greg Sabino Mullane [Tue, 31 May 2011 14:00:15 +0000 (10:00 -0400)]
Merge branch 'master' of [email protected]:/var/lib/git/check_postgres

13 years agoTypo.
Greg Sabino Mullane [Tue, 31 May 2011 13:59:56 +0000 (09:59 -0400)]
Typo.

13 years agoIncrement to v2.17.1.
David E. Wheeler [Mon, 23 May 2011 17:07:41 +0000 (10:07 -0700)]
Increment to v2.17.1.

13 years agoSwap db1 and db2 if the slave is 1 for the hot standby check (David E. Wheeler)
Greg Sabino Mullane [Mon, 23 May 2011 16:47:06 +0000 (12:47 -0400)]
Swap db1 and db2 if the slave is 1 for the hot standby check (David E. Wheeler)

14 years agoFix typo in check_wal_files.
Guillaume Lelarge [Fri, 22 Apr 2011 14:33:36 +0000 (10:33 -0400)]
Fix typo in check_wal_files.

14 years agoMerge commit 'petdance/master'
Greg Sabino Mullane [Mon, 11 Apr 2011 16:09:55 +0000 (12:09 -0400)]
Merge commit 'petdance/master'

14 years agoMerge branch 'master' of [email protected]:/var/lib/git/check_postgres
Greg Sabino Mullane [Mon, 11 Apr 2011 16:04:24 +0000 (12:04 -0400)]
Merge branch 'master' of [email protected]:/var/lib/git/check_postgres

14 years agosilence a warning by removing a "my"
Andy Lester [Thu, 24 Mar 2011 15:32:27 +0000 (10:32 -0500)]
silence a warning by removing a "my"

14 years agofix the incorrect names of the data fields idxscan, idxtupread, etc
Andy Lester [Thu, 24 Mar 2011 15:31:32 +0000 (10:31 -0500)]
fix the incorrect names of the data fields idxscan, idxtupread, etc

14 years agoThe last commit created a duplicate action; this removes it
Joshua Tolley [Tue, 15 Mar 2011 20:30:55 +0000 (14:30 -0600)]
The last commit created a duplicate action; this removes it

14 years agoFix typo
Joshua Tolley [Tue, 15 Mar 2011 20:13:25 +0000 (14:13 -0600)]
Fix typo

14 years agoQuick fix
Greg Sabino Mullane [Tue, 15 Mar 2011 00:13:13 +0000 (20:13 -0400)]
Quick fix

14 years agoIntroduced pgbouncer_backends and pgbouncer_maxwait actions.
Ruslan Kabalin [Mon, 14 Mar 2011 23:04:37 +0000 (19:04 -0400)]
Introduced pgbouncer_backends and pgbouncer_maxwait actions.

See check_postgres.pl --man for more details.

14 years agoTabs to spaces
Greg Sabino Mullane [Mon, 14 Mar 2011 22:43:05 +0000 (18:43 -0400)]
Tabs to spaces

14 years agoMinor cleanups to previous patch
Greg Sabino Mullane [Mon, 14 Mar 2011 22:38:32 +0000 (18:38 -0400)]
Minor cleanups to previous patch

14 years ago"--assume-standby-mode" option is added.
Ruslan Kabalin [Mon, 14 Mar 2011 22:33:48 +0000 (18:33 -0400)]
"--assume-standby-mode" option is added.

If specified, first the check if server in standby mode will be performed
(--datadir is required), if so, all checks that require SQL queries will be
ignored and "Server in standby mode" with OK status will be returned instead.

14 years ago[backends] do not list excluded databases in output.
Ruslan Kabalin [Mon, 14 Mar 2011 22:18:36 +0000 (18:18 -0400)]
[backends] do not list excluded databases in output.

When used with --include or --exclude settings, listing all available
databases in perfomance output might be confusing. Thus, only those databases
that are taken into account for connectons number calculation are listed.

14 years agoChanges in vim stattings string to meet new formatting
Ruslan Kabalin [Fri, 9 Jul 2010 10:01:19 +0000 (11:01 +0100)]
Changes in vim stattings string to meet new formatting

Signed-off-by: Ruslan Kabalin <[email protected]>
14 years agoFrench translations
Guillaume Lelarge [Fri, 11 Mar 2011 23:30:05 +0000 (18:30 -0500)]
French translations

14 years agoCredit last patch.
Greg Sabino Mullane [Wed, 9 Mar 2011 02:42:09 +0000 (21:42 -0500)]
Credit last patch.

14 years agohandle undef percents in check_fsm_relations
Andy Lester [Mon, 7 Mar 2011 17:54:57 +0000 (11:54 -0600)]
handle undef percents in check_fsm_relations

14 years agoSpelling cleanups.
Greg Sabino Mullane [Mon, 21 Feb 2011 05:07:52 +0000 (00:07 -0500)]
Spelling cleanups.
Only spellcheck test files that start with a number.

14 years agoSpelling
Greg Sabino Mullane [Mon, 21 Feb 2011 04:59:11 +0000 (23:59 -0500)]
Spelling

14 years agoFix up custom query test.
Greg Sabino Mullane [Fri, 18 Feb 2011 03:05:01 +0000 (22:05 -0500)]
Fix up custom query test.

14 years agoMore fixes to the MRTG action inside various actions.
Greg Sabino Mullane [Thu, 17 Feb 2011 00:53:21 +0000 (19:53 -0500)]
More fixes to the MRTG action inside various actions.

14 years agoWhitespace cleanups.
Greg Sabino Mullane [Wed, 16 Feb 2011 17:54:54 +0000 (12:54 -0500)]
Whitespace cleanups.

14 years agoClean up translations and tests.
Greg Sabino Mullane [Sat, 12 Feb 2011 18:09:15 +0000 (13:09 -0500)]
Clean up translations and tests.

14 years agoFix MRTG for check_locks.
Greg Sabino Mullane [Sat, 12 Feb 2011 17:49:10 +0000 (12:49 -0500)]
Fix MRTG for check_locks.

14 years agoMerge commit 'maletin/master'
Greg Sabino Mullane [Sat, 12 Feb 2011 13:22:35 +0000 (08:22 -0500)]
Merge commit 'maletin/master'

14 years agoFix MRTG for last_vacuum and last_analzye
Greg Sabino Mullane [Sat, 12 Feb 2011 04:56:08 +0000 (23:56 -0500)]
Fix MRTG for last_vacuum and last_analzye

14 years agoGive the correct message when there are non-excluded tables mixed with excluded
Greg Sabino Mullane [Sat, 12 Feb 2011 04:53:54 +0000 (23:53 -0500)]
Give the correct message when there are non-excluded tables mixed with excluded
ones in the last_vacuum and analzye actions. Per complaint and
solution provided by David E. Wheeler.

14 years agoRefactor archive_ready into wal_files
Greg Sabino Mullane [Sat, 12 Feb 2011 04:43:05 +0000 (23:43 -0500)]
Refactor archive_ready into wal_files

14 years agoFix the <IDLE>-state in Bug #43.
Martin von Oertzen [Fri, 11 Feb 2011 09:36:21 +0000 (09:36 +0000)]
Fix the <IDLE>-state in Bug #43.

14 years agoAdjust tests for new perfdata output.
Greg Sabino Mullane [Wed, 9 Feb 2011 18:41:56 +0000 (13:41 -0500)]
Adjust tests for new perfdata output.

14 years agoBetter perfdata trailing semicolon cleanup.
Greg Sabino Mullane [Wed, 9 Feb 2011 18:36:06 +0000 (13:36 -0500)]
Better perfdata trailing semicolon cleanup.

14 years agovalidate_integer_for_time now returns empty string not undef
Greg Sabino Mullane [Wed, 9 Feb 2011 18:13:05 +0000 (13:13 -0500)]
validate_integer_for_time now returns empty string not undef

14 years agoClean up sub name.
Greg Sabino Mullane [Wed, 9 Feb 2011 18:11:25 +0000 (13:11 -0500)]
Clean up sub name.

14 years agoRemove unused transalation strings
Greg Sabino Mullane [Wed, 9 Feb 2011 18:09:51 +0000 (13:09 -0500)]
Remove unused transalation strings

14 years agoNew test stub.
Greg Sabino Mullane [Wed, 9 Feb 2011 18:06:22 +0000 (13:06 -0500)]
New test stub.

14 years agoUpdate docs.
Greg Sabino Mullane [Wed, 9 Feb 2011 18:04:07 +0000 (13:04 -0500)]
Update docs.

14 years agoFix the perflimit for the bloat action, per bug #50
Greg Sabino Mullane [Wed, 9 Feb 2011 15:18:06 +0000 (10:18 -0500)]
Fix the perflimit for the bloat action, per bug #50

14 years agoExclude idle in transaction from the query_time per bug #43.
Greg Sabino Mullane [Wed, 9 Feb 2011 14:36:33 +0000 (09:36 -0500)]
Exclude idle in transaction from the query_time per bug #43.
Since we've just overhauled this check, seems like a good a time
as any to make this change.

14 years agoNote recent changes.
Greg Sabino Mullane [Wed, 9 Feb 2011 13:40:45 +0000 (08:40 -0500)]
Note recent changes.

14 years agoLast of the major perfname tweaks
Greg Sabino Mullane [Wed, 9 Feb 2011 13:38:33 +0000 (08:38 -0500)]
Last of the major perfname tweaks

14 years agoLots more perfdata work
Greg Sabino Mullane [Wed, 9 Feb 2011 05:34:38 +0000 (00:34 -0500)]
Lots more perfdata work

14 years agoNew action: new_version_box, for the boxinfo.pl program.
Greg Sabino Mullane [Wed, 9 Feb 2011 05:24:08 +0000 (00:24 -0500)]
New action: new_version_box, for the boxinfo.pl program.

14 years agoMore perfdata work.
Greg Sabino Mullane [Wed, 9 Feb 2011 05:13:30 +0000 (00:13 -0500)]
More perfdata work.

14 years agoRemove debug string.
Greg Sabino Mullane [Wed, 9 Feb 2011 04:54:04 +0000 (23:54 -0500)]
Remove debug string.

14 years agoClean up hot_standby_delay perfdata
Greg Sabino Mullane [Wed, 9 Feb 2011 04:53:07 +0000 (23:53 -0500)]
Clean up hot_standby_delay perfdata

14 years agoDo not show the host if it's empty.
Greg Sabino Mullane [Wed, 9 Feb 2011 04:48:31 +0000 (23:48 -0500)]
Do not show the host if it's empty.
Do not show the perfdata divider if nothing is there.
More perfdata changes.

14 years agoMore performance data cleanup.
Greg Sabino Mullane [Wed, 9 Feb 2011 03:29:45 +0000 (22:29 -0500)]
More performance data cleanup.
Fix up the custom_query a lot.

14 years agoFix custom_query for MRTG, and do a proper performance data section.
Greg Sabino Mullane [Tue, 8 Feb 2011 23:05:30 +0000 (18:05 -0500)]
Fix custom_query for MRTG, and do a proper performance data section.

14 years agoNo need to go to 2.18.0 yet!
Greg Sabino Mullane [Tue, 8 Feb 2011 22:43:27 +0000 (17:43 -0500)]
No need to go to 2.18.0 yet!

14 years agoFix regex per bug #69
Peter Eisentraut [Tue, 8 Feb 2011 21:54:59 +0000 (16:54 -0500)]
Fix regex per bug #69

14 years agoFix spacing.
Greg Sabino Mullane [Tue, 8 Feb 2011 21:52:52 +0000 (16:52 -0500)]
Fix spacing.

14 years agoMore performance data enhancements.
Greg Sabino Mullane [Thu, 3 Feb 2011 18:44:18 +0000 (13:44 -0500)]
More performance data enhancements.

14 years agoMore performance data tweaking.
Greg Sabino Mullane [Thu, 3 Feb 2011 18:04:55 +0000 (13:04 -0500)]
More performance data tweaking.

14 years agoShow an "s" for perf output per Nagios guidelines.
Greg Sabino Mullane [Thu, 3 Feb 2011 17:54:43 +0000 (12:54 -0500)]
Show an "s" for perf output per Nagios guidelines.

14 years agoMove the archive_ready sub up
Greg Sabino Mullane [Thu, 3 Feb 2011 17:48:13 +0000 (12:48 -0500)]
Move the archive_ready sub up

14 years agoBump vesion to 2.18.0, not recent changes
Greg Sabino Mullane [Thu, 3 Feb 2011 17:46:21 +0000 (12:46 -0500)]
Bump vesion to 2.18.0, not recent changes

14 years agoConsolidate txn_idle, txn_time, and query_time, with major cleanup.
Greg Sabino Mullane [Thu, 3 Feb 2011 17:38:02 +0000 (12:38 -0500)]
Consolidate txn_idle, txn_time, and query_time, with major cleanup.
Add vv argument as shorthand for "very verbose"

14 years agoCleanup of txn_idle
Greg Sabino Mullane [Thu, 3 Feb 2011 16:32:29 +0000 (11:32 -0500)]
Cleanup of txn_idle

14 years agoShow information about the top offender for the txn_idle action.
Greg Sabino Mullane [Thu, 3 Feb 2011 16:11:12 +0000 (11:11 -0500)]
Show information about the top offender for the txn_idle action.
Clean up the tests.

14 years agoSpelling police.
Greg Sabino Mullane [Thu, 3 Feb 2011 05:59:03 +0000 (00:59 -0500)]
Spelling police.

14 years agoCuddle police.
Greg Sabino Mullane [Thu, 3 Feb 2011 05:58:03 +0000 (00:58 -0500)]
Cuddle police.

14 years agoReturn empty, not undef, for "ccount"
Greg Sabino Mullane [Thu, 3 Feb 2011 05:54:28 +0000 (00:54 -0500)]
Return empty, not undef, for "ccount"

14 years agoBump version and redo html docs.
Greg Sabino Mullane [Wed, 2 Feb 2011 22:35:13 +0000 (17:35 -0500)]
Bump version and redo html docs.

14 years agoAdd credit and bug numbers, bump version.
Greg Sabino Mullane [Wed, 2 Feb 2011 22:33:47 +0000 (17:33 -0500)]
Add credit and bug numbers, bump version.

14 years agoSupport non-standard version strings in the bloat check.
Michel Sijmons [Wed, 2 Feb 2011 22:30:01 +0000 (17:30 -0500)]
Support non-standard version strings in the bloat check.
With help from Gurjeet Singh

14 years agoSet maxliagn to 8 in the bloat check if box identified as '64-bit'
Michel Sijmons [Wed, 2 Feb 2011 22:27:22 +0000 (17:27 -0500)]
Set maxliagn to 8 in the bloat check if box identified as '64-bit'

14 years agoTypo.
Greg Sabino Mullane [Tue, 25 Jan 2011 23:49:35 +0000 (18:49 -0500)]
Typo.

14 years agoTypo.
Greg Sabino Mullane [Tue, 25 Jan 2011 23:45:55 +0000 (18:45 -0500)]
Typo.

14 years agoMake new_version_cp test work correctly for dot-zero revisions.
Greg Sabino Mullane [Tue, 25 Jan 2011 05:18:10 +0000 (00:18 -0500)]
Make new_version_cp test work correctly for dot-zero revisions.

14 years agoIn message string, $ should be $1
Greg Sabino Mullane [Tue, 25 Jan 2011 05:12:39 +0000 (00:12 -0500)]
In message string, $ should be $1

14 years agoThe wal_files check must take a positive integer, not just any ol' integer.
Greg Sabino Mullane [Tue, 25 Jan 2011 04:48:12 +0000 (23:48 -0500)]
The wal_files check must take a positive integer, not just any ol' integer.

14 years agoDuh
Greg Sabino Mullane [Tue, 25 Jan 2011 02:35:29 +0000 (21:35 -0500)]
Duh

14 years agoAllow check_txn_idle to accept multiple arguments, in "$int for $time" format.
David E. Wheeler [Tue, 25 Jan 2011 02:06:58 +0000 (21:06 -0500)]
Allow check_txn_idle to accept multiple arguments, in "$int for $time" format.
Add validate_integer_for_time() function.
Tests for the above.

14 years agoHave percent option check strip out the % char, for ease in future comparisons.
Greg Sabino Mullane [Mon, 24 Jan 2011 20:53:32 +0000 (15:53 -0500)]
Have percent option check strip out the % char, for ease in future comparisons.

14 years agoSpelling tweaks.
Greg Sabino Mullane [Mon, 24 Jan 2011 18:40:25 +0000 (13:40 -0500)]
Spelling tweaks.

14 years agoBump version to 2.17.0, not recent commit in changes.
Greg Sabino Mullane [Mon, 24 Jan 2011 17:37:44 +0000 (12:37 -0500)]
Bump version to 2.17.0, not recent commit in changes.

14 years agoDon't force percentage args to an int.
Greg Sabino Mullane [Mon, 24 Jan 2011 17:35:49 +0000 (12:35 -0500)]
Don't force percentage args to an int.