Chet Luther napisał(a):
> That makes sense as my code was wrong. Perhaps this transform would work
> better:
> 
> for attr in dir(evt):
>   if attr.startswith('1.3.6.1.2.1.15.3.1.14.'):
>       evt.bgpPeerIp = attr.replace('1.3.6.1.2.1.15.3.1.14.', '')
>       evt.summary = "bgpBackwardTransNotification from " + evt.bgpPeerIp

Thanks Chet!
It does the job :))

One more thing, maybe someone have idea why this mib doesn't show any
oids after loading to Zenoss?

ftp://ftpeng.cisco.com/pub/mibs/v2/CISCO-BGP4-MIB.my

-- 
Marcin Zabłocki | System Administrator
E-Telko Sp. z o.o.
Phone: +48(22)3979864 | Mobile: +48606641726
pgp public key: http://www.etelko.pl/pgp/zablocki_key.asc
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to