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

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

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

Postby rwood56847 » Tue Jun 11, 2013 11:32 am

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

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

Postby slansing » Tue Jun 11, 2013 12:09 pm

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!
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

Postby rwood56847 » Wed Jun 12, 2013 11:10 am

Reran through the plugins install. Results are attached. Still no plugins in libexec just an eventhandlers folder.
Attachments
plugins.txt
(51.51 KiB) Downloaded 278 times
rwood56847
 
Posts: 4
Joined: Tue Jun 11, 2013 11:15 am

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

Postby abrist » Wed Jun 12, 2013 12:30 pm

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.
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

Postby rwood56847 » Wed Jun 12, 2013 12:41 pm

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

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

Postby abrist » Wed Jun 12, 2013 12:59 pm

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.
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

Postby lmiltchev » Wed Jun 12, 2013 1:08 pm

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 13506
Joined: Mon May 23, 2011 12:15 pm

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

Postby rwood56847 » Wed Jun 12, 2013 1:20 pm

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

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

Postby abrist » Wed Jun 12, 2013 1:27 pm

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


Return to Community Support

Who is online

Users browsing this forum: Auel, Google [Bot], igae1, JONA-PMS and 41 guests