ヘルス サービスが実行中かどうかを確認する

Microsoft.SystemCenter.HealthService.Diagnostic.QueryHealthService (Diagnostic)

ヘルス サービスが現在ターゲット コンピューターで実行中かどうかをリモートで確認します。

Element properties:

TargetMicrosoft.SystemCenter.HealthServiceWatcher
MonitorMicrosoft.SystemCenter.HealthService.Heartbeat
RemotableTrue
Timeout300
Execute On StateError
CategoryMaintenance
Enabledtrue
AccessibilityPublic
CommentQueries both Service State and configuration. If the service doesn't exist or the computer cannot be contacted, State value will reflect this.

Member Modules:

ID Module Type TypeId RunAs 
QueryRemoteHS ProbeAction Microsoft.Windows.ServiceControlManager.QueryService Microsoft.SystemCenter.AgentManagementAccount

Source Code:

<Diagnostic ID="Microsoft.SystemCenter.HealthService.Diagnostic.QueryHealthService" Comment="Queries both Service State and configuration. If the service doesn't exist or the computer cannot be contacted, State value will reflect this." Accessibility="Public" Enabled="true" Target="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher" Monitor="SC2007!Microsoft.SystemCenter.HealthService.Heartbeat" ExecuteOnState="Error" Remotable="true" Timeout="300">
<Category>Maintenance</Category>
<ProbeAction ID="QueryRemoteHS" RunAs="SCLibrary!Microsoft.SystemCenter.AgentManagementAccount" TypeID="Windows!Microsoft.Windows.ServiceControlManager.QueryService">
<ComputerName>$Target/Property[Type="SCLibrary!Microsoft.SystemCenter.HealthServiceWatcher"]/HealthServiceName$</ComputerName>
<ServiceName>HealthService</ServiceName>
</ProbeAction>
</Diagnostic>