This template monitors the status of the scheduled task provided as argument and flags if the status is not Running or Ready.
Prerequisites: WMI access to the target server.
Credentials: Windows Administrator on the target server.
Note: Tested on Windows Server 2008 R2
This component returns the Next Run Time and Status. It turns to a critical or unknown state if the task status is "Could not start" or "Unknown".
Arguments: Scheduled task name to be monitored
TODO: Exception handling can be added if the regular expression doesn't match the output of schtasks which is used to find the task status.
NOTE: From SAM 6.1, this feature is available out of the box.