![]() |
![]() |
Subject: | Trap with ZenOSS, Event Details question ? |
Author: | [Not Specified] |
Posted: | 2016-02-04 03:41 |
Hi all,
i'm searching to use some event details in my alert mail. For exemple in my trap i get this OID :
1.3.6.1.4.1.8744.5.23.1.2.1.1.6.29
Which give the AP name, but i don't find how to use this value in my mail. Maybe with transformation trap.
Who can help me
Thanks in Advance.
Subject: | does the AP have a MIB you |
Author: | Andrew Kirch |
Posted: | 2016-02-08 12:01 |
does the AP have a MIB you can load with zenmib to get more useful information
Andrew Kirch
akirch@gvit.com
Need Zenoss support, consulting or custom development Look no further. Email or PM me!
Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard
Subject: | Trap Transforma |
Author: | [Not Specified] |
Posted: | 2016-02-09 02:04 |
Hi Trelane,
Thanks for you anwser, yes in fact i've loaded MIB but it was not really usefull i've created two OID AP-NAME and AP-IP-ADDR.
My actual transform section :
evt.summary = "L'AP " + str (getattr(evt, 'AP-Name')) + " IP :" + str (getattr(evt, 'AP-IP-ADDR')) + " est Down !"
evt.summary = str (getattr(evt, 'AP-Name'))
if str (getattr(evt,'enterprises.8744.5.23.1.2.1.1.2')) >= 6:
evt._action = "clear"
I'm not really sure for evt._action="clear", and i think Line 2 useless.
I'm doing some test, i come back to you !
Subject: | Ok thanks you Jane |
Author: | [Not Specified] |
Posted: | 2016-02-09 13:44 |
Ok thanks you Jane
Subject: | if str (getattr(evt, |
Author: | [Not Specified] |
Posted: | 2016-02-10 07:00 |
if str (getattr(evt, 'enterprises.8744.5.23.1.2.1.1.5')) >= 2:
evt._action = "history"
This line doesn't work, who can help me i want to drop my trap when i see the value of this OID >=2 :(
Subject: | Ok Jane, but actually this |
Author: | [Not Specified] |
Posted: | 2016-02-10 09:24 |
Ok Jane, but actually this line drop all traps ! i try with this one !
if str (getattr(evt,'enterprises')) >= 2:
evt._action = "history"
i don't understrand how to manage clear trap !
< |
Previous http://community.zenoss.org |
Next zodb_object_state has grown to ~200GB |
> |