Skip to content

Commit

Permalink
last_vacuum/last_analyze : documentation (OPMDG#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krysztophe authored Nov 30, 2023
1 parent dd09b17 commit c086240
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions check_pgactivity
Original file line number Diff line number Diff line change
Expand Up @@ -5146,6 +5146,7 @@ LOOP_DB: foreach my $db (@all_db) {
Check on each databases that the oldest C<analyze> (from autovacuum or not) is
not older than the given threshold.
This is to check that a scheduled ANALYZE is working correctly.
This service uses the status file (see C<--status-file> parameter) with
PostgreSQL 9.1+.
Expand All @@ -5154,7 +5155,7 @@ Perfdata returns oldest C<analyze> per database in seconds. With PostgreSQL
9.1+, the number of [auto]analyses per database since last call is also
returned.
Critical and Warning thresholds only accept an interval (eg. 1h30m25s)
Critical and Warning thresholds only accept an interval (eg. 24h30m)
and apply to the oldest execution of analyse.
Tables that were never analyzed, or whose analyze date was lost due to a crash,
Expand All @@ -5181,6 +5182,7 @@ sub check_last_analyze {
Check that the oldest vacuum (from autovacuum or otherwise) in each database
in the cluster is not older than the given threshold.
This is to check that a scheduled VACUUM is working correctly.
This service uses the status file (see C<--status-file> parameter) with
PostgreSQL 9.1+.
Expand All @@ -5189,7 +5191,7 @@ Perfdata returns oldest vacuum per database in seconds. With PostgreSQL
9.1+, it also returns the number of [auto]vacuums per database since last
execution.
Critical and Warning thresholds only accept an interval (eg. 1h30m25s)
Critical and Warning thresholds only accept an interval (eg. 24h30m)
and apply to the oldest vacuum.
Tables that were never vacuumed, or whose vacuum date was lost due to a crash,
Expand Down

0 comments on commit c086240

Please sign in to comment.