Page 1 of 2

nrpe 2.15 solaris 10

Posted: Tue Dec 29, 2015 10:59 am
by pafram
Hello,

I'm trying to configure the nrpe daemon on a corporate solaris 10 machine.
I do not have permission to make the /usr/local/nagios user, but I can do it in a local home directory.
So, when using gmake install-daemon-config, I want it to mkdir in a the localhome/nagios/... not /usr/local/nagios
Would that be possible to change?

Thanks!

Re: nrpe 2.15 solaris 10

Posted: Tue Dec 29, 2015 1:03 pm
by hsmith
Are you using the fullinstall script?

Re: nrpe 2.15 solaris 10

Posted: Thu Dec 31, 2015 8:12 am
by pafram
No, I'm using a guide.
https://lucamerello.wordpress.com/2014/ ... -and-nrpe/
Something like this for example, I'm just using the general steps in it.
gmake install-daemon-config I'm on this step.

I need to be able to start the daemon process so my ubunutu server can connect to it.

Thanks!

Re: nrpe 2.15 solaris 10

Posted: Mon Jan 04, 2016 12:56 pm
by rkennedy
What variables did you use with your ./configure?

Re: nrpe 2.15 solaris 10

Posted: Wed Jan 06, 2016 10:29 pm
by pafram
I did with with-openssl, and the other ones needed for the Solaris 10 box.
The ./configure ran fine, I need to create a local nagios user in the /usr/local/etc...
I do have root access, however, I was told not to make one there and to make it in a localhome directory that I made.

so, when I use the ./instsall-sh, it says it failed because it doesn't have permission to mkdir /usr/loical/nagios.

Re: nrpe 2.15 solaris 10

Posted: Thu Jan 07, 2016 11:28 am
by hsmith
Can you modify the install-sh with the directory you created for the user?

Re: nrpe 2.15 solaris 10

Posted: Thu Jan 07, 2016 11:41 am
by rkennedy
As @hsmith mentioned, modifying the script should work. This may also work for you -

Code: Select all

./configure -prefix=/home/nagios

Re: nrpe 2.15 solaris 10

Posted: Sun Jan 10, 2016 5:27 pm
by pafram
Thanks guys, I'm not at work, but I'll try it when I get in.
Also, I could not find in the install-sh where there home directory was being set.

Thanks!

Re: nrpe 2.15 solaris 10

Posted: Mon Jan 11, 2016 10:35 am
by rkennedy
It should just be the

Code: Select all

--prefix=
flag, let us know when you get a chance to give it a try if you have any further questions.

Re: nrpe 2.15 solaris 10

Posted: Tue Jan 12, 2016 11:04 am
by pafram
The --prefix worked great, thanks!
I am, however, getting another error when I try to ./configure and gmake the nagios plugins.
The error is :l
d: fatal: Symbol referencing errors. No output written to check_disk
collect2: ld returned 1 exit status
gmake[2]: *** [check_disk] Error 1
gmake[2]: Leaving directory `/localhome/nagios-plugins-2.1.1/plugins'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/localhome/nagios-plugins-2.1.1'
gmake: *** [all] Error 2

Thanks!