Page 1 of 6
CentOS errors
Posted: Fri Oct 25, 2013 1:16 am
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 ?
Re: CentOS errors
Posted: Fri Oct 25, 2013 5:00 am
by schweet
Your missing libs.
#yum install glibc
Not sure about the other errors.
Re: CentOS errors
Posted: Fri Oct 25, 2013 1:25 pm
by abrist
That take care of it MPIvan?
Re: CentOS errors
Posted: Mon Oct 28, 2013 3:17 am
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]#
Re: CentOS errors
Posted: Mon Oct 28, 2013 12:54 pm
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.
Re: CentOS errors
Posted: Tue Oct 29, 2013 1:55 am
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 ~]#
Re: CentOS errors
Posted: Tue Oct 29, 2013 10:59 am
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.
Re: CentOS errors
Posted: Wed Oct 30, 2013 3:05 am
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.
Re: CentOS errors
Posted: Wed Oct 30, 2013 1:25 pm
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.
Re: CentOS errors
Posted: Tue Nov 05, 2013 8:13 am
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 ?