You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to have the ability to ignore certain SQL Agent jobs based on some criteria such as job name or category for example with a customisable wildcard query on the name?
Just thinking along the lines of some agent jobs that we have where there is some development ongoing and regular failures are expected, don't want to disable the job but also don't want it to flag up.
Thanks
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion. You can disable the thresholds for individual jobs. It would be possible to automate it via a script as a workaround. Something like this:
INSERT INTOdbo.AgentJobThresholds(InstanceID,job_id,LastFailIsCritical,LastFailIsWarning)
SELECTJ.InstanceID,J.job_id,0,0FROM Jobs J
WHEREJ.category='Your_Category_To_Exclude'-- Or: J.name LIKE '%Your_Name_To_Exclude%'AND NOT EXISTS(SELECT1FROMdbo.AgentJobThresholds T
WHERET.InstanceId=J.InstanceIDANDT.job_id=J.job_id
)
Hi @DavidWiseman
Would it be possible to have the ability to ignore certain SQL Agent jobs based on some criteria such as job name or category for example with a customisable wildcard query on the name?
Just thinking along the lines of some agent jobs that we have where there is some development ongoing and regular failures are expected, don't want to disable the job but also don't want it to flag up.
Thanks
The text was updated successfully, but these errors were encountered: