[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] hobbit-alert.cfg and top page
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] hobbit-alert.cfg and top page
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Sun, 16 Apr 2006 13:43:42 +0200
- References: <44420DBE.8000709@unil.ch>
- User-agent: Mutt/1.5.9i
On Sun, Apr 16, 2006 at 11:26:22AM +0200, Dominique Frise wrote:
> We would like certain managers to receive alerts when any status change
> from green to purple/yellow/red on the top page.
>
> We've put this directive in hobbit-alert.cfg:
>
> PAGE=/
> MAIL x.y (at) example.com REPEAT=24h RECOVERED
>
> but the recipient does never get mailed.
That one is tricky. Page-paths are always relative in Hobbit, so
the "PAGE=/" will never match anything. It would make sense to
allow this, but it doesn't work right now.
PAGE=%^$
MAIL x.y (at) example.com REPEAT=24h RECOVERED
(i.e. using a regular expression to match an empty string) should
give you the result you want.
Regards,
Henrik