hobbit-alert.cfg: grouping recipients using macros
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=john at mycompany.com $FRED=fred at mycompany.com $JANE=jane at mycompany.com
$MYGROUP=$JOHN,$FRED,$JANE $OTHERGROUP=$JOHN,$JANE
HOST=whatever SERVICE=whatever MAIL $MYGROUP REPEAT=2h
HOST=somethingelse SERVICE=somethingelse MAIL $OTHERGROUP REPEAT=2d
On Wed, Jun 13, 2007 at 06:09:15PM -0600, Haertig, David F (Dave) wrote:
In the hobbit-alerts.cfg file, can you group recipients using macros?
Yes.
$JOHN=john at mycompany.com $FRED=fred at mycompany.com $JANE=jane at mycompany.com
$MYGROUP=$JOHN,$FRED,$JANE $OTHERGROUP=$JOHN,$JANE
HOST=whatever SERVICE=whatever MAIL $MYGROUP REPEAT=2h
Should work fine.
Regards, Henrik
participants (2)
-
haertig@avaya.com
-
henrik@hswn.dk