make check_nrpe failed

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
trazomtg
Posts: 5
Joined: Thu Oct 08, 2015 1:07 pm

make check_nrpe failed

Post by trazomtg »

hello,
i have installed Nagios 4 successfully on Kali linux
now i want to install NRPE
i have downloaded nrpe-4.0.2 and run ./configure OK
when i try to install with make check_nrpe i get the error:
./nrpe.c:476:17: warning: ‘DH_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
476 | DH_free(dh);
| ^~~~~~~
In file included from /usr/include/openssl/dsa.h:51,
from /usr/include/openssl/x509.h:37,
from /usr/include/openssl/ssl.h:31,
from ../include/common.h:32:
/usr/include/openssl/dh.h:200:28: note: declared here
200 | OSSL_DEPRECATEDIN_3_0 void DH_free(DH *dh);
| ^~~~~~~
./nrpe.c: In function ‘handle_conn_ssl’:
./nrpe.c:2029:25: warning: ‘ERR_get_error_line_data’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
2029 | while ((x = ERR_get_error_line_data(NULL, NULL, NULL, NULL)) != 0) {
| ^~~~~
/usr/include/openssl/err.h:425:15: note: declared here
425 | unsigned long ERR_get_error_line_data(const char **file, int *line,
| ^~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld : /tmp/cczDbehp.o : dans la fonction « init_ssl » :
/home/Informatique/Nagios/nrpe-4.0.2/src/./nrpe.c:474 : référence indéfinie vers « get_dh2048 »
collect2: error: ld returned 1 exit status
make[1]: *** [Makefile:48 : nrpe] Erreur 1
make[1] : on quitte le répertoire « /home/Informatique/Nagios/nrpe-4.0.2/src »
make: *** [Makefile:80 : check_nrpe] Erreur 2
i suppose it's a SSL problem but i can't resolve this problem
can you help me please?
Regards
T Granier
trazomtg
Posts: 5
Joined: Thu Oct 08, 2015 1:07 pm

Re: make check_nrpe failed

Post by trazomtg »

hi,
i know that the cause is in file : nrpe.c line 474


#ifdef USE_SSL_DH
dh = get_dh2048();
SSL_CTX_set_tmp_dh(ctx, dh);
DH_free(dh);
#endif

i don't know how to correct this
trazomtg
Posts: 5
Joined: Thu Oct 08, 2015 1:07 pm

Re: make check_nrpe failed

Post by trazomtg »

bpnjour,

that's what i have found but i don't know how to use it:
https://github.com/NagiosEnterprises/nrpe/issues/258

https://git.pld-linux.org/gitweb.cgi?p= ... ch;hb=HEAD


regards
Post Reply