From: Greg Sabino Mullane Date: Tue, 28 Dec 2010 15:46:31 +0000 (-0500) Subject: Move archive_command docs around. X-Git-Tag: 2.15.2~2 X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=c48414cab4baa473696d6b836cd201591d64760f;p=check_postgres.git Move archive_command docs around. --- diff --git a/check_postgres.pl b/check_postgres.pl index de4d4cd12..e38010174 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -824,6 +824,7 @@ if ($opt{version}) { ## Quick hash to put normal action information in one place: our $action_info = { # Name # clusterwide? # helpstring + archive_ready => [1, 'Check the number of WAL files ready in the pg_xlog/archive_status'], autovac_freeze => [1, 'Checks how close databases are to autovacuum_freeze_max_age.'], backends => [1, 'Number of connections, compared to max_connections.'], bloat => [0, 'Check for table and index bloat.'], @@ -873,7 +874,6 @@ our $action_info = { txn_wraparound => [1, 'See how close databases are getting to transaction ID wraparound.'], version => [1, 'Check for proper Postgres version.'], wal_files => [1, 'Check the number of WAL files in the pg_xlog directory'], - archive_ready => [1, 'Check the number of WAL files ready in the pg_xlog/archive_status'], }; ## XXX Need to i18n the above @@ -7489,6 +7489,26 @@ critical is an effective way to turn warnings off and always give a critical. The current supported actions are: +=head2 B + +(C) Checks how many WAL files with extension F<.ready> +exist in the F directory, which is found +off of your B. This action must be run as a superuser, in order to access the +contents of the F directory. The minimum version to use this action is +Postgres 8.1. The I<--warning> and I<--critical> options are simply the number of +F<.ready> files in the F directory. +Usually, these values should be low, turning on the archive mechanism, we usually want it to +archive WAL files as fast as possible. + +If the archive command fail, number of WAL in your F directory will grow until +exhausting all the disk space and force PostgreSQL to stop immediately. + +Example 1: Check that the number of ready WAL files is 10 or less on host "pluto" + + check_postgres_archive_ready --host=pluto --critical=10 + +For MRTG output, reports the number of ready WAL files on line 1. + =head2 B (C) Checks how close each database is to the Postgres B setting. This @@ -8537,26 +8557,6 @@ Example 1: Check that the number of WAL files is 20 or less on host "pluto" For MRTG output, reports the number of WAL files on line 1. -=head2 B - -(C) Checks how many WAL files with extension F<.ready> -exist in the F directory, which is found -off of your B. This action must be run as a superuser, in order to access the -contents of the F directory. The minimum version to use this action is -Postgres 8.1. The I<--warning> and I<--critical> options are simply the number of -F<.ready> files in the F directory. -Usually, these values should be low, turning on the archive mechanism, we usually want it to -archive WAL files as fast as possible. - -If the archive command fail, number of WAL in your F directory will grow until -exhausting all the disk space and force PostgreSQL to stop immediately. - -Example 1: Check that the number of ready WAL files is 10 or less on host "pluto" - - check_postgres_archive_ready --host=pluto --critical=10 - -For MRTG output, reports the number of ready WAL files on line 1. - =head2 B =head2 B