Page 1 of 1

Return code of 127 is out of bounds - plugin may be missing

Posted: Tue Sep 29, 2015 5:45 am
by vhoover
I recently had to rebuild a crashed Nagios XI vm and when attempting to use the check_esx3.pl plugin I receive the error message
(Return code of 127 is out of bounds - plugin may be missing)
I have verified that the required dependencies and plugin are all present yet none of the service checks work.

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Tue Sep 29, 2015 8:29 am
by tgriep
Could you run the following and post back the results?

Code: Select all

ls -l /usr/local/nagios/libexec/check_esx3.pl
/usr/local/nagios/libexec/check_esx3.pl --help

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Wed Sep 30, 2015 2:22 am
by vhoover

Code: Select all

# ls -l /usr/local/nagios/libexec/check_esx3.pl
     -rwxr-xr-x 1 root root 82841 Dec  1  2014 /usr/local/nagios/libexec/check_esx3.pl
# /usr/local/nagios/libexec/check_esx3.pl --help
     /usr/bin/perl: symbol lookup error: /usr/lib64/perl5/auto/XML/LibXML/Common/Common.so: undefined symbol: Perl_Tstack_sp_ptr

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Wed Sep 30, 2015 6:04 am
by tgriep
It looks like the prerequisites may not of been installed. Can you run the following in a shell as root to install them?

Code: Select all

yum install perl-Nagios-Plugin libuuid* perl-XML-LibXML -y
If you receive any errors installing them, post them here so we can review them.
You may want to go through the install guide below.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Thu Oct 01, 2015 2:18 am
by vhoover
I ran through the installed and it looked as though all was fine but at the bottom of the install I got the following
Transaction Check Error:
file /usr/share/man/man3/XML::SAX::Base.3pm.gz conflicts between attempted installs of perl-XML-SAX-Base-1.04-1.el6.rf.noarch and perl-XML-SAX-0.96-7.el6.noarch
file /usr/share/man/man3/XML::SAX::Exception.3pm.gz conflicts between attempted installs of perl-XML-SAX-Base-1.04-1.el6.rf.noarch and perl-XML-SAX-0.96-7.el6.noarch

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Thu Oct 01, 2015 6:37 am
by jdalrymple
We have instructions to follow that get you past this problem:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Read the prerequisites carefully.

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Fri Oct 02, 2015 1:56 am
by vhoover
sure enough that fixed the issue thanks.

Re: Return code of 127 is out of bounds - plugin may be miss

Posted: Fri Oct 02, 2015 9:20 am
by hsmith
Glad it's resolved, I'll go ahead and close this thread.