Monitor Windows Scheduled Tasks for failure
search cancel

Monitor Windows Scheduled Tasks for failure

book

Article ID: 37223

calendar_today

Updated On: 07-01-2024

Products

DX Unified Infrastructure Management (Nimsoft / UIM) Unified Infrastructure Management for Mainframe CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

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

Environment

Release: Any
Component: ntevl

Resolution

Windows Scheduled tasks history is written to an event log. 

  1. Open Event Viewer and go to: Event Viewer (Local) / Applications and Services Logs / Microsoft / Windows / TaskScheduler / Optional.
  2. You will see all the Task Histories.
  3. The .evt files are located under C:\Windows\System32\Winevt\Logs directory.
  4. 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>