Linux Programmer | RHCE | RHCSA

Search This Blog

nrpe.c:244: undefined reference to `get_dh512' - Error while installing nagios client ubuntu 22.04

Steps of Nagios client setup.

Download source code.

# wget https://codeload.github.com/NagiosEnterprises/nrpe/tar.gz/refs/tags/nrpe-4.0.2

Extract it,

# tar -xvzf nrpe-4.0.2

Configure it,

# cd nrpe-nrpe-4.0.2

# ./configure

# make all

cd ./src/; make ; cd ..
make[1]: Entering directory `/usr/local/src/nagios/nrpe-2.11/src'
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -o nrpe nrpe.c utils.c -ldl -L/usr/lib64  -lssl -lcrypto -lnsl -lwrap
nrpe.c: In function âmainâ:
nrpe.c:244: warning: assignment makes pointer from integer without a cast
/tmp/cc3msxw1.o: In function `main':
/usr/local/src/nagios/nrpe-2.11/src/nrpe.c:244: undefined reference to `get_dh512'
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/usr/local/src/nagios/nrpe-2.11/src'

 It stuck on this error.

Solution:

This issue is related to the Openssl version. In openssl version 3 is creating an issue.

Try Downgrading version of openssl package.

1. Download from here.

openssl_1.1.1f-1ubuntu2.13_amd64.deb

https://drive.google.com/file/d/1ZpIauPw3fERvKn2Wv47fK4vHMvKSZEfJ/view?usp=sharing

libssl1.1_1.1.1f-1ubuntu2.13_amd64.deb

https://drive.google.com/file/d/1PydEUXwTrmPciwlQwsynGKyAt8tYqePs/view?usp=sharing

 2. Install packages.

dpkg -i libssl1.1_1.1.1f-1ubuntu2.13_amd64.deb
dpkg -i  openssl_1.1.1f-1ubuntu2.13_amd64.deb

3. Then try to configure. 

# ./configure

# make all

# make install


And it works !!

No comments:

Post a Comment

SSH not working with password after upgrade ubuntu 22.04 or above

In recent upgrade of ubuntu 22.04 and above we are not able to login server with SSH password. but when we try to login with key then it all...