Monitring on scheduler Tasks

Hi ,
Can we create an monitoring on services which are already on scheduler.On which status should be Active.If suspended give an email notification.Thanks in Advance…Anyone can answer this i will appreciate in advance.

There is a built in service under WmPublic.pub.scheduler:getTaskinfo that you can call and pass the taskID info. It will return a value ‘execState’ which would determine whether it is suspended or active. From here you can send alerts according.

Thanks Thai.I appreciate for the information.

Thai,
I saw that its wonderful ,but Could you please explain in more clearly and if you got any more to be able to do it.Could you please help me in this regard.

Thank
Narren

Along the same lines, does anyone know how to determine thru a monitor if a scheduled task did not run when it was supposed to? We have had this issue in the past. Thanks