Page 1 of 1
CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected
Posted: Mon Apr 20, 2026 8:48 pm
by soigan23
After rhel8 to rhel9 update, nagios client is not connecting. Message on ui is:
CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected
Re: CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected
Posted: Tue Apr 21, 2026 9:54 am
by ekapsner
Hello
@soigan23,
I often see this error when there is an SSL mismatch and the handshake is unable to be completed. If the daemon is expecting SSL to be used and the plugin is used with the
--no-ssl or
-n flag, then this error is often the result.
What is the result of the following command (if run from the monitoring server)?
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <NRPE address>
- Emmett
Re: CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected
Posted: Tue Apr 21, 2026 8:10 pm
by soigan23
Hi Emmett,
[root@prod-mon-n1 ~]# /usr/lib64/nagios/plugins/check_nrpe -H prod-nlog-n1
NRPE v4.1.2
[root@prod-mon-n1 ~]# /usr/lib64/nagios/plugins/check_nrpe -n -2 -H prod-nlog-n1
CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected).
[root@prod-mon-n1 ~]#
Re: CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected
Posted: Tue Apr 21, 2026 10:39 pm
by soigan23
This is fixed by adding
define command {
command_name check_nrpe_v2
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ -t 50
}
in /etc/nagios/objects/commands.cfg file
and creating new cfg files in /etc/nagios/objects for upgraded vms and adding these new config files in /etc/nagios/nagios.cfg
Re: CHECK_NRPE: Receive header underflow - only -1 bytes received (4 expected
Posted: Wed Apr 22, 2026 11:14 am
by ekapsner
Hi
@soigan23,
I'm glad you found a fix, because NRPE sometimes has the vaguest error messages. Just for my notes, what did the old command definition for check_nrpe look like?
Thanks,
- Emmett