Xymon Mailing List Archive search

Pagesets

2 messages in this thread

list Kevin Hanrahan · Sun, 13 Mar 2005 00:18:33 -0500 ·
OK, I'm lost! I am trying to define and build alternate pagesets but I am
not sure where I made my mistakes! I ahe defined one pageset as follows:

testpage win Windows Systems
testsubpage win2000 win2000 systems

And then I put the tag in the host file as such:


192.168.1.4     zeus # TEST:win2000 
192.168.1.2     hercules # TEST:win2000
192.168.1.5     hermes # TEST:win2000


But no extra page shows up!

From the man pages, it says:

All of this just defines the layout of the new pageset. To generate it, you
must run bbgen once for each pageset you define - i.e. add something like
this to your bb-display.sh: 


  BBWEB="/bb/os" $BBHOME/bin/bbgen \ 

  --pageset=os --template=os \ 

  $BBHOME/www/os/ 


How do I do this??  Where is bb-display.sh?? I know these instructions were
written for someone running bbgen on top of the normal BB setup
But is there a way to use it on Hobbit?

Please advise?


Thanks

Kevin
list Henrik Størner · Sun, 13 Mar 2005 07:20:53 +0100 ·
quoted from Kevin Hanrahan
On Sun, Mar 13, 2005 at 12:18:33AM -0500, Kevin Hanrahan wrote:
OK, I'm lost! I am trying to define and build alternate pagesets but I am
not sure where I made my mistakes! I ahe defined one pageset as follows:
[snip config]
quoted from Kevin Hanrahan
But no extra page shows up!
From the man pages, it says:
All of this just defines the layout of the new pageset. To generate it, you
must run bbgen once for each pageset you define
How do I do this??  Where is bb-display.sh?? I know these instructions were
written for someone running bbgen on top of the normal BB setup
But is there a way to use it on Hobbit?
Put the commands to run bbgen into a script,
e.g. ~hobbit/server/ext/testpages.sh

         BBWEB="/bb/test" $BBHOME/bin/bbgen \
         --pageset=test --template=tes \
         $BBHOME/www/test/

And add a new section to hobbitlaunch.cfg to run that at whatever
interval you want - you can copy the [bbdisplay] part and just change
the command:

[bbdisplay-test]
        ENVFILE /usr/local/hobbit/server/etc/hobbitserver.cfg
        NEEDS hobbitd
        GROUP generators
        CMD $BBHOME/ext/testpages.sh
        LOGFILE $BBSERVERLOGS/bb-display.log
        INTERVAL 5m


Henrik