Skip to content
Snippets Groups Projects
Commit c0f18d22 authored by Mark Harrison's avatar Mark Harrison
Browse files

Changed the regex that the WALCHECK module uses to find the log files to deal...

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
parent 6f36197f
No related branches found
No related tags found
No related merge requests found
......@@ -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];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment