You may refer this KM: KM-000001013642 in BMC Knowledge Base
in Knowledge it states that:
While BMC Portal can monitor processes and services on a system, it is not possible to determine the outcome of a scheduled task.For instance, the underlying process associated with the scheduled task can be monitored, but BMC Portal does not have a method for determininghether the scheduled task completely successfully.http://rkm.bmc.com/rkm/viewdoc.jsp?remedy=1&doc=KM-000001013642&sid=3798603&type=Published&terms=searchTerms&user=Self HelpRakesh
1 of 1 people found this helpful
What about simply using the LOG KM?, Windows sends the results of scheduled tasks to C:\Windows\SchedLgU.Txt
You can just monitor for the appropriate failure or successes in this file for the scheduled job your interested in.
0x0 indicates success, anything else is a failure.
Of course you could construct something more fancy if required.
thanks a lot, but i didn't find required infomation in console, could you tell me which specific km is neeed.
Just preload LOG.kml, you can then specify filesto scan, and strings to look for. This will give you the basic functionality you are after. If you cannot find this KM, you will have to load from the Patrol install, as it is an optional KM to install. It wouldn't be too hard to write a KM to do something a bit better,
I've written a KM to monitor failed scheduled tasks on Windows 2003/XP. I've posted it for approval. If you want it any sooner, simply send me a private message with your email, and I'll send it to you.
If you find it useful and have found my other replies useful, please award "helpful", and/or "question answered" points.
I could not see C:\Windows\SchedLgU.Txt file for results of scheduled tasks in Windows 2012.
Can anyone please suggest . We have same requirement of scheduled Job Monitoring.
Thanks & Regards,
Personally, I would use Monitoring Studio KM (Monitoring Studio KM | Sentry Software) to execute the command below:
schtasks /query /FO CSV
To configure the execution of a command, see: Running Command Lines
And then trigger an alert for the tasks that don't have the proper status. This could be done either with a simple "Value Mapping": Mapping Values or by first creating dynamic instances for each task (see 4.2 Splitting the Monitor Output) and then a "Value Mapping" on each dynamic instance.
I quickly created the monitoring of all Scheduled Tasks on my agent with Monitoring Studio (it took me approx. 10 minutes).
Here's the result in PATROL Classic:
I also attached the corresponding configuration that you can load either in a TrueSight CMA policy ("Configuration Variables") or using Classic WPCONFIG.EXE, or the Import wizard of Monitoring Studio (see Importing a Configuration)
(remember, for the above to work, the prerequisite is to install Monitoring Studio KM).
Hope this helps!
SEN_MS_ScheduledTasks.cfg 11.3 K