How can I restart remote process automatically?
-
-
You should define action on agent, and than define tool to execute that action in console via Control Panel -> Object Tools.
To define custom action, add to agent's config:
Action = ActionName:command
Best regards,
Victor -
-
Add action to agent's config & restart agent
Action = Test:ls > /ls.txt -
Define action on console's object tools.
name: Test
description: ls
command: ls > /ls.txt
access: everyone
And then?
Before, I have define the action on "control panel -> Actions".
And add it to event processing policy editor.
And add that event on "Data collection -> threshold".
But, not work.
What is the difference between action and object tools on control panel?
Sorry, but I can not find the details of define action on user manual.
Thanks.
Regards. -
-
Hello!
Looks like some of the system functions has misleading names. We have:
-
Actions on server (configurable under Control Panel -> Actions): it's an actions server can perform as a result of event processing. These actions can only be used in event processing policy.
-
Actions on agent (configurable in agent's configuration file via Action or ActionShellExec parameters): it's a predefined commands agent can execute upon request.
-
Object tools (configurable via Control Panel -> Object Tools): something which can be executed by operator on currently selected node in console. Object tools can be:
a) Command - local command execution (executed on same machine where netXMS console is running);
b) Action - predefined action execution on agent
c) SNMP table - get data from SNMP
d) Agent table - get data from agent
e) Open URL - open given URL in embedded browserIf you wish to run something on remote machine via agent, you should:
-
Define action on agent (using Action or ActionShellExec - if you wish to use shell functionality like output redirection, you should use ActionShellExec).
-
Depending on your need: if you wish to run something automatically, as a reaction to event, then:
2a. Define server action (Control Panel -> Actions) of type "execute action on remote agent", enter name of agent's action into "Action" field;
2b. Add your server action to event processing policy.
If you wish to be able to run something on remote machine manually, via "Tools" menu:
2a. Create new object tool (Control Panel -> Object Tools) of type "Action", enter name of agent's action into "Action" field.Hope this helps!
Best regards,
Victor -
-
-
Currently it is not possible. Most likely such feature will be added in one of the next versions.
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