Page 1 of 2

Unable to start NRPE Solaris agent.

Posted: Thu Oct 01, 2015 10:22 pm
by melmari
Hi,

I having problem installing NRPE solaris agent. Details below for troubleshooting.

Code: Select all

root@***1 # uname -a
SunOS *** 5.10 Generic_142900-11 sun4u sparc SUNW,Sun-Fire-V240
root@*** # cat /etc/release
                      Solaris 10 10/09 s10s_u8wos_08a SPARC
           Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                           Assembled 16 September 2009

# svcs | grep svc:/application/nagios/nrpe:default
maintenance    Sep_25   svc:/application/nagios/nrpe:default
# svcs -xv svc:/application/nagios/nrpe:default
svc:/application/nagios/nrpe:default (NRPE daemon)
 State: maintenance since Fri Sep 25 10:33:42 2015
Reason: Start method failed repeatedly, last exited with status 137.
   See: http://sun.com/msg/SMF-8000-KS
   See: /var/svc/log/application-nagios-nrpe:default.log
Impact: This service is not running.

root@*** # cat /var/svc/log/application-nagios-nrpe:default.log
[ Sep 25 10:33:37 Disabled. ]
[ Sep 25 10:33:37 Rereading configuration. ]
[ Sep 25 10:33:42 Enabled. ]
[ Sep 25 10:33:42 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by fi    le /opt/nagios/bin/nrpe)
ld.so.1: nrpe: fatal: libc.so.1: open failed: No such file or directory
Killed
[ Sep 25 10:33:42 Method "start" exited with status 137 ]
[ Sep 25 10:33:42 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by fi    le /opt/nagios/bin/nrpe)
ld.so.1: nrpe: fatal: libc.so.1: open failed: No such file or directory
Killed
[ Sep 25 10:33:42 Method "start" exited with status 137 ]
[ Sep 25 10:33:42 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by fi    le /opt/nagios/bin/nrpe)
ld.so.1: nrpe: fatal: libc.so.1: open failed: No such file or directory
Killed
[ Sep 25 10:33:42 Method "start" exited with status 137 ]

root@*** # /opt/nagios/bin/nrpe -c /etc/nagios/nrpe -n -d
ld.so.1: nrpe: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by file /opt/nagios/bin/nrpe)
ld.so.1: nrpe: fatal: libc.so.1: open failed: No such file or directory
Killed

root@*** # find / -name libc.so.1
/usr/lib/sparcv9/libc.so.1
/usr/lib/libc.so.1
/usr/lib/libp/libc.so.1
/usr/lib/libp/sparcv9/libc.so.1
/lib/sparcv9/libc.so.1
/lib/libc.so.1

root@*** # find / -name ld.so.1
/usr/lib/ld.so.1
/usr/lib/sparcv9/ld.so.1
/etc/lib/ld.so.1
/lib/sparcv9/ld.so.1
/lib/ld.so.1

root@*** # ldd /opt/nagios/bin/nrpe
        libssl.so.0.9.7 =>       /usr/sfw/lib/libssl.so.0.9.7
        libcrypto.so.0.9.7 =>    /usr/sfw/lib/libcrypto.so.0.9.7
        libnsl.so.1 =>   /lib/libnsl.so.1
        libsocket.so.1 =>        /lib/libsocket.so.1
        libc.so.1 =>     /lib/libc.so.1
        libc.so.1 (SUNW_1.22.7) =>       (version not found)
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libssl_extra.so.0.9.7 =>         /usr/sfw/lib/libssl_extra.so.0.9.7
        libcrypto_extra.so.0.9.7 =>      /usr/sfw/lib/libcrypto_extra.so.0.9.7
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-V240/lib/libmd_psr.so.1

root@*** # pvs /usr/lib/libc.so.1
        libc.so.1;
        SUNW_1.23;
        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;

root@*** # pvs -d -s /lib/libc.so.1 | head -n 15
        libc.so.1:
                _DYNAMIC;
                _GLOBAL_OFFSET_TABLE_;
                _end;
                _edata;
                _etext;
                _PROCEDURE_LINKAGE_TABLE_;
        SUNW_1.23:
        SUNW_1.22.5:
                getpagesizes2;
        SUNW_1.22.4:
        SUNW_1.22.3:
                uucopy;
                u8_textprep_str;
                mutex_consistent;


root@*** # ls -latr /usr/lib/libc.*
lrwxrwxrwx   1 root     root          19 Sep 20  2010 /usr/lib/libc.so -> ../../lib/libc.so.1
lrwxrwxrwx   1 root     root          19 Sep 20  2010 /usr/lib/libc.so.1 -> ../../lib/libc.so.1

