Hi,
I'm running vcenter 5.0 with one esxi 4.1.0 and on esxi 5.0. However I'm having trouble getting values from the VMs.
The only info I got with check_vmware.pl was the number of running vm. (My final goal is to poll this from cacti, but it doesn't really change the usage there).
I'm running debian 6.0.3, vsphere sdk Perl 5.0.0-422456.x86_64, and check_vmware 1.13.
Here is what I get from my commands : (I censored machine name an vm name, but it's returned correctly, note that I have space and dash in the vm name)
Code:
root@XXXXX:/usr/share/cacti/site/scripts# perl check_vmware.pl --debug --mode mrtg --server XXXXXX --guest "XXXXXXX" --report net
Code:
Enter username: XXXXXX
Enter password: SIGCHLD
SIGCHLD
Starting.
Connecting
Connected
Server Time : 2011-11-29T09:27:25.80417Z
Trying to locate XXXXXXXX
Report type requested is [net]
Base is Centres de données
Running network report
Retrieving PerfMgr data
Selected interval is: 300
Processing entities:
XXXXXXXXX
Creating query for XXXXXXXXXXX
Start time: 2011-11-24T12:08:00Z
End time : 2011-11-24T12:13:00Z
Retrieving data...
Perfstats retrieved...
Results for name XXXXXXXXXX
Disconnecting...
UNKNOWN
UNKNOWN
Avg Network usage unknown
Any idea ? I'm running to " young " versions ?

Edit : FYI I'm using a readonly user, maybe it's rights aren't high enough ? I don't think so, as I'm able to see my usage in vcenter.