Microsoft Windows Server DNS 转发器条件转发 Localhost NSLookup

Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward.Localhost.NSLookup (UnitMonitor)

使用针对 localhost 执行的 NSLookup 测试转发器。

Knowledge Base article:

摘要

此监视器会检查是否存在基于 NSLookUp 的 Windows Server DNS 条件转发器。

配置

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

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

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

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

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

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

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

Element properties:

TargetMicrosoft.Windows.Server.DNS.Forwarder.Conditional.Forward
Parent MonitorMicrosoft.Windows.Server.DNS.Forwarder.Conditional.Forward.NSLookup
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.DNS.NSLookup.Monitor
RemotableTrue
AccessibilityPublic
RunAsMicrosoft.Windows.Server.DNS.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward.Localhost.NSLookup" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward" ParentMonitorID="Microsoft.Windows.Server.DNS.Forwarder.Conditional.Forward.NSLookup" Remotable="true" Priority="Normal" RunAs="Microsoft.Windows.Server.DNS.ActionAccount" TypeID="Microsoft.Windows.Server.DNS.NSLookup.Monitor" ConfirmDelivery="true">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateId13f01508a0204607a7aaf3a7195b5969" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIdefdf65ea527348e9909a847cdd94f616" MonitorTypeStateID="InternalScriptError" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateIdcc389f5ae1404a8ebb753daeb7879874" MonitorTypeStateID="QueryFailure" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>904</IntervalSeconds>
<ScriptTimeoutSeconds>300</ScriptTimeoutSeconds>
<QueryTimeoutSeconds>10</QueryTimeoutSeconds>
<QueryType>A</QueryType>
<HostName>$Target/Property[Type="Microsoft.Windows.Server.DNS.Forwarder"]/DomainName$.</HostName>
<Server>127.0.0.1</Server>
<AcceptNonAuthoritative>true</AcceptNonAuthoritative>
</Configuration>
</UnitMonitor>