World Wide Web Publishing service availability

Microsoft.Windows.InternetInformationServices.6.2.WebServer.NTService.CheckServiceState.Monitor (UnitMonitor)

Knowledge Base article:

Summary

This monitor checks the status of the IIS Web Server service (W3SVC). If you receive an alert from this monitor, action is required in order to bring the service back to an operational state.

Operational States:

The IIS Web Server service (W3SVC) can be either in a "Running" or "Not Running" operational state.

Configuration

The monitor takes a single configuration parameter that controls whether the service should be monitored when its startup type is not set "Automatic". By default, the service will be monitored only if the service startup type is "Automatic". This can be adjusted as required.

Causes

A service can stop for many reasons, including:

Resolutions

If the IIS Web Server service (W3SVC) is "Not Running" you can diagnose the issue or restart the service by taking the following actions:

Start Web Server (W3SVC) Service

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
IIS 8 Web Server is unavailable
The IIS 8 Web Server on {0} is unavailable.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.WebServer.NTService.CheckServiceState.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.WebServer.NTService.CheckServiceState.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>W3SVC</ServiceName>
</Configuration>
</UnitMonitor>