SQL Server 에이전트 Windows 서비스

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

이 모니터는 이 SQL Server 인스턴스에 대한 SQL 에이전트 서비스의 상태를 확인합니다.

Knowledge Base article:

요약

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

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

원인

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

해결 방법

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

SQL 에이전트 서비스 시작

재정의 가능한 매개 변수

이름

설명

기본값

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

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

1

사용

 

알림 생성

 

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>