This only works if it's in the /Unknown class. Otherwise, you have to do
an event transform for whatever class the events are ending up in.
Try looking at the admin guide example:
http://www.zenoss.com/community/docs/zenoss-guide/2.1.1/ch10s15.html#d0e3772
But there is one bug in the code, you would in that example do:
if evt.component == '/data' and evt.severity != 0:
evt.severity = 5
In your case, try setting the event severity to 1 (Debug) but leave it
in the class. That way, it's not likely to generate an alert (if your
alerting rules are correct), but you do have records of the events.
If you really want to ignore the event entirely:
http://community.zenoss.com/forums/viewtopic.php?t=3968
I quote:
You want an event Transform
Events -> (navigate to event class) -> More -> Transform
You can execute arbitrary python before the event is posted.
# in "/Status/Ping" event class:
if evt.severity:
evt.eventClass = "/Status/Onos"
evt.summary = "Onos! Ping failure!"
Note that events can have a message or events can have a summary, but
they do not have both when this is executed, so if you plan to use the
summary in your condition, use this approach:
if evt.severity:
s = getattr(evt, 'summary', getattr(evt, 'message', ''))
if s.find('Onos!') >= 0:
s.summary = 'Found an Onos message!'
-Eric
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University
anastrophe wrote:
last night i got a cluster of pages reporting "GART TLB errorr: transaction type(generic), cache level(generic)". i did some research, and apparently these are completely benign in our environment, even though at syslog level Error. in the event console, i selected 'map event to class', and mapped it to 'ignore'. unfortunately, it didn't 'take' - twenty minutes later, paged again. checked the events class page, selected the 'ignore' subclass - nope, not listed. ran through the step again. still not there. am i not understanding this? i read in another forum post that that's exactly what you do if you have an event you don't want to ever be alerted about.
running 2.2.0 (due to upgrade shortly - but i don't see anything associated
with this in the 'bugs fixed' section).
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=23075#23075
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users