[hobbit] How to list a host multiple times in bb-hosts properly

Henrik Stoerner henrik at hswn.dk
Wed Oct 19 22:45:13 CEST 2005


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




More information about the Xymon mailing list