Return code of 127 is out of bounds - plugin may be missing
-
- Posts: 4
- Joined: Tue Jun 11, 2013 11:15 am
Return code of 127 is out of bounds - plugin may be missing
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
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
-
- 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
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!
-
- Posts: 4
- Joined: Tue Jun 11, 2013 11:15 am
Re: Return code of 127 is out of bounds - plugin may be miss
Reran through the plugins install. Results are attached. Still no plugins in libexec just an eventhandlers folder.
- Attachments
-
- plugins.txt
- (51.51 KiB) Downloaded 383 times
Re: Return code of 127 is out of bounds - plugin may be miss
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.)
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.
"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.
-
- Posts: 4
- Joined: Tue Jun 11, 2013 11:15 am
Re: Return code of 127 is out of bounds - plugin may be miss
[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
/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
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.
"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.
Re: Return code of 127 is out of bounds - plugin may be miss
Try running:
...then re-run:
Let me know if this helped.
Code: Select all
yum install openssl-devel -y
Code: Select all
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 4
- Joined: Tue Jun 11, 2013 11:15 am
Re: Return code of 127 is out of bounds - plugin may be miss
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?
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
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.
"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.