Multi-type alarm middleware implementation method and system based on SMTP gateway

Through multi-type alarm middleware based on SMTP gateway, unified management and distribution of alarm systems of Internet companies is realized, the problems of repeated development and channel upgrades are solved, the flexibility and security of the system are improved, and flexible selection and centralized audit of multiple alarm methods are supported.

CN120263618APending Publication Date: 2025-07-04HAIER CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510227685.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

In Internet companies, multiple types of alarms require developers to repeatedly develop code, resulting in a large workload, and the alarm channel needs to be upgraded twice, which is unable to achieve centralized and unified auditing.

Method used

Multi-type alarm middleware based on SMTP gateways is adopted, including gateway entrance module, message analysis and distribution module, message processing module and audit module, to realize the unified management and distribution of alarm information, support multiple alarm methods, and ensure security through SSL/TLS encryption.

Benefits of technology

It improves the flexibility and diversity of the alarm system, reduces the workload of repeated development, enhances the security and reliability of the system, supports the controllability, auditability and analysis of alarms, and reduces operation and maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120263618A_ABST
    Figure CN120263618A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-type alarm middleware implementation method based on an SMTP gateway. The method comprises the following steps: a gateway entry module receives an SMTP connection request from a component and a platform; the message analysis and distribution module performs preliminary analysis on the received alarm message; the message processing module is used for further processing and packaging the alarm message to be sent to the alarm channel; the alarm module sends the processed alarm message to a corresponding alarm end; and the auditing module records key actions and events in the whole alarm processing process. According to the forwarding method based on the smtp alarm, the flexibility, diversity and convenience of the alarm mode are improved. One code can be used in multiple places, and repeated workload is avoided. The workload of a developer for adapting to various platforms is solved, and the workload of opening a second alarm channel in the future is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of operation and maintenance warning, and particularly relates to a method and system for implementing a multi-type warning middleware based on an SMTP gateway. Background Art

[0002] In Internet companies, the normal and stable operation of all program platforms depends on the support of warning technology. Abnormal programs can be promptly notified to relevant responsible persons to ensure timely problem handling and production SLA.

[0003] However, with the rapid development of Internet technology, various components, programs, and platforms have emerged. And relevant operation and maintenance personnel will receive warnings in multiple places according to different warning levels, such as DingTalk, enterprise WeChat, emails, text messages, phone calls, etc. However, for multi-type warnings, developers need to implement corresponding code according to the warning channels, resulting in a large amount of repetitive work. Summary of the Invention

[0004] (1) Object of the Invention

[0005] In order to overcome the above deficiencies, the object of the present invention is to provide a method and system for implementing a multi-type warning middleware based on an SMTP gateway to solve the above technical problems.

[0006] (2) Technical Solution

[0007] To achieve the above object, the technical solution provided by this application is as follows:

[0008] A method for implementing a multi-type warning middleware based on an SMTP gateway includes the following steps:

[0009] The gateway entry module receives SMTP connection requests from components and platforms, and parses the commands sent by the SMTP client to receive warning messages in the form of emails;

[0010] The message parsing and distribution module preliminarily parses the received warning messages, extracts key information, and determines the warning channels to which the warning messages should be forwarded according to the rules in the configuration file;

[0011] The message processing module further processes and encapsulates the warning messages to be sent to the warning channels to meet the receiving requirements of the warning end;

[0012] The warning module sends the processed warning messages to the corresponding warning ends;

[0013] The audit module records the key actions and events during the entire warning processing process.

[0014] Preferably, the gateway entry module supports SSL / TLS encryption to ensure the security of alarm information during transmission.

[0015] Preferably, the message parsing and distribution module supports multiple email formats, including Multipart and MIME, and has the ability to handle attachments.

[0016] Preferably, the message parsing and distribution module can dynamically select alarm channels according to the severity and occurrence frequency of alarms.

[0017] Preferably, the message processing module converts, formats, or supplements the fields in the message according to the field mapping information in the configuration file.

[0018] Preferably, the message processing module supports custom processing logic, including adding specific tags or priority identifiers according to the alarm type.

[0019] Preferably, the alarm module supports multiple alarm methods, including SMS, email, DingTalk, and phone calls, and can select different alarm methods or combinations according to the severity of the alarm.

[0020] Preferably, the audit module supports real-time monitoring functions, monitors and alarms key metrics during the alarm handling process in real time, and provides log analysis tools or interfaces.

[0021] A multi-type alarm middleware system based on an SMTP gateway, comprising:

[0022] A gateway entry module, configured to receive SMTP connection requests from components and platforms, and parse the commands sent by the SMTP client to receive alarm messages in the form of emails;

[0023] A message parsing and distribution module, configured to perform preliminary parsing on the received alarm messages, extract key information, and determine the alarm channels to which the alarm messages should be forwarded according to the rules in the configuration file;

