On Tue, Mar 01, 2005 at 05:32:37PM, Henrik Storner wrote:
On Mon, Feb 28, 2005 at 05:44:09PM -0600, John A. Milburn wrote:
I upgraded to RC4 and noticed that the reports module does not seem to handle includes in the bb-hosts file. The only host in my bb-hosts file is the hobbit server. The others are all in other files with include lines in bb-hosts. I used bbhostshow and directed the output to a file. I replaced bb-hosts with that file and the system works fine.
How do you generate reports ? Via the "Reports -> Availability reports" menu ? If yes, could you check your webserver error-log for error-messages ? And how does your bb-rep.sh CGI script look ?
I just tried it here and include works fine. So something odd is going on at your site.
I ran this
#!/bin/sh
[ "$#" -gt 0 -a "$#" -lt 3 ] && echo && echo Usage: $0 [31 Jan 2004] &&
exit 1
[ "$#" -gt 3 ] && echo && echo Usage: $0 [31 Jan 2004] && exit 1
DAY=$1
MONTH=$2
YEAR=$3
DATE=/usr/local/bin/date
MKDIR=/usr/local/bin/mkdir
DAY=${DAY:=$DATE +%d}
MONTH=${MONTH:=$DATE +%b}
YEAR=${YEAR:=$DATE +%Y}
START=$DATE +%s --date="01 $MONTH $YEAR 00:00:00"
END=$DATE +%s --date="$DAY $MONTH $YEAR 23:59:59"
$MKDIR -p /usr/local/apache/htdocs/reports/monthly/$YEAR/$MONTH
BBHOME=/export/home/hobbit/server
. $BBHOME/etc/hobbitserver.cfg
BBWEB=/reports/monthly/$YEAR/$MONTH
$BBHOME/bin/bbgen --reportopts=$START:$END:1:crit
--larrd043 --ignorecolumns=ssh,bbgen,bbtest --subpagecolumns=2
/usr/local/apache/htdocs/reports/monthly/$YEAR/$MONTH
and I get the following error on RC2. Should I need to migrate to RC4 for success?
report.monthly.sh: -l: not found report.monthly.sh: -Pk: not found report.monthly.sh: -Pk: not found report.monthly.sh: ax: not found report.monthly.sh: -n: not found report.monthly.sh: /dev: cannot execute report.monthly.sh: WARNING: not found 2005-03-01 12:08:21 xgetenv: Cannot find value for variable BBREPGREEN 2005-03-01 12:08:21 xgetenv: Cannot find value for variable MACHINE 2005-03-01 12:08:21 Environment variable MACHINE not defined 2005-03-01 12:08:21 Aborting
I attached the hobbitserver.cfg file for details
Regards, Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin