Rules are associated with Actions in Foglight. Why do we have Command Actions and Remote command Actions available in Foglight?
Command actions. They cause an external action to be executed on the computer on which the Foglight Management Server is installed. For example, a command action can run an executable that starts a service. Various parameters can be set for this action. The mandatory parameter is COMMAND_LINE which contains the name of the executable, along with one or more arguments. Optionally, you can also set OS environment variables (separated by exclamation marks).
Remote command actions. They cause an external action to be executed on the Agent Manager host. Various parameters can be set for this action including the mandatory parameter COMMAND_LINE.
The name in the HostName field of the RemoteCommandAction should match the name reported under the Agent Mangers dashboard.
ExecuteCommandOnRemoteHostsAction. Is an action that is used for the Agent Manager to execute a command on remote hosts.