Page 1 of 1

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

PostPosted: Tue Jun 11, 2013 11:32 am
by rwood56847
Just finished installing 3.5 with the 1.4.16 plugins on CentOS 6. However, when I installed the plugins I noticed some errors while running "make" and "make install" A little bit of background:

I used the quickstart guide on the website for Fedora as instructed but ran into a problem running the make command while installing Nagios. Being new to CentOS I found that make was not installed by default. Around that time I downloaded the nagios install pdf. Make started to work but I skipped over to the the pdf instead on continuing with the web based quickstart. Reviewing both documents they have me downloading things to different sections (tmp dir in one and downloads dir in the other. Once I completed the install I get the "Return code of 127 is out of bounds - plugin may be missing" on my localhost checks. I checked some forums that directed me to check the libexec folder for plugins (such as check_ping). I found none. I stopped the nagios service and reran through the PDF instructions on installing the plugins. But the plugins are not installing in libexec as far as I can tell.

Is there a way to get the plugins installed? If not, is there a way to wipe out Nagios and start from scratch...this time using just the one guide?

I'm a Linux novice and a Nagios novice so please go easy on me :)

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

PostPosted: Tue Jun 11, 2013 12:09 pm
by slansing
It sounds like you must of skipped the plugins installation section for some reason, or it did not complete successfully, could you run through the section for the nagios plugins package and let us know if you see any errors? And what they are? Thanks!

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

PostPosted: Wed Jun 12, 2013 11:10 am
by rwood56847
Reran through the plugins install. Results are attached. Still no plugins in libexec just an eventhandlers folder.

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

PostPosted: Wed Jun 12, 2013 12:30 pm
by abrist
Code: Select all
check_http.c: In function âprocess_argumentsâ:
check_http.c:312: error: âssl_versionâ undeclared (first use in this function)
check_http.c:312: error: (Each undeclared identifier is reported only once
check_http.c:312: error: for each function it appears in.)

Do you have ssl installed (including the devel headers)?
Code: Select all
which openssl
yum list installed | grep openssl

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

PostPosted: Wed Jun 12, 2013 12:41 pm
by rwood56847
[root@pm010308 ~]# which openssl
/usr/bin/openssl
[root@pm010308 ~]# yum list installed | grep openssl
openssl.i686 1.0.0-27.el6_4.2 @updates
openssl098e.i686 0.9.8e-17.el6.centos.2 @base

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

PostPosted: Wed Jun 12, 2013 12:59 pm
by abrist
try:
Code: Select all
yum install openssl-devel

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

PostPosted: Wed Jun 12, 2013 1:08 pm
by lmiltchev
Try running:
Code: Select all
yum install openssl-devel -y

...then re-run:
Code: Select all
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

Let me know if this helped.

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

PostPosted: Wed Jun 12, 2013 1:20 pm
by rwood56847
That did it. Hosts are showing good now.

So the fix was openSSL with dev was not installed. I don;t remeber seeing that in the pre-reqs, is that something that is normally installed on CentOS?

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

PostPosted: Wed Jun 12, 2013 1:27 pm
by abrist
Nope, unfortunately you usually don't get full headers on most distributions these days. I was under the impression that the plugins would build without ssl if necessary. I guess if you have ssl installed, but not the headers it will fail.