<div dir="ltr"><div>run the same command from the nagios server to see if the nrpe working between nagios server and client.</div>
<div> </div>
<div>on the nagios server, if the nagios is installed at /usr/local/nagios then</div>
<div>/usr/local/nagios/libexec/check_nrpe -H <ip-of-the-nagios-client> -c check_users</div>
<div> </div>
<div>if you get the output then, it compiled and working fine.</div>
<div> </div>
<div><br><br> </div>
<div class="gmail_quote">On Fri, Aug 29, 2008 at 3:16 PM, Krishna Chandra Prajapati <span dir="ltr"><<a href="mailto:prajapatikc@gmail.com">prajapatikc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<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/" target="_blank">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/" target="_blank">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 
<div>
<div></div>
<div class="Wj3C7c"><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" target="_blank">narendran.neelamegam@wipro.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<div lang="EN-US" vlink="purple" link="blue">
<div>
<div>
<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-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: rgb(181,196,223) 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<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>
<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-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<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>
<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/" target="_blank">ed-ventures-online.com</a><br>Email-id: <a href="mailto:prajapatikc@gmail.com" target="_blank">prajapatikc@gmail.com</a><br>
</div></div></div><br>-------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br><a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>
_______________________________________________<br>Nagios-users mailing list<br><a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.<br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br><br clear="all"><br>-- <br>Shankar Asam<br>
</div>