VMware Cloud Community
tinchito7
Contributor
Contributor

problem getting performance charts

hi guys,

i have a problem getting a performance chart from one of my clusters in th virtual center.

there are various clusters in the virtual center, and only from this one (who has the biggest number of esx host on it) i cannot get a performance chart- it writes "retrieving chart data" and just stucks there..

the version of the vc is 2.5 - and i know there is a plugin to install in the update 4 of vc2.5 - but i'm not able to install it since its installed a internet-less network, and i need the data today.

is there any way of getting the chart data any other way then from the virtual center?

thx!

0 Kudos
4 Replies
Yann77
Enthusiast
Enthusiast

Hi,

I hope it is not too late.

There is a similar issue here not answered too, but it might have been solved by ppohl => http://communities.vmware.com/message/1444796#144479

Your issue could be due to the fact the database is overloaded. You should check if the CPU, Disk, Memory usage are in a reasonable window on the database server. Have you tried using another vSphere client installed on another machine?

I am not sure neither if this is the best method nor if it is supported, here is how I would try to get the stats to build the charts assuming I have not the time to fix the issue in the vSphere client/server and that the problem is not from the database.

1) vCenter uses a SQL Server backend to store data. Stats you need are likely to be stored in the database, if not then the below procedure is useless !http://communities.vmware.com/images/emoticons/happy.gif!.

2) Understand where are stored the stats you need (in which table(s)). Assuming you are not running the express version of SQL Server, you should have a utility called SQL Server Profiler that can capture the requests sent by vCenter.

There is an introduction on how to use this tool there:

This might not be an easy step depending how deep is your knowledge about the vCenter database.

3) Once you found the query(ies) that are run to build the chart in the vSphere client, use an application such as crystal report to build the charts that connects to e.g. a recent backup of your database.

Alternatively, export the results of the queries to a spreadsheet applications and build your charts there.

I highly advise you to work on a recent backup of your database, not on the production one when you attempt to retrieve the stats.

If you have a DBA sitting near you and you are not confident with the above steps, you should discuss with him how to perform them.

I hope this will help.

Yann

Yann77
Enthusiast
Enthusiast

I found further information that might be handy:

Understanding VirtualCenter Performance

http://communities.vmware.com/docs/DOC-5230

Performance Monitoring and Analysis

http://communities.vmware.com/docs/DOC-3930

Few views are available in the vCenter database to easily retrieve stats: VPXV_HIST_STAT_DAILY/MONTHLY/WEEKLY/YEARLY

The definition of the stats are in this table: VPX_STAT_DEF

HTH,

Yann

0 Kudos
tinchito7
Contributor
Contributor

ok, ill try it on monday-

pitty i didnt got this earlier, but it would be nice to work it out anyway.

thx for the help, hope it'll work..

0 Kudos
tinchito7
Contributor
Contributor

well, i did not seemed to get along with the solution you provided me..

about the sql server profiler- its traces current data being running on the db.

exactly what i need is to run a performance chart (i dont even need a chart) to get the average cpu and average memory usage of a single cluster wich contains multiple hosts.

the big problem is that the vmware fundations that were here long before i came, is all messed up- what causes my problem of getting the results i need is that they built the vc database on the system drive! wich of course is lack of space enough to let the db grow..

inspite of that terrible idea, i need to bear with the existing reallity and somehow manage to get this information.

im sure all the data i need is stored in the sql db, but im not so strong in that field- with the sql management studio i see the tables, but i dont know how to get the table contents.. hell, im not even sure wich tables im supposed to look into.

help?

0 Kudos