Mike,
It seems like the event mapping you made isn't getting hit and the
event is showing up with the default summary as a result. Is the
Class field of the event set correctly? Is this a v2 trap?
-EAD
On Dec 5, 2006, at 4:44 PM, Mike Fratto wrote:
Erik, here is the problem I am running into. This is a memnory based
trap from a Juniper IVE. I imported the MIB file so I get the right
message. I mapped the event to /Perf/Memory in zenoss. When I view the
event, in the Details tab, there is the field name "iveMemoryUtil"
with a numeric value, an snmpTrapOID with the OID
(.1.3.6.1.4.1.12532.251.21), and the sysuptime. Based on section 8.3
of the manual and what you suggested, either of the following should
work fine:
evt.summary = "Memory usage hit " + evt.iveMemoryUtil
or
evt.summary = "Memory usage hit " + getattr(evt,"iveMemoryUtil")
But they don't. I get this in the event summary: "snmp trap
memUtilNotify from <hostname>" (I deleted the hostname. Just paraniod,
ya know. :))
So any pointers?
On 12/4/06, Erik A. Dahl <[EMAIL PROTECTED]> wrote:
Mike,
In a transform you can get an attributes from an event like this:
evt.myattr
to be more careful about it you can call with a default value (in
case the attribute is missing)
getattr(evt, 'myattr', '')
this will return '' if myattr is missing. You can see the attributes
available by looking in the event detail page (fields tab for default
fields), or details tab for fields that were sent by the trap
itself. If the trap did not parse and you have fields named with oid
values (ie .1.3.6.4....) you must use the second method above to get
the values.
-EAD
On Nov 29, 2006, at 9:52 AM, Mike Fratto wrote:
> Ok, I am trying to figure out how to get a value out of an SNMP
trap
> and the docs that I have found so far are mum on the subject. Is
there
> a documented set of references for the objects and methods that
are
> used in zenoss? I have tried various transforms but none are
working.
>
> Mike
> _______________________________________________
> 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
_______________________________________________
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