Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm taking a part in developing some application which will run on a virtualized platform, currently it's going to be on VMware ESXi but I would not exclude the KVM option.

The application is real-time and going to be very sensitive to resource shortage, especially to CPU and network bandwidth. Because of this extreme sensitivity we need some health monitoring mechanism that will be able to gather statistics about the system resources provided to a specific virtual machine with our application running inside. It may have a feature to record collected statistics to a log file or send alarms. It’s not a problem to collect such data from the host (hypervisor) level, but the application running inside the VM hasn’t got the required permissions, so cannot access ESXi API as well.

share|improve this question
add comment

3 Answers

I'm not sure there is enough information here for us to help you. What guest operating system(s) do you need this monitoring data from? Would you have privileged (root/administrator) access inside those guests?

There are plenty of way to collect resource utilization data (top,sar,wmic,powershell) inside various operating systems, and still more ways to make that data readable or push it to another host, so your question seems incomplete or just vague, sorry.

share|improve this answer
    
Hi. Thank you for your answer. The guest OS is customized distribution of CentOS 5.3 Yes, I have "root" privileges inside of guest OS. I need to collect data about current resource allocation from host level. –  NetBear Jun 5 '11 at 12:36
add comment

If you are looking at collecting host/hypervisor-layer information from within a running guest, then one possible approach may be to collect "drop files" (containing the running hypervisor statistics) from the hypervisor/host at the guest. It's delayed-timed at best, but still better than not having the context of the current hypervisor/host state.

share|improve this answer
add comment

All you need to do is install vSphere SDK for Perl in that VM and use it to pull statistics from the vCenter.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.