Output of agent action

Started by vlad.fratila, August 13, 2014, 04:36:24 PM

Previous topic - Next topic

vlad.fratila

I defined an action in an agent's config file. Something like:

Action = test_action: /bin/echo "hello"

Is there a way to define an Object Tool that will call this action, and also have the output of the action displayed in the NetXMS management interface?

Dani@M3T

try in 'Object Tools' new Tool type 'Action':
Agent's action = test_action
Command generates ouput = ON

vlad.fratila

Hi,

This is the config of my agent:

MasterServers = 10.20.1.7,10.10.1.7,10.20.1.107
Action = test_action: /bin/echo "hello"


I already checked that option and i expected to see "hello" in the pop-up confirmation window that appears, but all it says is:
"Action test_action executed successfully on node <name of node>"

Victor Kirhenshtein

Hi!

"Command generates output" option is not handler correctly yet for agent actions. Will fix this for next release.

Best regards,
Victor