Web Site availability

Microsoft.Windows.InternetInformationServices.2008.WebSite.WebSiteStatusCheck.Monitor (UnitMonitor)

Knowledge Base article:

Summary

This monitor checks the status of IIS web sites. If you receive an alert from this monitor, action is required in order to bring the Web site back to an operational state.

Operational States:

An IIS Web site can be either in a "Started" or "Stopped" operational state.

Configuration

The only configurable parameter of this monitor is the time interval used to check the status of the web site.

Causes

An IIS Web site can stop for many reasons, including:

Resolutions

If an IIS Web site is stopped you can diagnose the issue or restart the site by taking the following actions:

Start IIS Web Site

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.WebSite
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.IIS.IISWebSiteStateMonitor.2008
RemotableFalse
AccessibilityPublic
Alert Message
IIS 7.0 Web Site is unavailable
The IIS 7.0 web site named {0} on {1} is unavailable as the site has been stopped.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.2008.WebSite.WebSiteStatusCheck.Monitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.2008.WebSite" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="false" Priority="Normal" TypeID="Microsoft.Windows.Server.IIS.IISWebSiteStateMonitor.2008" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.2008.WebSite.WebSiteStatusCheck.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="System!System.Entity"]/DisplayName$</AlertParameter1>
<AlertParameter2>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Started" MonitorTypeStateID="Started" HealthState="Success"/>
<OperationalState ID="Stopped" MonitorTypeStateID="Stopped" HealthState="Error"/>
</OperationalStates>
<Configuration>
<PeriodInSeconds>60</PeriodInSeconds>
<SiteID>$Target/Property[Type="IISCommon!Microsoft.Windows.InternetInformationServices.WebSite"]/SiteID$</SiteID>
</Configuration>
</UnitMonitor>