Skip to content

Commit

Permalink
Show autovac max_workers only on compatible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ioguix committed Jun 30, 2022
1 parent 7c19f0b commit b4717b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion check_pgactivity
Original file line number Diff line number Diff line change
Expand Up @@ -2153,7 +2153,9 @@ sub check_autovacuum {

@perfdata = map { [ $_, $activity{$_} ] } keys %activity;
push @perfdata, [ 'oldest_autovacuum', $oldest, 's' ];
push @perfdata, [ 'max_workers', $max_workers ];
push @perfdata, [ 'max_workers', $max_workers ]
if $hosts[0]->{'version_num'} >= $PG_VERSION_83;

push @msg, "Number of autovacuum: $numautovac";
push @msg, "Oldest autovacuum: " . to_interval($oldest) if $oldest ne "NaN";

Expand Down

0 comments on commit b4717b6

Please sign in to comment.