이 모니터는 이 SQL Server 인스턴스에 대한 SQL 에이전트 서비스의 상태를 확인합니다.
이 모니터는 SQL 에이전트 서비스의 상태를 확인하고 서비스가 자동으로 시작되도록 설정되어 있지만 실행되고 있지 않으면 경고를 생성합니다.
이 서비스를 사용할 수 없는 경우 알림이 생성되지 않으며 정상 상태가 표시됩니다.
서비스는 다음과 같은 여러 가지 이유로 중지될 수 있습니다.:
관리자가 서비스를 중지했습니다.
사용자 계정을 인증할 수 없으므로 서비스를 시작하지 못했습니다.
예외가 발생하여 서비스가 중지되었습니다.
서비스가 잘못 구성되어 시작하지 못했습니다.
이 서비스가 종속되는 다른 서비스(예: SQL Server)가 중지되었습니다.
다음 링크를 통해 SQL 에이전트에 대한 Windows 서비스를 다시 시작할 수 있습니다.:
SQL 에이전트 서비스 시작
이름 | 설명 | 기본값 |
서비스 시작 유형이 자동인 경우에만 경고를 발생시킵니다. | 이 값은 'true' 또는 'false'로만 설정할 수 있습니다. 'false'로 설정하면 설정된 시작 유형에 관계없이 경고가 트리거됩니다. 기본값은 'true'입니다. | 1 |
사용 |
| 예 |
알림 생성 |
| 예 |
Target | Microsoft.SQLServer.2014.Agent | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | AvailabilityHealth | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | Error | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.CheckNTServiceStateMonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<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>