Show
Ignore:
Timestamp:
06/18/08 16:01:26 (6 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1213804886 +0000
git-parent:

[6f36197fd9a524f4f6f9902a491468b01f16bc9c]

git-author:
Mark Harrison <mark@omniti.com> 1213804886 +0000
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Module/WALCHECK.pm

    rcab0e0f rc0f18d2  
    3535  my $logdir = $arg->{'logdir'}; 
    3636  opendir(D, $logdir); 
    37   my @files = sort grep /^postgresql-[\d-]+.log$/, readdir(D); 
     37  my @files = sort grep /^postgresql-[\d-]+_?\d*\.log$/, readdir(D); 
    3838  closedir(D); 
    3939  my $wallog = $files[-1];