Windows DNS Server 2016 和 1709+ 检测服务器查询重载

Microsoft.Windows.DNSServer.2016.Monitor.DetectServerQueryOverload (UnitMonitor)

此监视器检测已重载的 DNS 服务器。如果某个 DNS 服务器在指定的时间范围发现许多查询并且查询数超出了配置的阈值,则该监视器将变红。

Knowledge Base article:

摘要

此监视器计算 Windows Server 2016 和 1709+ DNS 服务器所指定时间间隔内接收的查询数之间的增量。如果该增量大于“警告”阈值,但小于或等于“严重”阈值,则该监视器将状态更改为“警告”,并生成严重性为“警告”的警报。如果该增量大于“严重”阈值,则该监视器将状态更改为“严重”,并生成严重性为“严重”的警报。

配置

接收的查询增量警告阈值:警告状态的阈值。

接收的查询增量严重阈值:严重状态的阈值。

间隔(秒):增量计算间隔的秒数。

同步时间:指定强制运行 Windows 脚本的时间。

超时(秒):指定终止脚本之前允许脚本执行的最大秒数。

原因

此服务器接收的查询太多。

解决方法

减少正在使用的服务器。

Element properties:

TargetMicrosoft.Windows.DNSServer.2016.Server
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.DNSServer.2016.DetectServerQueryOverload.UnitMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Windows DNS 2016 和 1709+ - 服务器查询重载
每个最近时间间隔的当前查询值为 {0}
RunAsMicrosoft.Windows.DNSServer.2016.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DNSServer.2016.Monitor.DetectServerQueryOverload" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DNSServer.2016.Server" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.DNSServer.2016.DetectServerQueryOverload.UnitMonitorType" ConfirmDelivery="true" RunAs="Microsoft.Windows.DNSServer.2016.ActionAccount">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DNSServer.2016.Monitor.DetectServerQueryOverload_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data[Default='']/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Critical" MonitorTypeStateID="Critical" HealthState="Error"/>
<OperationalState ID="Warning" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<QPS_THRESHOLD_YELLOW>30000</QPS_THRESHOLD_YELLOW>
<QPS_THRESHOLD_RED>50000</QPS_THRESHOLD_RED>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>240</TimeoutSeconds>
</Configuration>
</UnitMonitor>