My mail-format related config:
#
# Monit control file
#
set logfile syslog facility log_daemon
set alert address@hidden
set httpd port 2812 and use address PUBLIC_HOSTNAME
allow user:password # Allow Basic Auth
set mail-format {
from: address@hidden
subject: $SERVICE: $EVENT at $DATE
message:
Monit $ACTION
$SERVICE
at $DATE
on $HOST: $DESCRIPTION.
Public Hostname: PUBLIC_HOSTNAME
Public IP: PUBLIC_IPV4
Private Hostname: LOCAL_HOSTNAME
Private IP: LOCAL_IPV4
Security Groups: SECURITY_GROUPS
Instance ID: INSTANCE_ID
Instance Type: INSTANCE_TYPE
Monit: http://user:address@hidden:2812/
}
[...]
The rest of my config...
[...]
Date: Thu, 26 Mar 2009 08:14:01 +0100
From: Martin Pala <address@hidden>
Subject: Re: [monit] mail format for resource succeeded messages...
To: This is the general mailing list for monit
<address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Please can you show your mail-format related configuration?
Thanks,
Martin
On Mar 25, 2009, at 7:16 PM, Chris Charman wrote:
> Hey monit folks...
>
> I'm trying out monit on a number of boxes. The set mail-format
> directive works fine for failure alerts (resource limit reached),
> but the resource succeeded email is still generic (and not using my
> template).
>
> I'm running in a cloud environment, so the information I'm trying to
> add to *all* emails is pretty important.
>
> Any suggestions? Do I need to add a "with mail-format" directive to
> all of my alerts?