Network Monitoring SNMP Trap port is already in use by another program

System.NetworkManagement.SNMPTrapPortAlreadyInUse.Monitor (UnitMonitor)

This monitor checks whether Network Discovery failed for a SNMP Trap port is already in use by another program.

Knowledge Base article:

Summary

The SNMP trap port (162) is already in use by another program

Causes

In order to monitor network devices and collect SNMP traps, the SNMP trap port needs to be used exclusively. If other SNMP services are currently using the port this can cause issues.

Resolutions

Uninstall or disable other SNMP services.

Element properties:

TargetMicrosoft.SystemCenter.HealthService
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.SingleEventLogManualReset2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Network Monitoring SNMP Trap port is already in use by another program
Network Monitoring SNMP Trap port is already in use by another program.
RunAsDefault

Source Code:

<UnitMonitor ID="System.NetworkManagement.SNMPTrapPortAlreadyInUse.Monitor" Accessibility="Public" Enabled="true" Target="SystemCenter!Microsoft.SystemCenter.HealthService" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.SingleEventLogManualReset2StateMonitorType" ConfirmDelivery="true">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="System.NetworkManagement.SNMPTrapPortAlreadyInUse.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="SNMPTrapPortAvailable" MonitorTypeStateID="ManualResetEventRaised" HealthState="Success"/>
<OperationalState ID="SNMPTrapPortAlreadyInUse" MonitorTypeStateID="EventRaised" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName/>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">12300</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Configuration>
</UnitMonitor>