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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cowboy6
Posts: 1
Joined: Fri Apr 18, 2014 8:24 am

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

Post 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!
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

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

Post 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.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
srcadmin
Posts: 11
Joined: Wed Aug 13, 2014 6:09 am

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

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

Are the commands identical? Can you post a few examples?

OP: Are the versions identical?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
srcadmin
Posts: 11
Joined: Wed Aug 13, 2014 6:09 am

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

Post 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?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
srcadmin
Posts: 11
Joined: Wed Aug 13, 2014 6:09 am

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

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

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

Post 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.
Former Nagios employee
Locked