[hobbit] Availability Report static

Henrik Stoerner henrik at hswn.dk
Thu Jun 2 17:37:09 CEST 2005


On Thu, Jun 02, 2005 at 11:20:00AM -0300, mario andre wrote:
> Hi friends,
> 
> When I try to generate the Availability Report static using my script
> 
> year=`date +%Y`
> START=`date +%s --date="01 $month $year 00:00:00"`
> END=`date +%s --date="$day $month $year 23:59:59"`
> BBWEB="/sla/`date +%Y`/$month"
> 
> BBHELPSKIN="/home/hobbit/server/www/help"
> BBNOTESSKIN="/home/hobbit/server/www/notes"
> /home/hobbit/server/bin/bbgen --reportopts=$START:$END:1:crit
> --subpagecolumns=2 /home/hobbit/server/www/sla/`date +%Y`/$month
> 
> 
> I got these errors:
> 
> 2005-06-02 11:13:49 xgetenv: Cannot find value for variable BBREPGREEN
> 2005-06-02 11:13:49 xgetenv: Cannot find value for variable MACHINE
> 2005-06-02 11:13:49 Environment variable MACHINE not defined
> 2005-06-02 11:13:49 Aborting

You need to have the Hobbit environment variables defined. Run your
script via the "bbcmd" tool: 

   bbcmd /usr/local/bin/myreport.sh

and that should provide all of the environment variables from
hobbitserver.cfg.


Henrik




More information about the Xymon mailing list