Page 1 of 2
/lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Wed May 28, 2014 3:48 am
by aleks1
Hi everybody!
i have installed nagios core 4 on ubuntu server 12.04 lts..
everything working fine,, but... i have a problem with remote command to a remote linux (ubuntu server 12.04) pc!
when i try to check a service, for example: check_swap, check_disk etc.. i got everytime an error:
Code: Select all
Remote command execution failed: /home/nagios/plugins/check_disk: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /home/nagios/plugins/check_disk)
the remote pc is not my pc and i don't want to make a disaster!

So... how can i fix this problem?
any help be appreciate!!!

thanks in advance!

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Wed May 28, 2014 1:36 pm
by slansing
Looks like libc is out of date, run the following then try to run that command again:
The Libc package is going to be required by a lot of applications, and also your nagios plugins, updating should not harm the system in the least bit, but just in case, if you are running this on a VM I recommend taking a snapshot.
Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 3:24 am
by aleks1
Hi and thank you for reply!

ops! my friends told me that the server (with this problem) is a CentOS 5.6
and the command:
Code: Select all
yum install libc6
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.fastbull.org
* extras: mirror.softaculous.com
* updates: mirror.euserv.net
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Install Process
No package libc6 available.
Nothing to do
you know what is the right package that i should install??
Thank you in advance!

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 6:47 am
by eloyd
Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 7:12 am
by aleks1
thank you for help!!

on my remote server (centos 5.6):
Code: Select all
yum install glibc:
yum install glibc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.fastbull.org
* extras: centos.fastbull.org
* updates: mirror.euserv.net
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Install Process
Package glibc-2.5-118.el5_10.2.x86_64 already installed and latest version
Package glibc-2.5-118.el5_10.2.i686 already installed and latest version
Nothing to do
--------------------------------------------------------
[root@fileserver ~]# yum install glibc-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.fastbull.org
* extras: centos.fastbull.org
* updates: mirror.atrpms.net
Reducing CentOS-5 Testing to included packages only
Finished
Setting up Install Process
Package glibc-devel-2.5-118.el5_10.2.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package glibc-devel.i386 0:2.5-118.el5_10.2 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
glibc-devel i386 2.5-118.el5_10.2 updates 2.1 M
Transaction Summary
================================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
Total download size: 2.1 M
Is this ok [y/N]: y
Downloading Packages:
glibc-devel-2.5-118.el5_10.2.i386.rpm | 2.1 MB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : glibc-devel 1/1
Installed:
glibc-devel.i386 0:2.5-118.el5_10.2
Complete!
but unfortunatly from my nagios server

:
Code: Select all
/usr/local/nagios/libexec/check_by_ssh -H '10.10.2.103' -C " /home/nagios/plugins/check_disk -w '20' -c '10' "
Remote command execution failed: /home/nagios/plugins/check_disk: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/nagios/plugins/check_disk)
Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 7:20 am
by eloyd
Here's your problem:
Code: Select all
glibc-devel i386 2.5-118.el5_10.2 updates 2.1 M
The code wants version 2.14, and you only have 2.5. It sounds as though your system is too old or else the plugin was compiled on a different machine.
Do this:
Code: Select all
yum list centos-release
cat /etc/centos-release
Do the two version numbers match? What version of CentOS does it say you're running?
Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 7:36 am
by aleks1
i think that the CentOS remote server is too old... this is a centos 5.6!
Do this:
Code: Select all
yum list centos-release
cat /etc/centos-release
Code: Select all
[root@fileserver ~]# yum list centos-release
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.fastbull.org
* extras: centos.fastbull.org
* updates: mirror.euserv.net
Reducing CentOS-5 Testing to included packages only
Finished
Installed Packages
centos-release.x86_64 10:5-6.el5.centos.1 installed
Available Packages
centos-release.x86_64 10:5-10.el5.centos base
[root@fileserver ~]# cat /etc/centos-release
cat: /etc/centos-release: No such file or directory
And if i change the plugins used on remote server centos 5.6, with an older version of nagios plugins?
is a good idea or a stupid intuition? eheheheh

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 8:18 am
by eloyd
Yikes!
Code: Select all
centos-release.x86_64 10:5-6.el5.centos.1 installed
You should definitely do a "yum update" to bring this system up to as close to current as possible (and maybe a "yum upgrade" after that), but it's unlikely you'll be able to piece together the bits you need to make it run glibc 2.14 given your current state.
If this is a virtual machine, I'd say delete it and start over. If it's a physical machine, you may have a tough time of it.
The good news is that you can always download the source for the Nagios plugins and compile them on your machine, so at least they will be built with the libraries that you currently have installed. Honestly, this might be your best bet.
Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Thu May 29, 2014 1:47 pm
by scottwilkerson
@aleks1 - Did you just copy this plugin from your Ubuntu machine to this CentOS machine?
If so, this isn't going to work, you will need to compile and install the plugins from source
http://nagios-plugins.org/downloads/
Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'
Posted: Fri May 30, 2014 2:57 am
by aleks1
Thank you for all replies!
yesterday i have tried to download and copy on CentOS machine the nagios 1.4 plugins and everything working fine with this machine!

thank you for all support! @eloyd @scottwilkerson @slansing