Script to check if file systems are mounted

Hi

I have the following piece of code, running on a solaris 10 O.S., that is not working for NFS file systems:

for vol in `grep -E 'vxfs|ufs|nfs' /etc/vfstab | egrep -v '^#' | awk '{ print $3 }'`
do
 if df -k $vol | grep $vol > /dev/null
 then
  outputOK "Filesystem: $vol    mounted"
 else    outputW  "Filesystem: $vol    NOT MOUNTED"
 fi
done

I think the problem is to print $3 , because on the /etc/vfstab file column 3 does not coincide with the name of the file system.
Can you give me a hint how to solve it

In that case, which column does this have info? Please post the contents of /etc/vfstab.