Vmware Esxi hosts service issue:

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Vmware Esxi hosts service issue:

Post by Rupender »

Hi,

Yesterday i added 4 Esxi host in NagiosXI R1.0 after that i found some error and updated vmware SDK then all services are working fine except two services.

Below error is coming from 2 hosts out of 4 Esxi hosts:

ESX3 CRITICAL - Cant call method network on an undefined value at /usr/local/nagios/libexec/check_esx3.pl line 856.


And this following error is coming from 1 host out of 4 Esxi host:

ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065.


Thank you for your kind help..
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Vmware Esxi hosts service issue:

Post by lmiltchev »

Can you show the actual commands that you are running from the command line?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Vmware Esxi hosts service issue:

Post by Rupender »

[root@localhost ~]# /usr/local/nagios/libexec/check_esx3.pl -H 192.X.X.99 -f /usr/local/nagiosxi/etc/components/vmware/192_X_X_99_auth.txt -l NET
ESX3 CRITICAL - Can't call method "network" on an undefined value at /usr/local/nagios/libexec/check_esx3.pl line 856. | net_receive=341.00KB;; net_send=1812.00KB;;
[root@localhost ~]# /usr/local/nagios/libexec/check_esx3.pl -H 192.X.X.98 -f /usr/local/nagiosxi/etc/components/vmware/192_X_X_99_auth.txt -l NET
ESX3 CRITICAL - Can't call method "network" on an undefined value at /usr/local/nagios/libexec/check_esx3.pl line 856. | net_receive=14032.00KB;; net_send=19813.00KB;;
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Vmware Esxi hosts service issue:

Post by slansing »

Closing your other thread as you have these two duplicates up, also, what are the differences between the esxi host that is giving you the "division by zero" error and the ones that are working?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Vmware Esxi hosts service issue:

Post by Box293 »

Did you check your version and update it as per Yancy's suggestion in your other thread?
yancy wrote:We had a similar post and it turned out a datastore had been disconnected. However, even so, the error should be caught before giving a division by zero message.

He was using on older verision of check_esx3 which may have been corrected in newer versions.

Can you check what version your using.

cat /usr/local/nagios/libexec/check_esx3.pl | grep "VERSION"

$VERSION = '0.5.0';
The 0.5.0 version can be downloaded here:
http://exchange.nagios.org/directory/Pl ... st/details

I'm pretty sure this will fix most of your issues.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Rupender
Posts: 43
Joined: Fri Aug 16, 2013 4:07 am

Re: Vmware Esxi hosts service issue:

Post by Rupender »

Hi,

Thanks, after upgrading the version, now it's working fine.
Locked