Xymon Mailing List Archive search

MACROS

list Henrik Størner
Thu, 31 Mar 2005 05:08:36 +0200
Message-Id: <user-bd16b5c484b8@xymon.invalid>

On Wed, Mar 30, 2005 at 05:33:45PM -0500, user-fd47fec4b039@xymon.invalid wrote:
Hello all,
 when using macros to define a group of email addresses, is there a
delimiter required to string them together?? Or do I need to enclose them in
quotes?...as in:
None of that is needed. This one
$ALERTGROUP=user-490a14721d84@xymon.invalid user-0ea294303ceb@xymon.invalid user-85a97e0c328b@xymon.invalid
will work, assuming you use it like

    HOST=*
        MAIL $ALERTGROUP COLOR=red

Comma-delimited also works for some people, but that depends on your
"mail" program. Why? Because a definition like this

  $ALERTGROUP=user-490a14721d84@xymon.invalid,user-0ea294303ceb@xymon.invalid,user-85a97e0c328b@xymon.invalid

ends up being passed as a command-line parameter to the $MAIL
program. So if your mail-program understands a list of recipients
separated by commas, it is actually more efficient because Hobbit only
needs to run the mail program once with the comma-separated list of
recipients.


Regards,
Henrik