Skip to main content

How To Configure Alerts and Monitoring


Introduction

The purpose of this guide is to provide a foundational understanding of the options and capabilities available when configuring Alerts in Enactor.

Alerts allow the system to detect certain events by checking the Application Process Log, Application Log, System Log and JMX Beans. The system then sends an alert through Communication Options such as email, SMS, Application Process and Business Process.

There are a number of aspects in the system to consider in order to get alerts configured and running successfully. This guide covers all necessary configurations required to successfully send and receive alerts based on the various triggers of events in the system.


Overview

This guide covers the following configuration areas:

  1. Create Alert User - Creation of a dedicated user where the email configuration is defined for sending alerts via email.
  2. Configure Location for Email Alerts - Configuration of the Estate Manager location to send email alerts.
  3. Alert Services - The list of services which are required for alert configuration.
  4. Configure Alert Types - The various alert types which are available for configuration.
  5. Monitoring Alerts - Using Alert Maintenance to monitor the alerts that have been triggered.
  6. Alert Scenarios - Failed Transaction Processing, Failed XML Import, Failed Scheduled Job, Licence Failed and Database Connection Failed scenarios are discussed.

Configuration Steps

Create Alert User

To send alerts as an email, an Alert User has to be defined. This is where the email configuration is defined for this particular user for sending alerts via email.

To configure the Alert User, follow the steps below.

Navigate to User Maintenance using the Search or the path: Configuration > HR > Users

To create a new User, select Create a New User on the User Maintenance page.

User Maintenance list showing existing users with Location, User ID and Surname columns. The Create a New User button is highlighted at the bottom left.

The User Maintenance list shows all configured users. Select Create a New User at the bottom of the page to begin creating the alert user.

Enter ALERTS as the unique User ID for the new User and click Create.

User Maintenance create new user dialog with User ID set to ALERTS and Template ID set to default.

Enter User ID as ALERTS and click Create to create the new user.

The User Maintenance screen for the newly created ALERTS User is presented. The two tabs to configure are General and Email.


User - General Tab

The General tab has all the basic information that captures the identity of the new ALERTS User.

User Maintenance General tab for the ALERTS user. Display Name is set to Alerts User, Surname is set to Alerts User, Forename is System, Locale is English (UK).

Set Display Name to Alerts User and Surname to Alerts User on the General tab. These fields identify the alert user within the system.

Set the appropriate values on the General tab as follows:

ConfigurationDescription
Display NameThis is the name displayed in the screen after signing into the Estate Manager. Enter any identifiable name here, for example Alerts User.
SurnameThis is the surname given to the User. Enter any appropriate surname here, for example Alerts User.

User - Email Tab

The Email tab captures the email configuration for the new ALERTS User.

User Maintenance Email tab for the ALERTS user. Email Address and Email Account Name are both set to support@enactor.co.uk. Check Email in the Background is checked. Account Status shows Invalid.

Configure the email settings for the ALERTS user. Set Email Address and Email Account Name to the email address that will send alert notifications. Tick Check Email in the Background to enable background email checking.

Set the appropriate values on the Email tab as follows:

ConfigurationDescription
Email AddressEnter the email address which will be used to send the email alerts.
Email Account NameEnter the same email address as used in the previous field.
Change Email Account PasswordEnter the correct password of the email address that has been entered.
Check Email on LoginIf checked, the email will be checked on login.
Check Email in BackgroundIf checked, the email will be checked in the background.
Account StatusShows the status of the email account. If there is an issue with the email configuration, after several tries the system will automatically set the user's email account status to Invalid. Once set to invalid the system will not try to access the user's email account. After resolving the email configuration issues, check this field and if it is Invalid then click on the bin icon to reset it to Valid.
warning

Be sure to set the correct email address and a valid password for the email account on this page. Without this, the alert system will not be able to send email alerts.


Configure Location for Email Alerts

The Estate Manager location should be configured to send email alerts. The following is an example of configuring the Email tab of the Estate Manager location to use IMAP and SMTP.

Navigate to Location Maintenance using the Search or the path: Configuration > Organisation > Locations

In the list of locations, search for Estate Manager and click on the corresponding edit icon to configure the Estate Manager Location.

Location Maintenance list filtered to show the Estate Manager location with Location ID estatemanager, Location Type Office. The edit icon is highlighted.

Filter the location list by name to find the Estate Manager location. Click the edit icon to open the location configuration.

Location - Email Tab

Within the Estate Manager location, the email configuration is done via the Email tab. The System User should point to the ALERTS user created in the previous section.

Location Maintenance Email tab for the Estate Manager location. Authenticate Outgoing Mail is checked. SMTP Server is smtp.gmail.com, SMTP Port is 587, SMTP Encryption Type is TLS/STARTTLS, and System User is set to ALERTS.

Configure the Email tab of the Estate Manager location. Tick Authenticate Outgoing Mail, enter the SMTP Server, SMTP Port and SMTP Encryption Type values, and set the System User to the ALERTS user created previously.

Set the appropriate values as follows:

ConfigurationDescription
Authenticate Outgoing MailIf checked, all outgoing mail will be authenticated using the User's email account and password. If this option is not selected and the SMTP server requires authentication, the outgoing email will not be sent.
SMTP ServerAn SMTP server is a mail server that only supports the sending of emails. Enter the server address, for example smtp.gmail.com.
SMTP PortEnter the SMTP port number, for example 587.
SMTP Encryption TypeSelect the appropriate SMTP Encryption Type from the dropdown: None, SSL, or TLS/STARTTLS.
System UserThis is the System User associated with this location who sends the email alerts. Use the search button to select the ALERTS user that was created in the previous section.

Alert Services

In order for alerts to work, there are a number of services that are required. The following table lists the services and their functionalities.

Service DescriptionDevice TypeFunctionality
Alert DispatcherEstate Manager, Back OfficeDispatches alerts via email
Alert MonitorEstate Manager, Back OfficeMonitors Estate Manager logs for alert messages
Email Internal RouterEstate Manager, Back Office, Inventory ManagerRoutes email internally via the application
Email SenderEstate Manager, Back Office, Inventory ManagerEmail sending service

After restarting the Estate Manager, navigate to Service Status using the Search or the path: Administration > Services > Service Status

Verify that all the required services are running.

Service Status screen showing Alert Dispatcher and Alert Monitor services both in Running status with Idle state.

Verify that the Alert Dispatcher and Alert Monitor services are both showing as Running with status Idle.

Service Status screen showing Email Internal Router and Email Sender services.

Also verify that the Email Internal Router and Email Sender services are running.

Configure Alert Types

Alert types are used to define what alerts to raise when certain events are detected in the logs, where to monitor from (Application Process Log, Application Log, System Event Log) and the communication type (for example, email) used to send the alerts.

This section is where you configure at which events (triggers) you want to send the alerts and where to send the alert if that event is triggered.

info

If alerts are to be defined on the Store Server, then the alert types should be broadcast down to the Store Server.

Alert types can be categorised based on the trigger:

  • Application Process Log
  • Application Log
  • System Event Log
  • JMX Bean
tip

Configuration of JMX Bean Alerts is documented in the How To Configure MBean Alerts guide.

Communication options for sending alerts comprise:

  • Email
  • SMS
  • Application Process
  • Business Process

The following pre-loaded alert types are available in the environment:

Alert Type IDDescriptionTriggerLog Entry Type / Log LevelEntry Type ID
FAILED_XML_IMPORTWhen File Import is used in the Estate Manager to import configs and any such import fails because it could not parse or process successfully, a Failed to import XML file alert is sent to the user.Application Process LogErrorxmlFileImporter
FAILED_TRANS_PROCESSWhen a Transaction fails to process, a Transaction Processing Failed alert is sent to the user.Application Process LogErrordocument
FAILED_SCHEDULED_JOBWhen broadcasts fail to submit due to an error, a Scheduled Job Failed alert is sent to the user.Application Process LogErrorscheduledJob
LICENCE_FAILEDWhen the Licence used is either expired or invalid, a Licence Validation Failed alert is sent to the user.Application LogError
DATABASE_CON_FAILEDWhen there is a problem with connecting to the Database, a Database Connection Failed alert is sent to the user.Application LogError

To further explain the above table, take the alert type DATABASE_CON_FAILED as an example. The trigger for this alert type is Application Log and the Message Text is com.enactor.core.database.DatabaseException: Failed to get connection. If that exact Message Text exists in the Application Log, an email is sent as an alert to the recipient as configured.

For each of these alert types, you need to configure how and to whom the alerts are sent. Navigate to Alert Type Maintenance using the Search or the path: Administration > LogAlerts > Alert Types

Click on the edit icon of the Alert Type that you want to configure. This will open the Alert Type Maintenance screen for that particular Alert Type. It is the Communication Options tab that needs to be configured in order to set the email for sending the alert.


Alert Type - Communication Options Tab

This is where you specify all configurations regarding which method you want to send the alert and to whom you want to send it once the alert type has been triggered.

Email, SMS, Application Process and Business Process are the Communication Option Types that are available for selection. Multiple Communication Options can be added for one Alert Type by having different devices configured.

Alert Type Maintenance Communication Options tab for FAILED_TRANS_PROCESS. Three communication options are configured: Email alert (Send an E-mail), Send SMS (Send an SMS), and Send SMS 2 (Send an SMS), all for Estate Manager device type.

The Communication Options tab shows all configured notification methods for this alert type. Multiple communication options can be added for different device types.

To create a new Communication Option Type, pick from the dropdown, enter an appropriate Communication Option Name and then click Add New Communication Option.

Alert Type Maintenance showing the Add New Communication Option section with dropdown for selecting the Communication Option Type.

Select the desired Communication Option Type from the dropdown, enter a Communication Option Name, and click Add New Communication Option.

The following is an example of an Email Communication Option Type and its configurations:

Alert Type Maintenance Email communication option configuration for FAILED_TRANS_PROCESS. Device Type is Estate Manager, Email Address is set, Email Subject is Enactor - Transaction failed to process, Batch Size is 1.

Configure the email communication option. Set the Device Type, enter the Email Address for the alert recipient, define the Email Subject and Email Message, and configure the Batch Size for batched alert notifications.

Set the appropriate values as follows:

ConfigurationDescription
Device TypeDropdown list selection of defined device types.
Email Address (overridden by User ID)Enter the email address to which you want to send the alert.
Email SubjectSubject of the message to be sent when the alert is triggered.
Email MessageMessage to be sent when the alert is triggered.
Batch SizeNumeric value. When the Alert Type has been triggered the same number of times as the batch size value, a batch email will be sent. The value set here defines after how many triggers the batch email should be sent.
Batch Email SubjectSubject of the message for the batch email.
Batch Email MessageMessage to be included when the batch email is sent.

Click Save after configuring the appropriate values.

Finally, after configuring the Communication Options tab, click Save to finish creating the Alert Type.


Monitoring Alerts

Alerts that have been triggered in the system can be viewed in Alert Maintenance.

Navigate to Alert Maintenance using the Search or the path: Administration > LogAlerts > Alerts

The Alert Maintenance page lists the alerts corresponding to the events that have been logged to the nominated triggers based on the criteria and configuration defined in Alert Types.

Alert Maintenance screen showing a list of triggered alerts with columns for Priority, Date Time Raised, Alert ID, Alert Type, Status and Message Text. Multiple alerts are shown with Update service is not running type.

The Alert Maintenance screen lists all triggered alerts. Use the filter options at the top to search for specific alerts by Alert Type ID, Alert ID, Priority, Date range or Message Text.

Alert Scenarios

There are a number of situations, detailed below, where when a failure occurs the Estate Manager will send an email alert to the user. Within each category there are individual messages and batched messages which also have text specifying the type of error.


Failed Transaction Processing

This is where an Inbound Transaction has failed to process on the Estate Manager. One of the following transaction types not processing through inbound documents could cause this error:

  • Normal Retail Sale Transaction
  • Employee Retail Sale Transaction
  • Airport Sale Transaction
  • Tax Refund Request Transaction
  • System Event

Whenever such a Failed Transaction Processing error occurs, an alert will be sent as an email to the user as configured. The email alert received is as follows:

Email alert notification for a Failed Transaction Processing event from Enactor.

Example of a Failed Transaction Processing email alert received by the configured recipient.

To view the alert created for this, first make a note of the Alert ID sent in the email. Then navigate to Alert Maintenance and enter the Alert ID from the email in the filter options and click Apply Filters.

Alert Maintenance screen with the Alert ID filter applied to find the specific failed transaction processing alert.

Enter the Alert ID from the email into the filter options and click Apply Filters to locate the specific alert.

To further investigate, make a note of the Date Time that this alert was raised and navigate to Inbound Document Viewer using the Search or the path: Administration > Processing > Inbound Documents

Make the following changes in the filter options:

  • Queue Name - Estate Manager Transaction Processing
  • Status - Failed

Click on the ! icon of the row that matches close to the time that the alert was created.

Inbound Document Viewer filtered to show failed Estate Manager Transaction Processing documents. The error icon is highlighted on a matching row.

Filter the Inbound Document Viewer by Queue Name set to Estate Manager Transaction Processing and Status set to Failed. Click the ! icon on the matching row to view the error details.

The Application Process Log of this particular failed transaction processing job is opened.

Application Process Log showing the error details for a failed transaction processing job with the message Location Not In Use:0001.

The Application Process Log displays the error details. In this example, the message Location Not In Use:0001 indicates why the transaction processing failure occurred.

Failed XML Import

This is where XML file or files are imported directly into the Imports folder of the Estate Manager and the import fails because it could not parse or process successfully.

Whenever such a Failed XML Import error occurs, an alert will be sent as an email to the user as configured. The email alert received is as follows:

Email alert notification for a Failed XML Import event from Enactor.

Example of a Failed XML Import email alert received by the configured recipient.

To view the alert, first make a note of the Alert ID sent in the email. Then navigate to Alert Maintenance and enter the Alert ID in the filter options and click Apply Filters.

Alert Maintenance screen with the Alert ID filter applied to find the specific failed XML import alert.

Enter the Alert ID from the email into the filter options and click Apply Filters to locate the alert.

To further investigate, make a note of the Date Time that this alert was raised and navigate to the Application Process Log. Click on the eye icon of the row that matches close to the time that the alert was created.

Application Process Log showing entries with the eye icon highlighted on the row matching the alert time.

Navigate to the Application Process Log and click the eye icon on the row that matches the time the alert was raised.

Navigate to the Exception Summary or Exception Details tab for information about the error that can assist further investigation.

Application Process Log Exception Summary tab showing error details for the failed XML import.

The Exception Summary tab provides a high-level overview of the error that caused the XML import failure.

Application Process Log Exception Details tab showing the full exception stack trace for the failed XML import.

The Exception Details tab provides the full exception stack trace for detailed troubleshooting.

Failed Scheduled Job

This is where a Scheduled Job has failed, such as a failed import using the File Import Maintenance in the Estate Manager.

Whenever such a Failed Scheduled Job error occurs, an alert will be sent as an email to the user as configured. The email alert received is as follows:

Email alert notification for a Failed Scheduled Job event from Enactor.

Example of a Failed Scheduled Job email alert received by the configured recipient.

To view the alert, first make a note of the Alert ID sent in the email. Then navigate to Alert Maintenance and enter the Alert ID in the filter options and click Apply Filters.

Alert Maintenance screen with the Alert ID filter applied to find the specific failed scheduled job alert.

Enter the Alert ID from the email into the filter options and click Apply Filters to locate the alert.

To further investigate, make a note of the Date Time that this alert was raised and navigate to Scheduled Job Maintenance using the Search or the path: Administration > Processing > Scheduled Jobs

Change the filter value of Status to Failed and click on the ! icon of the row that matches close to the time that the alert was created.

Scheduled Job Maintenance screen filtered to show failed scheduled jobs. The error icon is highlighted on the matching row.

Filter the Scheduled Job Maintenance by Status set to Failed and click the ! icon on the matching row to view the error details.

The Application Process Log of this particular failed scheduled job is opened. Click on the eye icon of the row with the failed message.

Application Process Log for the failed scheduled job showing the eye icon highlighted on the failed message row.

Click the eye icon on the row with the failed message to view the full error details.

Navigate to the Exception Summary or Exception Details tab for information about the error that can assist further investigation.

Application Process Log Exception Summary tab showing error details for the failed scheduled job.

The Exception Summary tab provides a high-level overview of the error that caused the scheduled job failure.

Application Process Log Exception Details tab showing the full exception stack trace for the failed scheduled job.

The Exception Details tab provides the full exception stack trace for detailed troubleshooting.

Licence Failed

This is where the Licence used is either expired or invalid and a Licence Validation Failed alert is sent to the user.

Whenever such a Licence Failed error occurs, an alert will be sent as an email to the user as configured. The email alert received is as follows:

Email alert notification for a Licence Failed event from Enactor.

Example of a Licence Failed email alert received by the configured recipient.

To view the alert, first make a note of the Alert ID sent in the email. Then navigate to Alert Maintenance and enter the Alert ID in the filter options and click Apply Filters.

Alert Maintenance screen with the Alert ID filter applied to find the specific licence failed alert.

Enter the Alert ID from the email into the filter options and click Apply Filters to locate the alert.

To further investigate, make a note of the time that this alert was created and navigate to the Application Log. Make the following changes in the filter options:

  • Log Context Name - Estate Manager Enactor Web Retail Processing
  • Event Type - Errors

Application Log filtered by Log Context Name and Event Type showing licence failed errors among other error entries.

Filter the Application Log by Log Context Name set to Estate Manager Enactor Web Retail Processing and Event Type set to Errors to locate the licence failed error.

The Licence failed error will be visible in the Application Log along with other errors.


Database Connection Failed

This is where there are intermittent database connection issues and a Database Connection Failed alert is sent to the user.

Whenever such a Database Connection Failed error occurs, an alert will be sent as an email to the user as configured. The email alert received is as follows:

Email alert notification for a Database Connection Failed event from Enactor.

Example of a Database Connection Failed email alert received by the configured recipient.

To view the alert, first make a note of the Alert ID sent in the email. Then navigate to Alert Maintenance and enter the Alert ID in the filter options and click Apply Filters.

Alert Maintenance screen with the Alert ID filter applied to find the specific database connection failed alert.

Enter the Alert ID from the email into the filter options and click Apply Filters to locate the alert.

To further investigate, make a note of the time that this alert was created and navigate to the Application Log. Make the following changes in the filter options:

  • Log Context Name - Estate Manager Enactor Web Retail Processing
  • Event Type - Errors

Application Log filtered by Log Context Name and Event Type showing database connection failed errors among other error entries.

Filter the Application Log by Log Context Name set to Estate Manager Enactor Web Retail Processing and Event Type set to Errors to locate the database connection failed errors.

The Database Connection Failed errors that have caused the intermittent database connection failures will be visible in the Application Log along with other errors.

note

The above shows alerts for intermittent database connection failures, not for total database connection failures. If there is a total database connection failure, the following screen is shown to the user when the Estate Manager is opened.

Estate Manager error screen displayed when a total database connection failure prevents the application from loading.

When a total database connection failure occurs, this error screen is displayed instead of the Estate Manager application.