Microsoft Windows Server DNS 转发器 IP 地址无条件 NSLookup

Microsoft.Windows.DNSServer.2016.Forwarder.IPAddress.Unconditional.NSLookup (UnitMonitor)

测试转发器的单个目标。

Knowledge Base article:

摘要

默认情况下此监视器已禁用,因为 DNS 服务器可能无法访问 Internet 以解析 www.microsoft.com。如果 DNS 服务器可以访问 Internet,并且你希望用该记录测试无条件转发器,只需通过替代启用该监视器即可。如果 www.microsoft.com 不符合你的需求,还可以通过替代将其他主机作为目标。

配置

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

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

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

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

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

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

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

Element properties:

TargetMicrosoft.Windows.DNSServer.2016.Forwarder.IPAddress.Unconditional
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.DNSServer.2016.NSLookup.Monitor
RemotableTrue
AccessibilityPublic
RunAsMicrosoft.Windows.DNSServer.2016.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DNSServer.2016.Forwarder.IPAddress.Unconditional.NSLookup" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.DNSServer.2016.Forwarder.IPAddress.Unconditional" 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>
<OperationalStates>
<OperationalState ID="UIGeneratedOpStateIdaeb7b874669d4263a546d42ceaa0b77c" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="UIGeneratedOpStateIdb2d4e5ba153e4f7db24df0b642efc993" MonitorTypeStateID="InternalScriptError" HealthState="Warning"/>
<OperationalState ID="UIGeneratedOpStateIdbaa650c7bd6b42cbb5f9d8168f68d04c" MonitorTypeStateID="QueryFailure" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>907</IntervalSeconds>
<ScriptTimeoutSeconds>300</ScriptTimeoutSeconds>
<QueryTimeoutSeconds>10</QueryTimeoutSeconds>
<QueryType>A</QueryType>
<HostName>www.microsoft.com.</HostName>
<Server>$Target/Property[Type="Microsoft.Windows.DNSServer.2016.Forwarder.IPAddress"]/IPAddress$</Server>
<AcceptNonAuthoritative>true</AcceptNonAuthoritative>
</Configuration>
</UnitMonitor>