Apache 虛擬主機 Web 要求回應時間總計

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

Apache 虛擬主機 Web 要求回應時間總計監視

Knowledge Base article:

摘要

這個監視會確保對 Apache 虛擬主機提出之遠端 HTTP 要求的回應時間在預期的範圍內。

原因

這個監視的狀況不良狀態表示虛擬主機的回應時間緩慢。

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

解決方式

確認監視的設定適用於虛擬主機。如需要求的詳細資料,請檢閱警示內容。在本機及從其他存取點調查網站的效能。

設定

預設設定

參數

預設值

URL

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

Proxy

ProxyUserName

ProxyPassword

ProxyAuthenticationScheme

CredentialUserName

CredentialPassword

AuthenticationScheme

RetryCount

0

RequestTimeout

120

ResponseTimeErrorThreshold

10

ResponseTimeWarningThreshold

5

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

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

Element properties:

TargetMicrosoft.ApacheHTTPServer.VirtualHost.Unix
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.ApacheHTTPServer.VirtualHost.URLProbeTotalResponseTime.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Apache 虛擬主機回應時間總計
遠端網站的回應時間總計已超過閾值。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeResponseTime.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" TypeID="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeTotalResponseTime.MonitorType" Enabled="false" ParentMonitorID="Health!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.VirtualHost.URLProbeResponseTime.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<!-- <AlertParameter1></AlertParameter1>-->
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="ProbeResponseTimeSuccess" ID="ProbeResponseTimeSuccess"/>
<OperationalState HealthState="Warning" MonitorTypeStateID="ProbeResponseTimeWarning" ID="ProbeResponseTimeWarning"/>
<OperationalState HealthState="Error" MonitorTypeStateID="ProbeResponseTimeFailure" ID="ProbeResponseTimeFailure"/>
</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>
<ResponseTimeErrorThreshold>10</ResponseTimeErrorThreshold>
<ResponseTimeWarningThreshold>5</ResponseTimeWarningThreshold>
</Configuration>
</UnitMonitor>