Xymon Mailing List Archive search

ignore pages

list Thomas Pedersen
Mon, 03 Apr 2006 09:26:15 +0200
Message-Id: <user-f399208dd3b5@xymon.invalid>

Hi Kolbjørn,

Alarms are configured on a globla basis. What you are missing is to change the BBLOCATION tag for all the other hosts in your bb-hosts file to something different and then configure your global display test to look only at them, this is done in hobbitserver.cfg

Kolbjørn Barmen wrote:
On Fri, 24 Mar 2006, Thomas wrote:



  
Kolbjørn Barmen wrote:



    
Hello,



I just set up a Hobbit-server for testing, to see if we (hopefully) can

"upgrade" from our old bigbrother. One feature we have missed is to be

able to set up pages with non-critical/testing/private machines, that wont

affect the over-all status of the Hobbit main-page.



If one could set this as a page property flag or something

("ignore-in-parent"), that would be superb. 

Is this perhaps already possible?

      
All of this can be done with building alternate page sets.

    

OK, I finally got around to try it out.



I put this into my bb-hosts:



##### PRIVATE maskiner #####

privatpage kolla Kolla sine maskiner

privatgroup-compress

privatpage einar Einar sine maskiner

privatgroup-compress

privatpage oep Øyvind sine maskiner

privatgroup-compress Here goes...



and put in PRIVAT:kolla, PRIVAT:einar and PRIVAT:oep on the respective's machines.



Then I made a $BBHOME/ext/privat.sh looking like this:



#!/bin/sh

BBWEB="/private-maskiner" $BBHOME/bin/bbgen --pageset=privat $BBHOME/www/private-maskiner/



and lastly, made an entry in $BBHOME/etc/hobbitlaunch.cfg:



[bbprivat]

        ENVFILE /home/hobbit/server/etc/hobbitserver.cfg

        NEEDS hobbitd

        CMD $BBHOME/ext/privat.sh

        LOGFILE $BBSERVERLOGS/privat.log

        INTERVAL 1m



And it works nicely - for /private-maskiner - however, they machines are still

showing up on the default pages, and alarms are not limited to show up inside

/private-maskiner.



Am I missing something, or is it not possible to configure it so that certain

machines are only viewable/"alarmable" from within a certain alternate page?