Is there anyway to call the ZenEventManager in a transform so I can 
getEventDetails on a particular dedupid. The reason for this is so I can get 
the current count for the alert and if it's over 50 to suppress the alert. here 
is the current transform I have. It doesn't work.


Code:
# If count is higher than 50 then suppress the errors.
dev = str(device.getId())
comp = str(evt.component)
evtclass = "/Status/Ping"
message = str(evt.message)
severity = str(evt.severity)
key = str(evt.eventKey)

dupid = dev + "|" + comp + "|" + evtclass + "|" + key + "|" +severity + "|" + 
message
em = device.getEventManager()
ed = em.getEventDetail(dedupid=dupid)
if evt.severity >= 3:
    if ed.count > 50:
        evt.eventState = 2 






-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=28867#28867

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to