Update ESX3 plugin

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Update ESX3 plugin

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update ESX3 plugin

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Re: Update ESX3 plugin

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update ESX3 plugin

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Re: Update ESX3 plugin

Post by peterepka »

How would i find those command definitions ?
Within the service ?
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Re: Update ESX3 plugin

Post by peterepka »

is this the command ?
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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Re: Update ESX3 plugin

Post 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
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Re: Update ESX3 plugin

Post 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
peterepka
Posts: 20
Joined: Wed Aug 13, 2014 11:23 am

Re: Update ESX3 plugin

Post by peterepka »

ok - under all entries for check_command, it refers to the NAME1_auth.txt file that DOES exist
Locked