only first set mail-format { subject: blabla } is working

Issue #792 invalid
Former user created an issue

I'm trying to set the subject in emails for different alerts, but only the first appearance of "subject:" will be used!

Comments (2)

  1. Tildeslash repo owner

    The "set mail-format" sets the global format - there is just one format, not many.

    If you need to override the format for some alerts, you can override it locally like this:

     check process apache with pidfile /var/run/
        start = "/etc/init.d/httpd start"
        stop  = "/etc/init.d/httpd stop"
        alert admin@bar on {nonexist, timeout}
          with mail-format {
              from:     bofh@$HOST
              subject:  apache $EVENT - $ACTION
              message:  This event occurred on $HOST at $DATE.
              Your faithful employee,
  2. Log in to comment