CheckTaskSched subfolders

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
Maxxxiiime
Posts: 3
Joined: Wed Jun 22, 2016 10:10 am

CheckTaskSched subfolders

Post 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 ?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CheckTaskSched subfolders

Post 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
Former Nagios Employee
Maxxxiiime
Posts: 3
Joined: Wed Jun 22, 2016 10:10 am

Re: CheckTaskSched subfolders

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: CheckTaskSched subfolders

Post 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/
Former Nagios Employee
Maxxxiiime
Posts: 3
Joined: Wed Jun 22, 2016 10:10 am

Re: CheckTaskSched subfolders

Post by Maxxxiiime »

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

Thx.
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: CheckTaskSched subfolders

Post by mcapra »

Is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Locked