Page 1 of 2

Linux Agent Fails install

Posted: Tue Apr 11, 2017 7:48 am
by youngek
Trying to install the Linux agent on a box. I downloaded the agent from the gui and copied it over to the machine. It looks like it fails at the end with "can't read /etc/xinetd.d/nrpe: No such file or directory
Subcomponents installation failed - exiting" I checked and I do not have nrpe in in the xinetd.d directory. I tried searching on the forums but, did not see any thing like this one.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 8:17 am
by youngek
got further with running yum install openssl-devel. Still get a install fail. xinetd:unrecognized service Subcomponents installation failed-exiting Result=1.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 8:34 am
by youngek
got the install resolved. however, for the status of the agent it all shows unknown.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 9:16 am
by tacolover101
as the error mentions, check your system logs on the client machine and see what error is being reported.

to see if it's actually running on the client end use netstat -an | grep 5666 - it's hard to say if the install finished properly. this documentation is really done well https://assets.nagios.com/downloads/nag ... e/NRPE.pdf

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 10:51 am
by dwhitfield
Also, take a look at https://assets.nagios.com/downloads/nag ... utions.pdf

Specifically, "VI. CHECK_NRPE: Received 0 Bytes From Daemon" on page 14.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 11:01 am
by youngek
I see in messages that the host is not allowed to talk to us!

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 11:45 am
by dwhitfield
Did you look at the document I sent? The first thing Section VI tells you to do is look at Section V. Did you do that? I'm not saying you didn't, you just didn't really give us any info. What exactly does the error message in the log say?

From the XI server, please run the following:
/usr/local/nagios/libexec/check_nrpe -H REMOTEIP -t 30 -c check_users -a '-w 5 -c 10'

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 12:16 pm
by youngek
This is what I get when I run this command below. I have read the document and I went in and added the host ip in the correct spot.
/usr/local/nagios/libexec/check_nrpe -H REMOTEIP -t 30 -c check_users -a '-w 5 -c 10'

CHECK_NRPE: Error - Could not complete SSL handshake.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 12:25 pm
by youngek
when I run it locally I get:

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.

Re: Linux Agent Fails install

Posted: Tue Apr 11, 2017 12:41 pm
by dwhitfield
From Nagios, what's the output of /usr/local/nagios/libexec/check_nrpe -H <remote host ip> -n?

On the remote server, what's the output of the following

Code: Select all

ls -la /usr/local/nagios/libexec/
ls -la /etc/xinetd.d/nrpe
netstat -an | grep 5666
ps -A | grep nrpe
ps -A | grep xinetd
If it exists, please post your /etc/xinetd.d/nrpe. If it does not exist, please let us know.