DHCP Server 2016 及更高版本 IPv4 单独作用域可用地址百分比监视器

Microsoft.Windows.DHCPServer.10.0.IndScope.IPV4.FreeScopeAddresses.Percentage.Monitor (UnitMonitor)

当指定 IPv4 作用域的可用地址百分比低于定义的阈值时,此监视器会发出警报

Knowledge Base article:

摘要

Microsoft Windows Server DHCP 2016 及更高版本百分比 IPv4 单独作用域监视将返回包含指定作用域的可用百分比数的属性包。

如果需要,你可以替代以下参数:

原因

检查可用作用域地址。

解决方法

如果 DHCP Server 2016 及更高版本不具有可提供给其客户端的 IP 地址,则客户端将无法获取新分配的 IP。当发生此情况时,请考虑以下可能的解决方案:

扩展 DHCP 作用域

如果已具有一个 DHCP 作用域,并且其起始地址和结束地址当前不包含特定子网的所有地址,则可以通过在此作用域属性中扩展起始地址和结束地址来增加此作用域中的地址数。

若要增加客户端可用的地址数,请执行以下操作:

缩减租用期限

要执行这些过程,必须拥有管理员组成员身份,或者已向你委派了适当的权限。

缩减租用期限:

减少清理时间间隔

要执行这些过程,必须拥有管理员组成员身份,或者已向你委派了适当的权限。

若要使用 Netsh 命令设置清理时间间隔,请执行以下操作:

示例

在下面的示例中,此命令将数据库清理时间间隔设置为 10,080 分钟(即每七天清理一次)。

netsh dhcp set databasecleanupinterval 10080

Element properties:

TargetMicrosoft.Windows.DHCPServer.10.0.IPv4Scope
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.DHCPServer.10.0.IndScopeStats.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DHCP Server 2016 及更高版本 IPv4 作用域可用地址百分比较低
指定 IPv4 作用域的可用地址百分比低于服务器 {0} 中定义的阈值
RunAsSystem.PrivilegedMonitoringAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DHCPServer.10.0.IndScope.IPV4.FreeScopeAddresses.Percentage.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.10.0.IPv4Scope" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.DHCPServer.10.0.IndScopeStats.MonitorType" ConfirmDelivery="false" RunAs="System!System.PrivilegedMonitoringAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.10.0.Scope.IPV4.FreeScopeAddresses.Percentage.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ScopeAddressesAvailable" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="ScopeAddressesLow" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="ScopeAddressesVeryLow" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<Scope>$Target/Property[Type="DHCP!Microsoft.Windows.DHCPServer.Library.Scope"]/IPAddress$</Scope>
<CounterName>IPV4Scope-PercentageAvailable</CounterName>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<NumSamples>3</NumSamples>
<WarningThreshold>30</WarningThreshold>
<ErrorThreshold>10</ErrorThreshold>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<InitialRow>0</InitialRow>
<FinalRow>0</FinalRow>
</Configuration>
</UnitMonitor>