@@ -824,6 +824,7 @@ package check_postgres;
824
824
# # Quick hash to put normal action information in one place:
825
825
our $action_info = {
826
826
# Name # clusterwide? # helpstring
827
+ archive_ready => [1, ' Check the number of WAL files ready in the pg_xlog/archive_status' ],
827
828
autovac_freeze => [1, ' Checks how close databases are to autovacuum_freeze_max_age.' ],
828
829
backends => [1, ' Number of connections, compared to max_connections.' ],
829
830
bloat => [0, ' Check for table and index bloat.' ],
@@ -873,7 +874,6 @@ package check_postgres;
873
874
txn_wraparound => [1, ' See how close databases are getting to transaction ID wraparound.' ],
874
875
version => [1, ' Check for proper Postgres version.' ],
875
876
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' ],
877
877
};
878
878
879
879
# # XXX Need to i18n the above
@@ -7489,6 +7489,26 @@ =head1 ACTIONS
7489
7489
7490
7490
The current supported actions are:
7491
7491
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
+
7492
7512
=head2 B<autovac_freeze >
7493
7513
7494
7514
(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>
8537
8557
8538
8558
For MRTG output, reports the number of WAL files on line 1.
8539
8559
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
-
8560
8560
=head2 B<rebuild_symlinks >
8561
8561
8562
8562
=head2 B<rebuild_symlinks_force >
0 commit comments