From c0f18d22d89cc68deed8c10492ed895376fca699 Mon Sep 17 00:00:00 2001 From: Mark Harrison <mark@omniti.com> Date: Wed, 18 Jun 2008 16:01:26 +0000 Subject: [PATCH] Changed the regex that the WALCHECK module uses to find the log files to deal with other possibile filename formats. git-svn-id: https://labs.omniti.com/resmon/trunk@127 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55 --- lib/Resmon/Module/WALCHECK.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Resmon/Module/WALCHECK.pm b/lib/Resmon/Module/WALCHECK.pm index 3a7669c..01603ac 100644 --- a/lib/Resmon/Module/WALCHECK.pm +++ b/lib/Resmon/Module/WALCHECK.pm @@ -34,7 +34,7 @@ sub handler { return $os if $os; my $logdir = $arg->{'logdir'}; opendir(D, $logdir); - my @files = sort grep /^postgresql-[\d-]+.log$/, readdir(D); + my @files = sort grep /^postgresql-[\d-]+_?\d*\.log$/, readdir(D); closedir(D); my $wallog = $files[-1]; -- GitLab