Apache Virtual Host Web Request Status Code

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

Apache Virtual Host Web Request Status Code Monitor

Knowledge Base article:

Summary

This monitor ensures that the Operations Manager server can communicate with the Apache Virtual Host through a remote HTTP request.

Causes

An unhealthy state for this monitor indicates some problem with communication to the Apache HTTP Server.

Some of the problems that could affect the state of this monitor are the following:

Resolutions

Confirm that the configuration of the monitor is appropriate for the virtual host. Verify that the Apache HTTP Server is running. Verify there is no firewall blocking access, and the appropriate credentials have been supplied to the Run As account.

To manually verify the connection to the Apache HTTP Server, open a browser and connect to the hosted web page.

Configuration

Default Configuration

Parameter

Default Value

URL

http://[Server Name of the Virtual Host]

Proxy

ProxyUserName

ProxyPassword

ProxyAuthenticationScheme

None

CredentialUserName

CredentialPassword

AuthenticationScheme

None

RetryCount

0

RequestTimeout

120

StatusCodeThreshold

400

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

Note: This monitor is disabled by default. Use an override to enable it, and confirm that the URL, proxy configuration, and authentication are correct when enabling the monitor.

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 Virtual Host URL Status
The remote URL probe was not successful. The remote site may be offline.
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>