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..
Vmware Esxi hosts service issue:
Re: Vmware Esxi hosts service issue:
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!
Re: Vmware Esxi hosts service issue:
[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;;
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:
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?
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Vmware Esxi hosts service issue:
Did you check your version and update it as per Yancy's suggestion in your other thread?
http://exchange.nagios.org/directory/Pl ... st/details
I'm pretty sure this will fix most of your issues.
The 0.5.0 version can be downloaded here: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';
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.
Re: Vmware Esxi hosts service issue:
Hi,
Thanks, after upgrading the version, now it's working fine.
Thanks, after upgrading the version, now it's working fine.