Servicio de Windows del Agente SQL Server

Microsoft.SQLServer.2014.Agent.ServiceMonitor (UnitMonitor)

Este monitor comprueba el estado del servicio Agente SQL para esta instancia de SQL Server.

Knowledge Base article:

Resumen

Este monitor comprueba el estado del servicio de Agente SQL y genera una alerta cuando el servicio se establece para iniciarse automáticamente y no se está ejecutando.

Tenga en cuenta que no se generará ninguna alerta si el servicio está deshabilitado: se mostrará un estado adecuado.

Causas

Un servicio se puede detener por diversos motivos, entre los que se incluyen:

Soluciones

Puede intentar reiniciar el servicio de Windows para el Agente SQL con el siguiente vínculo:

Iniciar el servicio Agente SQL

Parámetros invalidables

Nombre

Descripción

Valor predeterminado

Alertar solo si el tipo de inicio del servicio es automático

Solo se puede establecer en 'true' o 'false'. Si se establece en 'false', las alertas se desencadenarán independientemente del tipo de inicio establecido. El valor predeterminado es 'true'.

1

Habilitado

 

Genera alertas

 

Element properties:

TargetMicrosoft.SQLServer.2014.Agent
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
MSSQL 2014: servicio de Windows del Agente SQL Server detenido
El servicio de Windows para el Agente SQL Server para la instancia de SQL Server {1} se ha detenido en el equipo {0}
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2014.Agent.ServiceMonitor" Accessibility="Public" Enabled="true" Target="SQL2014Core!Microsoft.SQLServer.2014.Agent" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2014.Agent.ServiceMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.ServerRole"]/InstanceName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>$Target/Property[Type="SQL2014Core!Microsoft.SQLServer.2014.Agent"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>