gcollis1
2011-12-04 11:26:40 UTC
gcollis1 [http://community.zenoss.org/people/gcollis1] created the discussion
"match multiple attributes within trap"
To view the discussion, visit: http://community.zenoss.org/message/63023#63023
--------------------------------------------------------------
Hi,
How can I match multiple attributes within a trap? I have a trap that gets generated and I want to transform this trap only if text within two different oids is matched:
I can get this working on one match, but not two:
e.g. somthing like
import re
match = getattr(evt, "--OID1 from event Details--") and match = getattr(evt, "--OID2 from event Details--")
if match and device:

--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63023#63023]
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]
"match multiple attributes within trap"
To view the discussion, visit: http://community.zenoss.org/message/63023#63023
--------------------------------------------------------------
Hi,
How can I match multiple attributes within a trap? I have a trap that gets generated and I want to transform this trap only if text within two different oids is matched:
I can get this working on one match, but not two:
e.g. somthing like
import re
match = getattr(evt, "--OID1 from event Details--") and match = getattr(evt, "--OID2 from event Details--")
if match and device:

--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63023#63023]
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]