Link to home
Start Free TrialLog in
Avatar of mmcc0912
mmcc0912

asked on

Nagios NRPE error, shared libraries; glibc 2.5 or greater.

I have 100% inherated systems and we are moving to a new set of servers, monitoring via nagios. I understand that versions of NRPE can be out of sync so I've ran the same versions as currently in use (plugins-1.4.13 and nrpe-2.12). No errors but can only relate this message: configure: WARNING: LIBS="-lcrypt " CPPFLAGS=""

The daemon is not running under xinetd. Current nodes do not have /etc/services with nrpe listed and the process is running as: nagios 9179 1 0 Jan06 ? 00:00:12 /usr/local/bin/nrpe -c /etc/nrpe.cfg -d


When trying to start in the same fashion from the installation as documented, the following error in full: nrpe: error while loading shared libraries: requires glibc 2.5 or later dynamic linker

I've checked both nodes and any references to glibc shows version 2.3 on both, but is able to run on the current nodes.
Current: Linux localhost 2.4.21-37.0.1.ELsmp #1 SMP Wed Jan 11 18:44:17 EST 2006 i686 i686 i386 GNU/Linux
New: Linux localhost 2.6.9-89.0.11.ELsmp #1 SMP Mon Aug 31 11:01:10 EDT 2009 i686 i686 i386 GNU/Linux

I'm not a seasoned *nix person. Seems that there is a library that it either can't see/load or something makes it want a different version. I've checked up2date for any updated packages and it doesn't show anything to be updated nor lists version 2.5.

Anyone have any thoughts/ideas?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of elf_bin
elf_bin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of noci
noci

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mmcc0912
mmcc0912

ASKER

I guess I don't understand why the new server complains when the nrpe versions are working on the older ones, even running 2.3.  After reading some last night I understand that yes, an attempt to upgrade would probably be devistating...  ldd reports, not a dynamic executable.  

According to up2date, 2.3 is current and the .so files reflect it also.  The nrpe source is the extracted files that were under the old admins profile on the nagios server.  I copied the files and ran the configure and installation on the destination server.  From what I have done with this, it looks like they are downloaded and not via up2date/yum if I'm following you right.  There isn't an nrpe under init.d, it looks like it's being ran manually from the cmdline.  The only files are in the locations of; /usr/local/nagios/bin/nrpe, /etc/xinetd.d/nrpe and /opt/nrpe-2.12/src/nrpe.  If this is true, as expected, I'll need to set that up for obvious reasons....  Thanks for the short info on xinetd, it's something that I haven't bridged into yet...

Overall, I had come to the conclusion that I am hopeful that a lower version of nrpe will run on the system and be acceptable by the nagios server.  While it still doesn't make sense to me why these are this way, ultimately 'it is what it is'....  Last question from the newbie in regards to this, is there an uninstall process to remove the 2.12 or just remove the /usr/local/nagios/* files and install the other version?  


Thanks much...
Well RHEL is a little older on some libraries.. (Gentoo uses 2.9 for quite some time already)

If you installed by hand... (make uninstall from the directory you built it in, or remove the directories under /usr/local/nagios...) if you installed it with an RPM (preferable) then you can remove it with rpm.

use http://rpm.pbone.net/ to search for those rpm's... (they also have them for nrpe..)
My distribution comes with glibc 2.9, so 2.3 and even 2.5 are really quite old (Slackware 13.0).
As long as you use the package manager, there should not be a problem upgrading glibc. 2.x will contain backward compatibility with 2.y where x > y.
If you're using RHEL, get nrpe from here: http://dag.wieers.com/rpm/packages/nagios-nrpe/
Otherwise just build from source and link against whatever libraries you have installed (I checked the source docs & NRPE says it only requires TCP wrappers & xinetd)

Hope this helps.


OK, wanted to take something out of the equation, that is not to use what the previous admin had on the nagios server.  I downloaded the current (same) versions of plugins and nrpe, removed the /usr/local/nagios/ directory and ran configure/make/etc again.  It's happy.  I think there was something from the source files that the previous guy did or something.  Even running configure/make/etc it had something that made it think it needed that library set?  

Thanks all for your help.  
Don't copy what someone else had and expect that it's always the correct source to use..