Riavvia il servizio integrità

Microsoft.SystemCenter.HealthService.Recovery.RemotelyRestartHeathService (Recovery)

Riavvia in modalità remota il servizio integrità sul computer di destinazione.

Element properties:

TargetMicrosoft.SystemCenter.HealthServiceWatcher
MonitorMicrosoft.SystemCenter.HealthService.Heartbeat
Reset MonitorFalse
RemotableTrue
Timeout300
CategoryMaintenance
Enabledfalse
AccessibilityInternal
CommentStart remote health service

Member Modules:

ID Module Type TypeId RunAs 
StartService WriteAction Microsoft.Windows.ServiceControlManager.StartService Microsoft.SystemCenter.AgentManagementAccount

Source Code:

<Recovery ID="Microsoft.SystemCenter.HealthService.Recovery.RemotelyRestartHeathService" Comment="Start remote health service" 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">1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<WriteAction ID="StartService" RunAs="SCLibrary!Microsoft.SystemCenter.AgentManagementAccount" TypeID="Windows!Microsoft.Windows.ServiceControlManager.StartService">
<ComputerName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher"]/HealthServiceName$</ComputerName>
<ServiceName>HealthService</ServiceName>
</WriteAction>
</Recovery>