Your exec line is wrong. It should read ;<div><br></div><div><div> exec="/<span class="Apple-style-span" style="font-family: Arial; ">usr/local/nagios/bin/nrpe</span><span class="Apple-style-span" style="font-family: Arial; "> -c /usr/local/nagios/etc/nrpe.cfg -i</span>"</div>
<div> arg0="/<span class="Apple-style-span" style="font-family: Arial; ">usr/local/nagios/bin/nrpe</span>"</div><div><br></div><br><div class="gmail_quote">2009/7/9 Justin Amburn <span dir="ltr"><<a href="mailto:Justin@marketlive.com">Justin@marketlive.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="blue">
<div>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Thanks for replies, guys!</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> I can run nrpe in global zones
under SMF. I can even get nrpe in the non-global zones to run with the command:</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">/usr/local/nagios/bin/nrpe –c
/usr/local/nagios/etc/nrpe.cfg –i</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">root@vz3haadp01#
/usr/local/nagios/libexec/check_nrpe -H localhost</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">NRPE v2.12</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">*<b><span style="font-weight:bold">BUT</span></b>*,
when I run it under SMF in the non-global zones I get the SSL handshake error.
In the global zone this works just fine. It’s just the non-global that is
causing me a headache.</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I’ve verified that the results
from:</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> inetadm -l
svc:/network/nrpe/tcp:default</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> the evil
/etc/nsswitch.conf</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> /etc/services</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> crle</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> ldd</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
/var/svc/manifest/network/nrpe-tcp.xml</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Are the same between the global and
the non-global.</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">See, my ldd shows no errors:</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">bash-3.00# ldd
/usr/local/nagios/bin/nrpe</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libssl.so.0.9.7 =>
/usr/sfw/lib/libssl.so.0.9.7</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libnsl.so.1 => /lib/libnsl.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libsocket.so.1 =>
/lib/libsocket.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libc.so.1 => /lib/libc.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libmp.so.2 => /lib/libmp.so.2</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libmd.so.1 => /lib/libmd.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libscf.so.1 => /lib/libscf.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libdoor.so.1 => /lib/libdoor.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libuutil.so.1 =>
/lib/libuutil.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libgen.so.1 => /lib/libgen.so.1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libssl_extra.so.0.9.7 =>
/usr/sfw/lib/libssl_extra.so.0.9.7</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libcrypto_extra.so.0.9.7 =>
/usr/sfw/lib/libcrypto_extra.so.0.9.7</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
libm.so.2 => /lib/libm.so.2</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I've kept adding and adding to the
crle file:</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">bash-3.00# crle</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Configuration file [version 4]:
/var/ld/ld.config</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> Default Library Path
(ELF): /lib:/usr/lib:/usr/sfw/lib:/usr/local/lib</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> Trusted Directories
(ELF): /lib/secure:/usr/lib/secure (system default)</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Command line:</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> crle -c /var/ld/ld.config -l
/lib:/usr/lib:/usr/sfw/lib:/usr/local/lib</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">BUT, since nrpe works in the
non-global when not running under SMF, this seems to be strictly an SMF issue.</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Here's my manifest values for both
the good and bad zones:</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">bash-3.00# inetadm -l
svc:/network/nrpe/tcp:default</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">SCOPE NAME=VALUE</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
name="nrpe"</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
endpoint_type="stream"</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
proto="tcp"</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
isrpc=FALSE</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
wait=FALSE</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
exec="/usr/sfw/sbin/tcpd -c /usr/local/nagios/etc/nrpe.cfg -i"</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
arg0="/usr/local/nagios/bin/nrpe"</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
user="nagios"</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default bind_addr=""</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default bind_fail_max=-1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default bind_fail_interval=-1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default max_con_rate=-1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default max_copies=-1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default con_rate_offline=-1</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default failrate_cnt=40</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default failrate_interval=60</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default inherit_env=TRUE</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default tcp_trace=FALSE</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">
tcp_wrappers=TRUE</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">default connection_backlog=10</span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p style="margin-left:.5in"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Also, in my /etc/nsswitch.conf all
of the LDAP references have been removed. Every attribute is ‘files’.</span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I’m out of ideas here! Does anyone see anything that I
may be missing in the setup?</span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Thanks!</span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Justin Amburn</span></font></p>
<div>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial"> </span></font></p>
<div align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> Grant Byers
[mailto:<a href="mailto:grant.byers@gmail.com" target="_blank">grant.byers@gmail.com</a>] <br>
<b><span style="font-weight:bold">Sent:</span></b> Monday, July 06, 2009 8:05
PM<br>
<b><span style="font-weight:bold">To:</span></b> Nagios Developers List<br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [Nagios-devel]
Solaris 10: Running nrpe in a non-global zone</span></font></p>
</div><div><div></div><div class="h5">
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I'm running NRPE in non-global Solaris 10 zones. Either configure &
build with LDFLAGS="-R/usr/sfw/lib", or add /usr/sfw/lib to the
runtime linker search path. See crle(1).</span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Regards,</span></font></p>
</div>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Grant</span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<div>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt">2009/7/7 Justin Amburn <<a href="mailto:Justin@marketlive.com" target="_blank">Justin@marketlive.com</a>></span></font></p>
<div>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Hi
all,</span></font></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Does
anyone know what custom tweaks need to happen to get nrpe running</span></font>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">in
non-global zones on a Solaris 10 box? It’s working good in the global
zone, but I get the darned SSL handshake error inside the non-globals.</span></font>
<font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">I’m
guessing this is an environment var or LD link issue.</span></font> <font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Any ideas?</span></font></p>
<p><a name="1225cd0f532e2922_12251f63e84a00e1_"><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Thanks,</span></font></a></p>
<p><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">Justin
Amburn</span></font></p>
</div>
<p style="margin-bottom:12.0pt"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"><br>
------------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Nagios-devel mailing list<br>
<a href="mailto:Nagios-devel@lists.sourceforge.net" target="_blank">Nagios-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a></span></font></p>
</div>
<p><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
</div>
</div></div></div>
</div>
<br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
Nagios-devel mailing list<br>
<a href="mailto:Nagios-devel@lists.sourceforge.net">Nagios-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagios-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-devel</a><br>
<br></blockquote></div><br></div>