Apache 虛擬主機 Web 要求狀態碼監視
這個監視會確保 Operations Manager 伺服器可以透過遠端 HTTP 要求與 Apache 虛擬主機通訊。
這個監視的狀況不良狀態表示與 Apache HTTP Server 的通訊發生問題。
可能影響這個監視之狀態的部分問題如下:
虛擬主機或 Apache HTTP Server 不在線上
防火牆封鎖了連接埠。
提供來存取 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 設定和驗證都正確。
Target | Microsoft.ApacheHTTPServer.VirtualHost.Unix | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.ApacheHTTPServer.VirtualHost.URLProbeStatus.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<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>