NRPE on Solaris9
NRPE on Solaris9
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.
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
Did you follow the README.Solaris?
From the site above: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.
What errors are you getting when compiling from source?./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/
Re: NRPE on Solaris9
Hi ssax,
Thank you for responding. I get the below error When I run MAKE=gmake ./configure
When checked for package availability, I get the below output
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
Code: Select all
# pkginfo | grep -i ssl
utility RHATossl openssl 0.9.7a
utility RHATpossl pyOpenSSL 0.6
Re: NRPE on Solaris9
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.
"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.
Re: NRPE on Solaris9
Hi abrist,
Tried to figure out the package name, but no luck. Any Idea on the package name ?
Tried to figure out the package name, but no luck. Any Idea on the package name ?
Re: NRPE on Solaris9
Could you give this a try?
I pulled this suggestion out of the following post: http://bigunix.blogspot.com/2009/06/ins ... ugins.html
Code: Select all
cd nrpe-*; ./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/ –with-ssl-inc=/usr/sfw/include
-
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: NRPE on Solaris9
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
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
I am seeing the below error when I issue the make all
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
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
I found a Nagios Tracker post about this: http://tracker.nagios.org/view.php?id=370
Let us know if the above works for you.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.
Re: NRPE on Solaris9
Tried this already Jolson. But the issue persists.