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

ERROR: Invalid return from command: check_drivesize

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ERROR: Invalid return from command: check_drivesize

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: ERROR: Invalid return from command: check_drivesize

Post 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)
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: ERROR: Invalid return from command: check_drivesize

Post by hsmith »

Are the permissions on C and W the same?
Former Nagios Employee.
me.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: ERROR: Invalid return from command: check_drivesize

Post 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
Nagios XI 5.8.1
https://outsideit.net
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: ERROR: Invalid return from command: check_drivesize

Post by lmiltchev »

jyoti22, have you tried upgrading NSClient++ as suggested by WillemDH? Did this resolve the issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
jyoti22
Posts: 254
Joined: Mon Mar 23, 2015 4:50 am

Re: ERROR: Invalid return from command: check_drivesize

Post by jyoti22 »

Thanks. I'll upgrade the version and keep you posted on update.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: ERROR: Invalid return from command: check_drivesize

Post by rkennedy »

Sounds good, let us know the result.
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 »

Upgraded agent to version 0.5.0.22. However still same error on W: drive monitoring.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: ERROR: Invalid return from command: check_drivesize

Post 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
Former Nagios Employee
Locked