<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Den 2014-02-17 12:46, Johan Sjöberg skrev:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%">
<div class="WordSection1">
<p class="MsoNormal">Hi.</p>
<p class="MsoNormal"><span><br /> We recently updated our Xymon installation to 4.3.15. Now it seems like we cannot schedule disable from the “Enable/disable” page. We get this error in the xymond.log:</span></p>
</div>
</blockquote>
<div class="WordSection1">
<p class="MsoNormal"><span><br /></span></p>
<p class="MsoNormal"><span>Same in 4.3.16, it seems. Problem is in line 4368 - there is a "NULL" missing in the addtobuffer_many() call.<br /></span></p>
<p class="MsoNormal"><span><br /></span></p>
<p class="MsoNormal"><span>Index: xymond/xymond.c<br />===================================================================<br />--- xymond/xymond.c     (revision 7439)<br />+++ xymond/xymond.c     (working copy)<br />@@ -4165,7 +4165,7 @@<br /> <br />                        for (swalk = schedulehead; (swalk); swalk = swalk->next) {<br />                                snprintf(tbuf, sizeof(tbuf), "%d|%d", swalk->id, (int)swalk->executiontime);<br />-                               addtobuffer_many(response, tbuf, "|", swalk->sender, "|", nlencode(swalk->command));<br />+                               addtobuffer_many(response, tbuf, "|", swalk->sender, "|", nlencode(swalk->command), NULL);<br />                        }<br /> <br />                        xfree(msg->buf);</span></p>
</div>
<div class="WordSection1"> </div>
<div class="WordSection1">Will put this into 4.3.17.</div>
<div class="WordSection1"> </div>
<div class="WordSection1">Regards,<br />Henrik</div>
<div class="WordSection1"> </div>
<div> </div>
</body></html>