Apache 虛擬主機每分鐘錯誤數 - 用戶端

Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorsPerMinute400.Monitor (UnitMonitor)

Apache 虛擬主機每分鐘錯誤數 - 用戶端監視

Knowledge Base article:

摘要

連絡 Apache 虛擬主機時發生的用戶端伺服器錯誤數量過高。可能會對 Apache HTTP Server 效能造成負面影響。

Apache 400 不正確的要求錯誤是對 Apache 虛擬主機提出之導致用戶端錯誤的 HTTP 要求。

監視閾值是針對輪詢代理程式時傳回的平均值進行分析,其中 [範例數] 參數用於控制平均計算中所含的範例數。

原因

狀況不良狀態表示對虛擬主機提出的錯誤要求數量目前過高。不正確的要求可能是超過為伺服器設定的標頭欄位限制所造成。

解決方式

若要解決虛擬主機上的 Apache 用戶端錯誤,請選擇下列一個或多個選項:

設定

預設設定

參數

預設值

閾值

10

範例數

3

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

Element properties:

TargetMicrosoft.ApacheHTTPServer.VirtualHost.Unix
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Oss.WSMan.Performance.Average.Filtered.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Apache 虛擬主機用戶端錯誤
虛擬主機的用戶端錯誤率 ({0}/分鐘) 過高。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorsPerMinute400.Monitor" Accessibility="Public" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" TypeID="Oss!Microsoft.Oss.WSMan.Performance.Average.Filtered.Threshold.MonitorType" ParentMonitorID="Health!System.Health.PerformanceState" Enabled="onStandardMonitoring">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorsPerMinute400.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Warning</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Warning" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Apache_HTTPDVirtualHostStatistics?__cimnamespace=root/apache</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Apache Virtual Host</ObjectName>
<CounterName>Errors per Minute 400</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/InstanceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostStatistics']/*[local-name(.)='InstanceID']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDVirtualHostStatistics']/*[local-name(.)='ErrorsPerMinute400']$</Value>
<Threshold>10</Threshold>
<NumSamples>3</NumSamples>
</Configuration>
</UnitMonitor>