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.
root@serv017:/usr/local/nagios/etc/objects/windowsservers# /usr/lib/nagios/plugins/check_nrpe -t 50 -H SERV021-N2 -c check_tasksched -a "filter=title eq 'Exchange Journal'" 'critical=most_recent_run_time < -1w' empty-state=critical 'empty-syntax=CRITICAL: Exchange Journal NOT found' 'detail-syntax=${title} is stale more than -1w'
CRITICAL: Exchange Journal NOT found
From Node 1 it works.
root@serv017:/usr/local/nagios/etc/objects/windowsservers# /usr/lib/nagios/plugins/check_nrpe -t 50 -H SERV021-N1 -c check_tasksched -a "filter=title eq 'Exchange Journal'" 'critical=most_recent_run_time < -1w' empty-state=critical 'empty-syntax=CRITICAL: Exchange Journal NOT found' 'detail-syntax=${title} is stale more than -1w'
: All tasks are ok|'Exchange Journal_exit_code'=0;0;0 'Exchange Journal_most_recent_run_time'=1539637200;0;1539044570
I attached some images.
The attachment Exchange Journal Task.PNG is no longer available
Powershell view
the task
Exchange Journal Task.PNG (4.91 KiB) Viewed 2599 times
Can you post your nsclient.ini file from both servers so we can check to see if there are any differences?
Do you see and errors in the nsclient.log file when you are polling the server that is generating the error?
Be sure to check out our Knowledgebase for helpful articles and solutions!
I'm not sure how nsclient++ finds the scheduled jobs so it may be more fruitful to pose this to their forums, but make sure that the module is installed and enabled first. On my nsclient++ machine this required running "nscp settings --activate-module CheckTaskSched --add-default" in the c:\program files\nsclient++ directory. Once that was installed and enabled I could see scheduled tasks by running "nscp test" and then "check_tasksched" in the nsclient++ directory.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
The configurations are identical in all the meaningful ways.
To clarify - running "nscp test" and then "check_tasksched" in the nsclient++ directory didn't show the job? If so, then it sounds like something with the nsclient++ module. https://exchange.nagios.org/directory/P ... ks/details looks like it could be an alternative.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.