Monitor netstatWatcher Computer

Network.Windows.Computer.NetstatWatcher.Monitor.netstatWatcher.Computer (UnitMonitor)

Description for the new unit monitor.

Element properties:

TargetNetwork.Windows.Computer.NetstatWatcher.Computer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Instance NametcpPingCheck
Counter NamePingCheckResponse
Frequency300
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.WmiBased.Performance.ConsecutiveSamplesThreshold
RemotableTrue
AccessibilityInternal
Alert Message
netstatWatcher Computer - Not reachable
netstatWatcher Computer not reachable via PING
RunAsDefault

Source Code:

<UnitMonitor ID="Network.Windows.Computer.NetstatWatcher.Monitor.netstatWatcher.Computer" Accessibility="Internal" Enabled="true" Target="Network.Windows.Computer.NetstatWatcher.Computer" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.WmiBased.Performance.ConsecutiveSamplesThreshold" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Network.Windows.Computer.NetstatWatcher.Monitor.netstatWatcher.Computer.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ConditionTrue" MonitorTypeStateID="ConditionTrue" HealthState="Error"/>
<OperationalState ID="ConditionFalse" MonitorTypeStateID="ConditionFalse" HealthState="Success"/>
</OperationalStates>
<Configuration>
<NameSpace>root\cimv2</NameSpace>
<Query>SELECT * FROM Win32_PingStatus WHERE Address='$Target/Property[Type="Network.Windows.Computer.NetstatWatcher.Computer"]/NodeName$'</Query>
<Frequency>300</Frequency>
<ObjectName>tcpPingCheck</ObjectName>
<CounterName>PingCheckResponse</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='StatusCode']$</Value>
<Threshold>0</Threshold>
<Direction>greater</Direction>
<NumSamples>4</NumSamples>
</Configuration>
</UnitMonitor>