vFog server was not getting any data for VC even though the Agent services were running.
The connector agent was having problems looking at localhost as the vFog Server name.
Steps to fix the problem are as below:
Stop the vFoglight Collector and Connector services.
Open command prompt and go to the VmWare Agent directory where the agent is installed.
Run the below command
Change the vFog Server name parameter from localhost to Machinename.
Start the Collector and Connector services.
Wait for 2 to 5 minutes and then login to vFoglight and then you will see data for VmWare.