How do I monitor Windows Scheduled Tasks for failure?

book

Article ID: 37223

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES CA Unified Infrastructure Management for z Systems CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

I need to setup monitoring on my windows servers to capture when a Scheduled task fails to execute. How can I do this?

Environment

Release: UIM *.47 or higher

Resolution

Windows Scheduled tasks history is written to an event log. 

If you open Event Viewer and go to:

Event Viewer (Local) / Applications and Services Logs / Microsoft / Windows / TaskScheduler / Optional,

you will see all the Task Histories.

The .evt files are located under C:\Windows\System32\Winevt\Logs directory.

As such, you should be able to use ntevl to select the Task Scheduler event logs on the setup screen and then setup the monitoring using this.

NTEVL Probe Docs

Example Screen Shot:




Example ntevl.cfg:

<logs>

   system = System

   application = Application

   security = Security

   microsoft-windows-taskscheduler$$maintenance = Microsoft-Windows-TaskScheduler/Maintenance

   microsoft-windows-taskscheduler$$operational = Microsoft-Windows-TaskScheduler/Operational

</logs>

Attachments

1558723296123000037223_sktwi1f5rjvs16wsz.jpeg get_app