Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
605adi opened this issue Aug 19, 2022 · 1 comment
Open

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

605adi opened this issue Aug 19, 2022 · 1 comment

Comments

@605adi
Copy link

605adi commented Aug 19, 2022

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
Copy link
Contributor

#277 should help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants