Squared Up TCP Connection Monitor

SquaredUp.EAM.Library.Monitor.TcpMonitor.ConnectionState (UnitMonitor)


This monitors the TCP connectivity from the hosting computer to the specified port on the
specified target computer.

Knowledge Base article:

Summary

Unable to establish a TCP connection between Enterprise Application components. This may impact the health of one or more Enterprise Applications.

Causes

The below table lists the status codes that this monitor may return, and their meaning.

Status codes

Status code

Definition

0

Success

2147952460

Connection timed out

2147952461

Connection refused

2147952465

Destination unreachable

2147953401

DNS resolution failure

Resolutions

Failures may be caused by a number of issues related to component availability or configuration. Things to check include:

Element properties:

TargetSquaredUp.EAM.Library.Class.TcpMonitor.Configuration
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSquaredUp.EAM.Library.MonitorType.TcpMonitor.TcpProbeMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Unable to establish TCP connection to dependency
A TCP link could not be established between {0} and {1} on port {2}.

Connection status code: {3}

This may impact the health of one or more Enterprise Applications.
RunAsDefault

Source Code:

<UnitMonitor ID="SquaredUp.EAM.Library.Monitor.TcpMonitor.ConnectionState" Accessibility="Public" Enabled="true" Target="SquaredUp.EAM.Library.Class.TcpMonitor.Configuration" ParentMonitorID="Health!System.Health.AvailabilityState" TypeID="SquaredUp.EAM.Library.MonitorType.TcpMonitor.TcpProbeMonitorType" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="SquaredUp.EAM.Library.Monitor.TcpMonitor.ConnectionState.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type='SquaredUp.EAM.Library.Class.TcpMonitor.Configuration']/TargetServerName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type='SquaredUp.EAM.Library.Class.TcpMonitor.Configuration']/TargetPort$</AlertParameter3>
<AlertParameter4>$Data/Context/StatusCode$</AlertParameter4>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ConnectionOk" MonitorTypeStateID="ConnectionOk" HealthState="Success"/>
<OperationalState ID="ConnectionFailed" MonitorTypeStateID="ConnectionFailed" HealthState="Error"/>
</OperationalStates>
<Configuration>
<TargetServerName>$Target/Property[Type="SquaredUp.EAM.Library.Class.TcpMonitor.Configuration"]/TargetServerName$</TargetServerName>
<TargetPort>$Target/Property[Type="SquaredUp.EAM.Library.Class.TcpMonitor.Configuration"]/TargetPort$</TargetPort>
<Interval>$Target/Property[Type="SquaredUp.EAM.Library.Class.TcpMonitor.Configuration"]/Interval$</Interval>
</Configuration>
</UnitMonitor>