<div class="gmail_quote">On Wed, Jun 24, 2009 at 7:24 PM, Alan Sparks <span dir="ltr"><<a href="mailto:asparks@doublesparks.net">asparks@doublesparks.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">T.J. Yang wrote:<br>
> I am experiencing same problem but it is on a  4.2.0 server.<br>
> If you like, we can work together to debug this issue.<br>
> This bug is listed on my hobbit deployment todo list .<br>
><br>
</div><div class="im">> --------------------------------------------------<br>
> From: "Alan Sparks" <<a href="mailto:asparks@doublesparks.net">asparks@doublesparks.net</a>><br>
</div><div class="im">>> I've some "random" failures on bb-histlog.sh, viewing items in the bb2<br>
>> event log.  Some work as expected, but some when clicked appear to do<br>
>> nothing.  Hitting the URL for that (say<br>
>> <a href="http://den2sch17/hobbit-cgi/bb-histlog.sh?HOST=den1ws063&SERVICE=nfs&TIMEBUF=Mon_Jun_22_18:46:39_2009" target="_blank">http://den2sch17/hobbit-cgi/bb-histlog.sh?HOST=den1ws063&SERVICE=nfs&TIMEBUF=Mon_Jun_22_18:46:39_2009</a>)<br>

>><br>
>> with curl shows a zero-length reply.  Checking the Apache error log<br>
>> shows "Premature end of script headers: bb-histlog.sh, referer:<br>
>> <a href="http://den2sch17/hobbit/bb2.html" target="_blank">http://den2sch17/hobbit/bb2.html</a>".  I have found no core files left<br>
>> behind.<br>
>><br>
</div>Well, I have mixed luck running under GDB... looking at the code, saw it<br>
was trying to get the CGI info from the environment so set some<br>
environment variables to fake up enough CGI environment to get it to<br>
run.  But mostly wound up getting segfaults in expand_env on the<br>
HTMLCONTENTTYPE stuff.<br>
<br>
But I stumbled upon something that fixed my problem -- but not sure<br>
why.  I edited the cgi-bin/bb-histlog.sh file, and added<br>
"cd /tmp" before the meat of the script.  For some reason, I now seem to<br>
have no issues.</blockquote><div><br></div><div>Perhaps that ought to be "cd $BBTMP" instead??  Keep all Xymon stuff in one place.</div><div><br></div><div>Ralph Mitchell</div><div> </div></div>