Discussion:
evt._details for notification commands?
Rob Eagle
2013-08-12 13:37:43 UTC
Permalink
Rob Eagle [http://community.zenoss.org/people/reagle] created the discussion

"evt._details for notification commands?"

To view the discussion, visit: http://community.zenoss.org/message/74355#74355

--------------------------------------------------------------
Anybody know if there is a similar method for getting all event attributes pushed to an notification command without sending each individual attribute one at a time?
--Rob
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74355#74355]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
guyverix
2013-08-12 15:37:12 UTC
Permalink
guyverix [http://community.zenoss.org/people/guyverix] created the discussion

"Re: evt._details for notification commands?"

To view the discussion, visit: http://community.zenoss.org/message/74356#74356

--------------------------------------------------------------
I think that the events are actually a python dictionary..

You might be able to do something like this:
for key, value in evt.items():
  print(key + ':' + value)
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74356#74356]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Rob Eagle
2013-08-12 17:29:40 UTC
Permalink
Rob Eagle [http://community.zenoss.org/people/reagle] created the discussion

"Re: evt._details for notification commands?"

To view the discussion, visit: http://community.zenoss.org/message/74332#74332

--------------------------------------------------------------
Guyverix,
Don't think I explained the situation correctly.  I woud like to pass all event attributes as attributes via a notification command.  Think it would need to be a Tales expression something like ${evt/_details}?
--Rob
--------------------------------------------------------------

Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/74332#74332]

Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
Loading...