Page 1 of 1

ERROR - NRPE - How To Install NRPE v3 From Source

Posted: Mon Jun 18, 2018 10:25 am
by ntobars
Hello team,
I'm trying to install the agent on a Red Hat 6.6 linux server that is not registered, to download packages enable the EPEL repository.

I am following the instructions from the following URL: https://support.nagios.com/kb/article.php?id=515

In the compile stage, I get the following error:

[root @ server01 nrpe-nrpe-3.2.1] # ./configure --enable-command-args
-bash: ./configure: Permission denied
[root @ server01 nrpe-nrpe-3.2.1] #

Also try it in the following way:

[root @ server01 nrpe-nrpe-3.2.1] # sh configure --enable-command-args
checking for a BSD-compatible install ... / usr / bin / install -c
checking what the operating system is ... linux
checking what the distribution type is ... rh
checking what init system is being used ... upstart
checking what inetd is being used ... upstart
checking for which paths to use ... default
checking for which init file to use ... rh-upstart-init
checking for which inetd files to use ... unknown
checking for gcc ... gcc
checking whether the C compiler works ... yes
checking for C compiler default output file name ... a.out
checking for suffix of executables ...
checking whether we are cross compiling ... configure: error: in `/tmp/nrpe-nrpe-3.2.1 ':
configure: error: can not run C compiled programs.
If you meant to cross compile, use `--host '.
See `config.log 'for more details
[root @ server01 nrpe-nrpe-3.2.1] #

Re: ERROR - NRPE - How To Install NRPE v3 From Source

Posted: Mon Jun 18, 2018 4:59 pm
by cdienger
I'm not clear on this - did you run:

yum install -y gcc glibc glibc-common openssl openssl-devel perl wget

? to download and install the required packages? If not, this needs to be done. If you did do this, please provide the config.log created when you try to compile.

Re: ERROR - NRPE - How To Install NRPE v3 From Source

Posted: Wed Jun 20, 2018 9:35 am
by ntobars
Yes, thank you very much.

I managed to solve it after several attempts, what happens is that this server did not have the partitions by default, so after I realized that, install the agent from a different route to the / tmp and manage to execute all the scripts without problems .

Re: ERROR - NRPE - How To Install NRPE v3 From Source

Posted: Wed Jun 20, 2018 10:36 am
by scottwilkerson
Excellent, glad to hear it is resolved!

Locking