SMTP Service availability

Microsoft.Windows.InternetInformationServices.2008.LegacySMTPServer.NTService.CheckServiceState.Monitor (UnitMonitor)

Knowledge Base article:

Summary

This monitor checks the status of the IIS SMTP Server service (SMTPSVC). 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 SMTP Server service (SMTPSVC) can be either in a "Service Running" or "Service 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 SMTP Server service (SMTPSVC) is not running you can diagnose the issue or restart the service by taking the following actions:

Start SMTP Server (SMTPSVC) Service

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.2008.LegacySMTPServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
SMTP Server is unavailable
The SMTP Server on {0} is unavailable.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.2008.LegacySMTPServer.NTService.CheckServiceState.Monitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.2008.LegacySMTPServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.2008.LegacySMTPServer.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>SMTPSVC</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>