Page 1 of 4

NRPE on Solaris9

Posted: Thu Apr 16, 2015 6:37 am
by maddev
Hi,

We are looking to install NRPE on solaris 9. Looks Nagios don't have any documentation on that. anyone ever successfully implemented NRPE on Solaris 9 or 8 ? If so can you provide the procedure followed.

I even tried to compile from source but no luck.

Re: NRPE on Solaris9

Posted: Thu Apr 16, 2015 10:30 am
by ssax
Did you follow the README.Solaris?
Compiling on Solaris

Several changes may be necessary in order to compile NRPE on Solaris.
This information is known to apply to Solaris 10 and may apply to other
verisions of Solaris. This has been tested on Solaris 10 x86.

There are three things that you may need to compile NRPE on Solaris:

1. Add /usr/sfw/bin to your path
$ PATH="$PATH:/usr/sfw/bin"
2. Specify the binary to be used for make-ing
$ MAKE=gmake ./configure
3. Use gmake to build the code
$ gmake all

Thanks to Kevin Pendleton at UtahSysAdmin.com
(http://www.utahsysadmin.com/2008/03/14/ ... olaris-10/)
for the instructions on finding the SSL libraries.
From the site above:
./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/
What errors are you getting when compiling from source?

Re: NRPE on Solaris9

Posted: Mon Apr 20, 2015 11:40 am
by maddev
Hi ssax,

Thank you for responding. I get the below error When I run MAKE=gmake ./configure

Code: Select all

checking for strtoul... yes
checking for initgroups... yes
checking for closesocket... no
checking for socklen_t... yes
checking for type of socket size... size_t
checking for SSL headers... configure: error: Cannot find ssl headers
When checked for package availability, I get the below output

Code: Select all

# pkginfo | grep -i ssl
utility     RHATossl             openssl 0.9.7a
utility     RHATpossl            pyOpenSSL 0.6

Re: NRPE on Solaris9

Posted: Mon Apr 20, 2015 12:52 pm
by abrist
You will need the development headers, not just the ssl package itself. I am not entirely sure what devel packages are called in Solaris-land, but you will need them to move forward with the ssl-supported build.

Re: NRPE on Solaris9

Posted: Tue Apr 28, 2015 6:09 am
by maddev
Hi abrist,

Tried to figure out the package name, but no luck. Any Idea on the package name ?

Re: NRPE on Solaris9

Posted: Tue Apr 28, 2015 1:22 pm
by jolson
Could you give this a try?

Code: Select all

cd nrpe-*; ./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/ –with-ssl-inc=/usr/sfw/include
I pulled this suggestion out of the following post: http://bigunix.blogspot.com/2009/06/ins ... ugins.html

Re: NRPE on Solaris9

Posted: Tue Apr 28, 2015 1:26 pm
by jdalrymple
Sorry to be repetitive maddev, but did you try what ssax said?

Code: Select all

./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/

Re: NRPE on Solaris9

Posted: Thu Apr 30, 2015 12:09 am
by maddev
Hi Jolson and jdalrymple,

I have installed the openssl package openssl-0.9.8f-sol9-sparc-local.gz; now I can successfully run configure script with below options

Code: Select all

./configure -with-ssl=/usr/local/ssl -with-ssl-lib=/usr/local/ssl/lib
I am seeing the below error when I issue the make all

Code: Select all

cd ./src/; make ; cd ..
gcc -g -O2 -I/usr/local/ssl/include/openssl -I/usr/local/ssl/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/local/ssl/lib  -lssl -lcrypto -lnsl -lsocket  ./snprintf.o -liberty
./acl.c: In function `parse_allowed_hosts':
./acl.c:418: warning: assignment makes pointer from integer without a cast
./acl.c:428: warning: assignment makes pointer from integer without a cast
Undefined                       first referenced
 symbol                             in file
isblank                             /var/tmp//ccKAsJTu.o
ld: fatal: Symbol referencing errors. No output written to nrpe
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `nrpe'
Current working directory /tmp/my_test/nrpe-2.14/src
*** Error code 1
make: Fatal error: Command failed for target `all'

Re: NRPE on Solaris9

Posted: Thu Apr 30, 2015 1:16 pm
by jolson
I found a Nagios Tracker post about this: http://tracker.nagios.org/view.php?id=370
The last I resolve it by add the definition “isblank” in the source file acl.c:

#ifndef isblank
#define isblank(c)((c) == ' ' || (c) == '\t')
#endif

Then I "make clean" and "make all" again, it go smoothly.
Let us know if the above works for you.

Re: NRPE on Solaris9

Posted: Fri May 01, 2015 1:24 pm
by maddev
Tried this already Jolson. But the issue persists.