Xymon Mailing List Archive search

Availability Report static

6 messages in this thread

list Mario Andre · Thu, 2 Jun 2005 11:20:00 -0300 ·
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

Any hint?

Thanks in Advance,

Mario
list Wes Neal · Thu, 02 Jun 2005 11:25:50 -0400 ·
Can you use a hobbit server, but keep your bb clients?  I am thinking of
upgrading my server to hobbit, but if I have to upgrade all my clients as
well I probably won't have the time to do it yet.

Wes
list Henrik Størner · Thu, 2 Jun 2005 17:37:09 +0200 ·
quoted from Mario Andre
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
list Henrik Størner · Thu, 2 Jun 2005 17:38:02 +0200 ·
quoted from Wes Neal
On Thu, Jun 02, 2005 at 11:25:50AM -0400, Wes Neal wrote:
Can you use a hobbit server, but keep your bb clients?  I am thinking of
upgrading my server to hobbit, but if I have to upgrade all my clients as
well I probably won't have the time to do it yet.
A Hobbit server will work just fine with your existing BB clients.

In fact, there isn't really a Hobbit client yet - it's "work in
progress".


Henrik
list Paul D. Backer · Thu, 02 Jun 2005 13:54:11 -0500 ·
How does this work?

If I try to open this up in my browser I get an apache error.  I most likely have the syntax wrong.

Thanks,

Paul
list Allan Spencer · Fri, 03 Jun 2005 09:19:51 +1000 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Thu, Jun 02, 2005 at 11:25:50AM -0400, Wes Neal wrote:
 
Can you use a hobbit server, but keep your bb clients?  I am thinking of
upgrading my server to hobbit, but if I have to upgrade all my clients as
well I probably won't have the time to do it yet.
   
A Hobbit server will work just fine with your existing BB clients.

In fact, there isn't really a Hobbit client yet - it's "work in
progress".


Henrik

This is exactly what we are doing and have been for the last 3 months I think it is. Our main concern was the history for old reports but all that stayed in tact so it was a very smooth transition.

Not only that the poor Pentium Pro 200 that handles it all that used to have a load average of 4.00 all the time running BB server now is lucky to hit .4 even when you try run lots of reports and refresh the hell out of the web pages.

We were only using plain old bb server before with no fancy bits so I suppose that is another reason why hobbit looks so wonderfuly attractive to us :)

Anyway enough praise of the Hobbit Master Henrik and back to work

Allan