BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} Availbility Reports (bb-rep.cgi) problem timing out?



In <417E9797.1020504@cisco.com> Charles Jones <jonescr@cisco.com> writes:

>When I run an availbility report, it takes an excessively long time, and 
>the web page never returns but stays stuck on  "Generating report...", 
>although it does actually generate the report on the filesystem after 
>several minutes, and I can manually browse directly to it and view it.  
>Any ideas what could be making it hang?
[...]
>Note this is BB version 1.9c w/ bbgen-2.5.  I realize there are newer 
>versions of both but I have not yet upgraded. 

2.5 is *really* old. I'm fairly certain this problem was fixed in
2.12; my "Changes" entry for that version lists a bugfix

  * The bb-rep CGI used when generating reports generated
    non-MIME compliant bodypart delimiters. With some
    browsers, this meant that the reports were generated,
    but the browser would never go to where the report was.

Sounds like the problem you are seeing.

>9. I look in the directory and the report is partially there:
>$ ls -l /home/bb/bb/www/rep/18423-1098814446/
>total 32
>-rw-r--r--    1 apache   apache      28219 Oct 26 11:19 bb.html
>lrwxrwxrwx    1 apache   apache          7 Oct 26 11:19 index.html -> 
>bb.html
>10. I say partially because the report icon now links to 
>http://mysite.com/bb/rep/18423-1098814446/help/bb-rep.html, note there 
>is no help directory there

The links at the top of the page are from the $BBHOME/web/rep_header
file; I vaguely recall editing that to remove the report-link from the
report header, or some other tweak to make it work right.

>The error in the Apache log leads me to believe that the report runs for 
>too long and hits some timeout value.  I am familiar with how to change 
>the timeout values for php, but I havn't found how to increase it for 
>CGI scripts.  I'm mainly worried why it would take several minutes just 
>to compile monthly stats for a couple dozen hosts.

For few hosts, it shouldn't take that long. I have a few thousand
hosts, so I have switched to pre-generating the reports via a nightly
cron-job, but it only takes a few minutes to do a monthly report.

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index