Windows Azure Pack Unit Monitor TenantSite Availability Error 404

WindowsAzurePack.WAPSite.Monitor.WebSiteAvailability.TenantSite (UnitMonitor)

Knowledge Base article:

Summary

This monitor checks the WAP Web sites availability for an http error code greater than 404.

If the error code is great than 404 the monitor will raise and alert and trigger an error state.

Additional Information

Check the website if it is running and investigate if there are any other Alerts on this WAP Site.

Element properties:

TargetWindowsAzurePack.Library.WAPSite.TenantSite
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeWindowsAzurePack.WAPSite.MonitorType.BasePageErrorCodeMonitor
RemotableTrue
AccessibilityPublic
Alert Message
WAP Site Not Available error code greater than 404

WAP Site: TenantSite
Binding: {0}
Server: {1}

This 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.WAPSite.Monitor.WebSiteAvailability.TenantSite" Accessibility="Public" Enabled="true" Target="WL!WindowsAzurePack.Library.WAPSite.TenantSite" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="WindowsAzurePack.WAPSite.MonitorType.BasePageErrorCodeMonitor" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="WindowsAzurePack.WAPSite.Monitor.WebServiceAvailability.TenantSite.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="WL!WindowsAzurePack.Library.WAPSite.TenantSite"]/Binding$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
<AlertParameter3>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter3>
</AlertParameters>
</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="WL!WindowsAzurePack.Library.WAPSite.TenantSite"]/Binding$/</Url>
<IntervalSeconds>1800</IntervalSeconds>
</Configuration>
</UnitMonitor>