Nagiosxi Client Installation

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

I having issues starting the nrpe agent on Solaris 11.
it is throwing that error:
[ May 1 13:17:33 Executing start method ("/lib/svc/method/nrpe start"). ]
ld.so.1: nrpe: fatal: libssl.so.0.9.7: open failed: No such file or directory
/lib/svc/method/nrpe: line 10: 7155: Killed
[ May 1 13:17:33 Method "start" exited with status 9. ]


I do have both libssl on the machine but it is a much higher version.
can you please advise?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagiosxi Client Installation

Post by jolson »

Did you already install the nagios plugins? If you could run the following, it could be very helpful:

Code: Select all

ldd /opt/nagios/libexec/check_http
The above can be adjusted to wherever the check_http plugin resides. We want to see if it's pointing at the proper libssl directories. Do you see results similar to the following?

Code: Select all

libssl.so.0.9.8 => (file not found)
libcrypto.so.0.9.8 => (file not found)
If so, you can specify -R in LDFLAGS at configure time:

Code: Select all

LDFLAGS=-R/usr/local/ssl/lib ./configure –prefix=/opt/nagios –with-mysql=/opt/coolstack/mysql_32bit –with-ssl=/usr/local/ssl
Feel free to read more about this particular problem here: http://utahsysadmin.com/2008/03/14/conf ... olaris-10/
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

(interdev-01)-root> ldd /opt/nagios/libexec/check_http
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libresolv.so.2 => /lib/libresolv.so.2
libssl.so.1.0.0 => /lib/libssl.so.1.0.0
libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0
libpthread.so.1 => /lib/libpthread.so.1
libdl.so.1 => /lib/libdl.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1
libsoftcrypto.so.1 => /lib/libsoftcrypto.so.1
libelf.so.1 => /lib/libelf.so.1
libcryptoutil.so.1 => /lib/libcryptoutil.so.1
libz.so.1 => /usr/local/lib/libz.so.1
libz.so.1 (SUNW_1.1) => (version not found)
libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1
libm.so.2 => /lib/libm.so.2
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

it cannot start because that specific library cannot be found.
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagiosxi Client Installation

Post by jolson »

Where is the 'libz.so.1' file located?

Code: Select all

find /. -name libz.so.1
It looks like your compilation assumed /usr/local/lib/libz.so.1, which may not be correct.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

there are multiple locations for this file and here they are:
/lib/libz.so.1
/lib/amd64/libz.so.1
/usr/lib/libz.so.1
/usr/lib/amd64/libz.so.1
/usr/local/lib/libz.so.1
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagiosxi Client Installation

Post by jolson »

Can you take a look at your history and give us the './configure' command that you used to compile nrpe and nagios plugins?
Is it similar to the following?

Code: Select all

 ./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/
It seems to me that your configure command didn't compile nrpe/nagios plugins with proper links to the SSL libs. Please let us know that command, and we'll move forward from there.
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

i did not run ./configure I ran the ./fullinstall because the package does not contain ./configure

--- May 01, 2015 3:42 pm ---

Any update on this.

--- May 04, 2015 8:03 am ---

I have been expecting an answer and up until now, noone has gotten back to me yet.

--- Mon May 04, 2015 8:25 am ---

Can anyone provide an answer for this?

in other words, is anyone out there using Nagios with Solaris 11.
I hope I am not the first one trying to do that.
Last edited by tmcdonald on Mon May 04, 2015 9:19 am, edited 1 time in total.
Reason: Please do not post multiple replies in a row - edit your previous posting instead
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagiosxi Client Installation

Post by tmcdonald »

Please note that our offices are closed on weekends, so posts on Friday evening may not be responded to until Monday morning.

Did you follow the instructions in the NRPE wizard? Specifically these: http://assets.nagios.com/downloads/nagi ... _Agent.pdf

If so, did you do the workaround steps as well?

There is another doc for installing from source that might work: http://assets.nagios.com/downloads/nagi ... ios-XI.pdf

It's more of a manual install instead of an automatic installation with the fullinstall script, but in this case it will let you specify the locations of the libraries to use.

Was this a clean Solaris system or were there installations before NRPE that might have installed the libraries?
Former Nagios employee
lmichel
Posts: 44
Joined: Tue Mar 15, 2011 9:11 am

Re: Nagiosxi Client Installation

Post by lmichel »

The Solaris server is an existing server. the first installation option did not work. the second option is more promising. however I am getting the following error when looking at the log:

2015-05-04T13:26:14-04:00 uls-gzwebdev-01 nrpe[764]: [ID 441885 daemon.error] Error: Request contained command arguments!
2015-05-04T13:26:14-04:00 uls-gzwebdev-01 nrpe[764]: [ID 900267 daemon.error] Client request was invalid, bailing out...
2015-05-04T13:26:28-04:00 uls-gzwebdev-01 nrpe[769]: [ID 441885 daemon.error] Error: Request contained command arguments!
2015-05-04T13:26:28-04:00 uls-gzwebdev-01 nrpe[769]: [ID 900267 daemon.error] Client request was invalid, bailing out...
2015-05-04T13:26:57-04:00 uls-gzwebdev-01 nrpe[775]: [ID 441885 daemon.error] Error: Request contained command arguments!
2015-05-04T13:26:57-04:00 uls-gzwebdev-01 nrpe[775]: [ID 900267 daemon.error] Client request was invalid, bailing out...
2015-05-04T13:27:31-04:00 uls-gzwebdev-01 nrpe[783]: [ID 441885 daemon.error] Error: Request contained command arguments!
2015-05-04T13:27:31-04:00 uls-gzwebdev-01 nrpe[783]: [ID 900267 daemon.error] Client request was invalid, bailing out...
Locked