Page 1 of 1

Nagios XI - RHEL Linux Agent install failure

Posted: Wed Aug 31, 2016 9:08 pm
by rh2832
Hello,
I'm new to Nagios and have recently installed Nagios XI vm. I'm trying to install agent on a Red-Hat Linux server.

- The XI VM and the linux servers are located in a DMZ with restricted access in and out.
- Access between the vm and the linux server agent are confirmed open.
- The XI VM does have proxy access to the internet for updates.
- The linux server agent was able to successfully utilize yum for updates via the same proxy.
- During the install of the agent it fails / hangs when loading updates via RHN.
- Since the failed install of the agent the linux server is no longer able to receive updates via YUM and the Nagios Agent install has failed.

[root@servername linux-nrpe-agent]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.11 (Tikanga)

[root@servername linux-nrpe-agent]# ls install.log
install.log
[root@servername linux-nrpe-agent]# cat install.log
Nagios Linux Agent Installation Log
===================================
DATE: Wed Aug 24 20:34:09 NWT 2016

DISTRO INFO:
RedHatEnterpriseServer
5.11
x86_64

Configuring Repos...
Enabling EPEL repo...
Installing EPEL PKG: ./packages/epel-release-5-4.noarch.rpm
warning: ./packages/epel-release-5-4.noarch.rpm: Header V3 DSA signature: NOKEY, key ID 217521f6
Preparing... ##################################################
epel-release ##################################################
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.

Re: Nagios XI - RHEL Linux Agent install failure

Posted: Thu Sep 01, 2016 11:10 am
by lmiltchev
Try configuring your proxy by following the steps, outlined in the KB article below:
https://support.nagios.com/kb/article.php?id=147

If you are still having issues, you could try installing all of the prerequisites manually (autoconf gcc glibc libmcrypt-devel make openssl-devel sudo sysstat xinetd bc), place the Linux agent in the "/tmp" directory, and run:

Code: Select all

cd /tmp
tar zxvf linux-nrpe-agent.tar.gz
cd /tmp/linux-nrpe-agent
touch installed.repos
touch installed.prereqs
./fullinstall

Re: Nagios XI - RHEL Linux Agent install failure

Posted: Thu Sep 01, 2016 9:19 pm
by rh2832
Thanks for the quick response. I was unable to find libmcrypt-devel but the rest are all installed. In addition, the link provided appears to be related to the proxy on the xi server vs. the agent server. The agent server proxy configuration is working find as I can download yum updates until I run the agent install.

Thanks!

Re: Nagios XI - RHEL Linux Agent install failure

Posted: Fri Sep 02, 2016 11:30 am
by tgriep
The libmcrypt-devel package is needed only for compiling NSCA. If you are not using that, then you should be good with the NRPE agent.
If you don't have any other questions, shall we mark this post as solved and lock it up?

Re: Nagios XI - RHEL Linux Agent install failure

Posted: Wed Sep 07, 2016 7:47 pm
by rh2832
I have followed your instructions above and was able to successfully install the agent however XI is unable to successfully communicate with the agent. I've have included the error below. Please let me know if I should post this as a new issue.

Sep 7 18:45:17 server xinetd[27072]: START: nrpe pid=9039 from=135.89.111.38
Sep 7 18:45:17 server xinetd[9039]: libwrap refused connection to nrpe (libwrap=nrpe) from 135.89.111.38
Sep 7 18:45:17 server xinetd[9039]: FAIL: nrpe libwrap from=135.89.111.38
Sep 7 18:45:17 server xinetd[27072]: EXIT: nrpe status=0 pid=9039 duration=0(sec)

Re: Nagios XI - RHEL Linux Agent install failure

Posted: Thu Sep 08, 2016 11:35 am
by Box293
Can you please post these files:
/etc/xinetd.d/nrpe
/usr/local/nagios/etc/nrpe.cfg