I can't start nrpe agent in solaris 10

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
skywalker
Posts: 26
Joined: Tue Jan 14, 2014 7:27 pm

I can't start nrpe agent in solaris 10

Post by skywalker »

I have install the nrpe agent of nagios XI by referring to this article.
But I can not run the agent of nagios xi in solaris 10.
All steps appear to have already completed successfully in the log directory.
-rw-r--r-- 1 root root 96 7월 10일 15:42 0-prereqs.log
-rw-r--r-- 1 root root 171 7월 10일 15:42 1-usersgroups.log
-rw-r--r-- 1 root root 3.3K 7월 10일 15:43 2-plugins.log
-rw-r--r-- 1 root root 2.7K 7월 10일 15:43 3-nrpe.log
-rw-r--r-- 1 root root 173 7월 10일 15:43 A-subcomponents.log

Please help me .
#svcs -xc

svc:/application/nagios/nrpe:default (NRPE daemon)
State: maintenance since 2014년 7월 10일 목요일 오후 03시 43분 40초
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.

[stdweb2:/rock/solaris-nrpe-agent/log]#svcs |grep nrpe
maintenance 17:27:02 svc:/application/nagios/nrpe:default
[stdweb2:/rock/solaris-nrpe-agent/log]#svcadm enable nrpe
[stdweb2:/rock/solaris-nrpe-agent/log]#svcs |grep nrpe
maintenance 17:27:02 svc:/application/nagios/nrpe:default
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: I can't start nrpe agent in solaris 10

Post by slansing »

Did you follow this guide?:

http://utahsysadmin.com/2008/03/14/conf ... olaris-10/

How are you trying to initiate the NRPE daemon? If you were trying to install the xi-agent which it looks like you were, it is likely expecting that xinetd is installed as a service initializer on that system, which is likely not the case, you will want to swap NRPE over to daemonized mode like so:

/usr/local/nagios/bin/nrpe /usr/local/nagios/etc/nrpe.cfg -d

NOTE: You need to replace those paths with your own, the first one to the binary, the second to the config file.

Or did you set up an NRPE service?:

Code: Select all

service nrpe status

service xinetd status
skywalker
Posts: 26
Joined: Tue Jan 14, 2014 7:27 pm

Re: I can't start nrpe agent in solaris 10

Post by skywalker »

I have followed this guide.
http://assets.nagios.com/downloads/nagi ... _Agent.pdf

I think I have successfully installed agent without any error messages.
So, It does not contain any error messages on "installed.log"
Do I need to install manually agent?

After the installation is complete, the service starts automatically isn't it?

After the installation, what should I do further?
skywalker
Posts: 26
Joined: Tue Jan 14, 2014 7:27 pm

Re: I can't start nrpe agent in solaris 10

Post by skywalker »

[stdweb2:/]#showrev
Hostname: stdweb2
Hostid: 80921d41
Release: 5.10
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain:
Kernel version: SunOS 5.10 Generic_137111-01

[stdweb2:/]#svcs -xv
svc:/application/print/server:default (LP print server)
State: disabled since 2013년 6월 12일 수요일 오후 04시 23분 40초
Reason: Disabled by an administrator.
See: http://sun.com/msg/SMF-8000-05
See: man -M /usr/share/man -s 1M lpsched
Impact: 2 dependent services are not running:
svc:/application/print/rfc1179:default
svc:/application/print/ipp-listener:default

