1
all application on unix knowledges by golfreeze / Re: Install nrpe and nagios-plugin in remote host and nrpe on monitoring server
« on: พฤษภาคม 17, 2025, 11:28:31 am »
==== For Ubuntu 22.04 need to install nrpe4 on openssl 3.2.2 how to fixed.
https://sourceforge.net/projects/nagios/files/nrpe-4.x/nrpe-4.0.3/nrpe-4.0.3.tar.gz
=== install nrpe4.0.2 on openssl3.2.2
tar zxf nrpe-4.0.3.tar.gz
cd nrpe-4.0.3
==patch nrpe.c by comment 3 lines about dh and SSL_CTX_set_tmp_dh and DH_free
vi src/nrpe.c
#ifdef USE_SSL_DH
//dh = get_dh2048();
//SSL_CTX_set_tmp_dh(ctx, dh);
//DH_free(dh);
==next
./configure --with-ssl=/usr --with-ssl-lib=/usr/lib64 --enable-command-args
make all
sudo make install
sudo make install-config
sudo make install-init
sudo systemctl enable nrpe
sudo systemctl start nrpe
==test nrpe connect from 103.2.3.4 to 103.2.3.5
/usr/local/nagios/libexec/check_nrpe -H 103.2.3.5
NRPE v4.1.0
https://sourceforge.net/projects/nagios/files/nrpe-4.x/nrpe-4.0.3/nrpe-4.0.3.tar.gz
=== install nrpe4.0.2 on openssl3.2.2
tar zxf nrpe-4.0.3.tar.gz
cd nrpe-4.0.3
==patch nrpe.c by comment 3 lines about dh and SSL_CTX_set_tmp_dh and DH_free
vi src/nrpe.c
#ifdef USE_SSL_DH
//dh = get_dh2048();
//SSL_CTX_set_tmp_dh(ctx, dh);
//DH_free(dh);
==next
./configure --with-ssl=/usr --with-ssl-lib=/usr/lib64 --enable-command-args
make all
sudo make install
sudo make install-config
sudo make install-init
sudo systemctl enable nrpe
sudo systemctl start nrpe
==test nrpe connect from 103.2.3.4 to 103.2.3.5
/usr/local/nagios/libexec/check_nrpe -H 103.2.3.5
NRPE v4.1.0
