Page 1 of 1
Vmware Esxi hosts service issue:
Posted: Thu May 29, 2014 5:08 am
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..
Re: Vmware Esxi hosts service issue:
Posted: Thu May 29, 2014 12:13 pm
by lmiltchev
Can you show the actual commands that you are running from the command line?
Re: Vmware Esxi hosts service issue:
Posted: Fri May 30, 2014 3:38 am
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;;
Re: Vmware Esxi hosts service issue:
Posted: Fri May 30, 2014 1:54 pm
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?
Re: Vmware Esxi hosts service issue:
Posted: Fri May 30, 2014 6:55 pm
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.
Re: Vmware Esxi hosts service issue:
Posted: Mon Jun 02, 2014 3:55 am
by Rupender
Hi,
Thanks, after upgrading the version, now it's working fine.