NRPE install problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

NRPE install problem

Post by nik.vu »

Hi all,

I have a little problem with nrpe installation from this document.

This is the actual error that apears when i try to install.

Code: Select all

cd ./src/; make
make[1]: Entering directory '/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-3.2.1/src'
gcc -g -O2 -I/usr/include/openssl -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib/x86_64-linux-gnu/  -lssl -lcrypto -lnsl -lwrap
In file included from ./nrpe.c:45:0:
./../include/dh.h: In function 'get_dh2048':
./../include/dh.h:36:4: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}'
  dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL);
    ^~
Makefile:48: recipe for target 'nrpe' failed
make[1]: * [nrpe] Error 1
make[1]: Leaving directory '/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-3.2.1/src'
Makefile:65: recipe for target 'all' failed
make: * [all] Error 2
cd ./src/; make install
make[1]: Entering directory '/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-3.2.1/src'
make install-plugin
make[2]: Entering directory '/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-3.2.1/src'
/usr/bin/install -c -m 755 -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
/usr/bin/install: cannot stat `check_nrpe': No such file or directory
Makefile:58: recipe for target 'install-plugin' failed
make[2]: * [install-plugin] Error 1
make[2]: Leaving directory '/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-3.2.1/src'
Makefile:54: recipe for target 'install' failed
make[1]: * [install] Error 2
make[1]: Leaving directory '/tmp/linux-nrpe-agent/subcomponents/nrpe/nrpe-3.2.1/src'
Makefile:89: recipe for target 'install' failed
make: * [install] Error 2
Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.
NRPE-POST
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
Stopping internet superserver: xinetd.
Starting internet superserver: xinetd.

real    5m36.327s
user    5m25.168s
sys     0m6.832s
INSTALLING EXTRA PLUGINS...

real    0m0.014s
user    0m0.004s
sys     0m0.004s
sed: can't read /etc/xinetd.d/nrpe: No such file or directory
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'

Just to mention, this installation only fail when i try to install on some minimal Linux Box(Debian 7). This Linux Box is used only for some Asterisk voip setup, and i need this nrpe for some asterisk checks, sip_peers and others.

Do you have some advice? Is it possible thats this erros happens because of limitations of this Linux Box, because everything is ok when i install on clean Debian system?

Thanks for your attention. I’m looking forward to your reply.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: NRPE install problem

Post by npolovenko »

Hello, @nik.vu . Some compiling package could be missing. Please run the following command to install the prereqs:

Code: Select all

yum install -y gcc glibc glibc-common openssl openssl-devel perl wget
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
nik.vu
Posts: 34
Joined: Tue Feb 07, 2017 4:28 pm

Re: NRPE install problem

Post by nik.vu »

Thanks @npolovenko.

You can close this topic.
Locked