Xymon Mailing List Archive search

hobbit-alert.cfg: grouping recipients using macros

list Dave Haertig
Wed, 13 Jun 2007 18:09:15 -0600
Message-Id: <user-aeb83da9779e@xymon.invalid>

In the hobbit-alerts.cfg file, can you group recipients using macros?
The help file only has examples for directives that use equal signs
(e.g., HOST=%$MYHOSTS).  The MAIL and SCRIPT directives have their first
parameter defined as "a recipient", which doesn't necessarily imply that
they'll accept a comma seperated list of recipients (although I expect
they might well do this).
 
Example:
 
$JOHN=user-bcb719976dfa@xymon.invalid
$FRED=user-7c02b420d592@xymon.invalid
$JANE=user-43baa79288fd@xymon.invalid
 
$MYGROUP=$JOHN,$FRED,$JANE
$OTHERGROUP=$JOHN,$JANE
 
HOST=whatever SERVICE=whatever
    MAIL $MYGROUP REPEAT=2h
 
HOST=somethingelse SERVICE=somethingelse
    MAIL $OTHERGROUP REPEAT=2d