Apache Virtual Host Errors per Minute - Client

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

Apache Virtual Host Errors per Minute - Client Monitor

Knowledge Base article:

Summary

The amount of client server errors experienced when contacting the Apache virtual host is high. Apache HTTP Server performance may be adversely affected.

Apache 400 bad request errors are HTTP requests resulting in client errors made to the Apache virtual host.

The monitor threshold is analyzed against an average of values returned in polls to the agent where the Number of Samples parameter controls the number of samples included in the calculation of the average.

Causes

An unhealthy state indicates that the amount of bad requests made to the virtual host are currently high. The bad request could be caused by exceeding the header field limit set for the server.

Resolutions

To address Apache client errors on a virtual host choose one or more of the following options:

Configuration

Default Configuration

Parameter

Default Value

Threshold

10

Number of Samples

3

Overrides can be used to change the parameter values defined above for all instances or for specific instances or groups

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 Virtual Host Client Errors
The rate of client errors ({0}/m) for the virtual host is high.
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>