If I use this transform I know it pulls the count but it won't suppress the
errors like I want it to.
Code:
# If count is higher than 50 then suppress the errors.
mydedupid = "%s|%s|%s|%s|%s|%s" % (evt.device, evt.component, evt.eventClass,
evt.eventKey, evt.severity, evt.summary)
em = device.getEventManager()
# Note, it sometimes takes 1-2 minutes before the count
# is updated in db, did not want to incur a reIndex on each
# message. Adding stmt below works however.
# em.reIndex()
try:
ed = em.getEventDetail(dedupid=mydedupid)
mycount = ed.count
except:
mycount = 0
mycount = int(mycount)
if mycount > 50:
evt.eventState = 2
Will it not suppress the errors if the eventState is set to Acknowledged.
Thanks
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=29171#29171
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users