I want to notify multiple email addresses with a custom mail-format on a 
certain condition. The only way I have been able to do so is with:

---

check host example.com with address example.com
  if failed port 80 protocol HTTP
    request "/"
    with timeout 7 seconds
  then alert
  alert [email protected] with mail-format {
    message: $DESCRIPTION

    The service is currently down. Please restart the application pool.

    Your faithful employee,
    Monit
  }
  alert [email protected] with mail-format {
    message: $DESCRIPTION

    The service is currently down. Please restart the application pool.

    Your faithful employee,
    Monit
  }
  alert [email protected] with mail-format {
    message: $DESCRIPTION

    The service is currently down. Please restart the application pool.

    Your faithful employee,
    Monit
  }
  alert [email protected] with mail-format {
    message: $DESCRIPTION

    The service is currently down. Please restart the application pool.

    Your faithful employee,
    Monit
  }

—

Must I duplicate `mail-format` each time? Note that I want to keep the default 
`mail-format` for other notifications. I only want to modify it for this 
specific check.
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to