Windows Azure 套件單位監視網站可用性 WindowsAuthSite

WindowsAzurePack.Monitor.WebSiteAvailability.WindowsAuthSite (UnitMonitor)

監視網站是否回應小於 404 的結果碼

Knowledge Base article:

摘要

嘗試存取網站時發生監視器錯誤。做法是定期傳送 http 要求給網站。

原因

若此監視器處於錯誤狀態,則網站當機。

解決方式

使用 Inetmgr.exe 檢查網站的狀態及對應的應用程式組合,如果已停止則重新啟動它們。擷取事件記錄檔及網站的 IIS 記錄檔錯誤項目。檢閱記錄檔以判斷根本原因。

組態

這個監視器若要正常運作,它必須允許傳送 http 要求給網站。它是在本機 SCOM 代理程式中執行

選項

定義

預設值

狀態警示

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

監視器的健全狀況狀態處於嚴重狀態

警示優先順序

針對這個監視器產生之警示的優先順序。

警示嚴重性

針對這個監視器產生之警示的優先順序。

重大

自動解決警示

指定當監視器回到狀況良好的狀態時是否應自動解決警示。

True

啟用

指定是否應執行監視器。

True

產生警示

指定從警告狀態變成嚴重狀態時,監視器是否應產生警示。

True

間隔

監視器執行次數之間的分鐘數。

180

Element properties:

TargetWindowsAzurePack.WindowsAuthSite
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindowsAzurePack.MonitorType.BasePageErrorCodeMonitor
RemotableTrue
AccessibilityPublic
Alert Message
Windows Azure 套件網站傳回等於或大於 404 的錯誤碼
Windows Azure 套件網站無法供使用者使用。它傳回的錯誤碼等於或大於 404。請在應用程式事件記錄檔中尋找錯誤事件。
RunAsDefault

Source Code:

<UnitMonitor ID="WindowsAzurePack.Monitor.WebSiteAvailability.WindowsAuthSite" Accessibility="Public" Enabled="true" Target="WindowsAzurePack.WindowsAuthSite" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="WindowsAzurePack.MonitorType.BasePageErrorCodeMonitor" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="WindowsAzurePack.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="ErrorCodeSuccess" MonitorTypeStateID="ErrorCodeSuccess" HealthState="Success"/>
</OperationalStates>
<Configuration>
<RequestID>1</RequestID>
<Url>$Target/Property[Type="WindowsAzurePack.WindowsAuthSite"]/SiteAddress$/</Url>
<IntervalSeconds>1800</IntervalSeconds>
</Configuration>
</UnitMonitor>