ERROR: Invalid return from command: check_drivesize

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: ERROR: Invalid return from command: check_drivesize

Post by jyoti22 »

[root@xi ~]# /usr/local/nagios/libexec/check_nt -V
check_nt v2.0.3 (nagios-plugins 2.0.3)


COMMAND: /usr/local/nagios/libexec/check_nt -H xyz.net -s "" -p 12489 -v USEDDISKSPACE -l W -w 85 -c 90
OUTPUT: NSClient - ERROR: No performance data from command: check_drivesize
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: ERROR: Invalid return from command: check_drivesize

Post by Box293 »

On your Windows server run these commands:

Code: Select all

cd "\Program Files\NSClient++\" 
nscp settings --path /settings/log --key level --set debug
Restart the NSClient++ Service.

Now go and perform the following command test:

Code: Select all

/usr/local/nagios/libexec/check_nt -H xyz.net -s "" -p 12489 -v USEDDISKSPACE -l W -w 85 -c 90
After it completes post the results from the nsclient.log file created on the Windows server.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: ERROR: Invalid return from command: check_drivesize

Post by jyoti22 »

nsclient.log

2016-02-24 11:38:52: error:c:\source\master\modules\NRPEServer\NRPEServer.cpp:123: Certificate not found: C:\Program Files\NSClient++/security/certificate.pem (generating a default certificate)
2016-02-24 11:38:52: error:c:\source\master\modules\NRPEServer\NRPEServer.cpp:123: CA not found: C:\Program Files\NSClient++/security/ca.pem (generating a default CA)
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: ERROR: Invalid return from command: check_drivesize

Post by rkennedy »

What is the result from running the command above?
/usr/local/nagios/libexec/check_nt -H xyz.net -s "" -p 12489 -v USEDDISKSPACE -l W -w 85 -c 90
Did @Box293's suggestion make any difference?
Former Nagios Employee
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: ERROR: Invalid return from command: check_drivesize

Post by jyoti22 »

[root@irv-XI ~]# cd /usr/local/nagios/libexec
[root@irv-XI libexec]# ./check_nt -H xyz.net -s "" -p 12489 -v USEDDISKSPACE -l W -w 85 -c 90
NSClient - ERROR: No performance data from command: check_drivesize
Last edited by jyoti22 on Wed Feb 24, 2016 5:53 pm, edited 1 time in total.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: ERROR: Invalid return from command: check_drivesize

Post by Box293 »

Can you open Computer Management and go to Storage > Disk Management

Can you share a screenshot of the W drive.

I've done some tests here and that error seems to occur when the disk doesn't exist.

Can you confirm that irv-ctxapp65-03.epicor.net is resolving to the correct IP address of the server being monitored.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked