Discussion:
Event classes and transform help
Scott Savarese
2013-03-29 17:40:50 UTC
Permalink
Scott Savarese [http://community.zenoss.org/people/scottsavarese] created the discussion

"Event classes and transform help"

To view the discussion, visit: http://community.zenoss.org/message/72652#72652

--------------------------------------------------------------
I'm new to Zenoss. About 1 week new. I have it up and running and receiving SNMP traps from our Bigip appliances. However, now I need to do something with them and am having trouble figuring out how to do classes and transforms right...

What I don't want is to click on each event that comes in and hit reclassify on it. that would take way to long. Instead, I'd like to say that all events coming in with the message "snmp trap bigip.*" or the event class key "bigip.*" (where .* is a regex meaning anything can come after) gets given the event class /sys/bigip. And then, any event in class /sys/bigip gets modified a bit. The bigip's will put the actual message in the "bigipNotifyObjMsg" field. I want that field to replace the message, summary, and be part of the deduplication logic. I also want to update the severity.

Is this doable? I've read through a bunch of the Zenoss documenation but a lot of it (at least the stuff google finds) relates to older versions of Zenoss and sets up transforms differently than the current version. So, how do I do this? I created the event class /sys/bigip. I then go to create a new mapping. I then go to edit the mapping, and am not sure what to use for "Event Class Key", Rule, Regex and transform for this to work.

I know this is probably simple stuff and answered before... google isn't helpful for this for some reason.
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72652#72652]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Scott Savarese
2013-04-01 18:31:27 UTC
Permalink
Scott Savarese [http://community.zenoss.org/people/scottsavarese] created the discussion

"Re: Event classes and transform help"

To view the discussion, visit: http://community.zenoss.org/message/72662#72662

--------------------------------------------------------------
I'm going to answer my own question... This is definitely doable.

Steps:
* Go to the eventClass that you want the events to go to.
* Create a new eventmapping called "defaultmapping". From what I understand, defaultmapping is the convention used for mappings where rules are used to set the eventClassKey as opposed to the mapping's eventClassKey.
* Set a rule for the mapping like this. Basically says that any eventClassKey starting with "bigip" matches this.
evt.eventClassKey.startswith('bigip')
evt.summary = evt.bigipNotifyObjMsg
evt.message = evt.bigipNotifyObjMsg
evt.severity = 5
evt.dedupid = evt.device + "|" + evt.eventClass + "|" + str( evt.severity ) + "|" + evt.bigipNotifyObjMsg
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72662#72662]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
jmp242
2013-04-01 19:00:30 UTC
Permalink
jmp242 [http://community.zenoss.org/people/jmp242] created the discussion

"Re: Event classes and transform help"

To view the discussion, visit: http://community.zenoss.org/message/72676#72676

--------------------------------------------------------------
defaultmapping is actually what it says - if nothing matches potential eventclasskeys (you can have more than one and set ordering - using the GUI) then it tries the defaultmapping, and uses rules there. Note you can actually use eventclasskeys AND rules on the same filter if you like - see Jane Curry's event management papers. http://www.skills-1st.co.uk/papers/jane/zenoss_event_management_paper.pdf http://www.skills-1st.co.uk/papers/jane/zenoss_event_management_paper.pdf for one of them.

--
James Pulver
ZCA Member
LEPP Computer Group
Cornell University
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/72676#72676]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...