Skip to main content
Version: NG-2.14

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 is compatible with all versions Microsoft Windows Server 2016 and newer. Minimum PowerShell version 5.1 is required.

Data Collection Method

vuSmartMaps collects health and performance data for Windows Task Scheduler server using VuNet's Healthbeat agent. This agent collects data based on the source configuration.

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\

Firewall Requirement

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

Source IPDestination IPDestination PortProtocolDirection
IP address of the Windows ServervuSmartMaps Data Collector End Point9092*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

  • Enable the Task Scheduler O11ySource.
  • Select the Sources tab and press the + button to add a new Windows host and task path details to be monitored.
  • Add the required details and then click on Next.
  • The following packages will be available for download based on the OS:Healthbeat full installer package - Downloads the full Healthbeat package with required configurations for a fresh installationHealthbeat config update package - Downloads the agent configuration package to update an existing Healthbeat installation
  • Download the agent installation or update package, then click Finish to close the data source window.

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)