[0024] A message processing module, configured to further process and encapsulate the alarm messages to be sent to the alarm channels so that they meet the receiving requirements of the alarm terminals;

[0025] An alarm module, configured to send the processed alarm messages to the corresponding alarm terminals;

[0026] An audit module, configured to record the key actions and events during the entire alarm handling process.

[0027] Beneficial effects:

[0028] Through this forwarding method based on SMTP alerts, the present invention increases the flexibility, diversity, and convenience of alerting methods. It enables the reuse of code in multiple places, avoiding repetitive work. It solves the workload of developers for adapting to multiple platforms and the workload of future secondary development of alert channels; it solves the problem that alerts cannot be centrally audited; it solves the problem of heavy coupling of components and the workload brought about by the upgrade of alert channels. By solving the above problems, alerts can be controlled, audited, analyzed, and extended. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 is the workflow diagram of the present invention;

[0030] Figure 2 is a schematic diagram according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0031] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the specific embodiments and with reference to the appended Figure 1-2 , drawings. It should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In addition, in the following description, the descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present invention.

[0032] A method for implementing a multi-type alert middleware based on an SMTP gateway provided by the present invention includes the following steps:

[0033] The gateway entry module receives SMTP connection requests from components and platforms, and parses the commands sent by the SMTP client to receive alert messages in the form of emails, improving the flexibility and diversity of alerts and enabling flexible selection of alert methods according to different alert requirements and severity levels. This method not only meets the diverse alert requirements but also improves the adaptability and flexibility of the alert system.

[0034] The message parsing and distribution module performs a preliminary parse on the received alert message, extracts key information, and determines the alert channel to which the alert message should be forwarded according to the rules in the configuration file;

[0035] The message processing module further processes and encapsulates the alert message to be sent to the alert channel to make it meet the receiving requirements of the alert end;

[0036] The alert module sends the processed alert message to the corresponding alert end;

[0037] The audit module records the key actions and events during the entire alert processing process.

[0038] The present invention realizes the unified management and distribution of alarms in the form of middleware. Developers only need to interface with one channel to achieve the alarm function of multiple channels, avoiding the workload of repeatedly developing code for different alarm channels. At the same time, operation and maintenance personnel can centrally manage alarm configurations through the middleware, reducing the configuration workload.

[0039] Preferably, the gateway entry module supports SSL / TLS encryption to ensure the security of alarm information during transmission and prevent alarm data from being stolen or tampered with. In addition, by recording alarm actions through the middleware, the auditability and traceability of the alarm process are realized, which helps to quickly locate problems and optimize alarm strategies.

[0040] Preferably, the message parsing and distribution module supports multiple email formats, including Multipart and MIME, can be compatible with alarm messages in different formats, and has the ability to handle attachments.

[0041] Preferably, the message parsing and distribution module can dynamically select alarm channels according to the severity and occurrence frequency of alarms, and give priority to processing high-priority alarm information, thereby improving the response speed and processing efficiency of the alarm system. At the same time, the system supports the real-time monitoring function, can monitor and alarm key indicators during the alarm processing process in real time, and further optimize the alarm process.

[0042] Preferably, the message processing module converts, formats or supplements the fields in the message according to the field mapping information in the configuration file. This not only improves the compatibility and generality of alarms, but also enhances the readability of alarm information.

[0043] Preferably, the message processing module supports custom processing logic, including adding specific tags or priority identifiers according to the alarm type.

[0044] Preferably, the alarm module supports multiple alarm methods, including SMS, email, DingTalk and phone calls, and can select different alarm methods or combinations according to the severity of the alarm.

[0045] Preferably, the audit module supports the real-time monitoring function, monitors and alarms key indicators during the alarm processing process in real time, and provides a log analysis tool or interface.

[0046] A multi-type alarm middleware system based on an SMTP gateway, comprising:

[0047] A gateway entry module, configured to receive SMTP connection requests from components and platforms, and parse commands sent by SMTP clients to receive alarm messages in the form of emails;

[0048] The message parsing and distribution module is used to initially parse the received alarm messages, extract key information, and determine the alarm channels to which the alarm messages should be forwarded according to the rules in the configuration file;

[0049] The message processing module is used to further process and encapsulate the alarm messages to be sent to the alarm channels so that they meet the receiving requirements of the alarm terminals;

[0050] The alarm module is used to send the processed alarm messages to the corresponding alarm terminals;

[0051] The audit module is used to record the key actions and events during the entire alarm processing process.

[0052] Through the multi-type alarm middleware implementation method based on the SMTP gateway, the present invention significantly improves the flexibility and diversity of the alarm system. By using the SMTP gateway as the alarm relay and combining multiple alarm channels, including SMS, email, DingTalk, and phone calls, the system can flexibly select the alarm methods according to the severity, occurrence frequency, and business requirements of the alarms, meeting the alarm requirements in different scenarios.

