Apache 虛擬主機 Web 要求狀態碼

Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.Monitor (UnitMonitor)

Apache 虛擬主機 Web 要求狀態碼監視

Knowledge Base article:

摘要

這個監視會確保 Operations Manager 伺服器可以透過遠端 HTTP 要求與 Apache 虛擬主機通訊。

原因

這個監視的狀況不良狀態表示與 Apache HTTP Server 的通訊發生問題。

可能影響這個監視之狀態的部分問題如下:

解決方式

確認監視的設定適用於虛擬主機。確認 Apache HTTP Server 正在執行。確認沒有防火牆封鎖存取,且已提供適當的認證給執行身分帳戶。

若要手動確認是否能與 Apache HTTP Server 連線,請開啟瀏覽器並連線到主控的網頁。

設定

預設設定

參數

預設值

URL

http://[虛擬主機的伺服器名稱]

Proxy

ProxyUserName

ProxyPassword

ProxyAuthenticationScheme

CredentialUserName

CredentialPassword

AuthenticationScheme

RetryCount

0

RequestTimeout

120

StatusCodeThreshold

400

您可以使用覆寫,針對所有執行個體或特定執行個體或群組來變更上述定義的參數值

附註: 這個監視預設為停用。請使用覆寫加以啟用,並確認在啟用監視時,URL、Proxy 設定和驗證都正確。

Element properties:

TargetMicrosoft.ApacheHTTPServer.VirtualHost.Unix
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Apache 虛擬主機 URL 狀態
遠端 URL 探查失敗。遠端網站可能已離線。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" TypeID="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.MonitorType" Enabled="false" ParentMonitorID="Health!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<!-- <AlertParameter1></AlertParameter1>-->
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="ProbeStatusSuccess" ID="ProbeStatusSuccess"/>
<OperationalState HealthState="Error" MonitorTypeStateID="ProbeStatusFailure" ID="ProbeStatusFailure"/>
</OperationalStates>
<Configuration>
<Interval>300</Interval>
<URL>http://$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/ServerName$</URL>
<Proxy/>
<ProxyUserName/>
<ProxyPassword/>
<ProxyAuthenticationScheme>None</ProxyAuthenticationScheme>
<CredentialUserName/>
<CredentialPassword/>
<AuthenticationScheme>None</AuthenticationScheme>
<RetryCount>0</RetryCount>
<RequestTimeout>120</RequestTimeout>
<StatusCodeThreshold>400</StatusCodeThreshold>
</Configuration>
</UnitMonitor>