Microsoft Windows Server DNS 区域 NSLookup

Microsoft.Windows.DNSServer.2016.Zone.NSLookup (UnitMonitor)

使用 NSLookup 测试 localhost 上的区域

Knowledge Base article:

摘要

尝试从 localhost 查询区域。

配置

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

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

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

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

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

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

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

原因

NSLOOKUP 无法解析区域名称。

解决方法

确保已启动区域和 DNS 服务。

Element properties:

TargetMicrosoft.Windows.DNSServer.2016.Zone
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.DNSServer.2016.NSLookup.Monitor
RemotableTrue
AccessibilityPublic
Alert Message
Windows DNS - 区域 NS 记录的 NSLookup 失败

区域:{0}
服务器:{1}
“警告”表示监视器内部发生故障。
“严重”表示 NSLookup 失败。
请参阅运行状况资源管理器以了解详细信息。
RunAsMicrosoft.Windows.DNSServer.2016.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DNSServer.2016.Zone.NSLookup" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DNSServer.2016.Zone" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.DNSServer.2016.ActionAccount" TypeID="Microsoft.Windows.DNSServer.2016.NSLookup.Monitor" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DNSServer.2016.Zone.NSLookup_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.Windows.DNSServer.2016.Zone"]/ZoneName$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateIdebf86afdf7e54ef2ba2e4cb6e459cb34" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIda10eb60a16594b7babecb1d6daa959b2" MonitorTypeStateID="InternalScriptError" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateIdd6219920ddd945b59cd46731d932cffe" MonitorTypeStateID="QueryFailure" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>902</IntervalSeconds>
<ScriptTimeoutSeconds>300</ScriptTimeoutSeconds>
<QueryTimeoutSeconds>10</QueryTimeoutSeconds>
<QueryType>NS</QueryType>
<HostName>$Target/Property[Type="Microsoft.Windows.DNSServer.2016.Zone"]/ZoneName$.</HostName>
<Server>127.0.0.1</Server>
<AcceptNonAuthoritative>true</AcceptNonAuthoritative>
</Configuration>
</UnitMonitor>