TaskScheduler problems

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
1stewart
Posts: 1
Joined: Mon Jan 23, 2012 11:21 am

TaskScheduler problems

Post 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
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: TaskScheduler problems

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: TaskScheduler problems

Post 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.
Locked