상태 서비스 실행 여부 확인

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>