Microsoft Windows Server DNS IP 地址 NSLookup

Microsoft.Windows.Server.DNS.IPAddress.NSLookup (UnitMonitor)

测试服务器所绑定的每个 IP 地址

Knowledge Base article:

摘要

可将 DNS 服务器绑定为侦听多个 IP 地址。 该监视器将测试 PTR 记录 127.0.0.1 的每个单一 IP 地址,无论服务器中是否已配置任何区域和/或转发器,此测试都应该会成功。

配置

间隔秒数:此监视器执行 NSLOOKUP 的时间间隔。

脚本超时秒数:SCOM 终止脚本前,允许脚本运行的总时间。

查询超时秒数:用于 NSLOOKUP 的 -timeout 选项。

查询类型:用于 NSLOOKUP 的 -querytype 选项。 可接受下列值:A、CNAME、PTR、NS 或 SOA。

主机名:将由 NSLOOKUP 解析的主机记录。

服务器:NSLOOKUP 应将查询指向的服务器。

接受非权威:SCOM 是否应接受对 NSLOOKUP 的非权威响应。

原因

NSLOOKUP 无法解析 127.0.0.1

解决方案

确保 DNS 服务器已启动并绑定为侦听所有的 IP 地址或该监视器的目标 IP 地址。

Element properties:

TargetMicrosoft.Windows.Server.DNS.Server.IPAddress
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.DNS.NSLookup.Monitor
RemotableTrue
AccessibilityPublic
Alert Message
Windows DNS - 针对本地地址的 NSLookup 失败
“警告”表示监视器内部发生故障。
“严重”表示 NSLookup 失败。

请参阅运行状况资源管理器以了解详细信息。
RunAsMicrosoft.Windows.Server.DNS.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.DNS.IPAddress.NSLookup" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.DNS.Server.IPAddress" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.Server.DNS.ActionAccount" TypeID="Microsoft.Windows.Server.DNS.NSLookup.Monitor" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.DNS.IPAddress.NSLookup_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateIdb3cadfd895b84ca7919d8b5b414d249b" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateId373f94c4ba054e8cae46db6430d2c670" MonitorTypeStateID="InternalScriptError" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateId5f3ec1d3c1084903b2c184c4691d5146" MonitorTypeStateID="QueryFailure" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>901</IntervalSeconds>
<ScriptTimeoutSeconds>300</ScriptTimeoutSeconds>
<QueryTimeoutSeconds>10</QueryTimeoutSeconds>
<QueryType>PTR</QueryType>
<HostName>127.0.0.1</HostName>
<Server>$Target/Property[Type="Microsoft.Windows.Server.DNS.Server.IPAddress"]/IPAddress$</Server>
<AcceptNonAuthoritative>true</AcceptNonAuthoritative>
</Configuration>
</UnitMonitor>