I am rather new at using monit so if this question is dumb or redundant I beg forgiveness in advance.
I have a qa stack and I want to use the same control file for all of them. In the alert message I would like to have the from: address@hidden (see below) substitute hostname in lieu of appliance.com so that the email alerts would appear as from: address@hidden where address@hidden is the hostname.
Is this possible and if so, how does one accomplish this.
.monitrc code:
set mail-format { from: address@hidden
subject: Service Monitor Alert -- $SERVICE $EVENT
message:
$SERVICE $EVENT