Dont know if this will work or not, but give this a try..

Code:

for attr in dir(evt):
        if attr.startswith('1.3.6.1.4.1.800.3.1.1.1.0.'):
            evt.myevt = attr.replace('1.3.6.1.4.1.800.3.1.1.1.0')
            evt.summary = evt.myevt





nxumdon wrote:
> Hi
> I've searched through these forums under "BGP Transforms" and I can't find 
> anything to do with the Event Class Key and how to use a wildcard/regex.  The 
> only BGP article that seemed close mentions using 'if attr.startswith' and I 
> tried to use that in the Event Class Key, but it didn't seem to work.  It 
> seems like this should be doable with a rule or regex (what is the 
> difference), but in that case, what would go into the Event Class Key field?  
> Thanks for all the help thus far.
> 
> J





-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=26982#26982

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to