1834532 Members
2405 Online
110069 Solutions
New Discussion

Nagios / NRPE on HPUX

 
Simeon Harwood
Regular Advisor

Nagios / NRPE on HPUX

Hey all,
I'm after a little help here with compiling NRPE for HPUX 11i.
I'm building a new Nagios server on Red Hat linux. I've got nagios v2.9 compiled and running on Red Hat RHEL v4. I've also got NRPE v2.81 compiled and running on RHEL4. I now want to get get NRPE v2.81 compiled and running on HPUX 11i. I "configure / make all" and copy the binaries into place as per the NRPE.pdf doc. This all looks to work fine, but when I exicute the test "check_nrpe -H localhost", it craches with a memory core dump.
Do I need to change something in the source code?
Has anyone got any idea's, as my head is sore now from banging it against a brick wall.......

Any help appreciated.

Sime.
You never had this problem with a pencil and paper!
3 REPLIES 3
Steven E. Protter
Exalted Contributor

Re: Nagios / NRPE on HPUX

Shalom,

Something in the source code needs to be changed. That is likely.

However you might want to to use gcc instead of native compilers to the the compile. That might get you around changing the source code.

Its not clear to me what compiler you are using.

http://hpux.connect.org.uk/hppd/hpux/Gnu/gcc-4.1.2/

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1111
There is a depot version of nagios there that does not require compile.

Lots of possibilties.
Why compile when HP has already compiled it for you.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Court Campbell
Honored Contributor

Re: Nagios / NRPE on HPUX

I've never used nrpe, but in reading the install notes I can only wonder, did you make the necessary changes for it to use inetd instead of trying to use xinetd?

Referring to this:

b) Assumptions
These instructions assume that you are installing the NRPE addon on a system that supports TCP wrappers and
has the xinetd superserver installed. Most modern Linux distributions and Unix variants have these installed by
default. If you have an older system that runs inetd (instead of xinetd) and/or does not support TCP wrappers, or
you want to run the NRPE daemon without inetd or xinetd, read the following files for information on installing the
addon (both are found in the main directory of the NRPE distribution):
â README
â SECURITY
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
Simeon Harwood
Regular Advisor

Re: Nagios / NRPE on HPUX

I've already got Nagios compiled and running. I have seen the pre-compiled package, but I wanted to do this from source code.
It's actually the NRPE daemon that I really want to get compiled from source as I'll be running it on different platforms, and I need to make sure that same version in on everything. I've not seen a pre-comipled version of 2.81 for HPUX anywhere on the net.

I've tried compiling it with SSL disabled now, but still now joy. It just dosn't seem to want to work on HPUX.
I'm using gcc 3.4.3 as my compiler on HP and gcc v3.4.6 on Linux, so not that far apart.
You never had this problem with a pencil and paper!