Sean Shergill
2012-01-20 18:52:49 UTC
Sean Shergill [http://community.zenoss.org/people/sean] created the discussion
"Referencing Event attributes in user command"
To view the discussion, visit: http://community.zenoss.org/message/63796#63796
--------------------------------------------------------------
I've made some progress with setting up user commands. When I reference Device attributes, all works well, however when referencing Event attributes such as evid etc, I keep getting an exception, it doesn't like 'event' or 'evt'. According to the docs, under User Commands, event or evt should work. I'm on Zenoss 3.2.1. Its pretty frustrating because I can't figure out what I'm doing wrong, however I'm sure its something really simple and I'll end up feeling retarted once someone points it out to me.
Here's a sample command I've created:
send_to_IA.sh ${device/id} ${device/manageIp} ${event/evid}
The Device attributes work, event ones don't.
Here's what I get:
Exception while performing command for 10.1.1.144
Type: Value: 'event'
Thanks,
Sean
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63796#63796]
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]
"Referencing Event attributes in user command"
To view the discussion, visit: http://community.zenoss.org/message/63796#63796
--------------------------------------------------------------
I've made some progress with setting up user commands. When I reference Device attributes, all works well, however when referencing Event attributes such as evid etc, I keep getting an exception, it doesn't like 'event' or 'evt'. According to the docs, under User Commands, event or evt should work. I'm on Zenoss 3.2.1. Its pretty frustrating because I can't figure out what I'm doing wrong, however I'm sure its something really simple and I'll end up feeling retarted once someone points it out to me.
Here's a sample command I've created:
send_to_IA.sh ${device/id} ${device/manageIp} ${event/evid}
The Device attributes work, event ones don't.
Here's what I get:
Exception while performing command for 10.1.1.144
Type: Value: 'event'
Thanks,
Sean
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/63796#63796]
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]