Xymon Mailing List Archive search

hobbit-alert.cfg : PAGE question

3 messages in this thread

list Olivier Beau · Sat, 26 Mar 2005 22:31:43 +0100 ·
i wasn't succesful to get PAGE to match when using a subpage or subparent..


and i'm wondering what PAGE actually matches 


for instance, i have

page unix unix
subpage mail mail
subparent mail mx mx
//my mx servers... lets say mx0


can hobbitd matches mx0 with PAGE=unix ? or PAGE=mail ?


and what happens when hosts are on several pages ??


--
Olivier Beau
list Henrik Størner · Sat, 26 Mar 2005 23:08:56 +0100 ·
quoted from Olivier Beau
On Sat, Mar 26, 2005 at 10:31:43PM +0100, user-fe6e0e6a0d05@xymon.invalid wrote:
page unix unix
subpage mail mail
subparent mail mx mx
//my mx servers... lets say mx0

can hobbitd matches mx0 with PAGE=unix ? or PAGE=mail ?
PAGE criteria can also be a regular expression. So "PAGE=%unix/.*"
would match hosts on any page below the "unix" page.  

And "PAGE=%.*/mx" would match hosts on an "mx" page, regardless of
where in the page hierarchy it is located.
and what happens when hosts are on several pages ??
Then the match would be done on the page that is the "primary" one,
i.e. the one where the host definition has a "prefer" tag. If none of
the definitions of a host has such a tag, then it uses the definition
that does not have a "noconn" tag and does not have "0.0.0.0" as the
IP address.


Henrik
list Olivier Beau · Sun, 27 Mar 2005 10:30:34 +0200 ·
Thanks henrik,

works great !!


--
olivier


Selon Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>:
quoted from Henrik Størner
On Sat, Mar 26, 2005 at 10:31:43PM +0100, user-fe6e0e6a0d05@xymon.invalid wrote:
page unix unix
subpage mail mail
subparent mail mx mx
//my mx servers... lets say mx0
can hobbitd matches mx0 with PAGE=unix ? or PAGE=mail ?
PAGE criteria can also be a regular expression. So "PAGE=%unix/.*"
would match hosts on any page below the "unix" page.  
And "PAGE=%.*/mx" would match hosts on an "mx" page, regardless of
where in the page hierarchy it is located.
and what happens when hosts are on several pages ??
Then the match would be done on the page that is the "primary" one,
i.e. the one where the host definition has a "prefer" tag. If none of
the definitions of a host has such a tag, then it uses the definition
that does not have a "noconn" tag and does not have "0.0.0.0" as the
IP address.


Henrik