Check_nt: No Performance Data from command


#1

I am new to nagios and have finished studying the NRPE and CHeck by SSL section of my learning curve. I am now in the part where I am learning monitoring the Windows Server.

I have a nagios Server running over Ubuntu and a WIndows Server 2012 R2. I installed the Latest NSCLient++ from the nsclient website.

Now As I have test the Variables in the check_nt plugin in the nagios server, I am getting the following error message. Any ideas? or can anyone guide me? Do i need to configure anything else on the Windows Server where the nsclient++ is installed.

[email protected]:/$ sudo /usr/local/nagios/libexec/check_nt -H 192.168.36.153 -p 12489 -v USEDDISKSPACE -s “OtESscnwLIlXNGR0” -l C NSClient - ERROR: No performance data from command: check_drivesize [email protected]:/$ sudo /usr/local/nagios/libexec/check_nt -H 192.168.36.153 -p 12489 -v UPTIME -s "OtESscnwLIlXNGR0" NSClient - ERROR: No performance data from command: check_uptime [email protected]:/$

I can tell that the port 12489 is open on the windows server from scanning the port using nmap. [email protected]:~$ nmap server4 -p 12489 -Pn

Starting Nmap 7.40 ( https://nmap.org ) at 2017-09-17 18:24 +08 Nmap scan report for server4 (192.168.36.153) Host is up (0.0022s latency). rDNS record for 192.168.36.153: Server4 PORT STATE SERVICE 12489/tcp open unknown

Do I need to define the commands in the monitored server (Windows Host) in the same way I need to define the commands I can call when checking remote linux servers using NRPE?