[Bug/Feature Request] ra -t option

Carter Bullard carter at qosient.com
Fri Jun 6 16:29:22 EDT 2008


Hey Nick,
Hmmmm, no reason we can't do that.
Try this patch just to test out the strategy.  There maybe some
time strings that break with this, but I'll test that out this weekend.

Carter

==== //depot/argus/clients/common/argus_util.c#136 - /home/carter/ 
argus/clients/common/argus_util.c ====
15625,15626c15625,15631
<
<       if ((retn = ArgusParseTime (ArgusParser, &ArgusParser- 
 >RaStartFilter, tm, buf, ' ')) > 0)
---
 >
 >       if (strlen(buf) > 0)
 >          retn = ArgusParseTime (ArgusParser, &ArgusParser- 
 >RaStartFilter, tm, buf, ' ');
 >       else
 >          ArgusParser->RaStartFilter = ArgusParser->RaLastFilter;
 >
 >       if (strlen(ptr) > 0)


On Jun 6, 2008, at 1:07 PM, Nick Diel wrote:

> Again not sure if this intended or not (it looks like it should be  
> possible from the man page)
>
> I would like to use -t option as such:
>
> ra -S argusHost -t +10m (similar to the example in the man page of  
> -10m) to match all records starting with present and 10 minutes  
> out.  This currently gives a:  "ra[25612]: 11:03:09.137437 time  
> syntax error +10m"
>
> Nick




More information about the argus mailing list