how do I graph VMWare vCenter Server

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
whysyn
Posts: 2
Joined: Tue Dec 09, 2008 10:09 am

how do I graph VMWare vCenter Server

Post by whysyn »

Has anybody ever graphed a VMWare VCenter server?

As far as I understand it, vCenter stores stats for all ESX servers and guests that it manages, and I'd love to be able to graph CPU, memory, disk, and network stats from this.

Any experience?

Thanks!
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

My advice: Just monitor/graph your VM's as you would do with normal physical machines.
Statistics gathered this way can also be "compared" with real physical machines

2 Alternatives, but I would not use them:
You could use the VMware SDK(running on port 8443) to gather some statistics, I've seen no template for this, so you have to develop you own.

You also can get VM statistics using SNMP on ESX hosts, but when you migrate a VM to another host(for example VMotion), the VM's counters on the 'source' ESX server are gone. Template for this can be found on this forum.
whysyn
Posts: 2
Joined: Tue Dec 09, 2008 10:09 am

Post by whysyn »

The problem is, we host a lot of VM guests as a service, like "virtual colocation" so we don't have access to each guest to configure monitoring.

The most important part I need to monitor is bandwidth per guest for billing reasons.

With guests bouncing from host to host, I obviously can't do it directly from each ESX server, so I guess that leaves me with trying the SDK route (which I hadn't even thought of).

Thanks for your input!
YoMarK
Cacti User
Posts: 89
Joined: Fri Feb 02, 2007 8:36 am
Location: Eindhoven/The Netherlands

Post by YoMarK »

Another alternative would be to extract the data from the VirtualCenter database, and this should not be to hard if you figure out how it's stored in the database(and the data is definitely in there). The build-in reports in VirtualCenter also generate using data from the virtualcenter database.
If you want to graph it in cacti you could then create a script which extracts the transferred KB's every 5 minutes per VM.
smashedface
Posts: 1
Joined: Mon May 03, 2010 2:24 am

Post by smashedface »

Bumping this post.

Im after this exact thing. Monitor our hosts via vCenter for billing purposes.
Have you found a way to get this working? Or anyone else for that matter?

As i understand it, vCenter polls its hosts so i should not need (and i can't) monitor via our ESXi server sadly.

I hope someone of you have got this working and can tell me how to do it :)
User avatar
Hyperlord
Cacti User
Posts: 211
Joined: Tue Feb 10, 2009 3:24 am
Location: Frankfurt (a.M.), Germany

Post by Hyperlord »

I hope for that, too :)
Om Tat Sat
gsaray101
Cacti User
Posts: 233
Joined: Thu May 17, 2007 9:18 am

Re: how do I graph VMWare vCenter Server

Post by gsaray101 »

has anything came out retrieving data from the vcenter to populate cacti graphs?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests