<br><br><div class="gmail_quote">On Thu, Nov 10, 2011 at 11:37 PM, John Lewis <span dir="ltr"><<a href="mailto:lewilists@gmail.com">lewilists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div style="word-wrap:break-word">NRPE<div><br><div><div><div></div><div class="h5"><div></div></div></div></div></div></div></blockquote><div><br>Yup something like the below should work (written from memory and untested)<br>

then just use the 'check_ping_remote' command instaed of check_ping<br><br><br>Server1<br>Nagios Command<br>define command{<br>        command_name    check_ping_remote<br>        command_line    $USER1$/check_nrpe -H [Server2] -c check_ping_remote -a $HOSTNAME$ <br>

}<br><br>Server2<br>NRPE Command<br>command[check_ping_remote]=/opt/nagios/plugins/libexec/check_ping -H $ARG1$<br clear="all">--<br><-- <a href="http://23.me.uk/2" target="_blank">http://23.me.uk/2</a> --><br><--Time flies like an arrow; fruit flies like a banana.  --><br>

 
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div style="word-wrap: break-word;"><div><div><div><div class="h5"><div>On Nov 10, 2011, at 3:32 PM, Radisavljevic Vojkan wrote:</div>

<br></div></div><blockquote type="cite"><div><div></div><div class="h5"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div>

 </div><div>Hi all,</div><div>can someone please help me with ping setup?</div><div><br></div><div>I have Nagios running on server1 (linux). I would like to set Nagios to execute Ping command from Server2 (linux) to ping server3 (remote server). How this could be done?</div>

<div><br></div><div>thanks,</div><div>Vojkan<br></div><div><br></div></div></div></div></div>------------------------------------------------------------------------------<br>RSA(R) Conference 2012<br>Save $700 by Nov 18<br>

Register now<br><a href="http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________" target="_blank">http://p.sf.net/sfu/rsa-sfdev2dev1_______________________________________________</a><br>Nagiosplug-help mailing list<br>

<a href="mailto:Nagiosplug-help@lists.sourceforge.net" target="_blank">Nagiosplug-help@lists.sourceforge.net</a><br><a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>

::: Please include plugins version (-v) and OS when reporting any issue. <br>::: Messages without supporting info will risk being sent to /dev/null<br></blockquote></div><br></div></div><br>------------------------------------------------------------------------------<br>


RSA(R) Conference 2012<br>
Save $700 by Nov 18<br>
Register now<br>
<a href="http://p.sf.net/sfu/rsa-sfdev2dev1" target="_blank">http://p.sf.net/sfu/rsa-sfdev2dev1</a><br>_______________________________________________<br>
Nagiosplug-help mailing list<br>
<a href="mailto:Nagiosplug-help@lists.sourceforge.net">Nagiosplug-help@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/nagiosplug-help" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagiosplug-help</a><br>
::: Please include plugins version (-v) and OS when reporting any issue.<br>
::: Messages without supporting info will risk being sent to /dev/null<br>
<br></blockquote></div><br>