Resume Health Service

Microsoft.SystemCenter.HealthService.Recovery.ResumeHealthService (Recovery)

This will resume a paused Health Service

Element properties:

TargetMicrosoft.SystemCenter.HealthServiceWatcher
MonitorMicrosoft.SystemCenter.HealthService.Heartbeat
Reset MonitorFalse
RemotableTrue
Timeout300
CategoryMaintenance
Enabledfalse
AccessibilityInternal

Member Modules:

ID Module Type TypeId RunAs 
WA WriteAction System.CommandExecuter Default

Source Code:

<Recovery ID="Microsoft.SystemCenter.HealthService.Recovery.ResumeHealthService" Accessibility="Internal" Enabled="false" Target="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher" Monitor="SC2007!Microsoft.SystemCenter.HealthService.Heartbeat" ResetMonitor="false" ExecuteOnDiagnostic="Microsoft.SystemCenter.HealthService.Diagnostic.QueryHealthService" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ConditionDetection ID="Filter" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>Diagnostic/DataItem/Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="Integer">7</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName>%windir%\system32\sc.exe</ApplicationName>
<WorkingDirectory>%windir%\system32</WorkingDirectory>
<CommandLine>\\$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher"]/HealthServiceName$ continue HealthService</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
</WriteAction>
</Recovery>