Reevaluating data items

 

In case anyone is already using or plans to use the reevaluate
function in the expression rules, here is some advise that I have
learned from my trials.

The problem that I have found when performing a reeval on the DI
is that the timestamps are not consistent, depending on the origin.
Timestamps can either be enterprise or agent and if your agent is not
in sync with the enterprise; this can cause deviation in the DI age.

So to overcome this random deviation, I have do the following:

First rule: Partner Down

IF: partnerStatus == 0 && DataItem.partnerStatus.changed
== 1

THEN: Reevaluate("5m") &&
SetDataItem("lastPartnerDown", str(now)) <---
This is the creation of a new DI which will always use the enterprise
timestamp...

Second rule: Parnter Down (Reeval)

IF: partnerStatus == 0 && (partnerStatus.age -
DataItem.lastPartnerDown.age) > 10

THEN: CreateAlarm("Partner DOWN", 200, "The
acquisition is NOT connected to it's partner.", "partnerStatus")

Hope this helps.

Thanks for contributing

Thanks for contributing notes on your experience - it surely will help someone!

 

Sara