BaldMansMojo / check_vmware_esx

chech_vmware_esx Fork of check_vmware_api.pl
GNU General Public License v2.0
124 stars 67 forks source link

Can't call method "cpuStatusInfo" #21

Closed phenomic01 closed 10 years ago

phenomic01 commented 10 years ago

Can't call method "cpuStatusInfo" on an undefined value at ../modules/host_runtime_info.pm line 230.

Tested the script on eight ESX Servers - only on one host the issue appears. I can't imagine why. Perhaps you can find anything.

BaldMansMojo commented 10 years ago

See the code:

   if (defined($runtime->healthSystemRuntime))
      {
      $cpuStatusInfo = $runtime->healthSystemRuntime->hardwareStatusInfo->cpuStatusInfo;
      $storageStatusInfo = $runtime->healthSystemRuntime->hardwareStatusInfo->storageStatusInfo;
      $memoryStatusInfo = $runtime->healthSystemRuntime->hardwareStatusInfo->memoryStatusInfo;

This means that the error occurs when trying to get the cpuStatusInfo. This is caused by your vSphere server and can not be handled by my program (unfortunately). Sorry for that.