偵測狀態

Microsoft.SystemCenter.Ping (UnitMonitor)

此監視會利用 ICMP 偵測來偵測無代理程式電腦。 如果電腦由代理程式管理,系統會在本機上自我偵測。

Knowledge Base article:

摘要

此監視會定期偵測目標電腦,並根據是否收到回應來變更狀態。 依預設,只有無代理程式管理的電腦才會啟用此監視。 如果針對代理程式管理的電腦啟用此監視,則代理程式會進行自我偵測。 這個監視必須使用 Win32_PingStatus 方法 WMI 來執行偵測,因此只適用於 Windows XP 以上或 Windows Server 2003 以上的作業系統。

原因

1. 執行 Windows Vista 或 Windows Server 2008 之電腦的預設防火牆設定將會導致電腦無法提供偵測回應。 這個原因同時適用於代理程式管理的系統和無代理程式管理的系統。

2. 如果電腦採用無代理程式的管理方式,則電腦可能已經不會再透過 ICMP Ping 來回應。 這可能因為以下原因而發生:

3. 如果電腦是受代理程式管理,這可能表示本機網路介面卡發生問題。

4. 也可能是 WMI 發生問題。

解決方式

若電腦執行的是 Windows Vista 或 Windows Server 2008,請將防火牆設定成允許傳入的 ICMP 流量。 如需指示,請參閱<Create an Inbound ICMP Rule on Windows Vista or Windows Server 2008>( http://go.microsoft.com/fwlink/?LinkId=161045) (在 Windows Vista 或 Windows Server 2008 上建立輸入 ICMP 規則)。

請檢查遠端機器是否已接上網路且具有 IP 位址。 本機登入電腦,並在命令列中鍵入:

ipconfig

如果電腦沒有 IP 位址或 IP 位址是 0.0.0.0,請依下列步驟修復本機電腦上的網路連線:

如果是類別目錄檢視,則可在 [網路和網際網路連線] 類別目錄中找到 [網路連線]。

Element properties:

TargetMicrosoft.Windows.Computer
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.PingMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
無法偵測電腦
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.Ping" Accessibility="Public" Enabled="false" Target="Windows!Microsoft.Windows.Computer" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="SCLibrary!Microsoft.SystemCenter.PingMonitorType" ConfirmDelivery="false">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.Ping.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Reachable" MonitorTypeStateID="Reachable" HealthState="Success"/>
<OperationalState ID="SlowResponseTime" MonitorTypeStateID="SlowResponseTime" HealthState="Warning"/>
<OperationalState ID="Unreachable" MonitorTypeStateID="Unreachable" HealthState="Error"/>
</OperationalStates>
<Configuration>
<Computer>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Computer>
<ResponseTimeThreshold>5000</ResponseTimeThreshold>
<Frequency>300</Frequency>
</Configuration>
</UnitMonitor>