need urgent help

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

need urgent help

Post 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
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: need urgent help

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: need urgent help

Post 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.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: need urgent help

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: need urgent help

Post by fsodah »

I 'll keep this topic open, till I test your recommendation.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: need urgent help

Post by cdienger »

Sounds good. Keep us posted.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
fsodah
Posts: 295
Joined: Thu Sep 12, 2019 1:19 am

Re: need urgent help

Post by fsodah »

done ... close it
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: need urgent help

Post by scottwilkerson »

fsodah wrote:done ... close it
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked