<div>Brilliant thank you !!!</div>
<div class="mailbox_signature"><br></div>
<br><br><div class="gmail_quote"><p>On Tue, Jun 2, 2015 at 8:02 PM, Jeremy Laidman <span dir="ltr"><<a href="mailto:jlaidman@rebel-it.com.au" target="_blank">jlaidman@rebel-it.com.au</a>></span> wrote:<br></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>I don't know how your ext script works.  However you could prefix your ssh command with a conditional that checks the status of the xymonnet result.  Something like this:<br><br></div>for SERVER in $SERVERLIST; do<br></div>    if $XYMON $XYMSRV "query $SERVER.ssh" | grep "^green" >/dev/null; then<br></div>
<div>      perform-ssh-tasks<br></div>
<div>    else<br></div>
<div>      $XYMON $XYMSRV "status $SERVER.disk clear `date` ssh failed"<br></div>
<div>    fi<br></div>done<br><br></div>I don't know if you can hook into xymonnet-again.sh to run your test more frequently, but I suspect it would take a lot of work/hacking to get what you want.  It might be easier to re-invent the wheel to better suit your requirements.<br><br>Perhaps update your ext script so it can be run once per minute, and have it skip the main execution phase if the current ssh (or other) status is green and less than 5 minutes old.<br><br></div>Cheers<br></div>Jeremy<br><br></div>
<div class="gmail_extra">
<br><div class="gmail_quote">On 3 June 2015 at 00:59, Ricardo L. <span dir="ltr"><<a href="mailto:rltexas1@gmail.com">rltexas1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div>
<div>I have an ext test that runs daily. Since I  not allows to install clients I ssh over get what I need test and report on the results. </div>
<div><br></div>
<div>The problem is that when servers come offline I get false Positive. </div>
<div><br></div>
<div>Is there a way I can leverage xmonnnet to test for ssh connectivity before I run the ext or as part of the ext  (ping is blocked ).  </div>
<div><br></div>
<div>How can I use xymonnet-again to run yellow tests again sooner ?</div>
<div><br></div>
<div>Thanks </div>
<div><br></div>
</div>
<br>_______________________________________________<br>
Xymon mailing list<br><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br><br></blockquote>
</div>
<br></div>
</div></blockquote></div><br>