check_npre UNKNOWN: No handler for that command”
check_npre UNKNOWN: No handler for that command”
Good Afternoon,
I am having difficulty with the ./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates for the plugin - Check Windows Updates Powershell. Powershell execution works great, aw well as, command line from inside the remote windows machine; however, when I login into the Nagios server and switch dir to
cd /usr/local/nagios/libexec
And run the following:
./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates
I receive the following error:
UNKNOWN: No handler for that command” error
Can someone please let me know what I am doing wrong, I have checked the nsc.ini file and everything seems right.
Thanks in advance.
I am having difficulty with the ./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates for the plugin - Check Windows Updates Powershell. Powershell execution works great, aw well as, command line from inside the remote windows machine; however, when I login into the Nagios server and switch dir to
cd /usr/local/nagios/libexec
And run the following:
./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates
I receive the following error:
UNKNOWN: No handler for that command” error
Can someone please let me know what I am doing wrong, I have checked the nsc.ini file and everything seems right.
Thanks in advance.
Re: check_npre UNKNOWN: No handler for that command”
Can you post your nsc.ini here with any sensitive information edited out?
Former Nagios Employee.
me.
me.
Re: check_npre UNKNOWN: No handler for that command”
Please see text file attached! Thanks
You do not have the required permissions to view the files attached to this post.
Re: check_npre UNKNOWN: No handler for that command”
Do any check_nrpe checks work against this machine? It looks like you have a lot of stuff commented out, including ;check_updates=check_updates.vbs
Former Nagios Employee.
me.
me.
Re: check_npre UNKNOWN: No handler for that command”
Honestly, I am not too sure. All I know is that the remote windows server is reporting metrics back to Nagios Server XI...see attached!
Also, I thought commented line items might be the issue...
Also, I thought commented line items might be the issue...
You do not have the required permissions to view the files attached to this post.
Re: check_npre UNKNOWN: No handler for that command”
Can you update your nsc.ini and uncomment the line specified above?
Restart the NSClient++ service, and then run a check manually on Nagios for that service. What did the Status Information change to?
Code: Select all
;check_updates=check_updates.vbs
Former Nagios Employee
Re: check_npre UNKNOWN: No handler for that command”
So I uncommented the line that you specified and restarted the NSC client from the command line...and I get the same status:
UNKNOWN: No handler for that command
The ./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates -> is commented out using the ;...does that matter?
UNKNOWN: No handler for that command
The ./check_nrpe -H <Remote Windows IP address> -t 120 -p 5666 -c check_updates -> is commented out using the ;...does that matter?
Re: check_npre UNKNOWN: No handler for that command”
I noticed another check_updates in your config -
Which script were you using to check this prior? Do you know if both the .vbs and .ps1 files are working?
Code: Select all
;check_updates=cmd /c echo scripts\Check-Updates.ps1; exit $LastExitCode | powershell.exe -command -
Former Nagios Employee
Re: check_npre UNKNOWN: No handler for that command”
I have uncommented both lines mentioned in this post and I still receive the same error. I am using this doc...https://assets.nagios.com/downloads/nag ... ios-XI.pdf and I haven't tried the *.vbs script this is the only one that I was aware of.
Re: check_npre UNKNOWN: No handler for that command”
It actually looks the .pdf you posted is for the .ps1 script. Can you comment out the check_updates=check_updates.vbs line and then try again?
Former Nagios Employee