<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.5pt;
font-family:Consolas;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:Consolas;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>-----Original Message-----<br>
From: Ciro Iriarte [mailto:cyruspy@gmail.com] <br>
Sent: Wednesday, February 10, 2010 5:31 PM<br>
To: nagios List<br>
Subject: [Nagios-users] NRPE compilation on HPUX<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Hi, i'm getting issues compiling NRPE on HPUX
11.31, do you know what<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>missing library can cause this?<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>-------------<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>utils.c:<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>ld: Unsatisfied symbol "fromhost"
in file nrpe.o<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>1 errors.<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>*** Error exit code 1<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Stop.<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>*** Error exit code 1<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Stop.<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>-------------<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Regards,<o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>-- <o:p></o:p></span></p>
<p class=MsoPlainText style='margin-left:.5in'><span style='font-size:10.0pt;
font-family:"Arial","sans-serif"'>Ciro Iriarte<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Ciro,<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>It's
kind of strange, but I know I had the problem you're having at one point, but I
no longer seem to have it on HPUX 11.31 (IA64). I wonder if there was
some OS patch that was applied that took care of that. The OS level on
our servers is shown as "HP-UX B.11.31 U ia64 1200835863" if that
helps. swlist does show that we have an installed tcp wrapper package,
however:<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>
HPUX-TCPWRAP
B.11.31 HPUX TCPWrapper daemon<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>'nm'
shows that there is a fromhost() entity in /usr/lib/libwrap.sl (libwrap.1)<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Unless
I'm mistaken, your issue is with the libwrap library which I think exists on
HPUX, but isn't complete as far as NRPE is concerned. I never spent a lot
of time trying to find a generalized solution to this, but instead kind of
hacked something into nrpe.c where I think I just commented out some of the #ifdef
HAVE_LIBWRAP code segments. Note that the fromhost() call you're missing
is in one of the HAVE_LIBRWRAP sections. I believe that NRPE expects that
. We don’t use TCP wrappers anyway, so it's not a loss.<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I
first encountered this issue with PA-RISC HPUX and I believe the way I got around
was to download the latest tcp wrapper code from the internet, then pulled out
the function that I was missing (I don't recall if it was from host<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>My
current issue with NRPE on HPUX is twofold -- the lack of some syslog
capabilities, and that the configure script doesn't correctly find our SSL
libraries. I have made the following 2 hacky changes to make ours work:<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***
configure.old Mon Mar 31 13:49:11 2008<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>---
configure Thu Feb 11 11:07:10 2010<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***************<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***
6676,6686 ****<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
done<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
if test x_$found_ssl != x_yes; then<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
{ { echo "$as_me:$LINENO: error: Cannot find ssl libraries"
>&5<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
echo "$as_me: error: Cannot find ssl libraries" >&2;}<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
{ (exit 1); exit 1; }; }<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
else<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
printf "SSL libraries found in $ssllibdir\n";<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
LDFLAGS="$LDFLAGS -L$ssllibdir";<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>---
6676,6686 ----<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
done<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
# if
test x_$found_ssl != x_yes; then<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
#
{ { echo "$as_me:$LINENO: error: Cannot find ssl libraries"
>&5<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
#echo "$as_me: error: Cannot find ssl libraries" >&2;}<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
# { (exit 1); exit 1; }; }<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
# else<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
printf "SSL libraries found in $ssllibdir\n";<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
LDFLAGS="$LDFLAGS -L$ssllibdir";<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***************<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***
6701,6707 ****<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
# awk to strip off meta data at bottom of dhparam output<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
$sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
echo "$as_me:$LINENO: checking for Kerberos include files" >&5<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>---
6701,6707 ----<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
# awk to strip off meta data at bottom of dhparam output<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
$sslbin dhparam -C 512 | awk '/^-----/ {exit} {print}' > include/dh.h<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
# fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
fi<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
echo "$as_me:$LINENO: checking for Kerberos include files" >&5<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***
src/nrpe.c.old Mon Mar 31 14:02:59 2008<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>---
src/nrpe.c Thu Feb 11 11:18:34 2010<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***************<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>***
613,622 ****<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_UUCP;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"cron"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_CRON;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
else if(!strcmp(varvalue,"authpriv"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_AUTHPRIV;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"ftp"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
log_facility=LOG_FTP;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"local0"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_LOCAL0;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"local1"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>---
613,622 ----<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_UUCP;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"cron"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_CRON;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
/* else if(!strcmp(varvalue,"authpriv"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_AUTHPRIV;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"ftp"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>!
log_facility=LOG_FTP; */<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"local0"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
log_facility=LOG_LOCAL0;<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>
else if(!strcmp(varvalue,"local1"))<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>Hope
that's helpful.<o:p></o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'><o:p> </o:p></span></p>
<p class=MsoPlainText><span style='font-size:10.0pt;font-family:"Courier New"'>Mark</span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
</div>
</body>
</html>