We've introduced the .cfg file to the Windows Scheduled Tasks plugin. You can now make changes to the ScheduledTask.cfg file and monitor metrics for multiple scheduled tasks as separate monitors.
Here are the metrics the plugin monitor tracks:
lastRunBefore: Time of Previous Schedule task performed
author: Task's owner
Status: Current state of the task
lastRunTime: Previous Datetime of Task Scheduled
Start_Date: Task Started time
errorCode: Error code of Previous Scheduled task
Download and install the latest version of the [Site24x7 Windows agent] (https://www.site24x7.com/app/client#/admin/inventory/add-monitor) in the server where you plan to run the plugin.
1. Visit our GitHub repository and download the .ps1 file and the .cfg file.
2. Modify the .cfg file with the task name to monitor the particular task:
Note: To fill in the task name in the .cfg file, add the location of the task you want to monitor from the General tab of Windows Task Scheduler followed by a slash and the task name.
3. To monitor multiple tasks, modify the .cfg file accordingly.
Here's an example below:
3. Create a folder ScheduledTask under Site24x7 Windows plugins directory and place the plugin files ScheduledTask.ps1 and ScheduledTask.cfg inside the folder.
The agent will automatically execute the plugin within five minutes and send performance data to the Site24x7 data center.
Feel free to reply to this thread for any clarification.