NRPE compiling and installing on AIX 7.1

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.
Locked
akrishnan
Posts: 13
Joined: Fri Mar 15, 2013 10:29 am

NRPE compiling and installing on AIX 7.1

Post by akrishnan »

Hello,

I downloaded the nrpe code (2.15). When I compile and install on AIX (v7.1) platform, which directories are used when "make install" command is executed? I used the defaults. I see the /usr/local/nagios directory being used. Besides this default directory, which are the other directory/directories are used?

Thanks,
Krishnan
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE compiling and installing on AIX 7.1

Post by slansing »

/usr/local/nagios is where everything should be installed to.
akrishnan
Posts: 13
Joined: Fri Mar 15, 2013 10:29 am

Re: NRPE compiling and installing on AIX 7.1

Post by akrishnan »

Thanks for the reply. I requested the information since I get a weird error when I start the nrpe deamon. The error message is below:

/etc# exec(): 0509-036 Cannot load program /usr/local/nagios/bin/nrpe because of the following errors:
0509-150 Dependent module /usr/lib/libcrypto.a(libcrypto.so.1.0.1) could not be loaded.
0509-152 Member libcrypto.so.1.0.1 is not found in archive


Please note that I used the following command to start the nrpe daemon:
/usr/local/nagios/bin/nrpe -n -c /usr/local/nagios/nrpe.cfg -d &
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE compiling and installing on AIX 7.1

Post by abrist »

Is openSSL installed on this system?
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.
akrishnan
Posts: 13
Joined: Fri Mar 15, 2013 10:29 am

Re: NRPE compiling and installing on AIX 7.1

Post by akrishnan »

Yes. I do have the following packages installed:
openssl.base
openssl.man.en_US
openssl.base
openssh.base.client
openssh.base.server
openssh.man.en_US
openssh.msg.EN_US
openssh.msg.en_US
openssh.base.client
openssh.base.server
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE compiling and installing on AIX 7.1

Post by slansing »

Can you provide the output of the following if you are running 64 bit:

Code: Select all

ls -la /lib64/libcrypt*
ls -la /usr/lib64/libcrypt*
ls -la /usr/lib64/.libcrypt*
ls -la /lib64/.libcrypt*
Or if you are running 32 bit:

Code: Select all

ls -la /lib/libcrypt*
ls -la /usr/lib/libcrypt*
ls -la /usr/lib/.libcrypt*
ls -la /lib/.libcrypt*
akrishnan
Posts: 13
Joined: Fri Mar 15, 2013 10:29 am

Re: NRPE compiling and installing on AIX 7.1

Post by akrishnan »

AIXv7.x is 64 bit kernel but has 32 bit related libraries too:

/home/root# ls -la /lib64/libcrypt*
ls: 0653-341 The file /lib64/libcrypt* does not exist.

/home/root# ls -la /usr/lib64/libcrypt*
ls: 0653-341 The file /usr/lib64/libcrypt* does not exist.


/home/root# ls -la /lib64/.libcrypt*
ls: 0653-341 The file /lib64/.libcrypt* does not exist.


/home/root# ls -la /lib64/.libcrypt*
ls: 0653-341 The file /lib64/.libcrypt* does not exist.


For the 32bit part:
/home/root# ls -la /lib/libcrypt*
-r-xr-xr-x 1 bin bin 11575 Apr 12 2011 /lib/libcrypt.a
-r-xr-xr-x 1 root system 5184466 Mar 12 2013 /lib/libcrypto.a


/home/root# ls -la /usr/lib/libcrypt*
-r-xr-xr-x 1 bin bin 11575 Apr 12 2011 /usr/lib/libcrypt.a
-r-xr-xr-x 1 root system 5184466 Mar 12 2013 /usr/lib/libcrypto.a

/home/root# ls -la /usr/lib/.libcrypt*
ls: 0653-341 The file /usr/lib/.libcrypt* does not exist.

/home/root# ls -la /lib/.libcrypt*
ls: 0653-341 The file /lib/.libcrypt* does not exist.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: NRPE compiling and installing on AIX 7.1

Post by slansing »

Hmm, lets do the following next:

Use your favorite package manager on the AIX server to remote openssh, and openssl-devel, and then re-install them. Make sure they install with no errors, and then recompile NRPE for good measure, this time, please record all the commands you run, and the directories you are in so we can see how you are doing it.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE compiling and installing on AIX 7.1

Post by abrist »

Locking due to necros.
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.
Locked