Skip to content

Commit 099a599

Browse files
committed
Better check for insufficient privileges and configuration options
that haven't been set and are needed.
1 parent b3f7d7b commit 099a599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check_postgres.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7703,13 +7703,13 @@ sub check_txn_idle {
77037703
my $st = $r->{state} || '';
77047704

77057705
## Return unknown if we cannot see because we are a non-superuser
7706-
if ($cq =~ /insufficient/o) {
7706+
if ($cq =~ /^insufficient/o) {
77077707
add_unknown msg('psa-nosuper');
77087708
return;
77097709
}
77107710

77117711
## Return unknown if stats_command_string / track_activities is off
7712-
if ($cq =~ /disabled/o or $cq =~ /<command string not enabled>/) {
7712+
if ($cq =~ /^disabled/o or $cq =~ /^<command string not enabled>/) {
77137713
add_unknown msg('psa-disabled');
77147714
return;
77157715
}

0 commit comments

Comments
 (0)