[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: bb-rep.sh & bb-snapshot.sh
- To: <xymon (at) xymon.com>
- Subject: RE: bb-rep.sh & bb-snapshot.sh
- From: <R.Biesbroek (at) icts.utwente.nl>
- Date: Thu, 27 Jan 2011 17:26:46 +0100
- Thread-index: Acu+PlgXBeh3VjWCTB6Jc2ggO8H3CQAADShw
- Thread-topic: bb-rep.sh & bb-snapshot.sh
After debugging together with some colleagues, I found a solution for
this problem.
In the source code of report.c and snapshot.c (in the map ./web) there
is a declaration in the main function: "char htmldelim[20];". In the
same main function we can find: " sprintf(htmldelim, "xymonrep-%u-%u",
(int)getpid(), (unsigned int)getcurrenttime(NULL));"
Because the size of "char htmldelim[20];" is not sufficient enough
(requires around 25 or so) this process will crash. I changed this char
value into 100 and after a "make && make install" command the issue
seems to be resolved!
Kind Regards,
Rolf Biesbroek
University Twente
>Hi all -
>
>I'm running into a problem creating the availability report and the
snapshot
>on 4.3.0-beta2. Every time I run either command I get an "Internal
Server
>Error". The apache logs show "Premature end of script headers" and the
>syslog shows that a buffer overflow was detected.
>
>The system its on is a Ubuntu 9.04 64b server.
>
>I have gone through the archives and based on what i did find i
>double-checked permissions(all were good)..
>
>Any ideas?
>
>The other option I have is to try to recreate the report manually..
Any
>ideas what datasets go into the report?
>
>thanks!
>
>--
>--==[ Bob Gordon ]==--