nrpe 2.15 solaris 10

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
pafram
Posts: 6
Joined: Thu Jun 18, 2015 2:29 pm

nrpe 2.15 solaris 10

Post 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!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nrpe 2.15 solaris 10

Post by hsmith »

Are you using the fullinstall script?
Former Nagios Employee.
me.
pafram
Posts: 6
Joined: Thu Jun 18, 2015 2:29 pm

Re: nrpe 2.15 solaris 10

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nrpe 2.15 solaris 10

Post by rkennedy »

What variables did you use with your ./configure?
Former Nagios Employee
pafram
Posts: 6
Joined: Thu Jun 18, 2015 2:29 pm

Re: nrpe 2.15 solaris 10

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: nrpe 2.15 solaris 10

Post by hsmith »

Can you modify the install-sh with the directory you created for the user?
Former Nagios Employee.
me.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nrpe 2.15 solaris 10

Post by rkennedy »

As @hsmith mentioned, modifying the script should work. This may also work for you -

Code: Select all

./configure -prefix=/home/nagios
Former Nagios Employee
pafram
Posts: 6
Joined: Thu Jun 18, 2015 2:29 pm

Re: nrpe 2.15 solaris 10

Post 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!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nrpe 2.15 solaris 10

Post 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.
Former Nagios Employee
pafram
Posts: 6
Joined: Thu Jun 18, 2015 2:29 pm

Re: nrpe 2.15 solaris 10

Post 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!
Locked