NagiosEnterprises / nrpe

NRPE Agent
GNU General Public License v2.0
257 stars 133 forks source link

Receive header underflow - only 0 bytes received (4 expected). #265

Open 605adi opened 2 years ago

605adi commented 2 years ago

Nagios core : nagios-4.4.6 nagios-plugins : release-2.3.3 Nrpe : nrpe-4.0.3 System : Ubuntu 18.04.6 LTS

Endpoint:- I want to run NRPE without SSL Error:-

  1. could not complete ssl handshake --> with ssl
  2. Received header underflow - only 0 bytes received (4 expected) --> without ssl

Nrpe installation steps with ssl in all machine : cd /tmp wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-4.0.3.tar.gz tar xzf nrpe.tar.gz sudo ./configure --enable-command-args --with-ssl-lib=/usr/lib/x86_64-linux-gnu/ make all make install-config make install-init systemctl enable nrpe.service systemctl start nrpe.service

Nrpe installation steps without ssl in all machine : cd /tmp wget --no-check-certificate -O nrpe.tar.gz https://github.com/NagiosEnterprises/nrpe/archive/nrpe-4.0.3.tar.gz tar xzf nrpe.tar.gz ./configure --enable-command-args --disable-ssl make all make install-config make install-init systemctl enable nrpe.service systemctl start nrpe.service

Command used with ssl : /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 ---> output : NRPE v4.0.3 /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -----> output : CHECK_NRPE: Error - Could not connect to x.x.x.x Check system logs on x.x.x.x i.e ssl handshake error when looked into system logs.

Command used without ssl : /usr/local/nagios/libexec/check_nrpe -H 127.0.0.1 ---> output : NRPE v4.0.3

/usr/local/nagios/libexec/check_nrpe -H x.x.x.x -----> output : CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected).

Nrpe.cfg file :- remote host is allowed. Note : check_ping , chech_icmp , check_http all working except check_nrpe. Could you please help me with this error . I want to run NRPE without SSL . I am not using Xinetd or any third party tool. Thanks.

rpv-tomsk commented 1 year ago

277 should help