<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 12 (filtered medium)">
<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:12.0pt;
        font-family:"Times New Roman","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.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.emailstyle20
        {mso-style-name:emailstyle20;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.balloontextchar0
        {mso-style-name:balloontextchar;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">The server has the hosts.cfg file, clients do not. It’s trying to access it. Without knowing what the script is doing, I can’t guess what’s happening.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Don’t take the list out of your emails. I don’t know all the answers. Others might.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><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""> Payal Gupta [mailto:payalg@cdac.in]
<br>
<b>Sent:</b> Thursday, April 18, 2013 4:47 AM<br>
<b>To:</b> Root, Paul T<br>
<b>Subject:</b> RE: [Xymon] Server side external scripts not working<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Also for the local xymon client running on xymon server, the test is running fine.
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">But not for the rest of the xymon clients. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Not able to understand why? <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><br>
On April 18, 2013 at 2:30 PM "Root, Paul T" <<a href="mailto:Paul.Root@CenturyLink.com">Paul.Root@CenturyLink.com</a>> wrote:
<o:p></o:p></p>
</div>
<div>
<blockquote style="border:none;border-left:solid blue 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Probably something in the xymonserver.cfg file.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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"><strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Payal Gupta [<a href="mailto:payalg@cdac.in">mailto:payalg@cdac.in</a>]
<br>
<strong><span style="font-family:"Tahoma","sans-serif"">Sent:</span></strong> Thursday, April 18, 2013 3:43 AM<br>
<strong><span style="font-family:"Tahoma","sans-serif"">To:</span></strong> Root, Paul T<br>
<strong><span style="font-family:"Tahoma","sans-serif"">Subject:</span></strong> RE: [Xymon] Server side external scripts not working</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">No, but i have not used any email address anywhere in my script.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
On April 18, 2013 at 1:58 PM "Root, Paul T" <<a href="mailto:Paul.Root@CenturyLink.com">Paul.Root@CenturyLink.com</a>> wrote:<o:p></o:p></p>
</div>
<div>
<blockquote style="border:none;border-left:solid blue 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Looks like you have an email address where a hostname/ip address should be.   The “Could not connect to Xymon daemon@xymon-server-ip:1984 (Connection refused)”
 is kind of the giveaway.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";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"><strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></strong><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a> [<a href="mailto:xymon-bounces@xymon.com">mailto:xymon-bounces@xymon.com</a>]
<strong><span style="font-family:"Tahoma","sans-serif"">On Behalf Of </span></strong>Payal Gupta<br>
<strong><span style="font-family:"Tahoma","sans-serif"">Sent:</span></strong> Thursday, April 18, 2013 3:01 AM<br>
<strong><span style="font-family:"Tahoma","sans-serif"">To:</span></strong> <a href="mailto:xymon@xymon.com">
xymon@xymon.com</a><br>
<strong><span style="font-family:"Tahoma","sans-serif"">Subject:</span></strong> [Xymon] Server side external scripts not working</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Hi All,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I am using xymon 4.3.10.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have a server side external script in ~xymon/server/ext/.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have added an entry for the script in ~xymon/server/etc/tasks.cfg as follows:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">[test] <br>
   ENVFILE $XYMONHOME/etc/xymonserver.cfg <br>
   CMD $XYMONHOME/ext/test <br>
   LOGFILE $XYMONSERVERLOGS/test.log <br>
   INTERVAL 6m<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I have made an entry for the same in hosts.cfg as well.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">In browser, a new column is updated with this test name but nothing is being shown other than a horizontal line.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">When i restarted the xymon server, i got this in my LOGFILE :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">2013-04-17 16:14:02 Whoops ! Failed to send message (Connection failed)
<br>
2013-04-17 16:14:02 ->  Could not connect to Xymon daemon@xymon-server-ip:1984 (Connection refused)
<br>
2013-04-17 16:14:02 ->  Recipient 'xymon-server-ip', timeout 15 <br>
2013-04-17 16:14:02 ->  1st line: 'config hosts.cfg' <br>
2013-04-17 16:14:02 Cannot load hosts.cfg from xymond, code 5 <br>
2013-04-17 16:14:02 Failed to load from xymond, reverting to file-load<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I am not able to understand the problem. Is there anything I had left?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks and Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Payal Gupta<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Project Engineer<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">National PARAM Supercomputing Facility<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">CDAC Pune<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Maharashtra<o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
-------------------------------------------------------------------------------------------------------------------------------
<br>
This e-mail is for the sole use of the intended recipient(s) and may <br>
contain confidential and privileged information. If you are not the <br>
intended recipient, please contact the sender by reply e-mail and destroy <br>
all copies and the original message. Any unauthorized review, use, <br>
disclosure, dissemination, forwarding, printing or copying of this email <br>
is strictly prohibited and appropriate legal action will be taken. <br>
-------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><br>
 <o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
-------------------------------------------------------------------------------------------------------------------------------
<br>
This e-mail is for the sole use of the intended recipient(s) and may <br>
contain confidential and privileged information. If you are not the <br>
intended recipient, please contact the sender by reply e-mail and destroy <br>
all copies and the original message. Any unauthorized review, use, <br>
disclosure, dissemination, forwarding, printing or copying of this email <br>
is strictly prohibited and appropriate legal action will be taken. <br>
-------------------------------------------------------------------------------------------------------------------------------<o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><br>
  <o:p></o:p></p>
</div>
<p class="MsoNormal"><br>
-------------------------------------------------------------------------------------------------------------------------------
<br>
This e-mail is for the sole use of the intended recipient(s) and may <br>
contain confidential and privileged information. If you are not the <br>
intended recipient, please contact the sender by reply e-mail and destroy <br>
all copies and the original message. Any unauthorized review, use, <br>
disclosure, dissemination, forwarding, printing or copying of this email <br>
is strictly prohibited and appropriate legal action will be taken. <br>
-------------------------------------------------------------------------------------------------------------------------------
<o:p></o:p></p>
</div>
</body>
</html>