Hi yathrib, list,
maybe this could be done with the following config using
EventProcedures and assumed var1 is "packets sent" and var2 is
"packets lost":
0x0 P \
"If( \
Greater( \
Divide( \
Multiply( \
GetEventVariable( {U 2} ), \
100 \
),
GetEventVariable( {U 1} ), \
), \
{U 5} \
),
CreateEvent( \
{C CURRENT_MODEL}, \
{H 0x1} \
), \
Nil \
)"
BTW: I added "multiply by 100" to get your wish corrected ;-)
Just a quick hack (at least for 9.0), did not test it myself, but
should/could work.
Short desc:
- if (vardata 2 (*100) divided by vardata 1) is greater 5,
- then create event 0x1 for current model,
- else do nothing
Hope this works ;-)
Reagrds,
Marcel
On Thu, Mar 19, 2009 at 12:40 PM, yathrib <[email protected]> wrote:
> Hi,
>
> I have an alarm with multiple values coming in, like:
>
> packets sent = 123
> packets lost = 1
>
> I've mapped these in the AlertMap.
>
> Is there any way to calculate a rate in the EventDisp, to then alarm on a
> threshold exceeded?
>
> # more than 5% loss is bad
> R Aprisma.EventCondition, "{VARDATA 2} / {VARDATA 1} > {I 5}", "0x1",
> "default", "0x0"
>
> Otherwise I'm left doing a straight compare against the raw value:
>
> # more than 10 packets lost is bad
> R Aprisma.EventCondition, "{VARDATA 2} > {I 10}", "0x1", "default", "0x0"
>
> --
> yathrib
>
> ---
> To unsubscribe from spectrum, send email to [email protected] with the body:
> unsubscribe spectrum [email protected]
>
---
To unsubscribe from spectrum, send email to [email protected] with the body:
unsubscribe spectrum [email protected]