Hi Steve,
sorry for my late reply. Yes, we have a HA and DRS Cluster.
Today i found some time to play with the vSphere Management Assistante Appliance:
http://www.vmware.com/appliances/directory/178973 I copied your plugin to the Appliance and started testing.....
First I tested checking the cpu and memory data of a single esx host over the vCenter Server.
Code:
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=memory --host=esx1.votg.global
Memory usage at 12%<BR>(No MEM fairness data)|mem=12%;80;90;0;100
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=cpu --host=esx1.votg.global
CPU usage at 20.42%<BR>(No CPU fairness data)|cpu=20.42%;80;90;0;100
At the second test i did the same query for our HA & DRS Cluster over the vCenter Server.
Code:
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=memory --cluster="HA Cluster #1"
Memory usage at 47.65%<BR>(No MEM fairness data)|mem=47.65%;80;90;0;100
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_cluster.cfg --mode=nagios --report=cpu --cluster="HA Cluster #1"
CPU usage at 32.01%<BR>(No CPU fairness data)|cpu=32.0166666666667%;80;90;0;100
We also have a single esx 4.0 host here, which is not in a cluster. I ran these checks also to this host.
Code:
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_esx0.cfg --mode=nagios --report=memory --host=esx0.votg.global
Memory usage at 34.36%<BR>(No MEM fairness data)|mem=34.36%;80;90;0;100
[vi-admin@vm-test tmp]$ ./check_vmware.pl --config=/tmp/vmware_esx0.cfg --mode=nagios --report=cpu --host=esx0.votg.global
CPU usage at 2.78%<BR>(No CPU fairness data)|cpu=2.78%;80;90;0;100
The No Fairness data problem is still there and VMWare didn't fixed it in vSphere 4.

So we have to wait again....
Best wished from Germany
Dennis