/lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
aleks1
Posts: 43
Joined: Thu Nov 28, 2013 1:33 pm

/lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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! :)
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post by slansing »

Looks like libc is out of date, run the following then try to run that command again:

Code: Select all

sudo apt-get install libc6
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.
aleks1
Posts: 43
Joined: Thu Nov 28, 2013 1:33 pm

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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! :)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post by eloyd »

Code: Select all

yum install glibc
You may also need

Code: Select all

yum install glibc-devel
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
aleks1
Posts: 43
Joined: Thu Nov 28, 2013 1:33 pm

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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?
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
aleks1
Posts: 43
Joined: Thu Nov 28, 2013 1:33 pm

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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 :)
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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/
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
aleks1
Posts: 43
Joined: Thu Nov 28, 2013 1:33 pm

Re: /lib/x86_64-linux-gnu/libc.so.6:version `GLIBC_2.14'

Post 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
Locked