将 "Computer Not Reachable" 监视器设置为成功(原因是“检测信号失败时 Ping 计算机”诊断成功)
Microsoft.SystemCenter.HealthService.Recovery.ComputerUp.SetComputerDownMonitor (Recovery)
用户没有立即运行此恢复。 此恢复处理诊断输出并设置 "Computer Not Reachable" 监视器。
Element properties:
Member Modules:
Source Code:
<Recovery ID="Microsoft.SystemCenter.HealthService.Recovery.ComputerUp.SetComputerDownMonitor" Accessibility="Internal" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher" Monitor="SC2007!Microsoft.SystemCenter.HealthService.Heartbeat" ResetMonitor="false" ExecuteOnDiagnostic="Microsoft.SystemCenter.HealthService.Diagnostic.ICMPPingDiagnostic" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ConditionDetection ID="FilterCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<Exists>
<ValueExpression>
<XPathQuery>Diagnostic/DataItem/Property[@Name='StatusCode']</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Diagnostic/DataItem/Property[@Name='StatusCode']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">0</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteAction ID="ComputerUp" TypeID="Microsoft.SystemCenter.ComputerUp.SetComputerDownMonitor"/>
</Recovery>