summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-11-23Change join to pg_user to a left join, as the database may be owned by a role.Greg Sabino Mullane
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.
2011-11-10Update historyCédric Villemain
2011-11-10Add MRTG to test for settings_checksumCédric Villemain
2011-11-10Add a test for checkpoint and --assume-standby-modeCédric Villemain
2011-11-10Add cluster_id testCédric Villemain
for automatic testing too.
2011-11-10Add an --assume-prod optionCédric Villemain
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 ?
2011-11-10Reduce code duplicates around pg_controldataCédric Villemain
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.
2011-11-10Add a check cluster_idCédric Villemain
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.
2011-10-08Note last changesGreg Sabino Mullane
2011-10-08Create a man 3 entryGreg Sabino Mullane
2011-10-08We already have check_postgres.pl listed as an EXE, so prevent Makefile from ↵Greg Sabino Mullane
putting it into the Perl lib path as well.
2011-10-08Fix typo.Greg Sabino Mullane
2011-10-07Fix uninitialized string warnings when host or port not specified (eg using ↵Mike Blackwell
dbservice)
2011-10-06Redo latest orderby tweaksGreg Sabino Mullane
2011-10-06Credit last patchGreg Sabino Mullane
2011-10-06Show dbservice if used at start of same_schema header.Mike Blackwell
2011-10-06Credit bloat change.Greg Sabino Mullane
2011-10-06Get version 2.18.1 readyGreg Sabino Mullane
2011-10-06Use the full path when getting sequence information for same_schema.Greg Sabino Mullane
Thanks to Cindy Wise for the bug report.
2011-10-06Show bloat when indexes are high tooGreg Sabino Mullane
2011-10-05Update french translation.Guillaume Lelarge
2011-10-05Fix query_time action when using --dbservice optionGuillaume Lelarge
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.
2011-10-04Fix query time actionJehan-Guillaume (ioguix) de Rorthais
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.
2011-10-03Allow the check of multiple db with connection actionGuillaume Lelarge
We still stop at the first error. Per request from Aziz Boultabi.
2011-10-02PGP sig for 2.18.0Greg Sabino Mullane
2011-10-02Final tweaks for 2.18.02.18.0Greg Sabino Mullane
2011-10-02Signature for 2.18.0Greg Sabino Mullane
2011-09-28Spellcheck updatesGreg Sabino Mullane
2011-09-28Message/translation cleanups.Greg Sabino Mullane
2011-09-11Typo.Greg Sabino Mullane
2011-09-03Fix some "make test" issuesGuillaume Lelarge
* 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.
2011-08-29New french updateGuillaume Lelarge
2011-08-19Note latest changes. Quick document of same_schema --replaceGreg Sabino Mullane
2011-08-19Fix space in perfdata for hot_standby_delay action.Nicolas Thauvin
2011-08-18Don't allow this test unless in RELEASE mode.Greg Sabino Mullane
2011-08-01Note the special ignore/exclude handling in the bloat routine, per ↵Greg Sabino Mullane
discussion on the mailing list.
2011-07-27New option "replace" to allow replacing the audit file after a run.Greg Sabino Mullane
2011-07-27More prosrc filtering tweaks.Greg Sabino Mullane
2011-07-12Don't tell us about the sequence number changing over time!Greg Sabino Mullane
2011-07-12Support per-version SQL for same_schema action.Greg Sabino Mullane
2011-07-12Use the entire sub call for the "totaltime" counter for same_schema.Greg Sabino Mullane
2011-07-12Do not show connection variants for historical database.Greg Sabino Mullane
2011-07-12Switch around probin munging.Greg Sabino Mullane
2011-07-11Credit last commitGreg Sabino Mullane
2011-07-11Fix typo in dbstats action.Stas Vitkovsky
2011-07-05Clean up all versions of test database dirs and their sockets.Greg Sabino Mullane
2011-07-05Keep the fake schema around, as we modify search_path with ALTER USERGreg Sabino Mullane
2011-07-04Various testing fixes.Greg Sabino Mullane
2011-07-04The database name is not always available (e.g. check_checkpoint)Greg Sabino Mullane
2011-07-04Tweak backend tests to account for new outputGreg Sabino Mullane