VB Scripts or BAT files
-
-
Hello!
Yes, you can, but you will need NetXMS agent running on a remote server. Configuration will consist from several steps:
- On remote server, define an action in agent's configuration file (nxagentd.conf):
Action = MyAction:my_command.exeor
ActionShellExec = MyAction:my_script.cmdwhere MyAction is the name of your defined action - it will be used later in configuration.
-
In a threshold configuration, select event you wish to be sent when threshold is violated.
-
Define action on server - go to Control Panel -> Actions and create new action of type "Execute action on remote agent". In the remote host field, enter IP address of remote server or use %a macro - it will be expanded to the address of a host which generates the event. In an action field, enter name of the action defined on agent - MyAction in our example.
-
Add a rule to event processing policy - in events column add event you have selected on step 2, and in action column add action defined in step 3. Save the policy.
That's all. Now when threshold will be violated, your configured action will be executed on remote host.
Best regards,
Victor -
-
-
Execute action on management server means that given command will be executed on a machine where NetXMS server runs. In this case, parent process for a command will be netxmsd itself.
Execute action on remote agent means that given command will be executed on a (remote) machine where NetXMS agent runs. In this case, parent process for a command will be nxagentd.
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