Runbook Service

Microsoft.SystemCenter.ServiceManagementAutomation.Monitor.RunbookService (UnitMonitor)

测量 Runbook Service 的状态。

Knowledge Base article:

摘要

检查 Runbook Service 是否正在 Worker 服务器上运行。要运行作业,需要此服务。

原因

如果 Runbook Service 停止,则监视器将出错。

解决方法

启动 Runbook Service。

配置

可以在此监视器上配置以下选项:

选项

定义

默认值

警报所处状态

生成警报的监视器的健康状况。

监视器处于严重健康状况

仅在服务启动类型为自动的情况下发出警报

指定在服务启动设置为非自动的情况下监视器是否应该处于活动状态。

警报优先级

针对此监视器生成的警报的优先级。

警报严重性

针对此监视器生成的警报的优先级。

严重

自动解决警报

指定当监视器恢复正常状态时是否应该自动解决警报。

已启用

指定是否应该运行监视器。

生成警报

指定当更改为警告或严重状态时监视器是否应该生成警报。

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.Server.RunbookWorker
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Runbook Service 未正在运行
Service Management Automation Runbook Service 未正在运行。在启动此服务之前将不在此服务器上处理作业。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.ServiceManagementAutomation.Monitor.RunbookService" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.ServiceManagementAutomation.Server.RunbookWorker" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.ServiceManagementAutomation.Monitor.RunbookService.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>rbsvc</ServiceName>
<CheckStartupType>false</CheckStartupType>
</Configuration>
</UnitMonitor>