Skip to main content
Version: NG-3.1

Task Scheduler

Introduction

The Windows Task Scheduler is a built-in utility in the Windows operating system that allows users to automate the execution of tasks at specified intervals or in response to certain events. It provides a user-friendly interface for creating, managing, and monitoring scheduled tasks, making it easier to automate repetitive or time-sensitive actions without manual intervention.

Getting Started

Compatibility

The Windows Task Scheduler O11ySource supports Microsoft Windows Server 2016 and later. Minimum PowerShell version 5.1 is required.

Data Collection Method

vuSmartMaps collects health and performance data for Windows Task Scheduler server using the Health Collection Probe of OminiAgent.

Prerequisites

Inputs for Configuring Data Source

  • Server: The IP Address/FQDN of the Windows server. This field is the key to identify each server you add here.
  • Period [in seconds]: How frequently data is gathered. The period should be between 60 seconds – 3000 seconds.
  • **Task Path **: Enter the relative path to task(s). Eg: \Microsoft\customtasks\
Applications

Firewall Requirement

To collect data from this O11ySource, ensure the following ports are opened:

Source IPDestination IPDestination PortProtocolDirection
IP address of the Windows ServervuSmartMaps Collection/Ingress node IP443*TCPInbound

*Before providing the firewall requirements, please update the port based on the customer environment.

Configuring the Target

Please check permissions for task configuration files:

  • The extension reads task details directly from their configuration files. These are stored relative to the base location of C:\Windows\System32\Tasks
  • Ensure the files of all monitored tasks are readable by the LOCAL_SERVICE user account.

Configuration Steps

Metrics Collected

NameDescriptionData Type
hostThe IP address of the serverLowCardinality(String)
targetThe IP address of the serverLowCardinality(String)
taskNameThe name of the taskLowCardinality(String)
authorThe author/owner of the taskLowCardinality(String)
Start_DateTask start dateString
lastRunTimeThe time when the task last executedString
nextRunTimeThe time when the task will executedString
resultThe result of the last executionFloat32
taskStateThe state of the task(Enabled/Disabled)String
scheduleTypeThe schedule interval(Daily/Weekly/System Startup)String
statusThe status of the task(Running/Ready)String
status_valueThe value of the statusUInt8
NumberOfMissedRunsThe number of missed runs for the particular taskUInt16
NumberOfMissedRuns_diffCalcualted value for the current time frameUInt16
NumberOfMissedRuns_rateThe rate of missed runsFloat32
lastRunBeforeThe time since last execution of the jobString
lastRunBeforeSecondsThe time since last execution of the job in secondsFloat32
messageThe message based on the result of last executionString
taskPathThe path to the taskString
@timestampThe timestamp in Elastic formatString
timestampThe timestamp dataDateTime64
o11ysource_nameName of the O11ysourceLowCardinality(String)