istoptofly
2012-05-08 15:58:11 UTC
istoptofly [http://community.zenoss.org/people/istoptofly] created the discussion
"Event Attribute Help"
To view the discussion, visit: http://community.zenoss.org/message/66265#66265
--------------------------------------------------------------
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 discussion on Zenoss Community
[http://community.zenoss.org/message/66265#66265]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"Event Attribute Help"
To view the discussion, visit: http://community.zenoss.org/message/66265#66265
--------------------------------------------------------------
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 discussion on Zenoss Community
[http://community.zenoss.org/message/66265#66265]
Start a new discussion in zenoss-users by email
[discussions-community-forums-zenoss--***@community.zenoss.org] -or- at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]