Page 1 of 2
ERROR: Invalid return from command: check_drivesize
Posted: Mon Feb 15, 2016 8:28 am
by jyoti22
Hi Team,
On few of the Windows boxes I am getting below error for W: Drive monitoring. However C: Drive monitoring working fine. W: drive is present on these servers. Please Help.
COMMAND: /usr/local/nagios/libexec/check_nt -H irv-xxx-03.abc.net -s "" -p 12489 -v USEDDISKSPACE -l W -w 85 -c 90
OUTPUT: NSClient - ERROR: Invalid return from command: check_drivesize
COMMAND: /usr/local/nagios/libexec/check_nt -H irv-xxx-03.abc.net -s "" -p 12489 -v USEDDISKSPACE -l C -w 85 -c 90
OUTPUT: C:\ - total: 114.90 Gb - used: 63.80 Gb (56%) - free 51.10 Gb (44%) | 'C:\ Used Space'=63.80Gb;97.66;103.41;0.00;114.90
Re: ERROR: Invalid return from command: check_drivesize
Posted: Mon Feb 15, 2016 1:18 pm
by lmiltchev
What is the NSClient++ version that you are currently using?
Code: Select all
/usr/local/nagios/libexec/check_nt -H <client ip> -s "password" -p 12489 -v CLIENTVERSION
How large is drive W:? Is this a network drive?
Re: ERROR: Invalid return from command: check_drivesize
Posted: Tue Feb 16, 2016 1:15 pm
by jyoti22
Nagios agent version is 0.4.3.143. W: drive is not network drive and have same size as of C: drive (120GB)
Re: ERROR: Invalid return from command: check_drivesize
Posted: Tue Feb 16, 2016 3:26 pm
by hsmith
Are the permissions on C and W the same?
Re: ERROR: Invalid return from command: check_drivesize
Posted: Tue Feb 16, 2016 3:37 pm
by WillemDH
This seems like a bug in NSClient++. Check out this issue I created. It was solved in 0.5.0.17.
https://github.com/mickem/nscp/issues/202
Could you try the latest NSClient version, which is 0.5.0.22 and test if the issue is solved?
https://github.com/mickem/nscp/releases/tag/0.5.0.22
Grtz
Re: ERROR: Invalid return from command: check_drivesize
Posted: Wed Feb 17, 2016 11:22 am
by lmiltchev
jyoti22, have you tried upgrading NSClient++ as suggested by WillemDH? Did this resolve the issue?
Re: ERROR: Invalid return from command: check_drivesize
Posted: Wed Feb 17, 2016 11:27 am
by jyoti22
Thanks. I'll upgrade the version and keep you posted on update.
Re: ERROR: Invalid return from command: check_drivesize
Posted: Wed Feb 17, 2016 1:39 pm
by rkennedy
Sounds good, let us know the result.
Re: ERROR: Invalid return from command: check_drivesize
Posted: Fri Feb 19, 2016 11:03 am
by jyoti22
Upgraded agent to version 0.5.0.22. However still same error on W: drive monitoring.
Re: ERROR: Invalid return from command: check_drivesize
Posted: Fri Feb 19, 2016 12:47 pm
by rkennedy
Can you post the full input / output once again on this new version? I'd like to see if anything changed.
Also, what version of check_nt are you running?
Code: Select all
/usr/local/nagios/libexec/check_nt -V