Job Variables

The Computer Monitor Trigger sets the following Job Variables, which can be used by a selection script or by other scripts or notification messages in the job.

Parameter Name

Description

ResponseText

The body of the HTML page returned by the remote server.

ConnectionStatusCode

A code indicating the result of the connection attempt.

Action

A string indicating whether the trigger is firing because the connection has been broken or because it has been restored:

  • "ConnectionFailed": No connection could be made to the server, or it returned an invalid response.

  • "ConnectionRestored": The connection has been restored, or the server is now returning a good response.

FailureCount

If Action="ConnectionFailed", FailureCount Indicates the number of consecutive unsuccessful responses that have been received since the last successful response.

If Action="ConnectionRestored", FailureCount Indicates the number of consecutive unsuccessful responses that were received before the connection was restored.

You can use this parameter to escalate your responses. For example, you could configure your job to send a warning message to certain users after the connection has been down for 5 minutes, and send a more urgent message if the connection is still down after 20 minutes.

ComputerMonitorTarget

The Target that the trigger is trying to connect to.

See Also

Using Job Variables