Xymon Mailing List Archive search

Questions about the webpage created by hobbit

4 messages in this thread

list Torsten Richter · Tue, 24 May 2005 17:57:19 +0200 ·
Hi all,

I was just wandering around at the website of my hobbit installation and wanted to know, if there is a way to increase the time and events user-801b0d835d7c@xymon.invalid (... events received in the last ... minutes).
I didn't find a variable to set in the scripts.
And maybe there is also a trick not to have 2 columns displayed but only 1.

Thanks in advance
Torsten
list Henrik Størner · Tue, 24 May 2005 22:03:54 +0200 ·
On Tue, May 24, 2005 at 05:57:19PM +0200, user-c862b499d9fa@xymon.invalid wrote:
I was just wandering around at the website of my hobbit installation and wanted to know, if there is a way to increase the time and events displayed at bb2.html (... events received in the last ... minutes).
I didn't find a variable to set in the scripts.
The only way to change that is to modify the bbdisplay/pagegen.c file.
It has these two settings:

	int  bb2eventlogmaxcount = 100;
	int  bb2eventlogmaxtime = 240;

It could be done with an environment variable or a couple more options,
but noone has requested that until now, so ...
And maybe there is also a trick not to have 2 columns displayed but only 1.
That one is easy - it's the "--subpagecolumns=2" option for bbgen that does this. In the default setup, it comes from the BBGENOPTS setting in
hobbitserver.cfg.


Henrik
list Torsten Richter · Wed, 25 May 2005 09:40:25 +0200 ·
Hi Henrik,

thanks for the answer.
That was exactly what I was looking for.
And yes an evironment variable would be nice but is not necessary when I know where to look :-)

I also changed BBGENOPTS to "...--subpagecolumns=1" but bb.html and the subpages still display 2 columns. :-(
How long does it take to reflect the changes?
I restarted hobbit but everything looks like before.

Regards
Torsten
quoted from Henrik Størner
On Tue, May 24, 2005 at 05:57:19PM +0200, user-c862b499d9fa@xymon.invalid wrote:
I was just wandering around at the website of my hobbit installation and 
wanted to know, if there is a way to increase the time and events displayed 
at bb2.html (... events received in the last ... minutes).
I didn't find a variable to set in the scripts.
The only way to change that is to modify the bbdisplay/pagegen.c file.
It has these two settings:

int  bb2eventlogmaxcount = 100;
int  bb2eventlogmaxtime = 240;

It could be done with an environment variable or a couple more options,
but noone has requested that until now, so ...
And maybe there is also a trick not to have 2 columns displayed but only 1.
That one is easy - it's the "--subpagecolumns=2" option for bbgen that 
does this. In the default setup, it comes from the BBGENOPTS setting in
hobbitserver.cfg.


Henrik

list Henrik Størner · Wed, 25 May 2005 12:49:06 +0200 ·
quoted from Torsten Richter
On Wed, May 25, 2005 at 09:40:25AM +0200, user-c862b499d9fa@xymon.invalid wrote:
I also changed BBGENOPTS to "...--subpagecolumns=1" but bb.html and the subpages still display 2 columns. :-(
How long does it take to reflect the changes?
I restarted hobbit but everything looks like before.
The change should be immediate (or as soon as bbgen has run to refresh
the web pages, but that happens by default once a minute).

Check if the CMD setting for your [bbdisplay] task in hobbitlaunch.cfg
has this option as well - it did in the old days, so you may still have
it. I'd recommend that you make it 

        CMD bbgen $BBGENOPTS --report

so it just uses the options from the BBGENOPTS setting.


Henrik