14 Jun
2007
14 Jun
'07
12:09 a.m.
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