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
ayushgoyal278
Posts: 8
Joined: Thu Jun 20, 2013 10:52 am

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

Post by ayushgoyal278 »

After installing nagios core on fedora 14 using the quick installation guide, i get all the services to be critical for localhost and when i click on the red box, it says "Return code of 127 is out of bounds - plugin may be missing" for all the services.

I checked the libexec folder in the nagios folder and it is empty...i think the plugins are not getting installed in that folder inspite of trying to install them twice. Is there anything that i am missing?

Here is the code that I run while installing the plugins when they are downloaded in the tmp folder:
#cd /tmp
#tar xvzf nagios-plugins-1.4.16.tar.gz
#cd nagios-plugins-1.4.16
#./configure --with-nagios-user=nagios --with-nagios-group=nagios
#make
#make install
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 »

Does the plugins installation not complete at any point? Do you receive errors?
ayushgoyal278
Posts: 8
Joined: Thu Jun 20, 2013 10:52 am

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

Post by ayushgoyal278 »

attached are the screenshots when i ran make and make install cmd
Attachments
make error
make error
make install error
make install error
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 installing "libssl-dev", then run again:

Code: Select all

./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install
Let us know if this helped.
Be sure to check out our Knowledgebase for helpful articles and solutions!
ayushgoyal278
Posts: 8
Joined: Thu Jun 20, 2013 10:52 am

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

Post by ayushgoyal278 »

I checked the packages running the cmd
# yum list *ssl*
but there were no libssl packages available instead there were libnussl and libnussl-devel available. I don't know if they are the same so didn't take a chance and looked for openssl packages. Installed openssl and openssl-devel and verified the configuration. Restarted the nagios and httpd service.
It's working now. :) Thank you so much guys.
Can you also please explain why these packages were required and not listed in the pre-reqs.
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 »

They are optional pre-reqs, as some (really limited and rare now-a-days) environments do not need or want to use encryption (think industrial hardware/plcs/etc) in some circumstances. Due to this, we make it optional, though check_nrpe usually defaults to expecting encryption, whereas the nrpe daemon does not pull in ssl packages by default. In the future, just make sure you have the openssl and openssl-devel packages before you build nrpe.
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