dlitwin
2013-07-01 20:45:59 UTC
dlitwin [http://community.zenoss.org/people/dlitwin] created the discussion
"TALES Help with remodel"
To view the discussion, visit: http://community.zenoss.org/message/73807#73807
--------------------------------------------------------------
I've setup an event trigger in Zenoss for a high network interface utilization.
Message Contains *threshold of high utilization exceeded*
*
*
I've setup a notification to remodel the device with that event is generated.
The command I am trying to run is
*zenmodeler run --path=/Devices/Network/Switch/${device/id}*
I want to pass the device name, in this case a switch, to the end of the zenodeler command.
I manually created an event to test and got the following error back:
| Resource: | localhost |
| Component: | zenactiond |
| Event Class: | /App/Failed (http://cabzen.duluth.k12.mn.us:8080/zport/dmd/Events/App/Failed) |
| Status: | New |
| Message: | Traceback (most recent call last): File "/opt/zenoss/Products/ZenModel/actions.py", line 252, in execute self.executeOnTarget(notification, signal, target) File "/opt/zenoss/Products/ZenModel/actions.py", line 499, in executeOnTarget self._execute(notification, signal, environ) File "/opt/zenoss/Products/ZenModel/actions.py", line 535, in _execute raise ActionExecutionException('Unable to perform TALES evaluation on "%s" -- is there an unescaped $?' % command) ActionExecutionException: Unable to perform TALES evaluation on "zenmodeler run --path=/Devices/Network/Switch/${device/id}" -- is there an unescaped $? |
Ultimately what I want to do is create an event trigger so that whenever I get a device in */Devices/Network/Switch or*
*/Devices/Network/Router* which has a high utlization, I want zenoss to remodel that device giving the error.
I must be think and have missed something along the way. Thanks for any help.
Dannon
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73807#73807]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]
"TALES Help with remodel"
To view the discussion, visit: http://community.zenoss.org/message/73807#73807
--------------------------------------------------------------
I've setup an event trigger in Zenoss for a high network interface utilization.
Message Contains *threshold of high utilization exceeded*
*
*
I've setup a notification to remodel the device with that event is generated.
The command I am trying to run is
*zenmodeler run --path=/Devices/Network/Switch/${device/id}*
I want to pass the device name, in this case a switch, to the end of the zenodeler command.
I manually created an event to test and got the following error back:
| Resource: | localhost |
| Component: | zenactiond |
| Event Class: | /App/Failed (http://cabzen.duluth.k12.mn.us:8080/zport/dmd/Events/App/Failed) |
| Status: | New |
| Message: | Traceback (most recent call last): File "/opt/zenoss/Products/ZenModel/actions.py", line 252, in execute self.executeOnTarget(notification, signal, target) File "/opt/zenoss/Products/ZenModel/actions.py", line 499, in executeOnTarget self._execute(notification, signal, environ) File "/opt/zenoss/Products/ZenModel/actions.py", line 535, in _execute raise ActionExecutionException('Unable to perform TALES evaluation on "%s" -- is there an unescaped $?' % command) ActionExecutionException: Unable to perform TALES evaluation on "zenmodeler run --path=/Devices/Network/Switch/${device/id}" -- is there an unescaped $? |
Ultimately what I want to do is create an event trigger so that whenever I get a device in */Devices/Network/Switch or*
*/Devices/Network/Router* which has a high utlization, I want zenoss to remodel that device giving the error.
I must be think and have missed something along the way. Thanks for any help.
Dannon
--------------------------------------------------------------
Reply to this message by replying to this email -or- go to the discussion on Zenoss Community
[http://community.zenoss.org/message/73807#73807]
Start a new discussion in zenoss-users at Zenoss Community
[http://community.zenoss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2003]