Skip to content

Commit c48414c

Browse files
author
Greg Sabino Mullane
committed
Move archive_command docs around.
1 parent 46a2d2c commit c48414c

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

check_postgres.pl

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ package check_postgres;
824824
## Quick hash to put normal action information in one place:
825825
our $action_info = {
826826
# Name # clusterwide? # helpstring
827+
archive_ready => [1, 'Check the number of WAL files ready in the pg_xlog/archive_status'],
827828
autovac_freeze => [1, 'Checks how close databases are to autovacuum_freeze_max_age.'],
828829
backends => [1, 'Number of connections, compared to max_connections.'],
829830
bloat => [0, 'Check for table and index bloat.'],
@@ -873,7 +874,6 @@ package check_postgres;
873874
txn_wraparound => [1, 'See how close databases are getting to transaction ID wraparound.'],
874875
version => [1, 'Check for proper Postgres version.'],
875876
wal_files => [1, 'Check the number of WAL files in the pg_xlog directory'],
876-
archive_ready => [1, 'Check the number of WAL files ready in the pg_xlog/archive_status'],
877877
};
878878

879879
## XXX Need to i18n the above
@@ -7489,6 +7489,26 @@ =head1 ACTIONS
74897489
74907490
The current supported actions are:
74917491
7492+
=head2 B<archive_ready>
7493+
7494+
(C<symlink: check_postgres_archive_ready>) Checks how many WAL files with extension F<.ready>
7495+
exist in the F<pg_xlog/archive_status> directory, which is found
7496+
off of your B<data_directory>. This action must be run as a superuser, in order to access the
7497+
contents of the F<pg_xlog/archive_status> directory. The minimum version to use this action is
7498+
Postgres 8.1. The I<--warning> and I<--critical> options are simply the number of
7499+
F<.ready> files in the F<pg_xlog/archive_status> directory.
7500+
Usually, these values should be low, turning on the archive mechanism, we usually want it to
7501+
archive WAL files as fast as possible.
7502+
7503+
If the archive command fail, number of WAL in your F<pg_xlog> directory will grow until
7504+
exhausting all the disk space and force PostgreSQL to stop immediately.
7505+
7506+
Example 1: Check that the number of ready WAL files is 10 or less on host "pluto"
7507+
7508+
check_postgres_archive_ready --host=pluto --critical=10
7509+
7510+
For MRTG output, reports the number of ready WAL files on line 1.
7511+
74927512
=head2 B<autovac_freeze>
74937513
74947514
(C<symlink: check_postgres_autovac_freeze>) Checks how close each database is to the Postgres B<autovacuum_freeze_max_age> setting. This
@@ -8537,26 +8557,6 @@ =head2 B<wal_files>
85378557
85388558
For MRTG output, reports the number of WAL files on line 1.
85398559
8540-
=head2 B<archive_ready>
8541-
8542-
(C<symlink: check_postgres_archive_ready>) Checks how many WAL files with extension F<.ready>
8543-
exist in the F<pg_xlog/archive_status> directory, which is found
8544-
off of your B<data_directory>. This action must be run as a superuser, in order to access the
8545-
contents of the F<pg_xlog/archive_status> directory. The minimum version to use this action is
8546-
Postgres 8.1. The I<--warning> and I<--critical> options are simply the number of
8547-
F<.ready> files in the F<pg_xlog/archive_status> directory.
8548-
Usually, these values should be low, turning on the archive mechanism, we usually want it to
8549-
archive WAL files as fast as possible.
8550-
8551-
If the archive command fail, number of WAL in your F<pg_xlog> directory will grow until
8552-
exhausting all the disk space and force PostgreSQL to stop immediately.
8553-
8554-
Example 1: Check that the number of ready WAL files is 10 or less on host "pluto"
8555-
8556-
check_postgres_archive_ready --host=pluto --critical=10
8557-
8558-
For MRTG output, reports the number of ready WAL files on line 1.
8559-
85608560
=head2 B<rebuild_symlinks>
85618561
85628562
=head2 B<rebuild_symlinks_force>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy