<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Big thanks for the fix from over here!<br><br>About 3 weeks into running <span style="color:#1F497D;">4.3.17 <font style="" color="#000000">here, we found the bug.</font></span><font style="" color="#000000">  <br></font><br><div><hr id="stopSpelling">From: larry@fni-stl.com<br>To: xymon@xymon.com<br>Date: Thu, 31 Jul 2014 15:39:26 +0000<br>Subject: Re: [Xymon] enadis page only showing the last scheduled disable<br><br>


<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:11.0pt;
font-family:"Calibri","sans-serif";
}

.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}

.ExternalClass span.ecxMsoHyperlinkFollowed {
color:purple;
text-decoration:underline;
}

.ExternalClass p.ecxmsochpdefault, .ExternalClass li.ecxmsochpdefault, .ExternalClass div.ecxmsochpdefault {
font-size:12.0pt;
font-family:"Calibri","sans-serif";
}

.ExternalClass span.ecxemailstyle17 {
font-family:"Calibri","sans-serif";
color:windowtext;
}

.ExternalClass span.ecxemailstyle19 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxEmailStyle20 {
font-family:"Calibri","sans-serif";
color:#1F497D;
}

.ExternalClass span.ecxSpellE {
}

.ExternalClass .ecxMsoChpDefault {
font-size:10.0pt;
font-family:"Calibri","sans-serif";
}

.ExternalClass div.ecxWordSection1 {
}

--></style>


<div class="ecxWordSection1">
<p class="ecxMsoNormal"><span style="color:#1F497D;">I believe I have this problem identified and corrected.<span style=""> 
</span>xymond schedule list query was not returning a newline after each scheduled entry.<span style=""> 
</span>headfoot.c was not parsing it correctly since it was looking for a newline.<span style=""> 
</span>So it wound up only displaying the last portion of the multi-line output.</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">What really concerns me though is that apparently no one has had this problem (or reported it) for 5 months since 4.3.17 was released.<span style=""> 
</span>That doesn't sound probable with such a basic program feature as Enable/Disable Alerts.<span style=""> 
</span>Which makes me think I may have something else in play here.</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">But the change I made to xymond.c has fixed my problem and I can't find any new issues that I created with the modification.</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Larry</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">-------------------------------------------------------------------------------------------------</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Schedule list output from 4.3.17:</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">4.3.17 $ bin/xymon localhost 'schedule'</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">2|1406853120|192.168.34.1|disable testsys31.* 240 \<span class="ecxSpellE">nDisabled</span> by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n1|1406853120|192.168.34.1|disable testsys32.* 240 \<span class="ecxSpellE">nDisabled</span>
 by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Schedule list output from 4.3.12:</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">4.3.12 $ bin/xymon localhost 'schedule'</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">7|1406854500|192.168.62.1|disable testsys3.* 240 \<span class="ecxSpellE">nDisabled</span> by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">6|1406854500|192.168.62.1|disable testsys1.* 240 \<span class="ecxSpellE">nDisabled</span> by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">5|1406854500|192.168.62.1|disable testsys.* 240 \<span class="ecxSpellE">nDisabled</span> by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Added newline to each task listing at line 4169 in xymond/xymond.c</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">4.3.17/xymond # diff xymond.c <span class="ecxSpellE">
xymond.c.ORIG</span></span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">4169c4169</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"><<span style="">                              
</span><span class="ecxSpellE">addtobuffer_many</span>(response, <span class="ecxSpellE">
tbuf</span>, "|", <span class="ecxSpellE">swalk</span>->sender, "|", <span class="ecxSpellE">
nlencode</span>(<span class="ecxSpellE">swalk</span>->command), <b style="">"\n",</b> NULL);</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">---</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">><span style="">                              
</span><span class="ecxSpellE">addtobuffer_many</span>(response, <span class="ecxSpellE">
tbuf</span>, "|", <span class="ecxSpellE">swalk</span>->sender, "|", <span class="ecxSpellE">
nlencode</span>(<span class="ecxSpellE">swalk</span>->command), NULL);</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Schedule list output following the change:</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">4.3.17 $ bin/xymon localhost 'schedule'</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">4|1406852940|192.168.34.1|disable testsys31.* 240 \<span class="ecxSpellE">nDisabled</span> by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">3|1406852940|192.168.34.1|disable testsys32.* 240 \<span class="ecxSpellE">nDisabled</span> by: larry @ 192.168.84.1\<span class="ecxSpellE">nReason</span>: test\n</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"></span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<p class="ecxMsoNormal"><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 [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Larry Bonham<br>
<b>Sent:</b> Tuesday, July 29, 2014 4:16 PM<br>
<b>To:</b> 'xymon@xymon.com'<br>
<b>Subject:</b> Re: [Xymon] enadis page only showing the last scheduled disable</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Anyone able to help me with this problem?  I'm pretty much dead in the water with my 4.3.17 upgrade.</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Something left over from my 4.3.12 configuration?  I assume it is not a widespread issue.</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;">Larry</span></p>
<p class="ecxMsoNormal"><span style="color:#1F497D;"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in;">
<p class="ecxMsoNormal"><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 [mailto:xymon-bounces@xymon.com]
<b>On Behalf Of </b>Larry Bonham<br>
<b>Sent:</b> Friday, July 25, 2014 9:34 AM<br>
<b>To:</b> 'xymon@xymon.com'<br>
<b>Subject:</b> [Xymon] enadis page only showing the last scheduled disable</span></p>
</div>
</div>
<p class="ecxMsoNormal"> </p>
<div>
<p class="ecxMsoNormal">I saw where this was reported but I couldn't find any follow-up mention of a fix or cause.</p>
<p class="ecxMsoNormal"> </p>
<p class="ecxMsoNormal">Just updated from xymon 4.3.12 to 4.3.17 on a RHEL 6.5 system.  Now when I use the enadis page in the Scheduled Actions section it is only showing the last system that has a scheduled disable.  Instead of the full list of pending disables.
</p>
<p class="ecxMsoNormal"> </p>
<p class="ecxMsoNormal">Thanks.</p>
<p class="ecxMsoNormal"> </p>
<p class="ecxMsoNormal">Larry</p>
</div>
<p class="ecxMsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";"> </span></p>
<p class="ecxMsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman","serif";"> </span><span style="color:#1F497D;"></span></p>
</div>
</div>
<br>
<hr>
<font color="Black" face="Arial" size="3"><br>
CONFIDENTIALITY NOTICE:<br>
This electronic mail message is intended exclusively for<br>
recipient to which it is addressed. The contents of this message<br>
and any attachments may contain confidential and privileged<br>
information. Any unauthorized review, use, print, storage, copy,<br>
disclosure or distribution is strictly prohibited. If you have<br>
received this message in error, please advise the sender<br>
immediately by replying to the message's sender and delete all<br>
copies of this message and its attachments without disclosing<br>
the contents to anyone, or using the contents for any purpose.<br>
</font>


<br>_______________________________________________
Xymon mailing list
Xymon@xymon.com
http://lists.xymon.com/mailman/listinfo/xymon</div>                                         </div></body>
</html>