Page 1 of 2
Return code of 127 is out of bounds - plugin may be missing
Posted: Mon Jun 24, 2013 4:17 pm
by ayushgoyal278
I've installed nagios core on my fedora 14 machine using the quickstart guide. When I check the status it shows me the status of the localhost to be "down" and the information next to it says "(Return code of 127 is out of bounds - plugin may be missing)". I remember installing the plugins using the quickstart guide. Can someone please help me resolving the issue.
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Mon Jun 24, 2013 4:20 pm
by slansing
Can you run the following and share the output:
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Mon Jun 24, 2013 4:31 pm
by ayushgoyal278
i assume that was: cd /usr/local/nagios/libexec
Here is the o/p:
[root@ayush ayush]# cd /usr/local/nagios/libexec
[root@ayush libexec]# ls
[root@ayush libexec]#
Basically there is nothing in libexec. It is empty.
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Mon Jun 24, 2013 4:35 pm
by sreinhardt
I would suggest you start by recompiling the plugins. By default the folder above is where they should go without any special flags. Otherwise you can certainly run a locate or find on something like "check_snmp" to try and find where they went.
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Tue Jun 25, 2013 11:30 am
by ayushgoyal278
Can you please guide me on how to do that?
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Tue Jun 25, 2013 12:02 pm
by slansing
Download the plugins tarball from this page, into your /tmp directory:
http://www.nagios.org/download/plugins/
Then:
Code: Select all
tar zxf nagios-plugins-1.4.16.tar.gz
cd nagios-plugins-1.4.16
./configure
make
Now, re-check the libexec directory.
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Tue Jun 25, 2013 12:09 pm
by lmiltchev
Download the tarball from here:
http://sourceforge.net/projects/nagiosplug/files/
Copy it to /tmp directory and run the following commands:
Code: Select all
cd /tmp
tar zxvf 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
Examine to see if you have any compile errors, etc. Check if you have the plugins in the libexec.
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Tue Jun 25, 2013 1:59 pm
by ayushgoyal278
I downloaded the file and installed with the said instructions but it gave me errors and also after that I checked the libexec directory but found nothing. Attached are the 2 screenshots of the error i got. 1st is when i ran "make" and 2nd is when i ran "make install"
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Tue Jun 25, 2013 2:10 pm
by lmiltchev
Run:
then try recompiling again.
Re: Return code of 127 is out of bounds - plugin may be miss
Posted: Tue Jun 25, 2013 2:53 pm
by ayushgoyal278
logged in as root and ran the code:
[root@ayush ayush]# yum install libssl-dev -y
After that recompiled again but no luck. Still the same errors and empty libexec directory.