Agent Jobs Check


Job details

Name: Agent Jobs Check
Platform: Sqlserver
Category: Availability
Description: Checks whether there exists jobs on the SQL server which have not been executed, or have failed during execution.
Long description: Checks whether there exists jobs on the SQL server which have not been executed, or have failed during execution.
Version: 2.8
Default schedule: 0,30 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘sqlserver’]/instance[maj_version > ‘2000′ & hasengine=‘YES’ & engine_edition = ‘Microsoft SQL Server’]

Parameters

Name Default value Description
ignore jobs A comma separated list of jobs to ignore. You can use % (percent sign) to represent wild card characters.
ignore not scheduled jobs YES If set to “YES“ jobs without schedule (or with disabled schedules) will be ignored.
ignore disabled jobs YES This parameter allows you to control whether disabled jobs should be ignored.
ignore old jobs 48 This parameter allows you to ignore failed jobs executed some time ago (default 48 hours ago).
ignore step error YES This parameter allows you to ignore step errors.
ignore if last run successful YES Jobs which failed (within the timeframe defined by the parameter “ignore old jobs”) but run successfully when last executed will be ignored.
return status 1 Return status value (ALARM – 2, WARNING – 1, or OK – 0) when failed jobs detected.

Job Summary

SELECT job.name, job_history.run_status, job_history.run_date FROM msdb.dbo.sysjobs job INNER JOIN msdb.dbo.sysjobhistory job_history ON job.job_id = job_history.job_id ORDER BY job_history.run_date DESC;

Job Details

Monitoring Strategy

Reporting and Presentation

Deployment Considerations

This monitoring job is essential for maintaining operational stability and proactive administration in environments dependent on SQL Server Agent for executing scheduled tasks and workflows.