CHECK_NRPE: Receive header underflow - only -1 bytes receive

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.
Locked
User avatar
sincorchetes
Posts: 3
Joined: Mon Feb 25, 2019 10:12 am
Location: Spain, Palma de Mallorca
Contact:

CHECK_NRPE: Receive header underflow - only -1 bytes receive

Post 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
---
Álvaro Castillo
System Administrator
Blog: https://echemosunbitstazo.es
Twitter: https://twitter.com/sincorchetes
User avatar
sincorchetes
Posts: 3
Joined: Mon Feb 25, 2019 10:12 am
Location: Spain, Palma de Mallorca
Contact:

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

Post by sincorchetes »

I don't have firewall in all machines.
---
Álvaro Castillo
System Administrator
Blog: https://echemosunbitstazo.es
Twitter: https://twitter.com/sincorchetes
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

What version is the check_nrpe plugin you are using?

Code: Select all

./check_nrpe -V
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked