Page 1 of 1

Windows server 2012: UNKNOWN: No Handler For That Command

Posted: Wed Oct 17, 2018 9:19 am
by nms
Hi,

I have set up a windows server 2012 with NSClient. All works well for check_nt however when adding a monitor to check the disk i/o using nrpe I am receiving UNKNOWN: No Handler For That Command.

Code: Select all

[nagios@am1nms-nagiosxi ~]$ /usr/local/nagios/libexec/check_nrpe -H haa-sim-PayGW1-p_w-itops -t 30 -c check_ms_win_disk_load 
UNKNOWN: No handler for that command
This script works well since we have another windows nodes using it (different type of os though).

I have spent some time going through the ini file but can't get it to work. Can you shed some light on why I have this error being returned?

I have attached the ini file for your perusal.

Thanks in advance.

Re: Windows server 2012: UNKNOWN: No Handler For That Comman

Posted: Wed Oct 17, 2018 10:59 am
by npolovenko
Hello, @nms. I see that you commented out the external scripts section in the NSC.ini file. Can you try uncommenting it, restarting the nsclient service and rerunning the command again?
;[/settings/external scripts/scripts]
;check_ms_win_disk_load = cmd /c echo scripts\check_ms_win_disk_load.ps1 $ARG1$; exit $LastExitCode | powershell.exe /noprofile -command -
Also, would you consider upgrading the nsclient version? I tested this script on the 0.5.2 version and it worked fine.