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,判斷是否有任何錯誤訊息。

設定

您可以在此監視上設定下列選項:

選項

定義

預設值

警示開啟狀態

產生警示之監視的健全狀況狀態。

監視處於重大的健全狀況狀態

警示優先順序

此監視所產生之警示的優先順序。

警示嚴重性

此監視所產生之警示的優先順序。

重大

自動解決警示

指定當監視恢復狀況良好狀態時,是否應自動解除警示。

True

已啟用

指定監視是否應執行。

True

產生警示

指定當變更為警告或重大狀態時,監視是否應產生警示。

True

間隔

執行監視的間隔秒數。

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>