[Orca-users] Procallator modification

Blair Zajac blair at orcaware.com
Thu Feb 23 22:31:56 PST 2006


David Michaels wrote:
> 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.

Agreed.  Some care was taken in the Orca configuration files to ensure that they 
can find the older procallator generated data files.

Regards,
Blair




More information about the Orca-users mailing list