You are here:

ActiveXperts.com > Network Monitor > Checks > Windows > Remote Command

Quicklinks

Monitor Windows server by executing a remote command

Monitor using a Remote Command Job
    Figure 1: ActiveXperts Network Monitor Remote Command Check


ActiveXperts solution to monitor computer using a Remote Command Job

ActiveXperts Network Monitor can check any Windows server by executing a command on a remote computer. The command file (executable, batch-job, etc.) must be located on the remote monitored computer.

ActiveXperts Network Monitor requires the remote command output (i.e. StdOut) to be formatted according to the following syntax:

[ SUCCESS | ERROR | UNCERTAIN]: { <explanation> } { DATA:<value>}

The <explanation> will be shown in the 'Last Response' column in the Manager application. The <value> field will be shown in the 'Data' column in the Manager application. Samples:

ERROR: Free Disk space is less than 40 GB DATA:34
SUCCESS: Service 'Messenger' is running

A Remote Command job requires the following parameters:

  • Computer - The host name or the IP address of the computer you want to monitor;
  • Command - The command to execute on the remote computer. This command must reside on the remote computer;
  • If StdErr is not empty, the result will be - If there’s an error in the script, you can handle this error and specify what the result of the check should be: Uncertain, Error or Success;
  • Command Time-out - Specifies the maximum number of milliseconds to wait for completion of the remote command; if the remote command takes longer, it will be terminated. Default value: 30000 milliseconds;