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