5608057 / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

JavaMelody reports: Add title configuration sopport for emails report #431

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
it will very nice, if you add some support to configurate email report tittle.
For example now, i am reciving reports with this title "Monitoring JavaMelody 
on _ubuntu - 1 month", i would like add for example the application name to 
this.

thanks & regards

Original issue reported on code.google.com by damian.g...@gmail.com on 1 Sep 2014 at 8:14

GoogleCodeExporter commented 8 years ago
The application name is already in the title/subject of the mail.
In fact, when you say "Monitoring JavaMelody on _ubuntu - 1 month", "_ubuntu" 
is the application name.

So, I suggest to check on your side:
- if you use the optional collector server, then check what is the name of the 
application you have written when it was added (you may open the 
applications.properties file in the storage directory).
- if not, then check the name of your webapp.

Original comment by evernat@free.fr on 5 Sep 2014 at 9:48

GoogleCodeExporter commented 8 years ago
many thanks for your help. You were right, 
i have been looking a bit in your source code and i found that the name is 
formed in this line
getContextPath(servletContext) + '_' + getHostName();
So i am realase that my problem was that in tomcat i had "" for context path, 
(because app is deploy in ROOT), so my app was formed "_HOST".

Original comment by damian.g...@gmail.com on 6 Sep 2014 at 2:05