View previous topic :: View next topic |
Author |
Message |
mbulles01
Joined: 24 Oct 2007 Posts: 3
|
Posted: Wed Oct 24, 2007 4:12 am Post subject: Linux (VMWARE 3.02) UNC incorrect disk space result |
|
|
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 ? |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Wed Oct 24, 2007 5:16 am Post subject: |
|
|
"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 |
|
Back to top |
|
|
mbulles01
Joined: 24 Oct 2007 Posts: 3
|
Posted: Wed Oct 24, 2007 6:29 am Post subject: |
|
|
The test method is: UNC (availability/free space)
the UNC path is /vmfs
Alert when free space (for caller) less than 100 GB |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Oct 24, 2007 8:18 am Post subject: |
|
|
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 |
|
Back to top |
|
|
mbulles01
Joined: 24 Oct 2007 Posts: 3
|
Posted: Thu Oct 25, 2007 1:13 am Post subject: |
|
|
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 |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu Oct 25, 2007 1:44 am Post subject: |
|
|
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 |
|
Back to top |
|
|
|