NRPE on Solaris9

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

NRPE on Solaris9

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: NRPE on Solaris9

Post 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?
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: NRPE on Solaris9

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE on Solaris9

Post 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.
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.
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: NRPE on Solaris9

Post by maddev »

Hi abrist,

Tried to figure out the package name, but no luck. Any Idea on the package name ?
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NRPE on Solaris9

Post 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
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.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: NRPE on Solaris9

Post 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/
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: NRPE on Solaris9

Post 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'
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: NRPE on Solaris9

Post 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.
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.
maddev
Posts: 54
Joined: Tue Apr 07, 2015 5:42 am

Re: NRPE on Solaris9

Post by maddev »

Tried this already Jolson. But the issue persists.
Locked