Action - execute on management server - help
-
I am trying to run an external program (.bat or .exe file) whenever a threshold is reached.
I added an Actions Configuration called MyAction of type 'Execute command on management server'
Question 1: What should be entered under 'Command'I set one of my thresholds, and I configured my event processing policy's Action to MyAction
Going over the example provided in https://www.netxms.org/forum/index.php/topic,204.0.html
I edited the netxmsd.conf in C:\NetXMS\etc\ to includeAction = MyAction:test.batQuestion 2: Where (in which folder/path) should test.bat be located to be succesfully called.
So far, the .bat file is still not running whenever the threshold is reached.
Any help is appreciated.
-
Hello!
To run command on management server itself, you don't need to change server's configuration file. You just need to specify your executable under "Command". If you wish to run .bat or .cmd file, you may need to use form of
cmd.exe /C <your_cmd>
Executable can be located anywhere, but if it is not in system PATH, you should add full path to it when defining action.
Best regards,
Victor -
-
You have to edit conf files if you wish to execute commands remotely via NetXMS agent. In that case you should add appropriate Action entries in agent configuration files.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login