Windows Azure Pack Unit Monitor Web Site Availability AdminAPI

WindowsAzurePack.Monitor.WebSiteAvailability.AdminAPI (UnitMonitor)

Monitors that the Site is responding with result codes less than 404

Knowledge Base article:

Summary

Monitors errors when attempting to access the Web Site. This is done by periodically sending an http request to the site.

Causes

If this monitor is in error, then the Web Site is down.

Resolution

Check the status of the Web Site and corresponding Application Pool using Inetmgr.exe, restart them if they were stopped. Capture the Event Log and IIS Log error entries for the Site. Review the logs to determine root causes.

Configuration

For this monitor to work correctly, it must be allowed to send http requests to the site. It runs in the local SCOM Agent

Option

Definition

Default

Alert On State

Health state for the monitor that generates an alert.

The monitor is in a critical health state

Alert Priority

Priority of the alert generated for this monitor.

High

Alert Severity

Priority of the alert generated for this monitor.

Critical

Auto-Resolve Alert

Specifies whether the alert should automatically be resolved when the monitor returns to a healthy state.

True

Enabled

Specifies whether the monitor should run.

True

Generates Alert

Specifies whether the monitor should generate an alert when changing to a warning or critical state.

True

Interval

Number of minutes between times that the monitor is run.

180

Element properties:

TargetWindowsAzurePack.AdminAPI
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindowsAzurePack.MonitorType.BasePageErrorCodeMonitor
RemotableTrue
AccessibilityPublic
Alert Message
Windows Azure Pack Site is not available, it returned an error code equal or greater than 404
Windows Azure Pack Site is not available to users. It is returning an error code equal or greater than 404. Look for error events in the application Event Log.
RunAsDefault

Source Code:

<UnitMonitor ID="WindowsAzurePack.Monitor.WebSiteAvailability.AdminAPI" Accessibility="Public" Enabled="true" Target="WindowsAzurePack.AdminAPI" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="WindowsAzurePack.MonitorType.BasePageErrorCodeMonitor" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="WindowsAzurePack.Monitor.WebServiceAvailability.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ErrorCodeFailure" MonitorTypeStateID="ErrorCodeFailure" HealthState="Error"/>
<OperationalState ID="ErrorCodeSuccess" MonitorTypeStateID="ErrorCodeSuccess" HealthState="Success"/>
</OperationalStates>
<Configuration>
<RequestID>1</RequestID>
<Url>$Target/Property[Type="WindowsAzurePack.AdminAPI"]/SiteAddress$/</Url>
<IntervalSeconds>1800</IntervalSeconds>
</Configuration>
</UnitMonitor>