Page 1 of 1

Building nrpe package for solaris 9

Posted: Wed Apr 01, 2015 3:58 pm
by ganeshanrs1983
Team,

I compiled and manually installed nrpe 2.15 server successfully using the below command. While compilation it’s saying SSL library path is ( Yellow) but while building package getting error as mentioned in RED. If this resolved I am ready to deliver the solaris 9 package but stuck up in the final stage need help.

checking for SSL headers... SSL headers found in /usr/local/ssl/include/..
checking for SSL libraries... SSL libraries found in /usr/local/ssl/lib


checking for SSL headers... SSL headers found in /usr/local/ssl
checking for SSL libraries... configure: error: Cannot find ssl libraries
*** Error code 1
make: Fatal error: Command failed for target `build'
Current working directory /home/nagios/testing/nrpe-2.15/package/solaris
*** Error code 1
make: Fatal error: Command failed for target `solaris-package'


Please find the attachment for errors and command

Re: Building nrpe package for solaris 9

Posted: Wed Apr 01, 2015 4:17 pm
by jdalrymple
Did you read README.Solaris?

Code: Select all

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/configuring-nagios-plugins-nrpe-on-solaris-10/)
for the instructions on finding the SSL libraries.
From that site:

Code: Select all

./configure –with-ssl=/usr/sfw/ –with-ssl-lib=/usr/sfw/lib/
Let us know if that doesn't work and we'll update the documentation appropriately.

Re: Building nrpe package for solaris 9

Posted: Thu Apr 09, 2015 1:23 pm
by ganeshanrs1983
We have manually installed nrpe v2.15 on solaris 9 server. But we are facing some issues while building the package. Don't know from where it's trying to copy the check_nrpe. Please help me..

make[2]: Leaving directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build'
make[2]: Entering directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build'
cd ./src/ && make install
make[3]: Entering directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build/src'
make install-plugin
make[4]: Entering directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build/src'
../../../../install-sh -c -m 775 -o nagios -g nagios -d /home/nagios/final_try/nrpe-2.15/package/solaris/install/opt/nagios/libexec
../../../../install-sh -c -m 775 -o nagios -g nagios check_nrpe /home/nagios/final_try/nrpe-2.15/package/solaris/install/opt/nagios/libexec
install: check_nrpe does not exist
make[4]: *** [install-plugin] Error 1
make[4]: Leaving directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build/src'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build/src'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/home/nagios/final_try/nrpe-2.15/package/solaris/build'
make[1]: *** [build] Error 2

make[1]: Leaving directory `/home/nagios/final_try/nrpe-2.15/package/solaris'
make[1]: Entering directory `/home/nagios/final_try/nrpe-2.15/package/solaris'
make[1]: Circular pkginfo <- pkg dependency dropped.
make[1]: Circular prototype <- pkg dependency dropped.
pkgmk -o -d ./pkg -f ./pkg/prototype -r .
## Building pkgmap from package prototype file.
ERROR in ./pkg/prototype:
no object for <i.manifest> found in local path
no object for <r.manifest> found in local path
no object for <install/etc/nagios/nrpe.cfg> found in root directory
no object for <build/src/nrpe> found in root directory
no object for <build/src/check_nrpe> found in root directory
pkgmk: ERROR: unable to build pkgmap from prototype file
## Packaging was not successful.
make[1]: *** [nrpe-2.15--sparc-local] Error 1
make[1]: Leaving directory `/home/nagios/final_try/nrpe-2.15/package/solaris'

Re: Building nrpe package for solaris 9

Posted: Fri Apr 10, 2015 11:02 am
by abrist
The nrpe bin should be built in the "src" folder. Are you sure it built correctly?

Re: Building nrpe package for solaris 9

Posted: Fri Apr 10, 2015 1:28 pm
by ganeshanrs1983
We have to run the below command under nrpe 2.15 path not from nrpe 2.15/src

make solaris-package

Re: Building nrpe package for solaris 9

Posted: Fri Apr 10, 2015 2:47 pm
by ssax
Are you saying that "make solaris-package" solved your problem or are you still experiencing the same issue?

Re: Building nrpe package for solaris 9

Posted: Thu May 07, 2015 9:05 am
by ganeshanrs1983
Issue is resolved. Please close this thread.