Web 服务可用性

Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.WebServiceAvailability (UnitMonitor)

监视可用性

Knowledge Base article:

摘要

监视 Service Management Automation Web 服务的可用性。这是通过定期进行到 Web 服务的测试连接以确保其响应来完成的。

原因

此监视器无法针对 SMA Web 服务完成 Web 事务。这表示 Web 服务可能无响应。

解决方法

SMA 网站由 Internet Information Services 管理包进行监视。请检查该管理包中的监视器和警报,以确定 Web 服务无响应的原因。也可以通过浏览器连接至此 URL,以确定是否有任何错误消息。

配置

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

选项

定义

默认值

警报所处状态

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

监视器处于严重健康状况

警报优先级

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

警报严重性

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

严重

自动解决警报

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

已启用

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

生成警报

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

间隔

监视器运行间隔时间的秒数。

300

URL

监视器尝试连接到的 URL。

目标 Web 服务的 URL 属性的值。

Element properties:

TargetMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Web
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SystemCenter.ServiceManagementAutomation.2012R2.MonitorType.UrlAvailability
RemotableTrue
AccessibilityPublic
Alert Message
Web 服务不可用
Service Management Automation Web 服务未响应。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.WebServiceAvailability" Accessibility="Public" Enabled="true" Target="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Server.Web" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.MonitorType.UrlAvailability" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter.ServiceManagementAutomation.2012R2.Monitor.WebServiceAvailability.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ErrorCodeFailure" MonitorTypeStateID="ErrorCodeFailure" HealthState="Error"/>
<OperationalState ID="ErrorCodeOK" MonitorTypeStateID="ErrorCodeOK" HealthState="Success"/>
</OperationalStates>
<Configuration>
<RequestID>1</RequestID>
<Url>$Target/Property[Type="SMA!Microsoft.SystemCenter.ServiceManagementAutomation.Server.Web"]/URL$/00000000-0000-0000-0000-000000000000</Url>
<IntervalSeconds>600</IntervalSeconds>
</Configuration>
</UnitMonitor>