[Orca-users] Procallator modification

David Michaels dragon at raytheon.com
Thu Feb 23 11:17:23 PST 2006


Mike.Kent at indystar.com wrote:
>
> I recently updated the Orca collector on our Sun server to the latest, 
> r525 from http://www.orcaware.com/orca/pub/snapshots/. In the process, 
> I updated a Linux server running Fedora 4 to the latest procallator, 
> only to find that the Sun collector wouldn't process the Linux 
> server's files. I noticed that the name of the procallator files 
> changed to add a hyphen and 3 digits at the end - 
> proccol-2006-02-22-000, so the Orca collector ignored them.
>
> Checking procallator on the Linux server, I modified it at these line 
> numbers:
>
>    1112     # Evaluate filename
>    1113     $out_filename[$r] = sprintf "%s/proccol-%04d-%02d-%02d", 
> $DEST_DIR,
>    1114       $year, $mon, $mday;
>    1115     #$out_filename[$r] = sprintf 
> "%s/proccol-%04d-%02d-%02d-%03d", $DEST_DIR,
>        1116     #  $year, $mon, $mday, $num;
>
> This returns the filename to what it was previously - 
> proccol-2006-02-23, so that now the Orca collector processes them.
>
> Hope this helps someone else with a similar problem.

This is one approach to fixing your problem, but it probably would be 
better to just modify your orcallator.cfg file, at the find_files entry 
for the group in question.  It's possible when you upgraded to r525 that 
your orcallator.cfg file changed (or didn't change, but needed to?).  
Here's what my find_files looks like:

find_files              
/npd/dmichael/orca-522/var/orca/orcallator/(.*)/(?:(?:orcallator)|(?:percol))-\d{4}-\d{2}-\d{2}(
?:-\d{3,})(?:[^\.]*)?(?:\.(?:Z|gz|bz2))?

The 4th \d part of that regex is where the additional and optional -000 
would be caught, so your files would continue to be processed as 
normal.  By modifying your find_files regex instead of the procollator 
source, you won't have to re-modify the procollator source every time a 
new version comes out.

Cheers,
--Dragon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/orca-users/attachments/20060223/fb8bad52/attachment.html>


More information about the Orca-users mailing list