NRPE install fails in 1-prereqs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

NRPE install fails in 1-prereqs

Post by lyle »

I have a problem installing the linux-nrpe-agent on an Oracle 5.8 Linux system. I’ve done 2 of these so far, and it all seems to work ok (no installation errors, and Nagios server is successful at service checks via nrpe).
In truth, I *think* it’s OEL, but there’s no /etc/oracle-release file, just the redhat-release one.

Anyway, on this one, I get the errors shown below during the 1-prereqs stage. It seems to be complaining about the glibc version, so I did this:
[root@vcfp-ncsora etc]# rpm -qa |grep glibc
glibc-common-2.5-81.el5_8.2
glibc-2.5-81
glibc-headers-2.5-81.el5_8.2
glibc-common-2.5-81
glibc-headers-2.5-81
glibc-devel-2.5-81.el5_8.2
glibc-devel-2.5-81
glibc-devel-2.5-81
glibc-devel-2.5-81.el5_8.2
glibc-2.5-81
glibc-2.5-81.el5_8.2
glibc-2.5-81.el5_8.2

Any ideas or advice? Thanks....Lyle


----install log follows------
=================================================
Nagios Linux Agent Installer for Red Hat & CentOS
=================================================


This script will install the Nagios Linux Agent by executing all necessary
sub-scripts.

IMPORTANT: This script should only be used on a Red Hat or CentOS
system. Do NOT use this on a system running any other
distro or that does not allow additional package installation.

Do you want to continue? [Y/n] Y
Proceeding with installation...
Running './0-yum'...
Configuring Yum...
epel-release RPM installed OK
Yum configured OK
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Loaded plugins: rhnplugin, security
file:///mnt/OEL58/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/OEL58/Server/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Package autoconf-2.59-12.noarch already installed and latest version
Package gcc-4.1.2-52.el5_8.1.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Package openssl-devel-0.9.8e-22.el5_8.4.x86_64 already installed and latest version
Package openssl-devel-0.9.8e-22.el5_8.4.i386 already installed and latest version
Package sysstat-7.0.2-11.el5.x86_64 already installed and latest version
Package 2:xinetd-2.3.14-16.el5.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: glibc-headers
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: nscd
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: glibc-headers
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: nscd
--> Processing Dependency: glibc = 2.5-81.el5_8.2 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81.el5_8.2 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81.el5_8.2 for package: glibc-headers
--> Processing Dependency: glibc = 2.5-81.el5_8.2 for package: nscd
---> Package glibc.i686 0:2.5-81.el5_8.7 set to be updated
--> Processing Dependency: glibc-common = 2.5-81.el5_8.7 for package: glibc
---> Package glibc.x86_64 0:2.5-81.el5_8.7 set to be updated
---> Package libmcrypt-devel.i386 0:2.5.7-5.el5 set to be updated
--> Processing Dependency: libmcrypt = 2.5.7-5.el5 for package: libmcrypt-devel
--> Processing Dependency: libmcrypt.so.4 for package: libmcrypt-devel
---> Package libmcrypt-devel.x86_64 0:2.5.7-5.el5 set to be updated
---> Package sudo.x86_64 0:1.7.2p1-14.el5_8.4 set to be updated
--> Running transaction check
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: glibc-headers
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: nscd
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: glibc-headers
--> Processing Dependency: glibc = 2.5-81 for package: glibc-devel
--> Processing Dependency: glibc = 2.5-81 for package: nscd
---> Package glibc-common.x86_64 0:2.5-81.el5_8.7 set to be updated
---> Package glibc-devel.i386 0:2.5-81.el5_8.7 set to be updated
---> Package glibc-devel.x86_64 0:2.5-81.el5_8.7 set to be updated
---> Package glibc-headers.x86_64 0:2.5-81.el5_8.7 set to be updated
---> Package libmcrypt.i386 0:2.5.7-5.el5 set to be updated
---> Package libmcrypt.x86_64 0:2.5.7-5.el5 set to be updated
---> Package nscd.x86_64 0:2.5-81.el5_8.7 set to be updated
--> Finished Dependency Resolution
nscd-2.5-81.x86_64 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package nscd-2.5-81.x86_64 (installed)
glibc-devel-2.5-81.x86_64 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package glibc-devel-2.5-81.x86_64 (installed)
nscd-2.5-81.x86_64 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package nscd-2.5-81.x86_64 (installed)
glibc-devel-2.5-81.x86_64 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package glibc-devel-2.5-81.x86_64 (installed)
glibc-headers-2.5-81.x86_64 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package glibc-headers-2.5-81.x86_64 (installed)
glibc-headers-2.5-81.x86_64 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package glibc-headers-2.5-81.x86_64 (installed)
glibc-devel-2.5-81.i386 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package glibc-devel-2.5-81.i386 (installed)
glibc-devel-2.5-81.i386 from installed has depsolving problems
--> Missing Dependency: glibc = 2.5-81 is needed by package glibc-devel-2.5-81.i386 (installed)
Error: Missing Dependency: glibc = 2.5-81 is needed by package glibc-devel-2.5-81.i386 (installed)
Error: Missing Dependency: glibc = 2.5-81 is needed by package nscd-2.5-81.x86_64 (installed)
Error: Missing Dependency: glibc = 2.5-81 is needed by package glibc-devel-2.5-81.x86_64 (installed)
Error: Missing Dependency: glibc = 2.5-81 is needed by package glibc-headers-2.5-81.x86_64 (installed)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './1-prereqs'
Last edited by lyle on Tue Sep 25, 2012 1:46 pm, edited 1 time in total.
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: NRPE install fails in 1-prereqs