root@*** # ldd -v /usr/lib/libc.so.1

   object=/usr/lib/libc.so.1; filter for /usr/lib/ld.so.1

   object=/usr/lib/libc.so.1; filter for libm.so.2

   find object=libm.so.2; required by /usr/lib/libc.so.1
        libm.so.2 =>     /lib/libm.so.2

   find object=libc.so.1; required by /lib/libm.so.2
   find version=libc.so.1
        libc.so.1 (SUNW_1.1) =>  /usr/lib/libc.so.1

   object=/lib/libm.so.2; filter for $ORIGIN/libm/$HWCAP

   find object=/lib/libm/sparcv9; required by /lib/libm.so.2

   find object=/lib/libm/libm_hwcap1.so.2; required by /lib/libm.so.2

   object=/usr/lib/libc.so.1; filter for /platform/$PLATFORM/lib/libc_psr.so.1

   find object=/platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1; required by /usr/lib/libc.so.1
        /platform/SUNW,Sun-Fire-V240/lib/libc_psr.so.1


==============================================================================

   
Already Tried restarting the server but gets the same error response.

[ Oct  1 16:57:46 Leaving maintenance because disable requested. ]
[ Oct  1 16:57:46 Disabled. ]
[ Oct  1 16:58:29 Enabled. ]
[ Oct  1 16:58:29 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: fatal: libc.so.1: version `SUNW_1.22.7' not found (required by file /opt/nagios/bin/nrpe)
ld.so.1: nrpe: fatal: libc.so.1: open failed: No such file or directory
Killed
[ Oct  1 16:58:29 Method "start" exited with status 137 ]

Please Help.

thanks,
Mel

Moderator's Edit: Please, place large chunks of code in code wraps as I did - see above. Thanks!

Re: Unable to start NRPE Solaris agent.

Posted: Fri Oct 02, 2015 9:36 am
by hsmith
Please reply in the other topic or choose to use this one. You bumped an old thread, and then opened this one. Which one would you like to communicate in, so that I may close the other? Having multiple topics open makes it much harder to troubleshoot.

Re: Unable to start NRPE Solaris agent.

Posted: Mon Oct 05, 2015 9:13 pm
by melmari
Hi,

I saw this topic is not yet resolve on the other thread, also not clearly indicate the proper or possible way of resolution. Hope someone will help me with it.

thank you.
Mel

Re: Unable to start NRPE Solaris agent.

Posted: Tue Oct 06, 2015 10:47 am
by hsmith
Did you read through the guide that was posted in the thread located here?

Re: Unable to start NRPE Solaris agent.

Posted: Tue Oct 06, 2015 9:43 pm
by melmari
Yes, But that is not work on my problem cause I use Solaris NRPE script with ./fullinstall. successfully installed but having this problem.

I saw at one thread that I need to patch my solaris machine to 147440-21 to be able to use this nrpe solaris. but I need more proof before I do that on my machine.

I am looking for another resolution aside from patching. Hope to find another one from this thread. Thanks.

Re: Unable to start NRPE Solaris agent.

Posted: Wed Oct 07, 2015 12:34 pm
by hsmith
All right, let's step back a bit here. Can you attempt to use this plugin?

Re: Unable to start NRPE Solaris agent.

Posted: Thu Oct 08, 2015 10:15 pm
by melmari
Yes, I tried this plugin with error on below,

root@bpstg1 # ./check_nrpe -H localhost
ld.so.1: check_nrpe: fatal: libssl.so.0.9.7: open failed: No such file or directory
Killed

root@bpstg1 # svcadm enable -s nrpe
svcadm: Instance "svc:/application/nagios/nrpe:default" is in maintenance state.

thanks,
Mel

Re: Unable to start NRPE Solaris agent.

Posted: Fri Oct 09, 2015 2:19 pm
by ssax
Have you tried installing SUNW_1.22.7?

Thank you

Re: Unable to start NRPE Solaris agent.

Posted: Fri Oct 09, 2015 2:24 pm
by tmcdonald
I think @ssax has it right - see this thread from 2013: https://support.nagios.com/forum/viewto ... 46&p=54526

Re: Unable to start NRPE Solaris agent.

Posted: Wed Oct 21, 2015 3:16 am
by melmari
So only Patch Upgrade can resolve this Issue? this will not help in a live and large environment that is why I'm looking for other option. Something that the plugins or nagios will the one to adjust not the Solaris servers. any way thanks for your help.