How to run application on the computer via NetXMS agent?

Started by fINT, February 04, 2019, 01:31:25 PM

Previous topic - Next topic

fINT

Good day,
Via the server management console, you can reboot (shut down, etc., the node with the installed agent): TOOLS -> Restart System. How to run an OS application installed on a computer with a working NetXMS agent? For example (in the case of Windows) a batch file?

Victor Kirhenshtein

Hi,

you can add

Action = name:command

to nxagentd.conf and then execute this action either via server action from event processing policy or as object tool.

Best regards,
Victor

fINT

Thanks. I read here: https://www.netxms.org/forum/configuration/action-execute-command-via-remote-agent/  that Agent by default is running as windows service and can't interact with the GUI. How should I install agent to interact with the Node GUI? I need to run applications on Node, visible to users.

Victor Kirhenshtein

There are no standard way for doing that. If there is only one user session you can uninstall agent service and add nxagentd.exe to autorun so it will start within user session. Or you can use combined approach - leave agent as a service, run external subagent via autorun and define actions in this subagent.

Best regards,
Victor