Computer Monitor Trigger
The Computer Monitor Trigger allows adTempus to monitor remote computers and trigger a job when the remote computer fails.
The Computer Monitor can use a simple network ping to verify that the computer is alive and reachable, or it can make an HTTP request to the server and evaluate the result. This feature can be used, for example, to verify that your Web application is running properly.
If you need to request and save a Web page or file as part of your job's processing after the job is triggered by some other mechanism, use the Web Request Task instead.
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.
| Variable | Description |
| ComputerMonitor.ErrorMessage | The error message if the connection has failed. |
| ComputerMonitor.ConnectionStatusCode | The numeric error code if the connection has failed, or 0 if it succeeded. |
| ComputerMonitor.Action |
A string indicating whether the trigger is firing because the connection has been broken or because it has been restored:
|
| ComputerMonitor.FailureCount |
If ComputerMonitor.Action is ConnectionFailed, FailureCount indicates the number of consecutive unsuccessful responses that have been received since the last successful response. If ComputerMonitor.Action is ConnectionRestored, FailureCount indicates the number of consecutive unsuccessful responses that were received before the connection was restored. You can use this variable 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. |
| ComputerMonitor.Target | The target that the trigger is trying to connect to. |
| ComputerMonitor.LastSuccessTime | The date/time of the last successful connection, in UTC |
Related Concepts
Related Topics
Comparison of Triggers and Conditions
Using adTempus to Monitor Your Web Application
Reference