Monitor listeningPort

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

Description for the new unit monitor.

Element properties:

TargetNetwork.Windows.Computer.NetstatWatcher.ListeningPort
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeNetwork.Windows.Computer.NetstatWatcher.ThreeState.Test.MonitorType
RemotableTrue
AccessibilityInternal
Alert Message
netwatcher - ListeningPort Error
Please check. ListeningPort is down.


TestedAt: {0}
Last check Result: {1}


Supplement: {2}
RunAsDefault

Source Code:

<UnitMonitor ID="Network.Windows.Computer.NetstatWatcher.Monitor.listeningPort" Accessibility="Internal" Enabled="true" Target="Network.Windows.Computer.NetstatWatcher.ListeningPort" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Network.Windows.Computer.NetstatWatcher.ThreeState.Test.MonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Network.Windows.Computer.NetstatWatcher.Monitor.listeningPort.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='TestedAt']$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='State']$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='Supplement']$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UnderThreshold" MonitorTypeStateID="UnderThreshold" HealthState="Success"/>
<OperationalState ID="OverWarningThreshold" MonitorTypeStateID="OverWarningThreshold" HealthState="Warning"/>
<OperationalState ID="OverErrorThreshold" MonitorTypeStateID="OverErrorThreshold" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<MonitorItem>listeningPort</MonitorItem>
<Key>$Target/Property[Type="Network.Windows.Computer.NetstatWatcher.ListeningPort"]/Key$</Key>
<Threshold/>
</Configuration>
</UnitMonitor>