SQL Server 에이전트 Windows 서비스

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

이 모니터는 이 SQL Server 인스턴스에 대한 SQL 에이전트 서비스의 상태를 확인합니다.
SQL Server 에이전트 Windows 서비스는 모든 버전의 SQL Server Express에서 지원되지 않습니다.

Knowledge Base article:

요약

이 모니터는 SQL 에이전트 서비스의 상태를 확인하고 서비스가 자동으로 시작되도록 설정되어 있지만 실행되고 있지 않으면 경고를 생성합니다.

이 서비스를 사용할 수 없는 경우 알림이 생성되지 않으며 정상 상태가 표시됩니다.

원인

서비스는 다음과 같은 여러 가지 이유로 중지될 수 있습니다.:

해결 방법

다음 링크를 통해 SQL 에이전트에 대한 Windows 서비스를 다시 시작할 수 있습니다.:

SQL 에이전트 서비스 시작

재정의 가능한 매개 변수

이름

설명

기본값

알림 우선 순위

알림 우선 순위를 정의합니다.

보통

알림 심각도

알림 심각도를 정의합니다.

오류

서비스 시작 유형이 자동인 경우에만 경고를 발생시킵니다.

이 값은 'true' 또는 'false'로만 설정될 수도 있습니다. 'false'로 설정하면 설정된 시작 유형에 관계없이 경고가 트리거됩니다. 기본값은 'true'입니다.

사용

워크플로를 사용하거나 사용하지 않도록 설정합니다.

알림 생성

워크플로가 알림을 생성하는지를 정의합니다.

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: SQL Server 에이전트 Windows가 중지되었습니다.
컴퓨터 {0}에서 SQL Server 인스턴스 {1}에 대한 SQL Server 에이전트 Windows 서비스가 중지되었습니다.
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>