Page 1 of 1
libc.so.1: version `SUNW_1.22.7' error on NRPE solairs agent
Posted: Thu Aug 23, 2012 10:32 am
by westernuniv
I have installed NRPE solairs agent without any issue.
When I tried locally, I've got follwoing error
# /usr/local/nagios/libexec/check_disk -w 10 -c 5 -p /
ld.so.1: check_disk: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by file /usr/local/nagios/libexec/check_disk)
ld.so.1: check_disk: fatal: libc.so.1: open failed: No such file or directory
Killed
Im ruuning follwoing Solairs 10
# cat /etc/release
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010
# uname -a
SunOS qatcal72.its.uwo.pri 5.10 Generic_144488-17 sun4v sparc SUNW,Sun-Fire-T200
I dont have the specific version SUNW_1.22.7'
# pvs /usr/lib/libc.so.1
libc.so.1;
SUNW_1.23;
SUNW_1.22.6;
SUNW_1.22.5;
SUNW_1.22.4;
SUNW_1.22.3;
SUNW_1.22.2;
SUNW_1.22.1;
SUNW_1.22;
SUNW_1.21.3;
SUNW_1.21.2;
SUNW_1.21.1;
SUNW_1.21;
SUNW_1.20.4;
SUNW_1.20.1;
SUNW_1.20;
SUNW_1.19;
SUNW_1.18.1;
SUNW_1.18;
SUNW_1.17;
SUNW_1.16;
SUNW_1.15;
SUNW_1.14;
SUNW_1.13;
SUNW_1.12;
SUNW_1.11;
SUNW_1.10;
SUNW_1.9;
SUNW_1.8;
SUNW_1.7;
SUNW_1.6;
SUNW_1.5;
SUNW_1.4;
SUNW_1.3;
SUNW_1.2;
SUNW_1.1;
SUNW_0.9;
SUNW_0.8;
SUNW_0.7;
SISCD_2.3;
SYSVABI_1.3;
SUNWprivate_1.1;
May I know the reason for NRPE to look for specific libc verson rather working with dynamic libraries? Any workaround to solve this issue?
Thanks
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Fri Aug 24, 2012 4:24 pm
by estanley
I'm not completely sure what is going on, but I suspect the issue you're seeing is because you're using an older libc.so.1. I don't have access to my SPARC Solaris system, but on my x86 system (which was built at the same time as the SPARC system), I have the following:
Code: Select all
# cat /etc/release
Oracle Solaris 10 8/11 s10x_u10wos_17b X86
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
Assembled 23 August 2011
# uname -a
SunOS minnetonka 5.10 Generic_147441-01 i86pc i386 i86pc
On my system I see the following:
Code: Select all
# pvs -d -s /lib/libc.so.1 | head -n 15
libc.so.1:
_edata;
_PROCEDURE_LINKAGE_TABLE_;
_etext;
_GLOBAL_OFFSET_TABLE_;
_end;
_DYNAMIC;
SUNW_1.23:
SUNW_1.22.7:
asprintf;
smt_pause;
fdatasync;
vasprintf;
SUNW_1.22.6:
utimensat;
What I think is happening is that check_disk (which was compiled on these systems) is using one or more of the functions that was updated in SUNW_1.22.7. I'm not sure what the version SUNW_1.23 is about since it doesn't seem to have any changes.
The package which contains /lib/libc.so.1 (/usr/sbin/pkgchk -l -p /lib/libc.so.1) is SUNWcslr. On my system, that package's version (pkginfo -l SUNWcslr) is 11.10.0,REV=2005.01.21.16.34. What is the version on your system? If it is older, I think the way to resolve the issue is either to update your SUNWcslr package or recompile the plugins on your system.
Let me know what you find.
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 10:00 am
by westernuniv
I've used the following guide and I believe plugins are precompiled
http://assets.nagios.com/downloads/nagi ... _Agent.pdf
I’ll try compiling nagios plug-in in the same system and see.
# pkginfo -l SUNWcslr
PKGINST: SUNWcslr
NAME: Core Solaris Libraries (Root)
CATEGORY: system
ARCH: sparc
VERSION: 11.10.0,REV=2005.01.21.15.53
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: core software for a specific instruction-set architecture
PSTAMP: on10-patch20110531023008
INSTDATE: Sep 20 2011 14:42
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 245 installed pathnames
2 shared pathnames
5 directories
133 executables
34350 blocks used (approx)
Thanks
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 11:17 am
by scottwilkerson
westernuniv wrote:I’ll try compiling nagios plug-in in the same system and see.
You may be on to something here.
Please let us know if this resolves the issue.
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 11:28 am
by westernuniv
Hi,
I have re-compiled nagios plugin on the same system. it’s working now!

# /usr/local/nagios/libexec/check_disk -w 10 -c 5 -p /
DISK OK - free space: / 19484 MB (58% inode=94%);| /=14029MB;33503;33508;0;33513
Then I continued to compile and install nrpe. Configured all the necessary settings. I’m getting the following error
# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
/var/adm/messages showed
# tail -f /var/adm/messages
Aug 27 12:17:50 qatcal72.its.uwo.pri inetd[9749]: [ID 317013 daemon.notice] nrpe[19294] from 127.0.0.1 42166
Aug 27 12:17:50 qatcal72.its.uwo.pri nrpe[19294]: [ID 927837 daemon.info] connect from localhost
Aug 27 12:17:51 qatcal72.its.uwo.pri inetd[19294]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)
# inetadm -l /network/nrpe/tcp
SCOPE NAME=VALUE
name="nrpe"
endpoint_type="stream"
proto="tcp"
isrpc=FALSE
wait=FALSE
exec="/usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -i"
user="nagios"
default bind_addr=""
default bind_fail_max=-1
default bind_fail_interval=-1
default max_con_rate=-1
default max_copies=-1
default con_rate_offline=-1
default failrate_cnt=40
default failrate_interval=60
default inherit_env=TRUE
default tcp_trace=TRUE
tcp_wrappers=TRUE
default connection_backlog=10
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 11:40 am
by scottwilkerson
westernuniv wrote:I have re-compiled nagios plugin on the same system. it’s working now!

# /usr/local/nagios/libexec/check_disk -w 10 -c 5 -p /
DISK OK - free space: / 19484 MB (58% inode=94%);| /=14029MB;33503;33508;0;33513
This is good, we'll have a look at changing the installer.
As for the NRPE error, when you re-compiled you likely overwrote the nrpe.cfg
Make sure in your nrpe.cfg in the allowed_hosts you have you nagios XI server listed
Then restart NRPE
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 12:01 pm
by westernuniv
I have already allowed in nrpe.cfg and under /etc/hosts.deny:
nrpe.cfg
---> allowed_hosts=127.0.0.1, <nagios-host>
/etc/hosts.deny
---> nrpe: <nagios-host> localhost : ALLOW
Thanks
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 12:11 pm
by scottwilkerson
After adding it to the nrpe.cfg did you restart the daemon?
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Mon Aug 27, 2012 12:23 pm
by westernuniv
Yes , I did restart, still getting the same error
# svcadm restart svc:/network/nrpe/tcp:default
# /usr/local/nagios/libexec/check_nrpe -H localhost
CHECK_NRPE: Error - Could not complete SSL handshake.
Aug 27 13:16:08 qatcal72.its.uwo.pri inetd[9749]: [ID 317013 daemon.notice] nrpe[2297] from 127.0.0.1 42970
Aug 27 13:16:08 qatcal72.its.uwo.pri nrpe[2297]: [ID 927837 daemon.info] connect from localhost
Aug 27 13:16:08 qatcal72.its.uwo.pri inetd[2297]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)
Re: libc.so.1: version `SUNW_1.22.7' error on NRPE solairs a
Posted: Tue Aug 28, 2012 9:13 am
by scottwilkerson
If you are trying to connect from localhost you will also need to make sure you have 127.0.0.1 in the allowed_hosts field of nrpe.cfg
and then restart the daemon