[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] How to list a host multiple times in bb-hosts properly
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] How to list a host multiple times in bb-hosts properly
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Wed, 19 Oct 2005 22:45:13 +0200
- References: <4356AC2B.3080600@myismail.com>
- User-agent: Mutt/1.5.9i
On Wed, Oct 19, 2005 at 04:27:23PM -0400, Jeff Stuart wrote:
>
> I have a machine that I wish to appear on multiple pages. So I list it
> more than once in bb-hosts.
>
> First time, I list it this way:
>
> group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server
> 123.123.123.123 123.123.123.123 # BBPAGER BBNET BBDISPLAY bbd noconn
> rsync
>
> Then I list it this way:
>
> page game-servers Main Game Server Boxes.
> group-except bbd|bbgen|bbtest|hobbitd|rsync
> 123.123.123.123 123.123.123.123 # ftp !telnet !smtp ssh ntp prefer
> badconn:1:2:4
The rule is: Put all of your tags on one of these definitions, and ONLY
a "noconn" on the others.
So using your example:
group-only bbd|bbgen|bbtest|hobbitd|rsync Hobbit Monitoring Server
123.123.123.123 123.123.123.123 # noconn
page game-servers Main Game Server Boxes.
group-except bbd|bbgen|bbtest|hobbitd|rsync
123.123.123.123 123.123.123.123 # ftp !telnet !smtp ssh ntp prefer badconn:1:2:4 bbd rsync
There's no link between the "group-only" or "group-except" definitions,
and where you have the network tests defined, so even though it might
seem a bit odd with "group-except bbd|rsync" and then those two tests
listed on the first host-entry, it will work the way you want it to.
Because the tool the runs the network tests ignores all of the page,
subpage, group* definitions; and the tool that builds the webpages
ignores how all of the network tests were defined (it just looks at
what status columns are available).
Henrik