Page 1 of 1

Scheduled Task check fails Not Found

Posted: Wed May 30, 2018 7:36 pm
by kwhogster
Windows 2012 R2
Nsclient 4.4.23

Run this check from server command line

root:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/./check_nrpe -H 10.2.8.14 -c check_tasksched -a "filter=title eq 'DailyEvent'"
: No tasks found

On another Windows 2012 R2 it works as does 40 others

root:/usr/local/nagios/etc/objects# /usr/local/nagios/libexec/./check_nrpe -H 10.2.8.22 -c check_tasksched -a "filter=title eq 'Daily Event Report'"
: All tasks are ok|'Daily Event Report_exit_code'=0;0;0

I copied the nsclient from the working server and no change.

I have this same issue on two other Windows 2012 R2 server but those two I have about 15 scheduled tasks and 10 work and the other 5 give same error not found.

Very strange

Any help would be greatly appreciated.

Thank you

Tom

Re: Scheduled Task check fails Not Found

Posted: Wed May 30, 2018 9:20 pm
by kwhogster
Figured this out tonight

Had the tasks marked as hidden unchecked that box and like that it works


You can lock this now

Re: Scheduled Task check fails Not Found

Posted: Thu May 31, 2018 1:37 pm
by scottwilkerson
Glad you were able to solve it..

Locking