<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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 11 (filtered medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I rebooted a solaris server and nrpe did not start on its
own. I was able to resolve it by doing the following on solaris 10-<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Add the following entry
to /etc/inetd.conf: <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'> nrpe
stream tcp nowait nagios /usr/local/nagios/nrpe -c
/usr/local/nagios/nrpe.cfg --inetd<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Then run the following
command- <o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>#inetconv -i
/etc/inetd.conf <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>But “inetconv” command is not available in
solaris 9 and 8. so nrpe is not starting on those servers after a reboot.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>My configuration on solaris 8 and 9 boxes is-<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Add the following <font
color=black><span style='color:black'>file “<i><span style='font-style:
italic'>nrpe</span></i>” under <i><span style='font-style:italic'>/etc/init.d
</span></i>-<o:p></o:p></span></font></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>#!/sbin/sh<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>#<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>#
/etc/init.d/nagios startup script<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>#<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>case
"$1" in<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>start)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>[ -f
/usr/local/nagios/nrpe.cfg ] || exit 0<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'># start nagios<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>cd
/usr/local/nagios<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>./nrpe -c
/usr/local/nagios/nrpe.cfg --daemon<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>;;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>stop)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'># stop nagios<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>echo "use
ps to kill nrpe"<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>;;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>*)<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>echo
"Usage: $0 { start | stop }"<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>exit 1<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>;;<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>esac<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>exit 0<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'>now open
nrpe.cfg in /usr/local/nagios and add server ip address<o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><b><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black;font-weight:
bold'>allowed_hosts=127.0.0.1, 172.22.48.7<o:p></o:p></span></font></b></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=black
face="Times New Roman"><span style='font-size:12.0pt;color:black'>Start nrpe as
daemon in solaris by issuing following command-</span></font><font size=2
color=black><span style='font-size:10.0pt;color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal style='text-autospace:none'><font size=3 color=blue
face="Times New Roman"><span style='font-size:12.0pt;color:blue'>#/usr/local/nagios/nrpe
-c /usr/local/nagios/nrpe.cfg --deamon</span></font><font size=2 color=black><span
style='font-size:10.0pt;color:black'><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I tried starting nrpe with –inetd switch instead of as
a daemon but the process is not getting started.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Kindly help.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Lalita<o:p></o:p></span></font></p>
</div>
</body>
</html>
<br>
Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.