<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Thank you Jeremy and Paul for pointing me in the right direction.<o:p></o:p></p>
<p class="MsoNormal">As you explained it was due to DNS issue, fixed it by adding the IP’s to /etc/hosts file<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks for your help.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">--Aj<o:p></o:p></p>
<p class="MsoNormal"><b>From:</b> Jeremy Laidman <jeremy@laidman.org> <br>
<b>Sent:</b> Wednesday, March 28, 2018 11:30 AM<br>
<b>To:</b> Ajay Kumar Talla <atalla@zetaglobal.com><br>
<b>Cc:</b> Root, Paul T <Paul.Root@centurylink.com>; xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Xymon - smtp<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">The default timeout for xymonnet is 10 seconds. The xymonnet command in tasks.cfg can have "--timeout=N" added to adjust timeouts.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Have you tried to connect to the service yourself, using telnet, to see if there is indeed a timeout, and what form it takes? Something like this:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">$ printf "mail\r\nquit\r\n" | time nc <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fipxdvo.tcif.telstra.com.au&data=02%7C01%7Catalla%40zetaglobal.com%7C877f1a9610fd49f3321508d594713896%7C47049324c4984be5acf70154448a1107%7C1%7C1%7C636578136371924356&sdata=kzvKE6%2B8JI73gpWryo0lfLr4N5AOOG%2B8OtSqc%2FZ2Jw4%3D&reserved=0">
ipxdvo.tcif.telstra.com.au</a>. 25<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">or if you don't have nc or netcat:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">$ { printf "mail\r\nquit\r\n"; sleep 1; } | time telnet qts-pro-cm-weber 25<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Xymon has more than one form of timeout. I believe if Xymon fails to connect due to a timeout, it will show a different error to what you've seen. In your case, I suspect Xymon has connected, and has issued its commands (mail and quit,
 from protocols.cfg), and is waiting for "220". If it doesn't get a 220 within 10 seconds, it will timeout the session.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I've seen this type of thing happen when TCP wrappers are used to limit access to a service, or for similar security measures. In these cases, the incoming connection is from a host that the mail server does not know about, and so it attempts
 to find the hostname by reverse DNS lookup. If DNS is slow or misconfigured on the mail server, the DNS lookup can take 15 seconds to fail. In these cases, a quick fix is to add the Xymon server IP address to the /etc/hosts file on the mail server. A better
 solution is to fix the DNS.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">J<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 28 March 2018 at 07:27, Ajay Kumar Talla <<a href="mailto:atalla@zetaglobal.com" target="_blank">atalla@zetaglobal.com</a>> wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thank you for the information.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">But I don’t see any huge CPU  load on my server for the past 4 hours. But still SMTP test is flapping.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The screenshot attached says “<b>connection timedout</b>” is there a way to change the time-out setting?<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have the same SMTP test on another server whose Load becomes high at times, but it’s SMTP remains green.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b>From:</b> Root, Paul T <<a href="mailto:Paul.Root@CenturyLink.com">Paul.Root@CenturyLink.com</a>>
<br>
<b>Sent:</b> Wednesday, March 28, 2018 1:42 AM<br>
<b>To:</b> Root, Paul T <<a href="mailto:Paul.Root@CenturyLink.com">Paul.Root@CenturyLink.com</a>>; Ajay Kumar Talla <<a href="mailto:atalla@zetaglobal.com" target="_blank">atalla@zetaglobal.com</a>>;
<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> RE: Xymon - smtp<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"><a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fserverfault.com%2Fquestions%2F119026%2Fquestion-on-sendmail-daemon-actions-when-load-average-is-too-high&data=02%7C01%7Catalla%40zetaglobal.com%7C5184c4e69cfc41d611ff08d5941f037d%7C47049324c4984be5acf70154448a1107%7C1%7C0%7C636577783282992025&sdata=gTT%2BrA7A88BosFDvteurJlcdKSi7XiT1ug6l%2FSd5zPg%3D&reserved=0" target="_blank">https://serverfault.com/questions/119026/question-on-sendmail-daemon-actions-when-load-average-is-too-high</a></span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Xymon [<a href="mailto:xymon-bounces@xymon.com" target="_blank">mailto:xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Root, Paul T<br>
<b>Sent:</b> Tuesday, March 27, 2018 3:10 PM<br>
<b>To:</b> 'Ajay Kumar Talla'; <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> Re: [Xymon] Xymon - smtp</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D">This is a load issue. Sendmail will refuse to process mail messages if the CPU is too busy.
</span><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:#1F497D"> </span><o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma",sans-serif"> Xymon [<a href="mailto:xymon-bounces@xymon.com" target="_blank">mailto:xymon-bounces@xymon.com</a>]
<b>On Behalf Of </b>Ajay Kumar Talla<br>
<b>Sent:</b> Tuesday, March 27, 2018 12:59 PM<br>
<b>To:</b> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a><br>
<b>Subject:</b> [Xymon] Xymon - smtp</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hi,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I’m using smtp test in Xymon for monitoring. However sometimes, I’m getting error as connection timed out.  After sometime it is showing as Green(Flapping status)<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><img border="0" width="913" height="222" style="width:9.5104in;height:2.3125in" id="m_285224816436653520Picture_x0020_2" src="cid:image001.png@01D3C691.82BB8000"><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Could you please, let me know the solution for this.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><span style="font-size:12.0pt;color:#002060"> </span></b><o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Thanks,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Ajay<o:p></o:p></p>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
<span style="font-size:12.0pt;font-family:"Times New Roman",serif">This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If
 you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.</span><o:p></o:p></p>
<p class="MsoNormal" align="center" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center">
This communication is the property of CenturyLink and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately
 notify the sender by reply e-mail and destroy all copies of the communication and any attachments.<o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.xymon.com%2Fmailman%2Flistinfo%2Fxymon&data=02%7C01%7Catalla%40zetaglobal.com%7C877f1a9610fd49f3321508d594713896%7C47049324c4984be5acf70154448a1107%7C1%7C1%7C636578136371924356&sdata=IlCQJJTnjDQP8QlSZ4ENjDr8DKxjCej9dVrq%2B4asqlw%3D&reserved=0" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>