DX Application Performance Management

  • 1.  Collector Log - Exception Occurred while testing email settings

    Posted Jul 26, 2018 05:07 PM

    I am getting the following log entry on 2 outta my 9 collectors.......

     

    7/25/18 10:51:08.357 PM EDT [INFO] [InitializationPool.Thread1] [Manager.com.timestock.tess.services.tang.TangIo] Exception occurred while testing email settings

    org.apache.commons.mail.EmailException: Sending the email to the following server failed : dmzsmtprelay.xx.*********.com:25:Could not connect to SMTP host: dmzsmtprelay.xx.xxxxxxxxxx.com, port: 25

            at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:84)

            at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:175)

            at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:123)

            at com.timestock.tess.services.tang.TangIo.sendEventNotification(TangIo.java:666)

            at com.timestock.tess.services.tang.TangIo.persistEvent(TangIo.java:337)

            at com.timestock.tess.services.tang.TangIo.persistEvent(TangIo.java:292)

            at com.timestock.tess.services.tang.TangIo.generateEvent(TangIo.java:95)

            at com.timestock.tess.util.GenerateTangEvent.generateEvent(GenerateTangEvent.java:120)

            at com.timestock.tess.util.GenerateTangEvent.generateEvent(GenerateTangEvent.java:59)

            at com.timestock.tess.services.service.ServicesManager.initialize(ServicesManager.java:124)

            at com.timestock.tess.services.initialization.RunInitializers$IntializeWrapper.call(RunInitializers.java:87)

            at com.timestock.tess.services.initialization.RunInitializers$IntializeWrapper.call(RunInitializers.java:1)

            at com.timestock.tess.util.ThreadPool$ConcurrentCallableTask.call(ThreadPool.java:218)

            at java.util.concurrent.FutureTask.run(FutureTask.java:266)

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

            at java.lang.Thread.run(Thread.java:745)

    Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : dmzsmtprelay.xx.xxxxxxxx.com:25

            at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)

            at org.apache.commons.mail.Email.send(Email.java:1267)

            at com.timestock.tess.util.EmailUtil.sendEmail(EmailUtil.java:80)

            ... 16 more

    Caused by: javax.mail.MessagingException: Could not connect to SMTP host: dmzsmtprelay.xx.xxxxxxxx.com, port: 25;

      nested exception is:

            java.net.ConnectException: Connection timed out (Connection timed out)

            at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1227)

            at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:322)

            at javax.mail.Service.connect(Service.java:364)

            at javax.mail.Service.connect(Service.java:245)

            at javax.mail.Service.connect(Service.java:194)

            at javax.mail.Transport.send0(Transport.java:253)

            at javax.mail.Transport.send(Transport.java:124)

            at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)

            ... 18 more

    Caused by: java.net.ConnectException: Connection timed out (Connection timed out)

            at java.net.PlainSocketImpl.socketConnect(Native Method)

            at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

            at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

            at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

            at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

            at java.net.Socket.connect(Socket.java:589)

            at java.net.Socket.connect(Socket.java:538)

            at java.net.Socket.<init>(Socket.java:434)

            at java.net.Socket.<init>(Socket.java:286)

            at com.sun.mail.util.SocketFetcher.getSocket0(SocketFetcher.java:253)

            at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:129)

            at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1195)

            ... 25 more

    ---------------------------------------------------------------------------------------------------------------------

    I wanted to know where is this property defined so I can go make changes to it. I know that the issue is a firewall not allowing the traffic to go through (for which I've taken the necessary steps internally). 

     

    Also, how come it's not showing on any of my other agent collectors?



  • 2.  Re: Collector Log - Exception Occurred while testing email settings
    Best Answer

    Broadcom Employee
    Posted Jul 26, 2018 10:37 PM

    Hi Manish,

    The package com.timestock.tess indicates this is coming from CEM

    The CEM "Email Settings" page has the SMTP settings and "Exception occurred while testing email settings" implies this is for when using the "Test Connection" option on that page.

    However I would expect "Test Connection" error in MOM log only, so not sure why you are  seeing it in 2 Collector logs instead.

    CEM "Incident settings" also has "Incident Email Settings" which would get logged in EM running TIM Collection Service log at least, but they would not be for the testing scenario "Exception occurred while testing email settings".

    Anyway if you login to your MOM CEM page you can check the  "Email Settings".

     

     

    Hope that helps.

     

    Regards,

     

    Lynn



  • 3.  Re: Collector Log - Exception Occurred while testing email settings

    Posted Jul 27, 2018 02:54 PM

    Lynn,

    I am seeing these logs under other collectors also and not just 2 I mentioned earlier.



  • 4.  Re: Collector Log - Exception Occurred while testing email settings

    Posted Jul 27, 2018 03:21 PM

    So I found the setting.....

    CEM GUI -> System -> Email Settings Tab.

     

    I'll have to submit an internal firewall request to allow this comm.

     

    Thanks Lynn_Williams for helping out.



  • 5.  Re: Collector Log - Exception Occurred while testing email settings

    Posted Jul 27, 2018 03:38 PM

    Lynn_Williams

    so the firewall rule should only be allowing for connection from MoM server to the dmzsmtprelay.xx.xxxxxxxx.com on port 25, right? Not from every Collector to dmzsmtprelay.xx.xxxxxxxx.com on port 25, rigth?



  • 6.  Re: Collector Log - Exception Occurred while testing email settings

    Broadcom Employee
    Posted Jul 29, 2018 05:46 PM

    Hi Manish,

    If your CEM Incidents are configured to send emails then I think both MOM and EM running TCS would need the firewall open for your dmzsmtprelay.xx.xxxxxxxxxx.com on port 25.

     

    Regards,

     

    Lynn



  • 7.  Re: Collector Log - Exception Occurred while testing email settings

    Broadcom Employee
    Posted Jul 27, 2018 10:11 AM

    Dear Manish:

    Did Lynn's post answer your question? Please post any followup questions or mark as correct  if helpful. Seems that your SMTP relay may be down . Your CEM box syslog and the SMTP Relay's syslog may help in telling you if the relay is busy or not working

    Thanks

    Hal



  • 8.  Re: Collector Log - Exception Occurred while testing email settings

    Posted Jul 27, 2018 02:53 PM

    Hal,

    I'll take a look at CEM settings and provide feedback