How can I monitor Exit codes of tasks in the windows task scheduler
search cancel

How can I monitor Exit codes of tasks in the windows task scheduler

book

Article ID: 131577

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction



 Is it possible to monitor Exit codes of tasks in the windows task scheduler. Let me know if this is possible?

 

Environment

UIM 9.1 and earlier
NTEVL 4.31 and earlier

Resolution

below link and information about the windows task scheduler:

https://social.technet.microsoft.com/Forums/en-US/05a2eefb-9c71-43a9-8699-2e99edb93b36/task-scheduler-job-failure-status?forum=winserver8gen

There is no built-in functionality in task scheduler to notify you when a job fails. Task scheduler just starts the actions configured for the task but it has no way of knowing what those actions do and if they succeed or not. Task Scheduler does, however, log information about actions it executes - including return code - in the event log (Microsoft-Windows-TaskScheduler/Operational). That means that you can configure whatever monitoring system that you use to respond to "action completed" events, analyze event data and generate an alert when failure is detected.

This should mean that you can set up the ntevl probe to monitor this event log and report on the exit codes for the scheduled tasks.

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/monitoring/systems-and-service-response/ntevl-nt-event-log-monitoring/ntevl-nt-event-log-monitoring-release-notes.html

 

Additional Information

24 Aug: Fixed broken link