Page 2 of 2

Re: ERROR: Invalid return from command: check_drivesize

Posted: Fri Feb 19, 2016 4:50 pm
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

Re: ERROR: Invalid return from command: check_drivesize

Posted: Sun Feb 21, 2016 9:47 pm
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.

Re: ERROR: Invalid return from command: check_drivesize

Posted: Wed Feb 24, 2016 2:50 pm
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)

Re: ERROR: Invalid return from command: check_drivesize

Posted: Wed Feb 24, 2016 3:33 pm
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?

Re: ERROR: Invalid return from command: check_drivesize

Posted: Wed Feb 24, 2016 4:13 pm
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

Re: ERROR: Invalid return from command: check_drivesize

Posted: Wed Feb 24, 2016 5:50 pm
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.