I love your script but for some reasons It started to returning Unknown status.
We have vSphere 5.1.
Script worked fine for a long time. On 5.1 version too.
But now I keep getting this results:
./check_vmware.pl --mode nagios --config test-config.vmware --host my.hostname.com --report cpu
Return value:  Perf stats not available at required interval (300s) or invalid instance
I tryed in debug mode:
[root@blabla /usr/local/icinga/libexec]# ./check_vmware.pl --mode nagios --config test-config.vmware --host my.hostname.com --report cpu --debug 1          
Starting.
Connecting
Connected
Server Time : 2013-09-09T07:35:57.413242Z
Report type requested is [cpu]
Base is my.hostname.com
Retrieving PerfMgr data
Selected interval is: 300
Processing entities:
  my.hostname.com
Creating query for my.hostname.com
Start time: 2013-09-09T07:36:00Z
End time  : 2013-09-09T07:41:00Z
Retrieving data...
Disconnecting...
Exiting with status (3)
Perf stats not available at required interval (300s) or invalid instance.
What could be wrong?
Thank you and kind regards.Statistics: Posted by amaze646 — Mon Sep 09, 2013 8:48 pm
]]>