<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Aug 11, 2016 at 2:00 AM Kirk MacDonald <<a href="mailto:Kirk.MacDonald@corp.eastlink.ca">Kirk.MacDonald@corp.eastlink.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal"><span style="line-height:1.5">The errors are as follows:</span><br></p><p class="MsoNormal"><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<pre style="margin-left:.5in">TCPtest error 4 seen on open connection for $<span style="font-family:"Tahoma",sans-serif">x.</span>imaps<u></u><u></u></pre>
<pre style="margin-left:.5in">TCPtest error 4 seen on open connection for $<span style="font-family:"Tahoma",sans-serif">x</span>.pop3s<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<p class="MsoNormal">.. where $x is a few random extended ASCII characters</p></div></div></blockquote><div>If I'm not mistaken, the error codes are defined in contest.h.  Error 4 is:</div><div><br></div><div>#define CONTEST_EIO        4</div><div><br></div><div>This means "I/O error".  When trying to write to an apparently open socket, the number of bytes written was zero.  It might indicate that the remote end closed the socket, and it's not until the write took place that the local socket layer saw the closure.  If you run xymonnet with "--debug" enabled, you might see "write failed" in the log.</div><div><br></div><div>To confirm, perhaps do a packet trace on the communication.  And/or look at the logs on the device being probed, to see if it's aborting the connection for policy reasons.</div><div><br></div><div>The weird $x values seem to be a bug in xymonnet.c, where the code treats "test->host" as the hostname, whereas it's actually a structure with lots of host details.  This should be "test->host->ip".  But it won't cause your "error 4" problem.</div><div><br></div><div>J</div><div><br></div></div></div>