Linux Agent Fails install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
youngek
Posts: 34
Joined: Tue Feb 14, 2017 2:46 pm

Linux Agent Fails install

Post 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.
You do not have the required permissions to view the files attached to this post.
youngek
Posts: 34
Joined: Tue Feb 14, 2017 2:46 pm

Re: Linux Agent Fails install

Post by youngek »

got further with running yum install openssl-devel. Still get a install fail. xinetd:unrecognized service Subcomponents installation failed-exiting Result=1.
You do not have the required permissions to view the files attached to this post.
youngek
Posts: 34
Joined: Tue Feb 14, 2017 2:46 pm

Re: Linux Agent Fails install

Post by youngek »

got the install resolved. however, for the status of the agent it all shows unknown.
You do not have the required permissions to view the files attached to this post.
User avatar
tacolover101
Posts: 432
Joined: Mon Apr 10, 2017 11:55 am

Re: Linux Agent Fails install

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Linux Agent Fails install

Post 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.
youngek
Posts: 34
Joined: Tue Feb 14, 2017 2:46 pm

Re: Linux Agent Fails install

Post by youngek »

I see in messages that the host is not allowed to talk to us!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Linux Agent Fails install

Post 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'
youngek
Posts: 34
Joined: Tue Feb 14, 2017 2:46 pm

Re: Linux Agent Fails install

Post 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.
youngek
Posts: 34
Joined: Tue Feb 14, 2017 2:46 pm

Re: Linux Agent Fails install

Post by youngek »

when I run it locally I get:

CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Linux Agent Fails install

Post 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.
Locked