VMware Cloud Community
Sravan_k
Expert
Expert

Wrong information from Horizon User Session Statistics report

Hi,

ooajala

I am trying to generate user session statistics report [which is one of the default report] by using "Pod users", after generating the report I found that the total session time for individual users is showing wrong.

Please let me know how to fix/resolve/workaround this issue.

Thank you,

Vkmr.

19 Replies
ooajala
Enthusiast
Enthusiast

Yes you are right. Most of the session metrics coming from the Horizon Adapter for vROPs are flawed. However, if you want accurate user session statistics or user session counts, use the VDI Desktop Pool object.

Let me know this works out for you.

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
Sravan_k
Expert
Expert

Thanks for responding Ooajala,

I am trying to generate report from "VDI Desktop session Satistics report" with the help of "Pod Users Object", I found that, now it is giving user session duration information based on current user session.

but I am looking for information on total duration that user spends on VDI Desktop with in a week time ----- please let me know how can I achieve it?

Thank You,

Vkmr.

Reply
0 Kudos
ooajala
Enthusiast
Enthusiast

In order to achieve this, you will create a new view and use the following steps:

1. Under Presentation > Select List

2. Under Subjects > Select Horizon Adapter > VDI Deskop Session

3. Under Data > Expand Session > Double click Session Duration (hours)

4. Under the Data tab to the right of the window - Change Transformation to Sum > Click on Show Advanced Settings > Change Roll up interval to 1 Week

pastedImage_6.png

5. As usual, select your source which would be the VDI Environment.

6. That's it!

Let me know if you have any additional questions.

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
Sravan_k
Expert
Expert

Thank you one's again for responding Ooajala,

After creating this View and added it to report and generated the report.

I am still not able to get accurate information.

My environment:

Pool Type: Floating Pool

View: 7.0.2

Vrops: 6.3

I am trying to get total duration (hours) of user's spending on VDI during a period of week [Note: user will log-off and log-on back to Floating pool VDI Daily]

Thank you;

Vkmr.

Reply
0 Kudos
ooajala
Enthusiast
Enthusiast

What makes the information inaccurate? The transformation should sum up total hours and you are rolling up data for a week's period. The session duration metric takes into account that the user logs off and on. Unless maybe there is a different metric you could use for session logon duration. Let me check on that.

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
Reply
0 Kudos
Sravan_k
Expert
Expert

Please take the below example as reference

let say, User1, User2 and User3

user1 had 5 sessions in a week and he spend's 40 hours [8, 8, 8, 8, 8]

user2 had 3 sessions in a week and she spend's 40 hours [8, 8, 24]

user3 had 6 sessions in a week and he spend's 56 hours [16, 8, 8, 8, 12, 4]

Now if I generate report I am seeing as below table [in this report I am getting metrics based on current session, even thou I am saying to sum-up for week].

User Name
Duration
User18 Hours
User224 Hours
User34 Hours

I am expecting to see report as below:

User Name
Duration (used in a week)
User140 hours
User240 hours
User356 hours

Thank you,

Vkmr.

ooajala
Enthusiast
Enthusiast

OK I think I figured it out. But you might have to do a manual test to ensure it is truly working.

1. Under Transformation, make sure it is set to Last.

2. Do not change the Roll up interval: Make sure it is set to None

3. Under Time Settings tab, change the Relative Date Range to 1 Week

That should do it. Let me know if your results are accurate at this point.

--
*** If you like my response, please click "Like" below, if you think I answered your question to the best of my abilities, please mark post as Correct Answer ***

3x vROps Environments implemented across my organization. VDI vROPs 8.4 ::: Epic vROPs 8.4 ::: Shared vROPs 7.0
vROPs Adapters in use: EpicCare & Horizon View Adapter 2.1
dtaliafe
Hot Shot
Hot Shot

If you're using a floating pool I think that looking at the 'VDI Desktop Session' objects could be a problem.  vROps creates a new VDI Desktop Session for each user/desktop combination.  So if your users often get a different desktop from the floating pool you'll have multiple instances of VDI Desktop Sessions for each user, each with their own session metrics.  For example:

User1:Pool:Desktop1     8 hours

User1:Pool:Desktop2     16 hours

If this is the case, I would try changing the subject of your view to the 'User' object type instead of VDI Desktop Session.  There's a session duration metric for the User that I think should track their logon time regardless of which desktop they get.

Sravan_k
Expert
Expert

Hi Ooajala,

thank you so much for replying back

no luck, I tried doing it but same result.

how can I achieve it?

Thank you,

Vkmr.

Reply
0 Kudos
Sravan_k
Expert
Expert

Thanks for reply Dtaliafe,

If I use 'user' in subject I am not getting correct information in report.

Note: I am using "User" as subject before starting this discussion

Reply
0 Kudos
Sravan_k
Expert
Expert

Hi dtaliafe​,

I am trying to achieve collecting correct metrics, I tried with different transformation using "User"

Please give me some thoughts on this.

Thank you,

Vkmr.

Sravan_k
Expert
Expert

Hi Ooajala,

Can we achieve it with the help of super matrices?

Thank you,

Vkmr.

Reply
0 Kudos
dtaliafe
Hot Shot
Hot Shot

I looked at this in my environment and using the User object and the metric 'Session|User Desktop Duration Last Interval (hours)' should give you the correct time when totaled using a sum transformation.  I had not looked at this in a while and noticed that the out of box user sessions report is now using the User object (it used to use VDI Desktop Session) and so I think that the out of box report should also work for floating pools.

I'm wondering if this could be a collection issue?  Can you confirm that the metrics are being collected consistently while the user is logged in?  Go to the user in vROps and look at the metric graph under all metrics.  You should see a point collected for each cycle (every 5 mins by default).  It should be above 0 when they are logged in.

user_metric1.png

Adding all the intervals should be the total time they were logged in.

Sravan_k
Expert
Expert

Thank you so much for reply,

I just cross checked and found that metrics are collecting, please see the below graph.

metrics-collecting(4h27min).PNG 

dtaliafe
Hot Shot
Hot Shot

It looks to me that you're not consistently getting data.  A straight line connecting two points on the graph usually means  there is no data between those two data points -  it is just connecting the two points with a line.  In your screenshot starting just before 12pm and going up to about 2pm it looks like it is just a straight line connecting a point on each end.  Zoom in on that period and you should see points on the line for each data point collected.  You should have a point on the graph every 5 mins.  If it is just a flat line like it appears to be in your screenshot then I don't think data was being collected.  You might want to open a support request to help troubleshoot this.  Usually when we have problems like this it is the agents on the desktops. Sometimes reinstalling them or making sure they are the same version as the V4H adapter will fix it.  I would probably start by looking at them.

Reply
0 Kudos
Sravan_k
Expert
Expert

So I have to reinstall my view agent?

Reply
0 Kudos
dtaliafe
Hot Shot
Hot Shot

There's a separate desktop agent for vROps for Horizon View.  Install/reinstall the vROps desktop agent.  Some of the vROps functionality is included in the View agent and technically you may or may not need the vROps agent installed, but historically when I've had these types of issues VMware support has always advised me to install the vROps for Horizon agent that matches the version of the vROps for Horizon adapter you are running.

Reply
0 Kudos
Sravan_k
Expert
Expert

I don't have any "desktop agent for vROps for Horizon View"

I am using vRops 6.3 and view 6.0.2

correct me if I am wrong, as per view version 6.0.2 we don't need to user any agents?

ref: "vRealize Operations Manager 6.0.1 Documentation Center"

Sravan_k
Expert
Expert

is there any way to install View agent with custom command? are it is normal process of installation?

Reply
0 Kudos