TCP Port Check – Status Codes and Alert Parameters

One of the Management Pack Templates in the Operations Console offers a TCP Port check capability.  This template creates a monitor which uses the Microsoft.SystemCenter.SyntheticTransactions.TCPPortCheckProbe probe action module type from the Microsoft.SystemCenter.SyntheticTransactions.Library management pack.

We can reference this probe to build out our own custom port check monitors.  If you do, you might want to know the various Status Codes for configuring state and alert, as well as the available runtime output we can use to build our alert description.

Status Codes

0 = Success
2147952461 = Refused
2147952460 = Timeout
2147953401 = DNS Resulution Failure
2147952465 = Unreachable

Runtime Output (for alert description)

$Data/Context/ServerName$
$Data/Context/Port$
$Data/Context/StatusCode$
$Data/Context/ConnectionTime$