Page 4 of 7
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 12:25 pm
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?
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 12:31 pm
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/
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 1:01 pm
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
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 1:05 pm
by lmichel
it cannot start because that specific library cannot be found.
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 1:11 pm
by jolson
Where is the 'libz.so.1' file located?
It looks like your compilation assumed /usr/local/lib/libz.so.1, which may not be correct.
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 1:18 pm
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
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 2:37 pm
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.
Re: Nagiosxi Client Installation
Posted: Fri May 01, 2015 3:10 pm
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.
Re: Nagiosxi Client Installation
Posted: Mon May 04, 2015 9:15 am
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?
Re: Nagiosxi Client Installation
Posted: Mon May 04, 2015 12:27 pm
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...