Xymon Mailing List Archive search

Alerts for page including subpages

3 messages in this thread

list Craig Whilding · Mon, 17 Jul 2006 15:12:13 +0100 ·
Is it possible to do a one line alert rule that alerts on red's on a
page and its subpages. Our main page shows all the sites and every site
is split into the same subsections. For some they are quite small but
with quite a few subpages so I just want one alert for everything on a
site. Is that possible without listing all subpages?

 
Thanks,

Craig Whilding

IT Systems Administrator
Edward Court 
Altrincham Business Park 
Altrincham 
WA14 5GL 
Tel: + 44 (0)XXX XXX XXXX
email: user-9ce31bfa66c3@xymon.invalid 
www.mentor.com
<file:///C:\Documents%20and%20Settings\cwhildin\Application%20Data\Micro
soft\Signatures\www.mentor.com>
list Frédéric Mangeant · Mon, 17 Jul 2006 16:14:54 +0200 ·
quoted from Craig Whilding
Whilding, Craig a écrit :
Is it possible to do a one line alert rule that alerts on red’s on a page and its subpages. Our main page shows all the sites and every site is split into the same subsections. For some they are quite small but with quite a few subpages so I just want one alert for everything on a site. Is that possible without listing all subpages?
Hi

take a look at the hobbit-alerts.cfg(5) manpage :


*PAGE=targetstring* Rule matching an alert by the name of the page in BB. This is the path of the page as defined in the bb-hosts file. E.g. if you have this setup:

    page servers All Servers
    subpage web Webservers
    10.0.0.1 www1.foo.com
    subpage db Database servers
    10.0.0.2 db1.foo.com
        
Then the "All servers" page is found with *PAGE=servers*, the "Webservers" page is *PAGE=servers/web* and the "Database servers" page is *PAGE=servers/db*. Note that you can also use regular expressions to specify the page name, e.g. *PAGE=%.*/db* would find the "Database servers" page regardless of where this page was placed in the hierarchy.

The top-level page has a the fixed name */*, e.g. *PAGE=/* would match all hosts on the Hobbit frontpage. If you need it in a regular expression, use *PAGE=%^/* to avoid matching the forward-slash present in subpage-names.


Regards,

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
list Craig Whilding · Mon, 17 Jul 2006 15:22:44 +0100 ·
Ah cheers, I looked under "Configuring Alerts" and didn't see anything about it there, only seemed to apply to hosts. Ill have a play with my regular expressions.

Craig
quoted from Frédéric Mangeant


-----Original Message-----
From: Frédéric Mangeant [mailto:user-b6ea1d850181@xymon.invalid] Sent: 17 July 2006 15:15
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Alerts for page including subpages

Whilding, Craig a écrit :
Is it possible to do a one line alert rule that alerts on red's on a page and its subpages. Our main page shows all the sites and every site is split into the same subsections. For some they are quite small but with quite a few subpages so I just want one alert for everything on a site. Is that possible without listing all subpages?
Hi

take a look at the hobbit-alerts.cfg(5) manpage :


*PAGE=targetstring* Rule matching an alert by the name of the page in BB. This is the path of the page as defined in the bb-hosts file. E.g. if you have this setup:

    page servers All Servers
    subpage web Webservers
    10.0.0.1 www1.foo.com
    subpage db Database servers
    10.0.0.2 db1.foo.com
        
Then the "All servers" page is found with *PAGE=servers*, the "Webservers" page is *PAGE=servers/web* and the "Database servers" page is *PAGE=servers/db*. Note that you can also use regular expressions to specify the page name, e.g. *PAGE=%.*/db* would find the "Database servers" page regardless of where this page was placed in the hierarchy.

The top-level page has a the fixed name */*, e.g. *PAGE=/* would match all hosts on the Hobbit frontpage. If you need it in a regular expression, use *PAGE=%^/* to avoid matching the forward-slash present in subpage-names.


Regards,

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis