NLB 检测到虚拟 IP (VIP) 地址和网络掩码数量不相等

Microsoft.Windows.NetworkLoadBalancing.6.2.NLB.detected.an.unequal.number.of.virtual.IP.addresses.and.network.masks (Rule)

Knowledge Base article:

摘要

将网络负载平衡 (NLB) 群集中的主机配置为负载平衡网络流量。通过使用 NLB 管理器设置主机配置,如果未正确配置,NLB 群集可能不会正常运行。

解决方案

确保虚拟 IP 地址的数量与子网掩码的一致

在所有网络负载平衡 (NLB) 群集主机上,虚拟 IP 地址的数量必须与指定的子网掩码相同。

要确保虚拟 IP 地址的数量与子网掩码的相同,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.NetworkLoadBalancing.6.2.ServerRole
CategoryAlert
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.NetworkLoadBalancing.EventProvider Default
WA WriteAction Microsoft.Windows.NetworkLoadBalancing.6.2.GenerateAlert.SuppressByDescription Default
WriteToDB WriteAction Microsoft.Windows.NetworkLoadBalancing.6.2.CollectEvent Default

Source Code:

<Rule ID="Microsoft.Windows.NetworkLoadBalancing.6.2.NLB.detected.an.unequal.number.of.virtual.IP.addresses.and.network.masks" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.NetworkLoadBalancing.6.2.ServerRole" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="NLBLibrary!Microsoft.Windows.NetworkLoadBalancing.EventProvider">
<Criteria>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>110</Value>
</ValueExpression>
</SimpleExpression>
</Criteria>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.NetworkLoadBalancing.6.2.GenerateAlert.SuppressByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.NetworkLoadBalancing.6.2.NLB.detected.an.unequal.number.of.virtual.IP.addresses.and.network.masks.AlertMessage"]$</AlertMessageId>
<EnableAlert>true</EnableAlert>
</WriteAction>
<WriteAction ID="WriteToDB" TypeID="Microsoft.Windows.NetworkLoadBalancing.6.2.CollectEvent">
<CollectEvent>false</CollectEvent>
</WriteAction>
</WriteActions>
</Rule>