me0wster / javamelody

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

JavaMelody Scheduled Report via Email Not working #260

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

We are having below mentioned setup

OS : Linux
Application server :- JBOSS 7.1.1
Application type :- Web application , WAR file.

We have done below mentioned configuration to have JavaMelody Scheduled Report 
via Email.

Web.xml

<init-param>
            <param-name>admin-emails</param-name>
            <param-value>xxxx@xyz.com</param-value>
        </init-param>
        <init-param>
            <param-name>mail-session</param-name>
            <param-value>Mail</param-value>
        </init-param>
        <init-param>
            <param-name>mail-periods</param-name>
            <param-value>day</param-value>
        </init-param>  

Defined mail session in JBoss stadalone.xml and given it's reference in

<jboss-web>                
        <resource-ref>
            <res-ref-name>Mail</res-ref-name>
            <jndi-name>java:jboss/mail/ABC</jndi-name>
            <res-type>javax.mail.Session</res-type>
        </resource-ref>

</jboss-web>

We can test the report via 

http://<host name>:8080/appname/monitoring?action=mail_test

but the mail which should automatically everyday is not coming. are we missing 
any configuration here ?

Thanks,Niraj,

Original issue reported on code.google.com by salotni...@gmail.com on 9 Oct 2012 at 4:46

GoogleCodeExporter commented 9 years ago
Hi,

Any update on this?

Let me know if you need more information.

Thanks,Niraj Salot.

Original comment by salotni...@gmail.com on 10 Oct 2012 at 3:58

GoogleCodeExporter commented 9 years ago
This seems good to me, if the mail test sends an email.
Is the server stopped at midnight?
And I suggest to enable the debugging logs and to read what is logged at 
startup:
http://code.google.com/p/javamelody/wiki/UserGuideAdvanced#Debugging_logs

Original comment by emeric.v...@gmail.com on 14 Oct 2012 at 10:01

GoogleCodeExporter commented 9 years ago
No response, so closing as invalid/incomplete for the moment.

Original comment by evernat@free.fr on 1 Nov 2012 at 11:26