Hmmm, one thing I'm wondering about, now playing with that, is what if 
you don't want to do the transform on all events in that class?

Say, if you, as in my case, get traps from certain access points on snmp 
trap snmp_authenticationFailure ... So for those I want to put the IP in 
the summary that tried to scan the SNMP, but I don't know that I want to 
try this transform on any possible /Events /Security /Auth event...

So I'm trying:
if evt.summary == "snmp trap snmp_authenticationFailure":
     evt.summary = "snmp trap snmp_authenticationFailure from " + 
getattr(evt,"1.3.6.1.4.1.9.2.1.5.0")

with no joy...
--
James Pulver
Information Technology Area Supervisor
LEPP Computer Group
Cornell University



Sartuche24 wrote:
> Nevermind I fixed it now. Here is the transform that worked.
> 
> evt.summary = "User " + getattr(evt,"local.9.2.1.18.98") + " has logged out 
> of " + dev.getId()
> 
> I had to put the transformed OID in place and it worked like a charm.
> 
> 
> 
> 
> -------------------- m2f --------------------
> 
> Read this topic online here:
> http://forums.zenoss.com/viewtopic.php?p=27846#27846
> 
> -------------------- 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

Reply via email to