I have found a way around this issue though it is a bit of a dirty hack.  In 
the transform box you are given a device object.  Digging through the API 
documentation for zenoss I discovered that you can return an event manager 
object through that device object and from that event manager object can search 
the event database and retrieve an event details object which contains all the 
values that are in an event in the database including count.  

Here is some sample code

em = device.getEventManager()
ed = em.getEventDetail(dedupid = '')
if ed.count > 1:
     evt.severity = 4 

You will need to supply the getEventDetail function a dedupid which you can 
either generate yourself from the evt object or just insert a string.




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

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

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



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

Reply via email to