OGG Monitor Server 12.1.3 Alert Emails Not Received - After Enabling Tracing Log File Shows "Unknown SMTP host" (Doc ID 1942568.1)

Last updated on NOVEMBER 06, 2014

Applies to:

Management Pack for Oracle GoldenGate - Version 12.1.2.0.1 and later
Information in this document applies to any platform.

Symptoms

 OGG Monitor 12.1.3 Alert emails are not being received.  The alerts are working fine as they display on OGG Monitor UI and "RED" alert icon but emails are not received.

After enabling tracing for OGG Monitor by modifying
../oggmon1213_domain/config/monitorserver/cfg/logging-config.xml

<logging_configuration>
   <log_handlers>
               <log_handler name='console-handler' class='oracle.core.ojdl.logging.ConsoleHandler' level='WARNING:32' formatter='oracle.core.ojdl.weblogic.ConsoleFormatter'
/>
               <log_handler name='monitor-odl-handler' class='oracle.core.ojdl.logging.ODLHandlerFactory' level='NOTIFICATION:1'>
                       <property name='path' value='${domain.home}/servers/${weblogic.Name}/logs/monitorserver.log'/>
                       <property name='rotationFrequency' value='daily'/>
                       <property name="encoding" value="UTF-8" />
                       <property name="useThreadName" value="true" />
               </log_handler>
   </log_handlers>
   <loggers>
               <logger name='com.goldengate' level='NOTIFICATION:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='com.goldengate.monitor.backend.jpa.GgsJpaTransactionManager' level='ERROR:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='ggs.GgsTxManager' level='TRACE:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='com.goldengate.monitor.util.LoggableWrapper' level='ERROR:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='com.goldengate.monitor.server.events.DoubleQueuesAsyncGgsEventsDispatcherImpl' level='NOTIFICATION:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='com.goldengate.monitor.backend.jpa.DbUnitCustomAssertion' level='NOTIFICATION:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='org.eclipse.persistence.exceptions' level='ERROR:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
               <logger name='org.springframework' level='ERROR:1' useParentHandlers='false'>
                       <handler name='monitor-odl-handler'/>
                       <handler name='console-handler'/>
               </logger>
   </loggers>
</logging_configuration>


by changing all level= entries above to TRACE:1 and bouncing OGG Monitor Server the MONITORSERVER_server1.log displayed the following error

[2014-11-05T15:50:07.279-05:00] [MONITOR] [WARNING] [OGGMON-40280] [com.goldengate.monitor.server.events.DoubleQueuesAsyncGgsEventsDispatcherImpl] [tid: Doubl

eQueuesAsyncGgsEventsDispatcherImpl_Thread-5] [ecid: e000c344-70d2-45d7-a8d6-e887efdda641-00000002,0:98] Exception sending event AlertNoticeCreationEvent(noti

ceId=19071951, user=com.goldengate.monitor.backend.jpa.model.user.UserEntity@9fb9e17a[UserName oggadmin]) to listener EmailAlertHandler, [[

org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Unknown SMTP host: smtphost.

com ;

 nested exception is:

       java.net.UnknownHostException: smtphost.com

       at org.springframework.mail.javamail.JavaMailSenderImpl.doSend(JavaMailSenderImpl.java:419)

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms