Page 1 of 1

check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatusInf

Posted: Thu May 15, 2014 7:56 am
by cowboy6
Hello,

on Nagios XI is error for service "VM Status for VMHost":

ESX3 CRITICAL - Can't call method "cpuStatusInfo" on an undefined value at /usr/local/nagios/libexec/check_esx3.pl line 1295.

This error happens only on two ESXi servers 5.1. It's Blade server HP Proliant BL465c G5 with quad-core AMD Opteron Processor 2356.

On other ESXi servers works ok. Example:

ESX3 OK - 7/9 VMs up, overall status=green, connection state=connected, maintenance=no, All 0 health checks are Green, no config issues

Thank you in advance for your help!

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Thu May 15, 2014 3:34 pm
by sreinhardt
Are these using the same esx version? Also is the installed vmware sdk at or above both of these versions? Generally updating the sdk will resolve issues such as this, if it is below your highest server version.

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Wed Aug 13, 2014 7:33 am
by srcadmin
I have same issue.

NagiosXi is updated, an there are several ESX hosts - all with identical setups. Few of them are reporting this errory, most of them are OK.

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Wed Aug 13, 2014 4:56 pm
by abrist
Are the commands identical? Can you post a few examples?

OP: Are the versions identical?

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Fri Sep 26, 2014 10:06 am
by srcadmin
Any news on that issue?
We have the same problem.
Nagios is 2014R1.4, esx are all same version, same setup.

check_esx3-0.5.pl is latest version.

Response is:

Code: Select all

CHECK_ESX3-0.5.PL CRITICAL - Can't call method "cpuStatusInfo" on an undefined value at /usr/local/nagios/libexec/check_esx3-0.5.pl line 1681.
Check command:

Code: Select all

check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/bugs_bunny_bomb_auth.txt!RUNTIME!
Any clue?

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Fri Sep 26, 2014 11:21 am
by Box293
check_esx3 is now called check_vmware_api:

http://exchange.nagios.org/directory/Pl ... pi/details

I'm confident that if you upgrade to this version your problems will be resolved.

However I also suggest you check out box293_check_vmware:
http://exchange.nagios.org/directory/Pl ... re/details

I'm a bit biased when I say I think it's a better solution.

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Tue Sep 30, 2014 2:28 am
by srcadmin
Thank you for your reply. I wasn't aware of the new script. I think if it is new it should be included in nagiosxi vmware wizard.
On internet i even found check_vmware_esx.pl which seems to be even newer than check_vmware_api.pl. But I'm not sure which one to use.
Now I'm having some other problems with applying the check_vmware_api.pl script. It seems that nagios still uses the check_vmware_esx.pl script. I made a ticket to support.
I'll get back here when I'll resolve that issue, so please leave topic open as I'll report back.

Regards,
Peter

Re: check_esx3 - ESX3 CRITICAL - Can't call method "cpuStatu

Posted: Tue Sep 30, 2014 10:18 am
by tmcdonald
I didn't see this thread before replying to your other one but I also recommend @Box293's solution. It's incredibly well-documented and is definitely worth a look.