Page 1 of 1

CheckTaskSched subfolders

Posted: Wed Jun 22, 2016 10:25 am
by Maxxxiiime
Hi,

I use CheckTaskSched2.dll on Windows Server 2008 R2 for check the task.

But this check is used only at the root of task scheduler.

I want to check the task in subfolders also.

Somebody knows how make with the good argument ?

Re: CheckTaskSched subfolders

Posted: Wed Jun 22, 2016 11:34 am
by rkennedy
According to the documentation, there is a parameter to specify folder for which the tasks reside.

Code: Select all

folder 	  	The folder in which the tasks to check reside.
https://docs.nsclient.org/reference/win ... Sched.html

Re: CheckTaskSched subfolders

Posted: Thu Jun 23, 2016 2:44 am
by Maxxxiiime
Yeah I have see this post, but folder is invalid argument.
./check_nrpe -H xx.xx.xx.xx -p 5666 -c CheckTaskSched -a "folder=myfolder"
Invalid argument: folder

The documentation is for the version 0.4.2 at 0.5.

The version NRPE on my linux server is 2.12.
The version NSclient on my Windows is 0.3.9.

Re: CheckTaskSched subfolders

Posted: Thu Jun 23, 2016 9:36 am
by rkennedy
Is upgrading to 0.4.3 of NSClient++ an option for you? As we did not write it, it appears the function is only in the newer version.

Another alternative may be something written by @WillemDH, https://outsideit.net/check-ms-win-tasks/

Re: CheckTaskSched subfolders

Posted: Fri Jun 24, 2016 2:40 am
by Maxxxiiime
rkennedy wrote:Another alternative may be something written by @WillemDH, https://outsideit.net/check-ms-win-tasks/
Works for me.

Thx.

Re: CheckTaskSched subfolders

Posted: Fri Jun 24, 2016 9:30 am
by mcapra
Is it alright if we lock this thread and mark the issue as resolved?