Jump to content
bmiller

Internal Monitor for Failed Scheduled Tasks

Recommended Posts

Hey everyone,

I have been tasks with creating an internal monitor to search for a failed scheduled task. I started the configuration and I am just  not sure of the text in the Identity Field or Additional Conditions to return a result if the scheduled tasks fails. I have attached a screenshot of the config screen, the result field is the TaskID. How do I have the monitor trigger a response if the mentioned tasks doesn't run?

 

I really appreciate all of your help, new to ConnectWise and trying to make the most of the system.

image.thumb.png.61d436ed5280da90204879dd69e0f0e6.png

Share this post


Link to post
Share on other sites

I don't see anything in that table that would indicate if a task was successful or not. The table appears only to list tasks for reference, but it doesn't record the results of the task.  For that it appears that you would need to use a remote monitor.

You could try something like: 

"%WINDIR%\system32\schtasks.exe" /query /tn "Adobe Acrobat Update Task" /v /fo LIST | find "Last Result:"

Or something using PowerShell, although it can be tricky to call correctly as a remote monitor.

Share this post


Link to post
Share on other sites

I think there is a eventid you could watch for that alerts on failed Scheduled tasks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×