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>