[hobbit] Re: hobbitd_alert: Servers on multiple pages & PAGE= rules

Henrik Stoerner henrik at hswn.dk
Fri Jun 1 22:00:51 CEST 2007


On Thu, May 31, 2007 at 12:21:20PM -0400, s_aiello at comcast.net wrote:
> Digging back into this issue [...]

The root of the problem is that as far as 99% of Hobbit is concerned, a
host lives on one page only: The one it gets from the "page", "subpage"
and "subparent" tags in bb-hosts. If a host is listed twice (or more) in
bb-hosts then it is assigned one of those as the "preferred" definition,
either by explicitly having the "prefer" keyword listed on one entry, 
or by virtue of having one of the entries with an IP and the others
listed as "0.0.0.0" and "noconn".

The only exception is that "bbgen" which builds the webpages can place a
host in multiple locations on the webpages. All the other tools just
ignore that.

So the workaround for your scenario would be to define your bb-hosts
file as 

    page servers
    subpage Web Web Servers
    1.2.3.4             Web01.domain.com   #
    0.0.0.0             Web02.domain.com   # noconn
    Subpage Other Other Web Servers
    1.2.3.5             Web02.domain.com   # prefer

Then, as far as Hobbit is concerned, the Web02 host resides on the
"servers/Other" page.

It would be nice to have hosts internally represented as residing on a
list of pages rather than just a single page. But it's a complexity that
so far I haven't found it worth adding.


Regards,
Henrik




More information about the Xymon mailing list