<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;}
span.EmailStyle17
        {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">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.<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""> xymon-bounces@xymon.com [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Payal Gupta<br>
<b>Sent:</b> Thursday, April 18, 2013 3:01 AM<br>
<b>To:</b> xymon@xymon.com<br>
<b>Subject:</b> [Xymon] Server side external scripts not working<o:p></o:p></span></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>
</body>
</html>