将 "Computer Not Reachable" 监视器设置为成功(原因是“检查运行状况服务观察程序的运行状况状态”诊断成功)
Microsoft.SystemCenter.HealthService.Recovery.Watcher.ComputerUp.SetComputerDownMonitor (Recovery)
用户没有立即运行此恢复。此恢复处理诊断输出并设置 "Computer Not Reachable" 监视器。
Element properties:
Member Modules:
Source Code:
<Recovery ID="Microsoft.SystemCenter.HealthService.Recovery.Watcher.ComputerUp.SetComputerDownMonitor" Accessibility="Internal" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher" Monitor="SC2007!Microsoft.SystemCenter.HealthService.ComputerDown" ResetMonitor="false" ExecuteOnDiagnostic="Microsoft.SystemCenter.HealthService.Diagnostic.QueryHealthServiceWatcher" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ConditionDetection ID="FilterCondition" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Diagnostic/DataItem/Changes/Change/MonitorId[.=substring-before(substring-after('$MPElement[Name="SC2007!Microsoft.SystemCenter.HealthService.Heartbeat"]$','{'),'}')]/../NewHealthState</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteAction ID="ComputerUp" TypeID="Microsoft.SystemCenter.ComputerUp.SetComputerDownMonitor"/>
</Recovery>