• Management Pack:  SQL Server
  • MP Version:  6.1 for SQL Server 2008
  • Released:  8/5/2010
  • Publisher:  Microsoft

Long Running Jobs Monitor

  • ID:  Microsoft.SQLServer.2008.Agent.LongRunningJobs
  • Description:  This monitor checks for long running SQL Agent jobs.
  • Target:  SQL 2008 Agent
  • Enabled:  No

Operational States

Name State Description
All jobs running below the lower threshold Success  
One or more jobs between the lower and upper threshold Warning  
One or more jobs beyond the upper threshold Error  

Overridable Parameters

Parameter Name Default Value Description Override
Interval (sec) 600  
Synchronization Time    
Lower Threshold (min) 60 The lower threshold (in minutes) for this monitor. By default, exceeding this threshold will result in the monitor changing to at least a warning state.
Upper Threshold (min) 120 The upper threshold (in minutes) for this monitor. By default, exceeding this threshold will result in the monitor changing to a critical state. Being between this threshold and the lower threshold (inclusive) will result (by default) in the monitor being in a warning state.
Timeout (sec) 300 the amount of time (in seconds) that the script is allowed to run.

Alert Details

Monitor State Message Priority Severity Auto Resolution
One or more jobs between the lower and upper threshold (Warning) Long Running Jobs Medium Match Monitor Health Yes

Run As Profiles

Name
Default

Monitor Knowledgebase

Summary

This monitor checks for long running SQL Agent jobs. A warning or error alert will be raised if a job has been running for longer that the configured threshold.

Causes

An unhealthy state is caused by a SQL Server Agent job that has run longer than the defined threshold. This could indicate a problem with the job.

The SQL Server Agent is responsible for running SQL Server tasks scheduled to occur at specific times or intervals as well as detecting specific conditions for which administrators have defined an action, such as alerting someone through pages or e-mail, or a task that will address the conditions. The SQL Server Agent is also used for running replication tasks defined by administrators.

To identify the job that caused the warning or error state, examine the context data for the state change or alert.

Resolutions

Check SQL Server Management Studio to identify what jobs are running. If these jobs are running longer than necessary, investigate them to find out why they are.

Use sp_help_jobactivity to see information about currently running jobs.

Alternatively if it is expected for some agent jobs to run for a long time:

  • Override the monitor to change the thresholds for this specific instance of SQL or all instances

  • Disable the monitor for this specific instance of SQL or all instances

External References
This monitor does not contain any external references.

See Also for SQL Server Management Pack


Downloads for SQL Server Management Pack

AZURE OPTIMIZATION ASSESSMENT GET STARTED
MIGRATION TO AZURE GET STARTED
SYSTEM CENTER MIGRATION TO AZURE GET STARTED
MIGRATION TO AZURE FOR SQL AND WINDOWS 2008 GET STARTED