Integrations monitor

Tabla de contenidos

Athento allows monitoring integrations with third-party web services. In this way, we will be able to know which integrations are working and which are producing errors.

 

The integration services to be monitored must be configured from the administration. For each of them, a name must be specified for the monitor.

 

Types of services

Services configured in the settings

  • SMTP configured in the Athento settings. They are configured in the section "Health > Smtp settings service monitors". 

Services configured in objects

For each of them, the server to be monitored must be indicated.

  • SMTP configured in the model "SMTPServer". They are configured in the section "Health > Smtp service monitors". 

  • SFTP configured in the model "SFTPServer". They are configured in the section "Health > Sftp service monitors". 

  • LDAP configured in the model "LDAPServer". They are configured in the section "Health > Ldap service monitors". 

  • EWS configured in the model "EWSMailboxConnection". They are configured in the section "Health > Ews service monitors".

HTTP/HTTPS services

They are configured in the section "Health > Http service monitors" and we must specify the following data:

  • URL. URL that we want to monitor.
  • Method. Connection method.
  • Timeout. Response timeout of the service to be monitored.
  • SSL verification. Indicates whether the SSL certificate of the URL will be verified.
  • Username. To perform authentication if necessary. It is not mandatory.
  • Password. To perform authentication if necessary. It is not mandatory

Custom services

Additionally, monitoring of custom integration services can be configured. To do this, we need to specify the following data:

  • Path to the connection method. This is the path to a method defined on the Athento server, responsible for performing the connection check.
    • If the connection is made correctly, it must return two values: True, None.
    • If the connection is not made correctly, it must return two values: False, returned exception.
  • Connection configuration. Data that will be passed to the connection method.

Method example:

 

Monitor view

Once all monitors have been configured, users with superuser permission will be able to see the status within the "Health" section.

 

Within it, we will find a new tab called "Service monitor".

 

In this tab, we will be able to see all configured monitors, with their name, their service type and their status. In addition, we will be able to access their configuration by clicking the administration symbol that appears in the upper right part of each monitor.

We also have a button on each monitor to check its status at that moment and a button to check the status of all monitors.

 

Once we check the status of the monitors, we will be able to see the status of each of the monitors.

 

Additionally, from time to time a command will be launched that will check the status of the monitors and update the status of each of them, showing in the interface which of them are working properly and which of them are causing an error. This command is "check_services_status" and for it to send a notification to support with the monitors that are down, we must specify the parameter "send-support-notification".

  • Running the command without sending a notification to support:
python manage.py check_services_status
  • Running the command sending a notification to support:
python manage.py check_services_status --send-support-notification

 

After running this command, we will be able to see the status of each of the monitors. Based on the status of each of them, we will be able to know which servers we must check to keep each and every one of them working.