I have certain events that I care about only on production machines. These
events are mapped to event classes based on the event class keys. What I want
to do is transform the events and move them to history (and optionally change
severity) if the events come from a development or test machine.
I tried putting the following on the Transform pane of an event that is mapped
to one of our event classes:
if evt.device.startswith("D") or evt.device.startswith("d"):
evt.severity = 2
evt.action = "history"
This does in fact change the severity of the events, but leaves them in the
console for review (the event class zProperties are: zEventAction=status;
zEventSeverity=Error).
What do I need to do in the transform to actually move the event to history, or
is this possible?
Thanks.
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=15587#15587
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users