Joe,
the step feature in time specifications was introduced in version 2.5.2,
so if possible, please upgrade from 2.5.1 to 2.5.2.
kind regards,
risto
On 11/03/2009 01:52 PM, Joe Prosser wrote:
> Hi Risto,
> I'm using 2.5.1
> SEC (Simple Event Correlator) 2.5.1
> Reading configuration from /usr/local/nagios/SECDEV/parsediags.sec3
> Rule in /usr/local/nagios/SECDEV/parsediags.sec3 at line 73: Invalid
> minute specification '*/2'
> 5 rules loaded from /usr/local/nagios/SECDEV/parsediags.sec3
>
> here's the rule:
> type=Calendar
> time=*/2 * * * *
> desc=Write all contexts to stdout
> action=write - %s;assign %dfp 0;eval %dfp ( open(CFH, ">>/tmp/diagperl.log")
> ;\
> while($context = each(%main::context_list)) { \
> print CFH "Context name: $context\n"; \
> foreach $line (@{$main::context_list{$context}->{"Buffer"}}) { \
> print CFH $line, "\n\n"; \
> } \
> close CFH;\
> } )
>
> Cheers!
> -Joe
>
> On Tue, Nov 3, 2009 at 4:15 AM, Risto Vaarandi<[email protected]> wrote:
>> Joe,
>> what SEC version are you using? Can you post the entire rule definition
>> for troubleshooting?
>> risto
>>
>> On 11/03/2009 12:14 AM, Joe Prosser wrote:
>>> Hey Folks,
>>> Is there a way to specify something should occur every N minutes?
>>>
>>> The doc says '/N' will provide stepping, but I get a syntax error
>>> using an '*' or a range
>>>
>>> Rule in /usr/local/nagios/SECDEV/parsediags.sec3 at line 60: Invalid
>>> minute specification '*/2'
>>> Rule in /usr/local/nagios/SECDEV/parsediags.sec3 at line 76: Invalid
>>> minute specification '*/10'
>>>
>>> Rule in /usr/local/nagios/SECDEV/parsediags.sec3 at line 60: Invalid
>>> minute specification '1-60/2'
>>> Rule in /usr/local/nagios/SECDEV/parsediags.sec3 at line 76: Invalid
>>> minute specification '1-60/10'
>>>
>>> Has anyone made this work?
>>>
>>> Cheers,
>>> -Joe
>>>
>>> ------------------------------------------------------------------------------
>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>>> is the only developer event you need to attend this year. Jumpstart your
>>> developing skills, take BlackBerry mobile applications to market and stay
>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>>> http://p.sf.net/sfu/devconference
>>> _______________________________________________
>>> Simple-evcorr-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Simple-evcorr-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
>>
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Simple-evcorr-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users