Page 1 of 1

monitoring solaris 10 client with NRPE

Posted: Wed Jul 13, 2016 7:29 am
by fretagi
I am having a problem with the Solaris 10 NRPE agent, with an install on an older build of Solaris 10. I am using the NRPE agent.
It complains that there is no

Code: Select all

 tail /var/svc/log/application-nagios-nrpe:default.log
[ Jul 14 13:32:39 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
[ Jul 14 13:32:39 Method "start" exited with status 137 ]
[ Jul 14 13:32:39 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
[ Jul 14 13:32:39 Method "start" exited with status 137 ]
bash-3.00#
but when looking for it:

Code: Select all

# 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
# 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
you have mail
and if I follow the instruction of another link:

Code: Select all

ls -latr /usr/lib/libc.*
lrwxrwxrwx   1 root     root          19 Dec 21  2011 /usr/lib/libc.so -> ../../lib/libc.so.1
lrwxrwxrwx   1 root     root          19 Dec 21  2011 /usr/lib/libc.so.1 -> ../../lib/libc.so.1
# 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
        /lib/libm/libm_hwcap1.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/sun4v/lib/libc_psr.so.1; required by /usr/lib/libc.so.1
        /platform/sun4v/lib/libc_psr.so.1
#
It looks like I have a newer version of the file, but cannot get NRPE to start:

Code: Select all

svcs | grep nrpe
maintenance    13:32:39 svc:/application/nagios/nrpe:default
bash-3.00# svcadm enable /application/nagios/nrpe
bash-3.00# svcs | grep nrpe
maintenance    13:32:39 svc:/application/nagios/nrpe:default
Please help!

Re: monitoring solaris 10 client with NRPE

Posted: Wed Jul 13, 2016 11:39 am
by tgriep
You may want to remove the install and try following the instructions at this link.
http://bigunix.blogspot.com/2009/06/ins ... ugins.html
Compiling from source seems to work better for most people.

If you run this command on the Solaris server, it should tell you the status of that service and the error or log file you have to look at to see why the service isn't starting.

Code: Select all

svcs -l svc:/application/nagios/nrpe:default

Re: monitoring solaris 10 client with NRPE

Posted: Fri Jul 15, 2016 9:42 am
by fretagi

Code: Select all

# svcs -l svc:/application/nagios/nrpe:default
fmri         svc:/application/nagios/nrpe:default
name         NRPE daemon
enabled      true
state        maintenance
next_state   none
state_time   July 14, 2016 01:32:39 PM CAT
logfile      /var/svc/log/application-nagios-nrpe:default.log
restarter    svc:/system/svc/restarter:default
contract_id
dependency   require_all/none svc:/system/filesystem/local (online)
dependency   optional_all/none svc:/system/filesystem/autofs (online)
dependency   require_all/none svc:/network/loopback (online)
dependency   require_all/none svc:/network/physical (online)
dependency   require_all/none svc:/system/cryptosvc (online)
dependency   require_all/none svc:/system/utmp (online)
dependency   require_all/restart file://localhost/etc/nagios/nrpe.cfg (online)
you have mail
#
Regarding your link, I was actually following instructions from that link

Re: monitoring solaris 10 client with NRPE

Posted: Fri Jul 15, 2016 11:28 am
by tgriep
What errors do you see in this log file?

Code: Select all

/var/svc/log/application-nagios-nrpe:default.log
Can you post it so we can view it?