Page 1 of 2
Update ESX3 plugin
Posted: Mon Feb 04, 2019 7:57 am
by peterepka
Hi All
I have 3 ESX Hosts, monitored by Nagios
I have the error
"ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065 "
I downloaded the esx3-0.5.pl plugin. and placed it within /usr/local/nagios/libexec
i nenamed as follows
mv check_esx3.pl check_esx3-old.pl
and then
mv check_esx3-0.5.pl check_esx3.pl
However this made it worse and now all 3 esx hosts gave the error
"Return code of 126 is out of bounds - plugin may not be executable"
across all services.
Is there an alternative fix for resolving the initial error
"ESX3 CRITICAL - Illegal division by zero at /usr/local/nagios/libexec/check_esx3.pl line 1065 "
Thanks
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 11:18 am
by scottwilkerson
To fix the
peterepka wrote:"Return code of 126 is out of bounds - plugin may not be executable"
run the following
Code: Select all
chmod +x /usr/local/nagios/libexec/check_esx3.pl
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 11:55 am
by peterepka
Hi - that's great. it has cleared all the "return code of 126" errors.
However - i now get 2 x "(Return code of 127 is out of bounds - plugin may be missing) "
under the Datastore Usage for VM Hosts Service. for 2 of the hosts.
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:02 pm
by scottwilkerson
peterepka wrote:Hi - that's great. it has cleared all the "return code of 126" errors.
However - i now get 2 x "(Return code of 127 is out of bounds - plugin may be missing) "
under the Datastore Usage for VM Hosts Service. for 2 of the hosts.
Can you post the command definitions for the services that are reporting those errors?
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:06 pm
by peterepka
How would i find those command definitions ?
Within the service ?
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:09 pm
by peterepka
is this the command ?
check_command check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/NAME_co_uk_auth.txt!VMFS!!!!!!
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:13 pm
by scottwilkerson
I'd like to see what the command definition is for
check_esx3_host
Also, what is the output of this command
Code: Select all
ls -l /usr/local/nagiosxi/etc/components/vmware/NAME_co_uk_auth.txt
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:19 pm
by peterepka
check_command check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/NAMEco_uk_auth.txt!CPU!
cannot access the NAMEco_ukauth.txt file:No such file or Directory
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:24 pm
by peterepka
OK - to clarify, our 3 x hosts have numbers on the end of their names.
1, no error
2 & 3, show error.
2 & 3 do not have corresponding NAME2_auth.txt & NAME3_auth.txt files (they never have)
there is just the 1 x NAME1_auth.txt in the directory /usr/local/nagiosxi/etc/components/vmware
Re: Update ESX3 plugin
Posted: Mon Feb 04, 2019 12:29 pm
by peterepka
ok - under all entries for check_command, it refers to the NAME1_auth.txt file that DOES exist