Hi,
Does anyone have an idea of event ID generated in Application and services -> Microsoft-> Windows -> Task Scheduler -> Operational logs if any scheduled task fails. I need to monitor a schedule task if it fails.
Regards,
Daya Ram
Technology Tips and News
Hi,
Does anyone have an idea of event ID generated in Application and services -> Microsoft-> Windows -> Task Scheduler -> Operational logs if any scheduled task fails. I need to monitor a schedule task if it fails.
Regards,
Daya Ram
You may consider using Progel Windows Scheduled Tasks management packs which can freely download from
https://pinpoint.microsoft.com/en-hk/Applications/12884902751.
Progel Windows Scheduled Tasks management packs monitor the performance, health, and availability of scheduled tasks on Windows Server 2012 R2, 2012, 2008 R2, 2008, Windows Server 2003, and Windows 2000 Server using your current System Center Operations Manager
2007 or 2012 infrastructure.
or
using Scheduled Task and PS Scheduled Job Management Pack
https://onedrive.live.com/?id=8E65D7FF8119FFA6%21161&cid=8E65D7FF8119FFA6&group=0&parId=8E65D7FF8119FFA6%21158&authkey=%21AD2usfPtucDzaY4&action=locate
Besides event id 201 is logged on Application and services -> Microsoft-> Windows -> Task Scheduler -> Operational logs when schedule task is finished and event description "return code is 0" for schedule task run successful.
Roger
Hi,
I don't want to put any MP for just one task monitoring when I can monitor the task events without any issue.
Event ID 201 that you suggested is for task completed, I want to monitor the task failed events. Can you please suggest the events for task failed?
Regards,
Daya
The event id's for task Scheduler are here:
https://technet.microsoft.com/en-us/library/cc774899%28v=ws.10%29.aspx?f=255&MSPPError=-2147217396
You should be able to look for a specific scheduled task by name ... it needs the path in there though. I'd suggest getting a test machine and deliberately create a custom task that fails and look at the eventid and description.
Hi Daya Ram,
Create a timed script two state monitor where in use the below script editing your server name in the script [strComputer = "."]. Make sure that your default run as account must have local admin privilege on the box you are intended to monitor.
Then provide the two states as below one for healthy and other for the failure. It should resolve the issue
Property[@Name='TaskStatus'] does not equal to 0 - for unhealthy
Property[@Name='TaskStatus'] equal to 0 - for success.
---------------------------------------------------------------------------------------------
Dim oAPI, oBag---------------------------------------------------------------------