CentOS errors

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.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

CentOS errors

Post by MPIvan »

Hi all,

I start installing Nagios on CentOS, so everything went ok, but i have problems with the service, check_snmp, when i try to execute i have the folowing error
[root@mpnagios libexec]# ./check_snmp -h
./check_snmp: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./check_snmp)
[root@mpnagios libexec]#
any suggestion ?
Last edited by MPIvan on Fri Oct 25, 2013 6:00 am, edited 1 time in total.
schweet
Posts: 2
Joined: Fri Oct 25, 2013 4:51 am

Re: CentOS errors

Post by schweet »

Your missing libs.
#yum install glibc

Not sure about the other errors.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: CentOS errors

Post by abrist »

That take care of it MPIvan?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: CentOS errors

Post by MPIvan »

No not helping ...
[root@mpnagios ~]# yum install glibc
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.cabletel.com.mk
* extras: mirror.cabletel.com.mk
* updates: mirror.cabletel.com.mk
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 5.0 MB 00:00
Setting up Install Process
Package glibc-2.12-1.107.el6_4.5.x86_64 already installed and latest version
Nothing to do
[root@mpnagios ~]#
[root@mpnagios libexec]# ./check_snmp -h
./check_snmp: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./check_snmp)
[root@mpnagios libexec]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: CentOS errors

Post by slansing »

It looks like you are running CentOS 6.4 correct? The current version of GLIBC is 2.18 but yum is not updating you to that for whatever reason.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: CentOS errors

Post by MPIvan »

Yes im running CentOS 6.4 ... and as i can see im running 2.12 version but cant update to 2.18 or newer. So i guess the issue is that ...
i need uptime status of a router, before i installed Nagios on CentOS iv use "check_snmp" on Ubuntu .. because i start all over again but on CentOS im just using the files .cfg and i have to make this work or i will have too much work to go to change all this to work with other script plugin or what ever
[root@mpnagios ~]# /lib/libc.so.6
GNU C Library stable release version 2.12, by Roland McGrath et al.
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.7 20120313 (Red Hat 4.4.7-3).
Compiled on a Linux 2.6.32 system on 2013-10-14.
Available extensions:
The C stubs add-on version 2.1.2.
crypt add-on version 2.1 by Michael Glad and others
GNU Libidn by Simon Josefsson
Native POSIX Threads Library by Ulrich Drepper et al
BIND-8.2.3-T5B
RT using linux kernel aio
libc ABIs: UNIQUE IFUNC
For bug reporting instructions, please see:
<http://www.gnu.org/software/libc/bugs.html>.
[root@mpnagios ~]#
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CentOS errors

Post by sreinhardt »

Was your check_snmp compiled on this cent system or the previous ubuntu system? There will be some changes and differences between systems, and binaries are not likely compatible between them due to version and location differences of files. I just wanted to validate that this was created on the cent system so that we are not debugging things that will not be there.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: CentOS errors

Post by MPIvan »

I thought of that but i wasn't sure if it could be that :) ... yes, before i installed Nagios on CentOS i make backup from Ubuntu, i take the files and plugins ( for files .fg i don't used them, because i start all over again ) but for the "check_snmp" i copy in the directory in CentOS and i try to use. But also the version of GLIBC is 2.12 and the newer is 2.18, so what should i looking now ? I use check_snmp for Uptime status.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: CentOS errors

Post by sreinhardt »

You should recompile ALL plugins for the new system. Unless they are scripts like python, bash, and perl, all compiled plugins will always need to be recompiled for a new OS or architecture. Until then, this and many other plugins will continue to fail as they are dynamically linked to files they depend on, that massively change between linux distros and versions.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: CentOS errors

Post by MPIvan »

When i install Nagios on CentOS i install nagios-plugins-1.5 ... but there i dont see the check_snmp .... so do i have to download older version of the plugins and installed ( recompile ) again or ?? can i just use or some how install just check_snmp ?
Locked