Update ESX3 plugin
Update ESX3 plugin
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update ESX3 plugin
To fix the
run the followingpeterepka wrote:"Return code of 126 is out of bounds - plugin may not be executable"
Code: Select all
chmod +x /usr/local/nagios/libexec/check_esx3.plRe: Update ESX3 plugin
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update ESX3 plugin
Can you post the command definitions for the services that are reporting those errors?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.
Re: Update ESX3 plugin
How would i find those command definitions ?
Within the service ?
Within the service ?
Re: Update ESX3 plugin
is this the command ?
check_command check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/NAME_co_uk_auth.txt!VMFS!!!!!!
check_command check_esx3_host!/usr/local/nagiosxi/etc/components/vmware/NAME_co_uk_auth.txt!VMFS!!!!!!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Update ESX3 plugin
I'd like to see what the command definition is for check_esx3_host
Also, what is the output of this command
Also, what is the output of this command
Code: Select all
ls -l /usr/local/nagiosxi/etc/components/vmware/NAME_co_uk_auth.txtRe: Update ESX3 plugin
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
cannot access the NAMEco_ukauth.txt file:No such file or Directory
Re: Update ESX3 plugin
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
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
ok - under all entries for check_command, it refers to the NAME1_auth.txt file that DOES exist