[0053] At the same time, the message processing module converts, formats, or supplements the messages according to the field mapping information in the configuration file, supporting complex processing logics, such as adding specific tags or identifiers according to the alarm type or alarm source, providing richer information for subsequent alarm processing and analysis. This design not only improves the adaptability and flexibility of the alarm system but also optimizes the transmission efficiency of alarm information, ensuring the integrity and readability of the alarm content.

[0054] The present invention effectively reduces the development and operation and maintenance costs, while enhancing the security and reliability of the alarm system. By using the middleware to achieve unified management and distribution of alarms, developers only need to interface with one channel to implement the alarm functions of multiple channels, avoiding the workload of developing code repeatedly for different alarm channels. The operation and maintenance personnel can also centrally manage the alarm configurations through the middleware, reducing the configuration workload and the probability of errors.

[0055] In addition, the gateway entry module supports SSL / TLS encryption to ensure the security of alarm information during transmission and prevent data from being stolen or tampered with. The audit module records the key actions and events during the alarm processing process, providing log analysis tools or interfaces to facilitate the operation and maintenance personnel to mine and analyze the alarm data and further optimize the alarm strategy. This auditability is crucial for tracking problems and analyzing the alarm response efficiency.

[0056] The present invention also realizes the scalability and compatibility of the alarm system, improving the overall performance and user experience. The system supports multiple email formats and attachment handling capabilities, and can be compatible with alarm messages in different formats. At the same time, a flexible alarm channel expansion mechanism is designed, which supports flexible configuration without restarting the application service, and can easily adapt to newly added alarm channels or alarm requirements in the future. By decoupling between components, the system will not have a direct impact on other components when updating or replacing a certain component, reducing the technical risks and costs brought by newly added alarm channels or alarm sources. In addition, the system supports real-time monitoring functions, can perform real-time monitoring and alarming on key indicators during the alarm handling process, further optimize the alarm process, and improve the response speed and processing efficiency of the alarm system.

[0057] It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0058] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims

1. A method for implementing a multi-type alarm middleware based on an SMTP gateway, characterized in that, It includes the following steps: The gateway entry module receives SMTP connection requests from components and platforms, and parses the commands sent by the SMTP client to receive alarm messages in the form of emails; The message parsing and distribution module performs preliminary parsing on the received alarm messages, extracts key information, and determines the alarm channels to which the alarm messages should be forwarded according to the rules in the configuration file; The message processing module further processes and encapsulates the alarm messages to be sent to the alarm channels to make them meet the receiving requirements of the alarm terminals; The alarm module sends the processed alarm messages to the corresponding alarm terminals; The audit module records the key actions and events during the entire alarm processing process.

2. The implementation method of a multi-type alarm middleware based on an SMTP gateway according to claim 1, characterized in that The gateway entry module supports SSL / TLS encryption to ensure the security of alarm information during transmission.

3. The method for implementing a multi-type alarm middleware based on an SMTP gateway according to claim 1, characterized in that The message parsing and distribution module supports multiple email formats, including Multipart and MIME, and has the ability to process attachments.

4. The method for implementing a multi-type alarm middleware based on an SMTP gateway according to claim 1, wherein The message parsing and distribution module can dynamically select alarm channels according to the severity and occurrence frequency of the alarms.

5. The method for implementing a multi-type alarm middleware based on an SMTP gateway according to claim 1, wherein The message processing module converts, formats, or supplements the fields in the message according to the field mapping information in the configuration file.

6. The method for implementing a multi-type alarm middleware based on an SMTP gateway according to claim 1, wherein The message processing module supports custom processing logics, including adding specific tags or priority identifiers according to the alarm types.

7. The method for implementing a multi-type alarm middleware based on an SMTP gateway according to claim 1, wherein The alarm module supports multiple alarm methods, including SMS, email, DingTalk, and phone calls, and can select different alarm methods or combinations according to the severity of the alarms.

8. The implementation method of the multi-type alarm middleware based on the SMTP gateway according to claim 1, characterized in that, The audit module supports real-time monitoring functions, performs real-time monitoring and alarming on the key metrics during the alarm processing process, and provides log analysis tools or interfaces.

9. A multi-type alarm middleware system based on an SMTP gateway, characterized in that, It includes: A gateway entry module, which is used to receive SMTP connection requests from components and platforms, and parse the commands sent by the SMTP client to receive alarm messages in the form of emails; A message parsing and distribution module, which is used to perform preliminary parsing on the received alarm messages, extract key information, and determine the alarm channels to which the alarm messages should be forwarded according to the rules in the configuration file; A message processing module, which is used to further process and encapsulate the alarm messages to be sent to the alarm channels to make them meet the receiving requirements of the alarm terminals; An alarm module, which is used to send the processed alarm messages to the corresponding alarm terminals; An audit module, which is used to record the key actions and events during the entire alarm processing process.