Windows server 2012: UNKNOWN: No Handler For That Command

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nms
Posts: 222
Joined: Wed Sep 28, 2016 9:35 am

Windows server 2012: UNKNOWN: No Handler For That Command

Post 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.
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked