New NRPE error - error receiving data from daemon

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New NRPE error - error receiving data from daemon

Post by abrist »

I was referring to the following errors:

Code: Select all

Feb 28 14:34:05 tribbleNet1-3 nrpe[23499]: warning: /etc/hosts.allow, line 13: missing newline or line too long
Feb 28 14:34:05 tribbleNet1-3 nrpe[23499]: warning: /etc/hosts.allow, line 13: all the subsequent rules will be ignored
Are you still getting them in syslog?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post by psyllex »

The only other thing I could think is that I had a previous installation of Nagios Core installed on these two remote boxes that might be interfering with XI? Well I didn't have Nagios Core installed I had the NRPE daemon installed on them.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: New NRPE error - error receiving data from daemon

Post by slansing »

What are you seeing in your syslog now? Can you post the output of it again for us to go over as Andy suggested?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: New NRPE error - error receiving data from daemon

Post by scottwilkerson »

psyllex wrote:
abrist wrote:Are you still receiving the new line error? If so, how are you editing the file? On the linux box directly, or are you editing in widows by way of filezilla etc?
I wasn't aware I was getting a newline error. I edited the hosts.allow file with Vi. And yes on the linux box directly. So there is no newline in that command.
There needs to be a newline after the IP
If the last line of a hosts access file is not a newline character (created by pressing the Enter key) you will see the errors you are experiencing.
https://docs.fedoraproject.org/en-US/Fe ... Files.html
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post by psyllex »

slansing wrote:What are you seeing in your syslog now? Can you post the output of it again for us to go over as Andy suggested?
I've attached my syslog.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: New NRPE error - error receiving data from daemon

Post by abrist »

Alright, so it is an SSL Handshake error now. Did you compile nrpe with SSL enabled?

If not, or just for troubleshooting's sake, append your check command with "-n" (no SSL).
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post by psyllex »

abrist wrote:Alright, so it is an SSL Handshake error now. Did you compile nrpe with SSL enabled?

If not, or just for troubleshooting's sake, append your check command with "-n" (no SSL).
I didn't compile this. As I said I did three things...start up the CentOS VM, install the Ubuntu agent (using gdebi) on the remote hosts, and use the Linux server wizard. There was nothing for me to compile.
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post by psyllex »

Additionally on my Nagios XI in the browser, it states that there is a "Error receiving data from daemon". The ssl handshake issue seems to have gone away.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: New NRPE error - error receiving data from daemon

Post by lmiltchev »

Can you run the following command from your Nagios XI server and show us the output:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H <client_IP>
Next, run the following command on the client (Ubuntu box) and show us the output:

Code: Select all

/usr/sbin/nrpe -V
Be sure to check out our Knowledgebase for helpful articles and solutions!
psyllex
Posts: 129
Joined: Thu Dec 20, 2012 2:18 pm

Re: New NRPE error - error receiving data from daemon

Post by psyllex »

For the first command I got : NRPE v2.12.

For the second command I got: NRPE - Nagios Remote Plugin Executor
Copyright (c ) 1999-2008 Ethan Galstad ([email protected])
Version: 2.12
.......

....
..

Plus a whole bunch of other stuff like Usage: Options: Notes:
Locked