Post by agriffin »

Try running 'package-cleanup --cleandupes' as root on your system and try again.
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: NRPE install fails in 1-prereqs

Post by lyle »

I did: package-cleanup --problems; package-cleanup --dupes
Then deleted: /usr/local/nagios/* and /etc/xinetd.d/nrpe
And did a fresh install of NRPE. This time, the process failed in the same 1-prereqs, with the install.log saying, in part:

Code: Select all

DISTRO INFO:
CentOS
5.8
x86_64

Configuring Yum...
epel-release RPM installed OK
Yum configured OK
Installing prerequisites...
Loaded plugins: downloadonly, fastestmirror, security
Loading mirror speeds from cached hostfile
 * base: mirrors.cicku.me
 * epel: mirrors.solfo.com
 * extras: mirrors.easynews.com
 * updates: centos.sonn.com
Setting up Install Process
Package autoconf-2.59-12.noarch already installed and latest version
Package gcc-4.1.2-52.el5_8.1.x86_64 already installed and latest version
Package glibc-2.5-81.el5_8.7.x86_64 already installed and latest version
Package glibc-2.5-81.el5_8.7.i686 already installed and latest version
Package libmcrypt-devel-2.5.8-4.el5.centos.x86_64 already installed and latest version
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Package openssl-devel-0.9.8e-22.el5_8.4.x86_64 already installed and latest version
Package openssl-devel-0.9.8e-22.el5_8.4.i386 already installed and latest version
Package sudo-1.7.2p1-14.el5_8.4.x86_64 already installed and latest version
Package sysstat-7.0.2-11.el5.x86_64 already installed and latest version
Package 2:xinetd-2.3.14-16.el5.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libmcrypt-devel.i386 0:2.5.7-5.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                 Arch         Version                Repository    Size
================================================================================
Installing:
 libmcrypt-devel         i386         2.5.7-5.el5            epel         103 k

Transaction Summary
================================================================================
Install       1 Package(s)
Upgrade       0 Package(s)

Total download size: 103 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test

Transaction Check Error:
  package libmcrypt-devel-2.5.8-4.el5.centos.x86_64 (which is newer than libmcrypt-devel-2.5.7-5.el5.i386) is already installed
Looks like it knows libmcrypt-devel-2.5.8 is already installed and the wizard is fine with that, but then tries to install 2.5.7 anyway, and fails.

Thanks for any advice....Lyle
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE install fails in 1-prereqs

Post by lmiltchev »

You are trying to install the linux agent on Oracle 5.8, however this is a Red Hat / CentOS installer:
IMPORTANT: This script should only be used on a Red Hat or CentOS
system. Do NOT use this on a system running any other
distro or that does not allow additional package installation.
There is no guarantee this will work. That being said, what you can try is open the installer script (for prereqs) in a text editor:

Code: Select all

vi 1-prereqs
and remove the "libmcrypt-devel" from the following line:

Code: Select all

yum -y install autoconf gcc glibc libmcrypt-devel make openssl-devel sudo sysstat xinetd
Then run the "./fullinstall" again.

Hopefully, you won't get any other errors.
Be sure to check out our Knowledgebase for helpful articles and solutions!
lyle
Posts: 158
Joined: Sun Nov 21, 2010 3:05 am

Re: NRPE install fails in 1-prereqs

Post by lyle »

I continued to have problems with yum complaining. So I took the easy, though ugly, way out and moved /usr/local/nagios from another Oracle EL server where nrpe was working. Configured xinetd, created nagios user & groups, and things seem to be working fine.

Thanks for the help.....Lyle
Locked