Scheduled Task Monitor

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

Monitored Component:

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.

  • This is a very old posting but I have the same issue.  Did you or anyone else figure this out.  The template seems to work for the default Microsoft scheduled tasks that come with the machine but any custom scheduled tasks on the machine it cannot enumerate.

  • Hello,

    I want to use your template because the orion built-in feature give too much information.

    Your template works when the server is in a domain, but when i want to test a off domain server (using node credential for example) it doesn't work.

    the error message : "Unable to impersonate user 'myuser'. This user must be a valid user on the Orion Server/Polling Engine."

    I'm not confortable with vbscript, so i'm not able to correct it

    Thanks

  • FormerMember
    FormerMember


    I have added these, I copy the script from the component above and apply the service into the argument and make sure my WMI credentials are set to inherit from node. From there they do not work, but the standard ones do such as ScheduledDefrag, CorruptionDetector and SystemSoundsService. I am given an return code of -1 and a message that says that the task is not there. I have added in the folder in front of it also like \DESE\GED_BATCH and have left it out. Neither of the two work. Do I need a filepath or something? Or what may be going on?

  • When you want to add more component monitors than what is already present in the template, you can choose the category according to your requirements.

    For example, if you were to include a custom script into your template you could choose any of the component like 'Windows Script Monitor' or 'Linux/Unix Script Monitor' from the "Custom Script Monitors" category.

  • FormerMember
    FormerMember

    It works on older versions also. When applying more component monitors than there are in the template, what category do you select from?