Nagios XI - RHEL Linux Agent install failure

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rh2832
Posts: 6
Joined: Wed Aug 24, 2016 10:00 pm

Nagios XI - RHEL Linux Agent install failure

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI - RHEL Linux Agent install failure

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
rh2832
Posts: 6
Joined: Wed Aug 24, 2016 10:00 pm

Re: Nagios XI - RHEL Linux Agent install failure

Post 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!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI - RHEL Linux Agent install failure

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rh2832
Posts: 6
Joined: Wed Aug 24, 2016 10:00 pm

Re: Nagios XI - RHEL Linux Agent install failure

Post 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)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios XI - RHEL Linux Agent install failure

Post by Box293 »

Can you please post these files:
/etc/xinetd.d/nrpe
/usr/local/nagios/etc/nrpe.cfg
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked