Skip to content

Email

Email in Alerts and Anomaly Issues.

8 min read Updated SS RS

Email#

Follow these Email troubleshooting steps as below:

  • Email Alert Issues
  • Unable to send Email notification
  • Unable to receive the Email Notification with Error
  • Email notifications Failed After setting up SMTP
  • Non-Triggering Alert Emails
  • Email Alerts are not Generated
  • Non-Triggering Email Alerts After SSL Certificate Deployment
  • Email Alerts Not Redirecting to the HEAL RCA Page
  • MailConnectException: Couldn't connect to host
  • Alert Notification Issue after Upgrade

Email Alert Issues#

Email stands for "Electronic Mail", it is a form of digital communication allowing individuals to send and receive messages, documents, and files over the internet.

Email — HEAL alert data flow
Email — HEAL alert data flow

Here are the troubleshooting steps to follow:

Note: Before performing the steps, take a backup of the SMTP details.

  1. User Profile Configuration in Control Center (CC): Check the user profile configuration in CC.

    Ensure that email, SMS, and forensics are enabled and the contact number is valid.

    My Profile — Signal Notification
    My Profile — Signal Notification

    My Profile — Forensic Notification
    My Profile — Forensic Notification

    Note: Ensure that all the signals are not set to "off" status in the Preference section.

  2. RabbitMQ Inspection in UI: Check RabbitMQ to see if the queue is piled up, in the below path:

    URL: https://<RabbitMQ_IP>:<RabbitMQ_Webport>/

    RabbitMQ UI — Queues
    RabbitMQ UI — Queues

  3. RabbitMQ Inspection in Server: If RabbitMQ UI access is not available, then follow the below steps:

    1. List the Redis container ID's.

      RHEL 7.X: Docker

      docker ps | grep redis
      

      RHEL 8.x: podman

      podman ps | grep redis
      
    2. Collect the container ID and execute the below command:

      RHEL 7.X: Docker

      docker exec -it <container ID> bash
      

      RHEL 8.x: podman

      podman exec -it <container ID> bash
      

      For Example:

      podman exec -it f05bedeffb67 bash
      

      Expected Output:

      [root@localhost ~]# podman exec -it f05bedeffb67 bash
      root@localhost:/data#
      
    3. To view the queues list, execute the below command inside the container:

      rabbitmqctl list_queues
      

      Expected Output:

      Timeout: 60.0 seconds ... Listing queues for vhost / ... name                   messages nor-
      thresholds 0
      anomaly-event-signal-messages   0
      violated-events 0
      anomaly-event-action-messages   11
      static-aggregated-kpi   0
      signal-messages 0
      

      This command's output will show the queue size. In order to check the functioning of the service, the values in the output should vary proportionally to time.

  4. Redis Notification Settings: Verify if the notification is enabled and if the mobile number is updated correctly in Redis.

  5. Notification Processor Log: Check this log for any error messages.

    1. Navigate to the notification processor folder, by executing the below command:

      /opt/Heal/centralized_logs/<respective server IP>_NOTIFICATIONPROCESSOR_1
      

      For Example:

      /opt/Heal/centralized_logs/192.0.2.2_NOTIFICATIONPROCESSOR_1
      
  6. Notification Sync Plugin Log: Inspect this log for any potential issues.

    /opt/Heal/centralized_logs/<respective server IP>_A1EVENTHANDLER_1
    

    For Example:

    /opt/Heal/centralized_logs/192.0.2.2_A1EVENTHANDLER_1
    
  7. SMTP User Validation: Confirm if the SMTP (Simple Mail Transfer Protocol) user details (user ID, email ID, and password) are valid.

    Check the details through CC UI:

    Manage Account Settings — Mail Server
    Manage Account Settings — Mail Server

    Fill the details in the above screen.

    Note: The username and password are not mandatory, it depends on the user.

    SMTP Security: It's a cryptographic protocol designed to enhance communication security. They provide a layer of encryption and authentication to ensure email exchanges' confidentiality, integrity, and authenticity.

    This section is updated based on your current SMTP configuration.

    • SSL: Secure Sockets Layer
    • TLS: Transport Layer Security
    • SMTP Server Reachability: Verify if the SMTP server is reachable, by the below steps:
    • Create a text file with the name mail.txt on the A1 Eventhandler server. Then execute the below curl command.

      curl -kv --url 'smtp://host:port' --mail-from '' --mail-rcpt '' --upload-file <created
      file mail.txt> --user 'user:pass'
      

      For Example:

      curl -kv --url 'smtp://host:port' --mail-from 'support@healsoftware.ai' --mail-rcpt
      'support1@heal.ai' --upload-file mail.txt --user 'user:pass'
      

      Expected Output:

* Connected to 192.0.2.2 (192.0.2.2) port 25 (#0)
220 SMTPRELAY ... ready
EHLO mail.txt
250-SIZE 2097152
250 OK
MAIL FROM: <sender@example.com> SIZE=18
250 2.1.0 Sender OK
RCPT TO: <recipient@example.com>
250 2.1.5 Recipient OK
DATA
354 Start mail input; end with <CRLF>.<CRLF>
250 2.6.0 Queued mail for delivery
* Connection #0 to host 192.0.2.2 left intact

The 250 ... Queued mail for delivery response confirms the SMTP server accepted the message. If the handshake fails instead, the problem is on the SMTP side — check with the mail administrator. If the transcript looks like the above, the SMTP server is fine and the issue lies on the HEAL side.

Unable to Send Email Notification#

  1. Check the "is_email_enabled" value in the below table:

    "user_notifications_details"
    
  2. If the value is '0', update the value to '1' and User will be able to receive notifications.

Unable to receive the Email Notification with Error#

Error: 'SMTPSendFailedException: 553 5.3.0 75.8.168 RELAY'

2021-03-31 17:56:38.588 [a1-event-handler-msg-thread 0] ERROR c.a.a.p.notificationsink.Notifier:74 - E3515::Unable to send Email notification for name "EarlyWarning Open" because of an unexpected error.

com.appnomic.appsone.plugin.notificationsink.exception.NotificationServiceException: com.sun.mail.smtp.SMTPSendFailedException: 553 5.3.0 75.8.168 RELAY

Solution: The client should allow traffic on the SMTP server.

Email Notifications Failed After Setting Up SMTP#

ERROR: Authentication error

Solution: Post changing user name it is working now

Non-Triggering Alert Emails#

Alert emails are not being sent, despite the UI showing signals.

Log analysis indicates successful email dispatches for the ID, and the user appears active in the control center.

The temporary resolution is obtained by restarting the A1eventHandler, but the issue recurs within 1-2 days.

RCA:

  1. Log review displays an error related to the configuration of a wrong gateway, impacting SMS but not email notifications.
  2. Email notifications resume temporarily after restarting the A1eventHandler, but the issue occurs again after a period.
  3. The 'Finacleassure' user account in the Control Center becomes inactive automatically a few hours after activation. Reactivation of the account leads to email alerts.

Solution: Follow the below steps to rectify the issue:

  1. Delete the 'Finacleassure' account and recreate in the Control Center.
  2. Reactivate the account.
  3. Add the two additional email addresses to the 'To' and 'CC' lists for alert emails.
  4. Restart the A1eventHandler.
  5. Monitor the system for anomalies (for 15 minutes).

Email Alerts are not Generated#

The Email alerts were not generating for the URL availability.

Solution: Multiple instances were configured for the host. After removing the extra instances, the issue was resolved.

Non-Triggering Email Alerts After SSL Certificate Deployment#

Post-deployment of an SSL certificate on the Data Center (DC), email alerts were stopped in Outlook, although alerts were still being triggered in the UI.

The issue is due to the notifications-plugin-details by default loading using the Control Center (CC) URL with 'keycloak.example'.

When the bank's SSL certificate is configured, the CC URL name changes, leading to issues such as 'URL unavailable' or 'connection refused'.

Solution:

  1. Accessing the Configuration File:

    • Log into the Docker container.
    • Copy the plugin-details.json file from the container to the /tmp directory by executing the following command:
    docker cp <container id>:/opt/appsone-event-handler/config/plugin-details.json /tmp
    
  2. Modifying the Configuration File:

    • Edit the plugin-details.json file, by changing the URL from 'keyloack.example' to 'finacleassure.globalbank.example'.
    • Update the below URL:
    https://finacleassure.globalbank.example:9192/appsone-
    controlcenter/v2.0/api/accounts/notifications-plugin-details
    
  3. Update the Docker Configuration:

    1. Update the Docker entry path in the 'volumes' section:

      “/corpapp/HEAL/Appsone_Service/A1EventHandler_dockerentry/plugin-
      details.json:/opt/appsone-event-handler/config/plugin-details.json”
      
    2. Add the DNS name and Keylock IP under 'extra hosts':

      "finacleassure.globalbank.example:192.0.2.39”
      
  4. Restart the A1event Handler.

Email Alerts Not Redirecting to the HEAL RCA Page#

The link provided in the email alerts was not redirecting users to the HEAL RCA (Root Cause Analysis) page.

Solution:

  1. Update the email template to ensure correct redirection (the system uses Keycloak behind HAProxy for authentication and security).
  2. Modify the email alert template to include a correct and functional link.

The updated template is as follows:

Dear User,<br/><br/>{Events_Changes_Descriptions}<br/>{Signal_Type} is {Signal_Status}
and {Signal_ID} on application(s) {App_Names}.<br/>Affected service(s): <i>
{Affected_ServiceNames}</i>. <br/><br/>For a detailed overview, please click <a
href="https://apmitps.example:9112/appsone-ui-
service/#/problem/detail/{AccountIdentifier}?signalId={Signal_ID}">here</a>.<br/>
<br/>Impacted Entry Point Service: NA <br/> Suggested Root Cause at <i>
{RootCause_ServiceNames}</i><br/>Affected Application(s): <i>
{Affected_ApplicationNames}</i><br/>Severity: <i>{Severity}</i><br/>Started On: <i>
{StartTime}</i><i>({TimzoneShortName})</i><br/>{Signal_Summary}<br/>
{Signal_Instance_Behaviour}<br/>Total <i>{Total_Events}</i> event(s) detected so far
on this <i>{Signal_Type}</i><br/>{Latest_Events}<br/>

MailConnectException: Couldn't connect to host#

Error: Below mentioned error is seen in A1eventhandler logs (port: 192.0.2.40, 25; timeout -1;).

21-09-27 05:30:36.700 [al-event-handler-msg-thread 0] ERROR
c.a.a.p.notificationsink.Notifier:74 - E3515::Unable to send EMail notification for
name "Early Warning Close” because of unexpected error occurred.
com.appnomic.appsone.plugin.notificationsink.exception.NotificationServiceException:
com.sun.mail.util.MailConnectException: Couldn't connect to host, port: 192.0.2.40,
25; timeout -1;
nested exception is:
| REN Meiers Cotaoetory olea test Connection refused (Connection refused)

Solution: There is no connectivity between source (HEAL server) to destination server (SMTP) with port 25, But the SMTP server 192.0.2.40 is no more in use.

  1. Instead provided SMTP IP 192.0.2.41, configure this newly provided SMTP IP at HEAL end (From Control center), then email notification issue will be resolved."
  2. New SMTP IP at the HEAL end (Control Center), the email notification issue will be resolved."

Alert Notification Issue after Upgrade#

Post upgrade to Heal 2.3.0, it was noted that only the initial Open and Closed alert notifications (both email and SMS) were being dispatched for signals.

This behavior was same across scenarios where:

  1. A signal with a single event transitioned from open to closed, resulting in one Open and one Closed alert.
  2. For a continuously open signal accumulating multiple KPI events, only the first Open alert was dispatched, followed by a Closed alert when applicable.

It was also identified that alerts for repeating KPI events or signals with events from multiple KPIs were not being sent.

Solution: The issue should be addressed by modifying specific consul keys related to signal notification processing:

  1. Consul Key Adjustments:

    1. Set the below key to 1.

      service/notificationprocessor/signal/severe/notification
      
    2. Set the below key to true.

      service/pipeline/signal/notifyIfEventIsSevere
      
  2. Service Restart: Following the consul key updates, the Notification Processor, Signal Detector, and A1Event Handler services will be restarted.