[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Debugging issues with bb-histlog.sh on 4.3.0
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Debugging issues with bb-histlog.sh on 4.3.0
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Wed, 24 Jun 2009 19:32:34 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=folf+eHXC7WlkiXwT2wlm+9lATV/wBzzb+iWwUt2Fhk=; b=nNchUii/6kqfVQG9zzuU98TznemLfPvcj9S9xkGA3oUiWPuVn8IJpKHO361EXstBjP PtOjaFUsIJx0ahPpn2/YkvDlk+0/O1c+aQcfifp+8ACpICJ8FT8c1duAvSicl0+QbFd9 7CvlNLroo+BF6Ab20qlSTb5HvYucYyxN+kiAE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ox/o9G5Ft9sKH/IXOOZQjy4IzjmwLNlABqXRSu3hegWFYjnH406m5jA6EpgopGLlLp 2isIjBuwEbu7BoHwiDyIl8s11cnn2dLD7eOFSCEnUOyimdDbFK9iQWOx+cTRhuBpJ2EV gVF3QZ1X06ETlGUSQiF6faW3Q80x7k6pXwGng=
- References: <4A402BA0.1000802 (at) doublesparks.net> <BAY138-DS6FA659F42290FB8F838FF9F360 (at) phx.gbl> <4A42C3B1.3020106 (at) doublesparks.net>
On Wed, Jun 24, 2009 at 7:24 PM, Alan Sparks <asparks (at) doublesparks.net>wrote:
> T.J. Yang wrote:
> > I am experiencing same problem but it is on a 4.2.0 server.
> > If you like, we can work together to debug this issue.
> > This bug is listed on my hobbit deployment todo list .
> >
> > --------------------------------------------------
> > From: "Alan Sparks" <asparks (at) doublesparks.net>
> >> I've some "random" failures on bb-histlog.sh, viewing items in the bb2
> >> event log. Some work as expected, but some when clicked appear to do
> >> nothing. Hitting the URL for that (say
> >>
> http://den2sch17/hobbit-cgi/bb-histlog.sh?HOST=den1ws063&SERVICE=nfs&TIMEBUF=Mon_Jun_22_18:46:39_2009
> )
> >>
> >> with curl shows a zero-length reply. Checking the Apache error log
> >> shows "Premature end of script headers: bb-histlog.sh, referer:
> >> http://den2sch17/hobbit/bb2.html". I have found no core files left
> >> behind.
> >>
> Well, I have mixed luck running under GDB... looking at the code, saw it
> was trying to get the CGI info from the environment so set some
> environment variables to fake up enough CGI environment to get it to
> run. But mostly wound up getting segfaults in expand_env on the
> HTMLCONTENTTYPE stuff.
>
> But I stumbled upon something that fixed my problem -- but not sure
> why. I edited the cgi-bin/bb-histlog.sh file, and added
> "cd /tmp" before the meat of the script. For some reason, I now seem to
> have no issues.
Perhaps that ought to be "cd $BBTMP" instead?? Keep all Xymon stuff in one
place.
Ralph Mitchell