NetXMS Support Forum

English Support => General Support => Topic started by: vlad.fratila on August 13, 2014, 04:36:24 PM

Title: Output of agent action
Post by: vlad.fratila on August 13, 2014, 04:36:24 PM
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?
Title: Re: Output of agent action
Post by: Dani@M3T on August 13, 2014, 05:03:15 PM
try in 'Object Tools' new Tool type 'Action':
Agent's action = test_action
Command generates ouput = ON
Title: Re: Output of agent action
Post by: vlad.fratila on August 14, 2014, 12:40:22 PM
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>"
Title: Re: Output of agent action
Post by: Victor Kirhenshtein on August 14, 2014, 01:41:19 PM
Hi!

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

Best regards,
Victor