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

Compiling nrpe on AIXv6.1

Post by akrishnan »

Hello,

I downloaded nrpe-2.4. I am trying to compile the code on AIX platform (AIX 6.1-TL7-SP5). During the execution of "configure" command, I am seeing an issue which is pasted below:

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
...+.............................+......+........................+.................................
...+......................................+...+.+..................................................
...+...........+................................+......................................+...........
.+............+......+.............................................................................
........................................+...........+..........................................+...
..+......+...+.....................................................................................
..+..............+..................+...+..........................................................
..........+.................................................+........++*++*++*++*++*++*
checking for Kerberos include files... could not find include files


Server (where nrpe is being compiled) enviroment details:
Actually the Kerberos related files are already installed in the server and their paths are:
#ls /usrkrb5/lib/
libgssapi_krb5.a libk5profile.a libkdb5.a libksvc.a
libgssrpc.a libkadm5clnt.a libkrb5.a libss.a


#ls /usrkrb5/bin
kdestroy kinit klist kpasswd ksu kvno

#ls /usrkrb5/sbin
config.krb5 kadmin ksetup ktutil setpagname start.krb5 stop.krb5 unconfig.krb5


Given the above details, I would like to know what config changes need to be applied for a successful run of "configure"? Please let me know if there is any available information on the HowTo compile nrpe on AIX platform?

Any help is appreciated.

Thanks.
Krishnan.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nrpe on AIXv6.1

Post by abrist »

You may want to add those directories to your $PATH.

Code: Select all

export PATH =$PATH:/usrkrb5/bin:/usrkrb5/lib/:/usrkrb5/sbin
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: Compiling nrpe on AIXv6.1

Post by akrishnan »

I did those directories to the $PATH. I also added the directory "/usr/include/openssl" to the $PATH. I am still having the same issue (pasted below). Wondering if anyone can let me know what header files are needed now.

checking for SSL libraries... SSL libraries found in /usr/lib

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 512 bit long safe prime, generator 2
This is going to take a long time
...................+..............+.........................+......+...........................
....................+......+.....................................................+..+..........
.........+....+.......................+........................................................
.+..........................+........................+...................+.....................
............................................++*++*++*++*++*++*
checking for Kerberos include files... could not find include files
checking for perl... /bin/perl
configure: creating ./config.status


Thanks.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nrpe on AIXv6.1

Post by abrist »

Have you installed the kerberos header/devel files? We do not have an AIX server in the office to test against, so I will do what I can with google, but I will not be able to reproduce the problem.
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: Compiling nrpe on AIXv6.1

Post by akrishnan »

Thanks for your reply. You are correct. Only the krb5_client.rte is installed. If I install the development libraries and compile the nrpe executables, Would it be possible to copy the nrpe executable to another server (I am little hesitant to change the software environment in the production server)? Thanks once again.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nrpe on AIXv6.1

Post by abrist »

You should be able to copy the binary over - you will need the init-script and configs as well. You will also need to install ssl on the box if it does not have it already.
Alternatively, you could make all, and then copy the source directory over and "make install", which will install the binary. (this will still require ssl though)
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: Compiling nrpe on AIXv6.1

Post by akrishnan »

Appears to me that the AIX (6.1) release DVDs don't have the development and libs packages for krb5. SSL is not a problem. Is there a website that hosts these ones? Thanks once again.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Compiling nrpe on AIXv6.1

Post by slansing »

You should be able to reach them through your package manager, what repo's do you have set up on the server?
akrishnan
Posts: 13
Joined: Fri Mar 15, 2013 10:29 am

Re: Compiling nrpe on AIXv6.1

Post by akrishnan »

Contacted the vendor (IBM). Yet to get their reply.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Compiling nrpe on AIXv6.1

Post by abrist »

Fair enough. Many people have compiled nrpe for AIX previously, but I have yet to hear of success, let alone an attempt at building it with kerberos. Best of luck.
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