istoptofly | 8 May 2012 17:58

Event Attribute Help

Zenoss Community

Event Attribute Help

created by istoptofly in zenoss-users - View the full discussion

I'm having some trouble pulling info out of the event for my transform and need some help. 

 

This is my transform -

 

import re

 

ontName = getattr(evt,'enterprises.4323.2.2.1.3.14.1.11.[0-9]+','')

evt.summary = "ONT " + ontName + " battery low, check AXSVision client for more info on this alert."

 

And this is the info I'm trying to get from Event Details -

 

enterprises.4323.2.2.1.3.14.1.11.11656   AU-1-4-1-ONT

 

The issue is my transform is not getting AU-1-4-1-ONT from the event.  I'm using a regex in the transform as the last 5 digits of the event can vary.

 

Anyone see why this isn't working?

 

Thanks,

 

John

Reply to this message by replying to this email -or- go to the message on Zenoss Community

Start a new discussion in zenoss-users by email or at Zenoss Community


Gmane