[hobbit] Repeat entries in bb-hosts
peter.welter at gmail.com
Tue Jan 24 17:30:03 CET 2006
The man-page states:
Acts like the "include" tag, but only on the BBDISPLAY server. Can
be used e.g. to put a group of hosts on multiple subpages, without
having to repeat the host definitions."
So you could set up your bb-hosts-file as follows for two (or more) views:
1 - SLA's (fi. SLA_XXX and SLA_YYY) and
2 - System views (Solaris, Linux, Windows...).
title Your Company
page SLA SLA
title SLA - Your Company
subpage SLA_XXX SLA_XXX
title SLA_XXX: Unix - Solaris
title SLA_XXX: Unix - Linux
subpage SLA_XXX SLA_YYY
title SLA_YYY: Unix - Solaris
title SLA_YYY: Unix - Linux
page SYSTEM System
title Systems - Your Company
subpage SOLARIS Solaris
subpage LINUX Linux
Mind the include of dispinclude-setting when you start making the new
view. Although I'm not sure wether Henrik's previous suggestion is
compulsory, it works for us. Hope this helps.
2006/1/24, Jeff Newman <jeffnewman75 at gmail.com>:
> I tried this, but I don't think my implementation was correct.
> How I have it now is my bb-hosts has:
> dispinclude bb-hosts.all
> include bb-hosts.subs
> That way I can see an "all" view, or the servers broken into categories.
> I define each host in the bb-hosts.all and bb-hosts.subs
> In the "subs" page, I tried setting all of the IP's to 0.0.0.0 and putting
> at the end, and shortly after, everything on both pages went purple, so
> Im not sure if the way I am approaching it is wrong or what.
> On 1/23/06, Henrik Stoerner <henrik at hswn.dk> wrote:
> > On Mon, Jan 23, 2006 at 04:34:39PM -0300, mario andre wrote:
> > >
> > > In my bb-hosts I group the hosts by networks and now I would like to
> > > another subpage to group ,for example, with all the database servers,
> > > maintaining them on the respectively networks page too.
> > >
> > > How can I repeat entries in bb-hosts just to create the new page and the
> > > hobbit ignore this?
> > If you just want these hosts displayed on two (or more) pages, you
> > should have *one* place where you define them normally with all of the
> > various network tests you perform; and all other places you must have
> > them defined with
> > 0.0.0.0 host1.foo.com # noconn
> > Hobbit will use the first (master) definition for all of the network
> > tests and other settings; in all of the other places it will
> > automatically copy the results and displays from the master definition.
> > Henrik
> > To unsubscribe from the hobbit list, send an e-mail to
> > hobbit-unsubscribe at hswn.dk
More information about the Xymon