Page 1 of 1

TaskScheduler problems

Posted: Mon Jan 23, 2012 11:24 am
by 1stewart
Hello guys,

I'm having a lot of trouble finding a solution to monitor Task Scheduler on a Windows host. Ideally I want to be able to monitor how many jobs failed (if any) as well as monitoring the status of an individual job (running, stopped, failed).

I've tried numerous things, such as the NSClient CheckTaskSched, but when running from command line I just get a return code 0. The other closest thing to work is the batch script found at: http://www.mysecretroom.com/www/program ... monitoring.

I've also tried the plugin from the plugin-collection, but had no luck.

Can anyone who has actually managed this in the past offer any light to the situation?

Regards,
Stewart

Re: TaskScheduler problems

Posted: Thu Feb 02, 2012 2:19 pm
by lyle
I have the same need. Haven't found a plugin yet that checks the Task Scheduler for a non-blank status field, for instance.

We were checking that the TaskScheduler service on a Windows 2003 server was alive. But tasks were failing with authentication problems, and we didn't know about it. :-(

...Lyle

Re: TaskScheduler problems

Posted: Sun Feb 05, 2012 8:39 pm
by jsmurphy
We struggled with this a bit but ended up just making a work around. Our solution to this problem was to put a wrapper script on any scheduled task that needed monitoring and have it write something in a text file that an NSClient script would then read back in and feed to Nagios.