How do I monitor Windows Scheduled Tasks for failure?

book

Article ID: 37223

calendar_today

Updated On:

Products

DX Infrastructure Management NIMSOFT PROBES

Issue/Introduction

Question:

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: CNMSPP99000-8.47-Unified Infrastructure Mgmt-Server Pack-- On Prem
Component:

Resolution

Answer:

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 on 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