网络监视 SNMP 陷阱端口已被另一个程序占用

System.NetworkManagement.SNMPTrapPortAlreadyInUse.Monitor (UnitMonitor)

此监视器检查网络发现对于已被另一个程序占用的 SNMP 陷阱端口是否失败。

Knowledge Base article:

摘要

SNMP 陷阱端口 (162) 已被另一个程序占用

原因

为了监视网络设备和收集 SNMP 陷阱,需要以独占方式使用 SNMP 陷阱端口。如果其他 SNMP 服务当前正在使用该端口,这可能导致问题。

解决方法

卸载或禁用其他 SNMP 服务。

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
网络监视 SNMP 陷阱端口已被另一个程序占用
网络监视 SNMP 陷阱端口已被另一个程序占用。
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>