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

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rwood56847
Posts: 4
Joined: Tue Jun 11, 2013 11:15 am

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

Post 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 :)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

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

Post 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!
rwood56847
Posts: 4
Joined: Tue Jun 11, 2013 11:15 am

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

Post by rwood56847 »

Reran through the plugins install. Results are attached. Still no plugins in libexec just an eventhandlers folder.
Attachments
plugins.txt
(51.51 KiB) Downloaded 372 times
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rwood56847
Posts: 4
Joined: Tue Jun 11, 2013 11:15 am

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post by abrist »

try:

Code: Select all

yum install openssl-devel
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

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

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rwood56847
Posts: 4
Joined: Tue Jun 11, 2013 11:15 am

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

Post 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?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked