Error getting NRPE to install on Redhat 8
Posted: Thu Jun 17, 2021 4:33 am
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.
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.