How do I monitor Windows Scheduled Tasks for failure?
search cancel

How do I monitor Windows Scheduled Tasks for failure?

book

Article ID: 37223

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) Unified Infrastructure Management for Mainframe 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: Any
Component: ntevl

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>