<div dir="ltr">I don't know what it would take to run the transmit in parallel.  In some cases a response comes back from one of the servers, as mentioned in the comments:<div><br></div><div><div>        /*</div><div>         * Even though this is the "sendtomany" routine, we need to decide if the</div>

<div>         * request should go to all servers, or just a single server. The default </div><div>         * is to send to all servers - but commands that trigger a response can</div><div>         * only go to a single server.</div>

<div>         *</div><div>         * "schedule" is special - when scheduling an action there is no response, but </div><div>         * when it is the blank "schedule" command there will be a response. So a </div>

<div>         * schedule action goes to all Xymon servers, the blank "schedule" goes to a single</div><div>         * server.</div><div>         */</div></div><div><br></div><div><br></div><div>Perhaps the feature request should be: try each server once, then move on to the next.  Take out of the list any server that responds. Run through the list N times as long as there are servers still in the list.</div>

<div><br></div><div style>Ralph Mitchell</div><div style><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 27, 2013 at 6:12 PM, Roland Soderstrom <span dir="ltr"><<a href="mailto:Rolands@logicaltech.com.au" target="_blank">Rolands@logicaltech.com.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Well spotted Ralph, Thanks a lot.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">But the code seems to miss something here.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Shouldn’t it send to both servers at the same time? Regardless of the other being up or not?<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Is there any reason to wait for the first server to answer before sending to the next?<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">And even so, the time from the client should be when it is sending not when the sending process starts.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I really like this feature as it gives me a very cheap and easy “xymon cluster”.<u></u><u></u></span></p>

<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I discovered this when one of my xymon servers died on me last week.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I just had to change the http port to see the “backup server” instead.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Feature request?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">At least we know what is happening and why.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-Roland<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Ralph Mitchell [mailto:<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>]
<br>
<b>Sent:</b> Monday, 27 May 2013 4:49 PM<br>
<b>To:</b> Roland Soderstrom<br>
<b>Cc:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a></span></p><div class="im"><br>
<b>Subject:</b> Re: [Xymon] XYMONSERVERS bug<u></u><u></u></div><p></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">I just looked at the code (xymon-4.3.10) - the xymon client program has a default timeout of 15 seconds, and retries twice.  That's 45 of the 47 seconds delay you're seeing before it tries the second server.<u></u><u></u></p>
<div class="im">
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">To answer your original question, yes, that would seem to be the expected behaviour...  :-)<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Ralph Mitchell<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div></div>
</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" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>