Disponibilité du service SMTP

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

Knowledge Base article:

Résumé

Cette analyse vérifie l'état du service de serveur SMTP IIS (SMTPSVC). Si vous recevez une alerte via cette analyse, vous devez faire en sorte que le service fonctionne à nouveau.

États opérationnels :

Le service de serveur SMTP IIS (SMTPSVC) peut avoir l'état opérationnel « Service en cours d'exécution » ou « Service non exécuté »

Configuration

L'analyse prend un paramètre de configuration unique qui contrôle si le service doit être analysé lorsque son type de démarrage n'est pas défini sur « Automatique ». Par défaut, le service sera uniquement analysé si son type de démarrage est « Automatique ». Ce paramètre peut être réglé selon les besoins.

Causes

Un service peut s'arrêter pour de nombreuses raisons, parmi lesquelles :

Résolutions

Si le service de serveur SMTP IIS (SMTPSVC) ne fonctionne pas, vous pouvez diagnostiquer le problème ou redémarrer le service comme suit :

Démarrer le service de serveur SMTP (SMTPSVC)

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.LegacySMTPServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Le serveur SMTP est indisponible
Le serveur SMTP sur {0} est indisponible.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.LegacySMTPServer.NTService.CheckServiceState.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.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.6.2.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>
</Configuration>
</UnitMonitor>