Page 1 of 1

need urgent help

Posted: Sat Jun 27, 2020 2:42 am
by fsodah
after the upgrade 5.7.1 i received the following

"CHECK_NRPE: Receive header underflow - only 0 bytes received (4 expected)."

before the upgrade the nrpe was running prefect

From command line is running.

Code: Select all

[root@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v4.0.3
[root@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H 10.35.3.11
NRPE v3.2.1

Re: need urgent help

Posted: Mon Jun 29, 2020 11:26 am
by cdienger
The upgrade to NRPE 4 is likely the issue. Try running the command with the "-3" option:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.35.3.11 -3

Re: need urgent help

Posted: Mon Jun 29, 2020 1:15 pm
by fsodah

Code: Select all

[root@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H 10.38.10.1 -3
NRPE v3.2.1
[root@nagios ~]# /usr/local/nagios/libexec/check_nrpe -H 10.38.10.1 
NRPE v3.2.1
[root@nagios ~]# 

I solved by changing the parameter dont_blame to 1 instead of 0 ... it works fine

Code: Select all

# COMMAND ARGUMENT PROCESSING
# This option determines whether or not the NRPE daemon will allow clients
# to specify arguments to commands that are executed.  This option only works
# if the daemon was configured with the --enable-command-args configure script
# option.
#
# *** ENABLING THIS OPTION IS A SECURITY RISK! ***
# Read the SECURITY file for information on some of the security implications
# of enabling this variable.
#
# Values: 0=do not allow arguments, 1=allow command arguments

dont_blame_nrpe=1
Can you please confirm if that is the proper way ... after changing the parameter working correctly since 3 days.

Re: need urgent help

Posted: Mon Jun 29, 2020 3:02 pm
by cdienger
I missed a digit in the command. It should have been:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.38.10.11 -3
Test and let me know your results.

The error you see is commonly associated with the dont_blame_nrpe option(https://support.nagios.com/kb/article/n ... s-618.html) but it doesn't make sense to me why a setting that the upgrade doesn't touch would be the problem. Does it return valid responses with this option? Generally we recommend enabling this option so you can keep it enabled.

Re: need urgent help

Posted: Mon Jun 29, 2020 3:10 pm
by fsodah
I 'll keep this topic open, till I test your recommendation.

Re: need urgent help

Posted: Tue Jun 30, 2020 9:43 am
by cdienger
Sounds good. Keep us posted.

Re: need urgent help

Posted: Fri Jul 24, 2020 4:20 am
by fsodah
done ... close it

Re: need urgent help

Posted: Fri Jul 24, 2020 9:34 am
by scottwilkerson
fsodah wrote:done ... close it
Great!

Locking thread