Bug #40728 Make notification subject configurable so you can see the host in subject
Submitted: 14 Nov 2008 7:37 Modified: 9 Jan 2015 10:04
Reporter: Simon Mudd (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Configuration Severity:S4 (Feature request)
Version:2.0.0.7088 OS:Any
Assigned to: CPU Architecture:Any

[14 Nov 2008 7:37] Simon Mudd
Description:
We run merlin with several hosts. The notifications title is rather long and therefore my mailer truncates the subject before I see the hostname. This makes a "quick view" identification of the host with the problems harder to see without investigating further.

How to repeat:
Example subject this morning:

	From: 	mem@ourdomain.com
	Subject: 	[Dba] MySQL Enterprise Monitor Critical Alert: MySQL Agent Not Reachable (xx02xxxxxx-01.aaaa.bbbb.ourdomain.com:3306)
	Date: 	14 November 2008 04:36:30 GMT+01:00
	To: 	dba@ourdomain.com

Shows up in my mailer window as:

From Subject:
....      [Dba] MySQL Enterprise Monitor Critical Alert: MySQL Agent Not Reachabl...

Suggested fix:
-Make the subject format configurable:
- Make it possible to show the short hostname if unique instead of the FQDN
- Make it possible to NOT show the :3306 (default port) if that's what is used as it's the default value. Only show it if a non-standard port is used.
- Make it configurable how to display the Alert type

We know the message comes from merlin so "MySQL Enterprise Monitor Critical Alert" is rather long. Perhaps "Critical" is sufficient?

This could lead potentially to a shorter subject of the form:

	From: 	mem@ourdomain.com
	Subject: 	[Dba] Critical: MySQL Agent Not Reachable (xx02xxxxxx-01)
	Date: 	14 November 2008 04:36:30 GMT+01:00
	To: 	dba@ourdomain.com

Shorter, fits and no information lost.
Note: [Dba] appears as this message was sent to an internal mailing list. It's not generated by merlin.
[14 Nov 2008 17:13] Valeriy Kravchuk
Thank you for a reasonable feature request.
[17 Dec 2014 7:01] Daniƫl van Eeden
It is possible with 3.0 to configure the subject line for emails:
"Subject Line (use {0} for alarm level, {1} for rule name, and {2} for server name)"

The default is "MySQL Enterprise Monitor {0} Alert: {1} ({2})"

So this bug seems to be fixed. However the default is still too long.

I would rather see somthing like "[MySQL EM] {0} for {2}: {1}"