mwcotton wrote:
> map the event to a class
With the version I have (Zenoss 2.4.2) ,
I can't map the event to a class when the eventClassKey is empty.
So what I did is that I put this on the /event transform:
My_cmpt = getattr(evt, "component")
My_device = getattr(evt,"device")
My_eventClass = getattr(evt,"eventClassKey")
if My_device.find('UPS') >= 0 :
evt.eventClassKey = "defaultmapping"
evt.eventClass = "/UPS"
elif My_cmpt == "Copitrak Phone Processing" :
evt.eventClassKey = "defaultmapping"
evt.eventClass = "/Copitrak"
elif My_eventClass == "" :
evt.eventClassKey = "defaultmapping"
And after that, I can filter /unknown type events with the "Add Mapping"
function
-------------------- m2f --------------------
Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=38525#38525
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users