<div dir="ltr">I have executed on remote server<br><br>[root@edventures76 ~]# /usr/local/nagios/libexec/check_nrpe -H <a href="http://127.0.0.1">127.0.0.1</a> <br>NRPE v2.12<br>[root@edventures76 ~]# /usr/local/nagios/libexec/check_nrpe -H <a href="http://127.0.0.1">127.0.0.1</a>  -n<br>
CHECK_NRPE: Error receiving data from daemon.<br>[root@edventures76 ~]# vi /usr/local/nagios/etc/nrpe.cfg <br>[root@edventures76 ~]# /usr/local/nagios/libexec/check_users -w 5 -c 10<br>USERS WARNING - 5 users currently logged in |users=5;5;10;0<br>
<br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 3:06 PM,  <span dir="ltr"><<a href="mailto:narendran.neelamegam@wipro.com">narendran.neelamegam@wipro.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div><div class="Ih2E3d">

<p>only_from           
= <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> <nagios_ip_address>(here
nagios server ip address given or Monitoring server)</p>

<p> </p>

</div><p>Only allow access to nrpe deamon from localhost and the IP
of the Nagios server ( You don't want other systems to connect nrpe deamon)</p>

<p> </p>

<p>( Run the below commands and send check the error message)</p>

<p> </p>

<p>/usr/local/nagios/libexec/check_nrpe -H <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>  </p>

<p> </p>

<p>usr/local/nagios/libexec/check_nrpe -H <a href="http://127.0.0.1" target="_blank">127.0.0.1</a>  -n<span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Also enable logging in nrpe.cfg and check the log.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Regards,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Naren</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> Krishna Chandra
Prajapati [mailto:<a href="mailto:prajapatikc@gmail.com" target="_blank">prajapatikc@gmail.com</a>] <br>
<b>Sent:</b> Friday, August 29, 2008 3:01 PM<br>
<b>To:</b> Narendran Neelamegam (WT01 - TECHNOLOGY INFRASTRUCTURE SERVICES
(GS))<br>
<b>Cc:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> Re: [Nagios-users] nrpe installation</span></p>

</div><div><div></div><div class="Wj3C7c">

<p> </p>

<div>

<p style="margin-bottom: 12pt;">Hi,<br>
<br>
nrpe daemon is running on the remote box. One thing is not clear to me ( from
nrpe docs)<br>
<br>
Edit the /etc/xinetd.d/nrpe file and add the IP address of the monitoring
server to the only_from directive.<br>
only_from            = <a href="http://127.0.0.1" target="_blank">127.0.0.1</a> <nagios_ip_address>(here nagios
server ip address given or Monitoring server)<br>
<br>
After executing on remote server <br>
netstat -at | grep nrpe<br>
<br>
tcp        
0           0
*:nrpe    *:*        LISTEN<br>
<br>
(below check_nrpe is not working)<br>
Next, check to make sure the NRPE daemon is functioning properly. To do this,
run the check_nrpe plugin that<br>
was installed for testing purposes.<br>
/usr/local/nagios/libexec/check_nrpe -H localhost<br>
You should get a string back that tells you what version of NRPE is installed,
like this:<br>
NRPE v2.8<br>
could not complete ssl handshake<br>
<br>
<br>
<br>
</p>

<div>

<p>On Fri, Aug 29, 2008 at 2:22 PM, <<a href="mailto:narendran.neelamegam@wipro.com" target="_blank">narendran.neelamegam@wipro.com</a>>
wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You don't need nrpe on both the
monitoring and the remote sever.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">You need check_nrpe –on
monitoring server and nrpe on the remote/monitored server.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">I hope you have read the
relevant section of the nrpe installation document.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Do you have additional
information on the remote server such as OS etc.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">What trouble shooting steps you
carried out?</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">Naren</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;"> <a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a>]
<b>On Behalf Of </b>Krishna Chandra Prajapati<br>
<b>Sent:</b> Friday, August 29, 2008 2:07 PM</span></p>

<div>

<p><span style="font-size: 10pt;"><br>
<b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> [Nagios-users] nrpe installation</span></p>

</div>

</div>

<p> </p>

<div>

<p style="margin-bottom: 12pt;">I have setup nagios server its working
properly. Now i need to add remote server. So i have to install nrpe on
monitoring server and  remote server. But i am not able to configure nrpe
properly on remote and monitoring server although installed.properly </p>

<div>

<p><br>
Any body please tell me how to configure nrpe on both remote and monitoring
server<br>
<br clear="all">
<br>
-- <br>
Krishna Chandra Prajapati</p>

</div>

</div>

</div>

<p><b><span style="font-size: 10pt; color: green;">Please do not print this email
unless it is absolutely necessary. </span></b></p>

<div>

<p>The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain proprietary, confidential or privileged information. If you are not the
intended recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this message and
any attachments. </p>

<p>WARNING: Computer viruses can be transmitted via email. The recipient should
check this email and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted by this
email. </p>

<p><a href="http://www.wipro.com" target="_blank">www.wipro.com</a> </p>

</div>

</div>

</div>

<p><br>
<br clear="all">
<br>
-- <br>
Krishna Chandra Prajapati<br>
MySQL DBA,<br>
Ed Ventures e-Learning Pvt.Ltd.<br>
1-8-303/48/15, Sindhi Colony<br>
P.G.Road, Secunderabad.<br>
Pin Code: 500003<br>
Office Number: 040-66489771<br>
Mob: 9912924044<br>
URL: <a href="http://ed-ventures-online.com" target="_blank">ed-ventures-online.com</a><br>
Email-id: <a href="mailto:prajapatikc@gmail.com" target="_blank">prajapatikc@gmail.com</a></p>

</div>

</div></div></div><div><div></div><div class="Wj3C7c">

<p><b><span style="font-size: 10pt; color: green;"> Please do not print this email unless it is absolutely necessary. </span></b><span></span></p>


<p> The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. </p>


<p>WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. </p>

<p>
<a href="http://www.wipro.com" target="_blank">www.wipro.com</a>
</p>
</div></div></div>


</blockquote></div><br><br clear="all"><br>-- <br>Krishna Chandra Prajapati<br>MySQL DBA,<br>Ed Ventures e-Learning Pvt.Ltd.<br>1-8-303/48/15, Sindhi Colony<br>P.G.Road, Secunderabad.<br>Pin Code: 500003<br>Office Number: 040-66489771<br>
Mob: 9912924044<br>URL: <a href="http://ed-ventures-online.com">ed-ventures-online.com</a><br>Email-id: <a href="mailto:prajapatikc@gmail.com">prajapatikc@gmail.com</a><br>
</div>