Questo monitoraggio controlla lo stato del servizio SQL Agent per questa istanza di SQL Server.
Questo monitoraggio controlla lo stato del servizio SQL Agent e genera un avviso quando il servizio viene impostato per avviarsi automaticamente e non è in esecuzione.
Tenere presente che quando il servizio è disabilitato, l'avviso non viene generato e viene mostrato un messaggio che indica che lo stato è integro.
È possibile che un servizio venga arrestato per diversi motivi, tra i quali:
Il servizio è stato arrestato da un amministratore.
È stato impedito l'avvio del servizio a causa dell'impossibilità di autenticare l'account utente.
Il servizio ha rilevato un'eccezione che ne ha causato l'interruzione.
Il servizio non era configurato correttamente e questo ne ha impedito l'avvio.
È stato arrestato un altro servizio (ad esempio SQL Server) da cui dipende questo servizio.
È possibile tentare di riavviare il servizio Windows per SQL Agent utilizzando il collegamento seguente:
Avvio del servizio SQL Agent
Target | Microsoft.SQLServer.2008.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.2008.Agent.ServiceMonitor" Accessibility="Public" Enabled="true" Target="SQL2008Core!Microsoft.SQLServer.2008.Agent" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.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="SQL!Microsoft.SQLServer.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="SQL!Microsoft.SQLServer.Agent"]/ServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>