Linux (VMWARE 3.02) UNC incorrect disk space result

Remote Monitoring Agent for Linux, FreeBSD, and other UNIX-like platforms.
Post Reply
mbulles01
Posts: 3
Joined: Wed Oct 24, 2007 3:35 am

Linux (VMWARE 3.02) UNC incorrect disk space result

Post by mbulles01 »

Hi,

We installed RMA agent v1.25 on our Esx v3.02 server host.

The RMA agents works.

We try to monitor free disk (/volumes/disk1 for example) space via unc path.

The value that is returned by RMA Agent as being free space is slightly different than the value the OS (VMWARE ESX v3.02) returns.

Rma returns free space of 122 GB but the OS returns only 96 GB.

Who knows ?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

"UNC" test method is able to return two different "free space" values: free space for current user and the total free space. What exact free space parameter have you specified in "Test properties" window for UNC test method?

Regards,
Max
mbulles01
Posts: 3
Joined: Wed Oct 24, 2007 3:35 am

Post by mbulles01 »

The test method is: UNC (availability/free space)
the UNC path is /vmfs
Alert when free space (for caller) less than 100 GB
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

RMA uses pretty standard function statfs() to retrieve free space information. We don't know why it does not work on your system.
May we have telnet access to your system?

Regards
Alex
mbulles01
Posts: 3
Joined: Wed Oct 24, 2007 3:35 am

Post by mbulles01 »

Hi ALex,

Thanx for your quick answer.

Our corporate policy does not allow access to our systems by foreign (unknown) companies..but....

The good stuff is my collegue made a workaround.

The problem is that the command you mentioned (statfs) is not known in VMWARE ESX 3.x .

Workaround:

Use a shell script as test method to check the free space of your LUNs:

#!/bin/sh
if [ $# -ge 1 ]
then
OS=`uname`
case $OS in
Linux) LUNFREE=`vdf -h | grep $1 | awk '{printf "%d\n",$3}'`;;
*) echo 'ScriptRes:Unknown:script is not designed for '$OS
exit;;
esac
if [ $LUNFREE -gt $1 ]
then
echo "ScriptRes:Bad:"$LUNFREE
else
echo "ScriptRes:Ok:"$LUNFREE
fi
else
echo 'ScriptRes:Unknown:not enough parameters specified'
fi
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

mbulles01 wrote:The good stuff is my collegue made a workaround.

The problem is that the command you mentioned (statfs) is not known in VMWARE ESX 3.x .
Workaround:
Use a shell script as test method to check the free space of your LUNs:
Actually, statfs() is an API function, not command line utility. Anyway, script looks great. Thank you for posting it. Probably, it helps other customers.

Regards,
Max
Post Reply