Error getting NRPE to install on Redhat 8

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Error getting NRPE to install on Redhat 8

Post by HIINNS »

All, I am trying to install a NRPE agent on a Redhat 8 server. I get the following error messages when I run the install :

cd ./src/; make
make[1]: Entering directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
gcc -g -O2 -I/usr/include/krb5 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto
./nrpe.c: In function ‘init_ssl’:
./nrpe.c:474:8: warning: implicit declaration of function ‘get_dh2048’ [-Wimplicit-function-declaration]
dh = get_dh2048();
^~~~~~~~~~
./nrpe.c:474:6: warning: assignment to ‘DH *’ {aka ‘struct dh_st *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
dh = get_dh2048();
^
/tmp/ccbgUYnQ.o: In function `init_ssl':
/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src/./nrpe.c:474: undefined reference to `get_dh2048'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48: nrpe] Error 1
make[1]: Leaving directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
make: *** [Makefile:65: all] Error 2
cd ./src/; make install
make[1]: Entering directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
make install-plugin
make[2]: Entering directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/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
make[2]: *** [Makefile:60: install-plugin] Error 1
make[2]: Leaving directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
make[1]: *** [Makefile:54: install] Error 2
make[1]: Leaving directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
make: *** [Makefile:89: install] Error 2
NRPE-POST

Please provide direction to resolve problem. Thank you.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

Sorry, this is the 1st error encountered -> 139967465985856:error:050C90CA:Diffie-Hellman routines:DH_generate_parameters_ex:non FIPS method:crypto/dh/dh_gen.c:31:
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error getting NRPE to install on Redhat 8

Post by dchurch »

What were the arguments you passed to "./configure"?

What was the output from when you ran "./configure"?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

./configure --enable-command-args --with-piddir=/var/run/nrpe --libexecdir=/usr/local/nagios/libexec $libssldir $EXTRACFG

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
139967465985856:error:050C90CA:Diffie-Hellman routines:DH_generate_parameters_ex:non FIPS method:crypto/dh/dh_gen.c:31:
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating nrpe.spec
config.status: creating uninstall
config.status: creating sample-config/nrpe.cfg
config.status: creating startup/bsd-init
config.status: creating startup/debian-init
config.status: creating startup/default-init
config.status: creating startup/default-inetd
config.status: creating startup/default-service
config.status: creating startup/default-socket
config.status: creating startup/default-socket-svc
config.status: creating startup/default-xinetd
config.status: creating startup/mac-init.plist
config.status: creating startup/mac-inetd.plist
config.status: creating startup/newbsd-init
config.status: creating startup/openbsd-init
config.status: creating startup/openrc-conf
config.status: creating startup/openrc-init
config.status: creating startup/solaris-init.xml
config.status: creating startup/solaris-inetd.xml
config.status: creating startup/tmpfile.conf
config.status: creating startup/upstart-init
config.status: creating startup/rh-upstart-init
config.status: creating include/common.h
config.status: creating include/config.h


*** Configuration summary for nrpe 4.0.2 2020-03-09 ***:

-------------------------
NRPE port: 5666
NRPE user: nagios
NRPE group: nagios
Nagios user: nagios
Nagios group: nagios


Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client
or type 'make' to get a list of make options.

cd ./src/; make
make[1]: Entering directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
gcc -g -O2 -I/usr/include/krb5 -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -lssl -lcrypto
./nrpe.c: In function ‘init_ssl’:
./nrpe.c:474:8: warning: implicit declaration of function ‘get_dh2048’ [-Wimplicit-function-declaration]
dh = get_dh2048();
^~~~~~~~~~
./nrpe.c:474:6: warning: assignment to ‘DH *’ {aka ‘struct dh_st *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
dh = get_dh2048();
^
/tmp/ccbgUYnQ.o: In function `init_ssl':
/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src/./nrpe.c:474: undefined reference to `get_dh2048'
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48: nrpe] Error 1
make[1]: Leaving directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
make: *** [Makefile:65: all] Error 2
cd ./src/; make install
make[1]: Entering directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/src'
make install-plugin
make[2]: Entering directory '/tc/tcsoftware/Nagios/subcomponents/nrpe/nrpe-4.0.2/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
make[2]: *** [Makefile:60: install-plugin] Error 1
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error getting NRPE to install on Redhat 8

Post by dchurch »

What is EXTRACFG[/code] set to? Can you run this command and post the output?

Code: Select all

echo $libssldir $EXTRACFG
Is this running as part of an automated script?
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

echo $libssldir $EXTRACFG. Both were blank. Sorry for not getting back sooner. I was off yesterday.
dchurch
Posts: 858
Joined: Wed Oct 07, 2020 12:46 pm
Location: Yo mama

Re: Error getting NRPE to install on Redhat 8

Post by dchurch »

Can you try install nrpe from the package repo using the instructions at repo.nagios.com?

Code: Select all

rpm -Uvh https://repo.nagios.com/nagios/8/nagios-repo-8-1.el8.noarch.rpm
yum install nrpe
If you didn't get an 8% raise over the course of the pandemic, you took a pay cut.

Discussion of wages is protected speech under the National Labor Relations Act, and no employer can tell you you can't disclose your pay with your fellow employees.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

Can't install this way. I have no internet access on any of my servers.
gsmith
Posts: 1253
Joined: Tue Mar 02, 2021 11:15 am

Re: Error getting NRPE to install on Redhat 8

Post by gsmith »

Hi,

I attached a tarball of nrpe and its dependencies. Can you "sneakernet" it over to
the network your servers are on?

Thanks
You do not have the required permissions to view the files attached to this post.
HIINNS
Posts: 172
Joined: Wed Mar 14, 2018 9:43 am

Re: Error getting NRPE to install on Redhat 8

Post by HIINNS »

I was able to download the tar ball, and successfully installed nrpe. The data collection is now working. Thank you all for helping me. Feel free to close out the case.
Locked