Page 1 of 1

CHECK_NRPE: Receive header underflow - only -1 bytes receive

Posted: Mon Feb 25, 2019 11:02 am
by sincorchetes
Good afternoon,

I have this lab architecture. :roll:

* One server with Nagios Core installed. That's contains NRPE 3.2.1 (latest) version. I've installed following this instructions: https://support.nagios.com/kb/article/n ... rpe-8.html 8-)

* Five Linux servers with samba, glusterfs, nfs... and more. That's already installed NRPE 2.12, works with Nagios Core Server.
* This five hosts can send information to Nagios Core, and Nagios Core can show information of this hosts.
* Nagios Core server cannot check yourself. I get this error message:

Code: Select all

CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected).
:twisted:
I've tried with Local Area Network IP: 192.168.1.1

Code: Select all

CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected).
:twisted:
I've tried with localhost

Code: Select all

CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected).
:twisted:
I've tried with loopback ip (127.0.0.1)

Code: Select all

CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected).
:twisted:

* I've installed new server with glusterfs with new NRPE (3.2.1), I've tried to connect into Nagios Core and I get:
./check_nrpe -H 192.168.1.1 -n

Code: Select all

CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected).
:twisted:
* However, I installed NRPE 2.12 version in the new server already added and that's works.

What happend here? How is possible 2.12 version (too old) is works but new version cannot do it.

NRPE 3.2.1 cfg: https://paste.fedoraproject.org/paste/4 ... trV~FG8Lfg
NRPE 2.12 cfg: https://paste.fedoraproject.org/paste/d ... FmvW2WPU2Q

Re: CHECK_NRPE: Receive header underflow - only -1 bytes rec

Posted: Tue Feb 26, 2019 3:37 am
by sincorchetes
I don't have firewall in all machines.

Re: CHECK_NRPE: Receive header underflow - only -1 bytes rec

Posted: Wed Feb 27, 2019 8:18 am
by scottwilkerson
What version is the check_nrpe plugin you are using?

Code: Select all

./check_nrpe -V