[hobbit] PCRE reference with examples

Henrik Stoerner henrik at hswn.dk
Thu Oct 13 21:56:53 CEST 2005


On Thu, Oct 13, 2005 at 02:32:14PM -0500, Rich Smrcina wrote:
> >What comes after the MAIL keyword is passed directly to your "mail"
> >utility. So it would probably be better to have
> >
> >   $pg-tom=tomsemail at somewhere.com,tomscell at wireless.com
> >
> >if your "mail" tool supports listing multiple recipients separated by
> >commas. Some dont - then you can use a short-hand notation like:
> >
> >   $pg-tom=tomsemail at somewhere.com tomscell at wireless.com
> >
> >and separate them by spaces - Hobbit will handle this as if you had
> >multiple "MAIL ..." lines with each of the mail recipients. So it sends
> >out the mail in separate e-mails, instead of one e-mail to all of the
> >recipients. (Same net effect).
> 
> Then is the syntax for using macros in the MAIL line the same as HOST:
> 
> $pg-tom=tomsemail at somewhere.com tomscell at wireless.com
> 
> HOST %^va.*$
> 	MAIL=%$pg-tom

No, just 
        MAIL $pg-tom


Henrik




More information about the Xymon mailing list