Monitor Scheduled Tasks on Windows servers
ActiveXperts solution to monitor Scheduled Tasks
With the Scheduled Task check, one can check if a scheduled task has completed successfully or not. A Scheduled Task check can only be applied to a task that should run
today. I.e. you cannot check the completion of a task that ran - for instance - yesterday.
A Scheduled Task check requires the following parameters:
- Scheduled Task Log File - The fully qualified path name to the Scheduled Task Log File (SchedLgU.txt), in UNC format; for instance: \\Server01\C$\Windows\Tasks\SchedLgU.txt.
Please note that this file is hidden in the Windows Explorer. Use a command prompt and type DIR C:\WINDOWS\TASKS to list the file;.
- Job Name - Job name, as it appears in the SchedLogU.txt file. For instance, job name should be mytask.bat according to the following log entry:
ActiveXperts Network Monitor Scheduled Task check
Finished 1/19/2006 1:43:00 PM
Result: The task completed with an exit code of (0).
Completed Keyword - The keyword that determines the completion of a scheduled task. For many servers, the keyword will be Finished. However, the keyword can be different on non-English Operating Systems you are monitoring;
Today's Date Format - The string that determines the date format used in the Scheduled Task Log File. Note that your network servers can use different time formats. For that reason, you must specify the date format, so Network Monitor will be able to find the log entries that match the day of today. Default format: mm/dd/yyyy, i.e. month (2 digits), day (2 digits), year (4 digits), separated by a '/';
Match Result - The string that indicates a successful/unsuccessful completion of the task.
A successful completion is usually determined by the following string:
Result: The task completed with an exit code of (0);
An unsuccessful completion is usually determined by the following string:
Result: The task completed with an exit code of (1);
Note that the string can be different on non-English platforms and on legacy (e.g. Windows NT 4) platforms;
If pattern matched, result is - Indicates the result of the check if pattern is matched: Success or Error.