svc:/application/nagios/nrpe:default (NRPE daemon)
State: maintenance since 2014년 7월 10일 목요일 오후 05시 27분 02초
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.
[stdweb2:/]#cat /var/svc/log/application-nagios-nrpe:default.log
[ 7�� 10 15:43:12 Disabled. ]
[ 7�� 10 15:43:13 Rereading configuration. ]
[ 7�� 10 15:43:40 Enabled. ]
[ 7�� 10 15:43:40 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: ġ����: libc.so.1: `SUNW_1.22.7' ������ ���� (/opt/nagios/bin/nrpe ���Ͽ��� �䱸��)
ld.so.1: nrpe: ġ����: libc.so.1: ���� ����: �ش� �����̳� �����丮�� ����
�ߴܵ�(Killed)
[ 7�� 10 15:43:40 Method "start" exited with status 137 ]
[ 7�� 10 15:43:40 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: ġ����: libc.so.1: `SUNW_1.22.7' ������ ���� (/opt/nagios/bin/nrpe ���Ͽ��� �䱸��)
ld.so.1: nrpe: ġ����: libc.so.1: ���� ����: �ش� �����̳� �����丮�� ����
�ߴܵ�(Killed)
[ 7�� 10 15:43:40 Method "start" exited with status 137 ]
[ 7�� 10 15:43:40 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: ġ����: libc.so.1: `SUNW_1.22.7' ������ ���� (/opt/nagios/bin/nrpe ���Ͽ��� �䱸��)
ld.so.1: nrpe: ġ����: libc.so.1: ���� ����: �ش� �����̳� �����丮�� ����
�ߴܵ�(Killed)
[ 7�� 10 15:43:40 Method "start" exited with status 137 ]
[ 7�� 10 17:18:05 Leaving maintenance because clear requested. ]
[ 7�� 10 17:18:05 Enabled. ]
[ 7�� 10 17:18:05 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: ġ����: libc.so.1: `SUNW_1.22.7' ������ ���� (/opt/nagios/bin/nrpe ���Ͽ��� �䱸��)
ld.so.1: nrpe: ġ����: libc.so.1: ���� ����: �ش� �����̳� �����丮�� ����
�ߴܵ�(Killed)
[ 7�� 10 17:18:05 Method "start" exited with status 137 ]
[ 7�� 10 17:27:02 Leaving maintenance because clear requested. ]
[ 7�� 10 17:27:02 Enabled. ]
[ 7�� 10 17:27:02 Executing start method ("/lib/svc/method/nrpe start") ]
ld.so.1: nrpe: ġ����: libc.so.1: `SUNW_1.22.7' ������ ���� (/opt/nagios/bin/nrpe ���Ͽ��� �䱸��)
ld.so.1: nrpe: ġ����: libc.so.1: ���� ����: �ش� �����̳� �����丮�� ����
�ߴܵ�(Killed)
[ 7�� 10 17:27:02 Method "start" exited with status 137 ]

[stdweb2:/]#/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

[stdweb2:/]#ls -latr /usr/lib/libc.*
lrwxrwxrwx 1 root root 19 2008년 8월 21일 /usr/lib/libc.so -> ../../lib/libc.so.1*
lrwxrwxrwx 1 root root 19 2008년 8월 21일 /usr/lib/libc.so.1 -> ../../lib/libc.so.1*


[stdweb2:/]#ldd -v /lib/libm.so.2

find object=libc.so.1; required by /lib/libm.so.2
libc.so.1 => /lib/libc.so.1
find version=libc.so.1
libc.so.1 (SUNW_0.7) => /lib/libc.so.1
libc.so.1 (SUNWprivate_1.1) => /lib/libc.so.1

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

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

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

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

find object=/platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1; required by /lib/libc.so.1
/platform/SUNW,SPARC-Enterprise/lib/libc_psr.so.1

[stdweb2:/]#pvs -d /lib/libm.so.2
libm.so.2;
SUNW_1.3;
SUNW_1.2;
SUNW_1.1.1;
SUNW_1.1;
SUNWprivate_1.3;
SUNWprivate_1.2;
SUNWprivate_1.1;
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: I can't start nrpe agent in solaris 10

Post by abrist »

You are missing a required library:

Code: Select all

SUNW_1.22.7
If you cannot get this library from SUN ORACLE, you may need to build it from source.
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.
skywalker
Posts: 26
Joined: Tue Jan 14, 2014 7:27 pm

Re: I can't start nrpe agent in solaris 10

Post by skywalker »

In addition to the above mentioned package, are there any packages that are need to install even more ?

Please let me know all required packages to install an agent.

Is there a way to install an agent in solaris 9?

Do not use this script("fullinstall.sh"), I hope you'll let me know if you have any way to install.

Thank you again.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: I can't start nrpe agent in solaris 10

Post by slansing »

That is a bit hard to tell from our end being some of the packages could have different names in solaris, I'd recommend trying to re-compile, and install as you go, it will let you know if a dependent package is missing. If I had a solaris box I'd do the same and record it for future reference as I'm curious as well.
Locked