Page 4 of 6

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 1:30 pm
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?

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 1:41 pm
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.

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 1:46 pm
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?

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 1:49 pm
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

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 2:27 pm
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.

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 2:37 pm
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).

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 2:44 pm
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.

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 2:48 pm
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.

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 3:06 pm
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

Re: New NRPE error - error receiving data from daemon

Posted: Mon Mar 04, 2013 3:18 pm
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: