diff --git a/check_postgres.pl b/check_postgres.pl index edb47e1..f386437 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -5223,7 +5223,7 @@ sub check_disk_space { ## Check log_directory: relative or absolute if (length $logdir) { - if ($logdir =~ /^\w/) { ## relative, check only if symlinked + if ($logdir =~ /^[\w\.]/) { ## relative, check only if symlinked $logdir = "$datadir/$logdir"; if (-l $logdir) { my $linkdir = readlink($logdir);