Mail alarm method, device, equipment and medium

By identifying and matching alarm source types in monitoring emails and querying the alarm template library, personalized alarm methods are realized, which solves the problem of low monitoring efficiency in existing technologies and improves the accuracy and efficiency of security alarms in application systems.

CN118733843APending Publication Date: 2024-10-01SHANGHAI GRANDAGE DATA SYST CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410991912.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the monitoring and alarming efficiency of application systems is low and cannot meet the needs of diversified application systems, resulting in the inability to detect and deal with potential security issues in a timely manner.

Method used

By obtaining monitoring emails, identifying alarm source types, querying the alarm template library, and matching alarm information and methods, personalized alarms for different alarm source types can be achieved.

Benefits of technology

It improves the accuracy and efficiency of email alarms and can implement different alarm methods for different alarm source types to ensure timely and accurate security monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733843A_ABST
    Figure CN118733843A_ABST
Patent Text Reader

Abstract

The invention discloses a mail alarm method, device and equipment and a medium. The method comprises the following steps: acquiring a monitoring mail corresponding to at least one monitoring module, wherein the monitoring mail comprises a mail theme and a mail text; for each monitored mail, identifying the mail theme of the monitored mail to obtain an alarm source type corresponding to the monitored mail; for each alarm source type, querying in an alarm template library according to the alarm source type to obtain an alarm template corresponding to the alarm source type; for each monitored mail, matching the mail text corresponding to the monitored mail with the alarm template corresponding to the alarm source type of the monitored mail to obtain alarm information and an alarm mode of the monitored mail; and for each monitored mail, alarming the alarm information of the monitored mail according to the alarm mode corresponding to the monitored mail. According to the technical scheme of the embodiment of the invention, the mail alarm accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to an email alarm method, device, equipment and medium. Background Art

[0002] With the rapid development of Internet technology, various types of application systems are increasing and applied in all aspects of people's lives. If the application system cannot operate normally, it may cause the user's privacy data to be leaked. Therefore, the application system needs to be monitored and alarmed in real time to facilitate operation and maintenance personnel to maintain system security in time.

[0003] Currently, various indicators of the application system are monitored through manual monitoring, and alarm information is manually notified to operation and maintenance personnel.

[0004] However, there are many types of application systems and they are large in number. Different alarm methods may be required for different application systems. Manual monitoring and alarming are inefficient and have low accuracy, and cannot meet the needs of daily life. Summary of the invention

[0005] The present invention provides an email alarm method, device, equipment and medium. The technical solution of the embodiment of the present invention can improve the accuracy and efficiency of email alarms.

[0006] In a first aspect, an embodiment of the present invention provides an email alert method, the method comprising:

[0007] Obtaining a monitoring email corresponding to at least one monitoring module, where the monitoring email includes an email subject and an email body;

[0008] For each monitored email, identify the email subject of the monitored email and obtain the alarm source type corresponding to the monitored email;

[0009] For each alarm source type, according to the alarm source type, query in the alarm template library to obtain the alarm template corresponding to the alarm source type;

[0010] For each monitoring email, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email;

[0011] For each monitoring email, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email.

[0012] In a second aspect, an embodiment of the present invention further provides an email alert device, the device comprising:

[0013] An email acquisition module, used to acquire a monitoring email corresponding to at least one monitoring module, wherein the monitoring email includes an email subject and an email body;

[0014] The type acquisition module is used to identify the email subject of each monitored email and obtain the alarm source type corresponding to the monitored email;

[0015] The template query module is used to query the alarm template library for each alarm source type according to the alarm source type to obtain the alarm template corresponding to the alarm source type;

[0016] The template matching module is used to match the email body corresponding to the monitored email with the alarm template corresponding to the alarm source type of the monitored email for each monitored email, so as to obtain the alarm information and alarm method of the monitored email;

[0017] The email alarm module is used to issue an alarm for each monitored email according to the alarm method corresponding to the monitored email.

[0018] In a third aspect, an embodiment of the present invention further provides an email alert device, the device comprising:

[0019] at least one processor; and

[0020] a memory communicatively connected to at least one processor; wherein,

[0021] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the email alert method of any embodiment of the present invention.

[0022] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the email alert method of any embodiment of the present invention when executed.

[0023] The technical solution of the embodiment of the present invention obtains a monitoring email corresponding to at least one monitoring module, and the monitoring email includes an email subject and an email body; for each monitoring email, the email subject of the monitoring email is identified to obtain the alarm source type corresponding to the monitoring email; for each alarm source type, according to the alarm source type, a query is performed in the alarm template library to obtain the alarm template corresponding to the alarm source type; for each monitoring email, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email; for each monitoring email, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email, and different alarm methods can be executed for alarm emails corresponding to different alarm source types, thereby refining the operation of email alerts and improving the accuracy of email alerts.

[0024] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0026] Figure 1 is a flow chart of an email alarm method provided according to an embodiment of the present invention;

[0027] Figure 2 is a flow chart of an email alarm method provided according to an embodiment of the present invention;

[0028] Figure 3 is a structural diagram of an email alert device provided according to an embodiment of the present invention;

[0029] Figure 4 It is a structural diagram of an email alert device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0032] In the technical solution of the embodiment of the present invention, the acquisition, storage and application of monitoring emails, etc. are all in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0033] Embodiment 1

[0034] Figure 1 The present invention provides a flowchart of a method for monitoring mails in the first embodiment of the present invention. The present invention is applicable to monitoring mails, and the method can be performed by a mail monitoring device, which can be implemented in the form of hardware and / or software, and can be configured in a mail monitoring device.

[0035] See also Figure 1 The following methods are provided for monitoring emails:

[0036] S101. Obtain a monitoring email corresponding to at least one monitoring module, where the monitoring email includes an email subject and an email body.

[0037] The monitoring module may be a module with monitoring functions, which may be configured in a software system or hardware system to be monitored in real time, and may be used to obtain monitoring emails. The monitoring email may be an email generated by a collection of various indicators monitored by the monitoring module and values ​​corresponding to the various indicators. The email subject may be the title of the monitoring email. The email body may be the content of the email corresponding to the monitoring email.

[0038] Specifically, different monitoring modules monitor different objects, which may be hardware systems or software systems. Different monitoring modules monitor different data. Different monitoring modules monitor different emails, that is, different monitoring modules monitor different emails with different email bodies and different email subjects. The monitoring emails corresponding to at least one monitoring module are obtained, and the acquisition method includes but is not limited to: depth-first traversal algorithm or breadth-first algorithm, etc., which is not limited in the embodiments of the present invention.

[0039] In an example, a monitoring email 1 corresponding to monitoring module 1 is obtained through a depth-first traversal algorithm, and the email subject of monitoring email 1 is alarm source type_router alarm type+memory usage_50%. A monitoring email 2 corresponding to monitoring module 2 is obtained, and the email subject of monitoring email 2 is alarm source type_router alarm type+memory usage_30%.

[0040] S102: For each monitored email, identify the email subject of the monitored email and obtain the alarm source type corresponding to the monitored email.

[0041] The alarm source type may be the type of the object monitored by the monitoring module, such as a router alarm type, a database alarm type, a switch alarm type, or a service alarm type.

[0042] Specifically, the subject of the monitoring email may include description information of the monitored object. For example, the subject of the monitoring email may include the name of the monitored object, the model of the monitored object, the type of the monitored object, or the monitoring date. For each monitoring email, the subject of the monitoring email is identified to obtain the type of alarm source corresponding to the monitoring email. The identification method includes, but is not limited to: convolutional neural network, recurrent neural network, generative adversarial network, graph neural network, long short-term memory network, artificial neural network and autoencoder, etc., which are not limited in the embodiment of the present invention.

[0043] In one example, monitoring email 1 corresponding to monitoring module 1 is obtained, and the email subject of monitoring email 1 is alarm source type_router alarm type+memory usage_50%. Monitoring email 2 corresponding to monitoring module 2 is obtained, and the email subject of monitoring email 2 is alarm source type_database alarm type+memory usage_70%. The email subject of monitoring email 1 is identified, and the alarm source type corresponding to monitoring email 1 is obtained as router alarm type. The email subject of monitoring email 2 is identified, and the alarm source type corresponding to monitoring email 2 is obtained as database alarm type.

[0044] S103. For each alarm source type, query the alarm template library according to the alarm source type to obtain the alarm template corresponding to the alarm source type.

[0045] The alarm template may be a pre-set template that matches the email body corresponding to the monitored email.

[0046] Specifically, different alarm source types correspond to different data to be monitored, and therefore, different alarm source types correspond to different alarm templates. Alarm source types correspond one-to-one to alarm templates. According to the alarm source type, a query can be performed in the alarm template library to obtain the alarm template corresponding to the alarm source type. The query method includes but is not limited to: sequential search algorithm, binary search algorithm, interpolation search algorithm, Fibonacci search algorithm, tree table search algorithm, block search algorithm or hash search algorithm, etc., which is not limited in the embodiment of the present invention.

[0047] In one example, the alarm source type corresponding to monitoring email 1 is a router alarm type. A binary search algorithm is used to query the alarm template library to obtain an alarm template 1 corresponding to the router alarm type.

[0048] S104. For each monitoring email, match the email body corresponding to the monitoring email with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email.

[0049] The alarm information may be information to be alarmed, which may be used to describe the alarm level or indicators that require alarms, etc. The alarm method may be a method of propagating the alarm information.

[0050] Specifically, according to the email subject of the monitoring email, the alarm template corresponding to the monitoring email is queried. The email body of the monitoring email stores the indicators of each monitoring and the values ​​corresponding to the indicators. The alarm template corresponding to the monitoring email stores the matching method of each indicator in the email body of the monitoring email. For each monitoring email, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email.

[0051] In one example, the subject of monitoring email 1 is Alarm Source Type_Router Alarm Type+Memory Usage_50%. The body of monitoring email 1 is Throughput_100Mbps. The alarm template 1 corresponding to the alarm source type of monitoring email 1 describes the alarm level corresponding to each throughput data range of the router alarm type, and the alarm mode corresponding to different alarm levels. The email body corresponding to monitoring email 1 is matched with the alarm template 1 corresponding to the alarm source type of monitoring email 1, and the alarm information of the monitoring email is obtained as the advanced alarm level and the alarm mode is telephone alarm.

[0052] S105. For each monitoring email, the alarm information of the monitoring email is issued in accordance with the alarm method corresponding to the monitoring email.

[0053] Specifically, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email, and the alarm information and alarm method corresponding to the monitoring email are obtained according to the matching method and matching result corresponding to each preset monitoring indicator in the alarm template. For each monitoring email, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email. The alarm method can be SMS alarm, telephone alarm or email alarm, etc. Different alarm information corresponds to different alarm methods. The higher the alarm level indicated by the alarm information, the more urgent the alarm is; the lower the alarm level indicated by the alarm information, the less urgent the alarm is. The alarm information contains the alarm level. The alarm level corresponds to the alarm method one by one.

[0054] In one example, the email body corresponding to monitoring email 1 is matched with alarm template 1 corresponding to the alarm source type of monitoring email 1, and the alarm information of monitoring email 1 is obtained as a high-level alarm and the alarm mode is a telephone alarm. The alarm information of monitoring email 1 is alarmed in the telephone alarm mode.

[0055] The technical solution of the embodiment of the present invention obtains a monitoring email corresponding to at least one monitoring module, and the monitoring email includes an email subject and an email body; for each monitoring email, the email subject of the monitoring email is identified to obtain the alarm source type corresponding to the monitoring email; for each alarm source type, according to the alarm source type, a query is performed in the alarm template library to obtain the alarm template corresponding to the alarm source type; for each monitoring email, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email; for each monitoring email, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email, and different alarm methods can be executed for alarm emails corresponding to different alarm source types, thereby refining the operation of email alerts and improving the accuracy of email alerts.

[0056] Optionally, before obtaining a monitoring email corresponding to at least one monitoring module, the process includes: creating a monitoring main mailbox number on the monitoring platform; obtaining at least one monitoring module; creating a connection relationship between the monitoring main mailbox number and each monitoring module based on the monitoring main mailbox number and each monitoring module; for each monitoring module, creating an automatic sending module corresponding to the monitoring module; for each monitoring module, generating a monitoring email corresponding to the monitoring module based on the data log corresponding to the monitoring module; for each monitoring module, the automatic sending module corresponding to the monitoring module sends the monitoring email corresponding to the monitoring module to the monitoring main mailbox number.

[0057] The monitoring platform may be a platform with an email interface, which has the function of receiving emails and can be used to receive monitoring emails. The monitoring primary mailbox number may be an account created on the monitoring platform that can receive monitoring emails. The automatic sending module may be a module that can automatically send monitoring emails to the monitoring primary mailbox number. The data log may be a record generated by the system or application during operation.

[0058] Specifically, a monitoring main mailbox number is created on the monitoring platform, at least one monitoring module is obtained, and a connection relationship between the monitoring main mailbox number and each monitoring module is created. By configuring the mail interface information, each monitoring module can be matched with the monitoring platform and the monitoring main account through the mail interface, so that the monitoring mail corresponding to each monitoring module can be sent to the monitoring main account. For each monitoring module, an automatic sending module corresponding to the monitoring module is created. For each monitoring module, a monitoring mail corresponding to the monitoring module is generated according to the data log corresponding to the monitoring module. For each monitoring module, the automatic sending module corresponding to the monitoring module sends the monitoring mail corresponding to the monitoring module to the monitoring main mailbox number.

[0059] In one example, a monitoring main mailbox number 1 is created on the monitoring platform, and monitoring module 1 and monitoring module 2 are obtained. A connection relationship is created between the monitoring main mailbox number 1 and monitoring module 1, and a connection relationship is created between the monitoring main mailbox number 1 and monitoring module 2. An automatic sending module 1 corresponding to monitoring module 1 is created for monitoring module 1, and an automatic sending module 2 corresponding to monitoring module 2 is created for monitoring module 2. Based on the data log corresponding to monitoring module 1, a monitoring email 1 corresponding to monitoring module 1 is generated, and based on the data log corresponding to monitoring module 2, a monitoring email 2 corresponding to monitoring module 2 is generated. The automatic sending module 1 corresponding to monitoring module 1 sends the monitoring email 1 corresponding to monitoring module 1 to the monitoring main mailbox number 1, and the automatic sending module 2 corresponding to monitoring module 2 sends the monitoring email 2 corresponding to monitoring module 2 to the monitoring main mailbox number 1.

[0060] By creating a monitoring main mailbox number on the monitoring platform, obtaining at least one monitoring module, and creating a connection relationship between the monitoring main mailbox number and each monitoring module based on the monitoring main mailbox number and each monitoring module, for each monitoring module, creating an automatic sending module corresponding to the monitoring module, and generating a monitoring email corresponding to the monitoring module based on the data log corresponding to the monitoring module, the automatic sending module corresponding to the monitoring module sends the monitoring email corresponding to the monitoring module to the monitoring main mailbox number, the monitoring module obtains the monitoring email in real time, and the automatic sending module sends the monitoring email to the monitoring main mailbox number in real time, so that timely alarms can be issued to improve alarm efficiency.

[0061] Optional monitoring platforms include: Zabbix monitoring platform.

[0062] Among them, Zabbix monitoring platform can be an open source solution based on the WEB interface to provide distributed system monitoring and network monitoring functions. Zabbix can monitor various network parameters, ensure the safe operation of the server system, and provide a flexible notification mechanism to allow system administrators to quickly locate / solve various existing problems.

[0063] In an example, a monitoring main mailbox number is created on the Zabbix monitoring platform, at least one monitoring module is obtained, and a connection relationship between the monitoring main mailbox number and each monitoring module is created based on the monitoring main mailbox number and each monitoring module. For each monitoring module, an automatic sending module corresponding to the monitoring module is created, and a monitoring email corresponding to the monitoring module is generated based on the data log corresponding to the monitoring module. The automatic sending module corresponding to the monitoring module sends the monitoring email corresponding to the monitoring module to the monitoring main mailbox number.

[0064] By creating a monitoring primary mailbox number on the Zabbix monitoring platform, a distributed system monitoring function can be provided, which can monitor multiple objects at the same time and improve the efficiency of monitoring.

[0065] Optionally, a monitoring email corresponding to the monitoring module is generated according to the data log corresponding to the monitoring module, including: obtaining the alarm source type corresponding to the monitoring module; obtaining historical alarm data and preset monitoring data corresponding to the alarm source type; identifying the historical alarm data and preset monitoring data corresponding to the alarm source type to obtain at least one monitoring indicator; screening the data log corresponding to the monitoring module to obtain monitoring data corresponding to each monitoring indicator of the monitoring module; determining each monitoring indicator and the monitoring data corresponding to each monitoring indicator as the email body corresponding to the monitoring module; generating an email subject corresponding to the monitoring module according to the alarm source type; determining the email subject and email body corresponding to the monitoring module as the monitoring email corresponding to the monitoring module.

[0066] Among them, historical alarm data can be a set of indicators that generate alarms in a historical time period. Preset monitoring data can be a set of indicators that may generate alarms preset based on industry experience. Monitoring indicators can be indicators for monitoring the objects to be monitored. Monitoring data can be the monitored values ​​corresponding to the monitoring indicators.

[0067] Specifically, the historical alarm data includes at least one indicator. The preset monitoring data includes at least one indicator. The historical alarm data and preset monitoring data corresponding to the alarm source type are identified to obtain at least one monitoring indicator, and the identification method includes natural language processing, etc. The data log corresponding to the monitoring module is screened to obtain the monitoring data corresponding to each monitoring indicator of the monitoring module. The screening method includes but is not limited to: binary search algorithm and string matching algorithm, etc., which is not limited by the embodiment of the present invention. Each monitoring indicator and the monitoring data corresponding to each monitoring indicator are determined as the email body corresponding to the monitoring module. According to the alarm source type, the email subject corresponding to the monitoring module is generated, and the email subject may also include alarm description information in addition to the alarm source type. The email subject and email body corresponding to the monitoring module are determined as the monitoring email corresponding to the monitoring module.

[0068] In one example, the alarm source type corresponding to the monitoring module 1 is obtained as a router alarm type. The historical alarm data and preset monitoring data corresponding to the alarm source type are obtained. The historical alarm data corresponding to the alarm source type is the memory occupancy rate, and the preset monitoring data corresponding to the alarm source type is the throughput. The historical alarm data and preset monitoring data corresponding to the alarm source type are identified, and the monitoring indicators are the memory occupancy rate and the throughput. The data log corresponding to the monitoring module is screened, and the monitoring data corresponding to the memory occupancy rate is 50%, and the monitoring data corresponding to the throughput is 100Mbps. Memory occupancy rate_50%, throughput_100Mbps are determined as the email body corresponding to the monitoring module; according to the alarm source type, the email subject corresponding to the monitoring module is generated as XX year XX month XX day_router alarm type. The email subject and email body corresponding to the monitoring module are determined as the monitoring email corresponding to the monitoring module.

[0069] By obtaining the alarm source type corresponding to the monitoring module, the historical alarm data and the preset monitoring data corresponding to the alarm source type, identifying the historical alarm data and the preset monitoring data corresponding to the alarm source type, obtaining at least one monitoring indicator, screening the data log corresponding to the monitoring module, obtaining the monitoring data corresponding to each monitoring indicator of the monitoring module, determining each monitoring indicator and the monitoring data corresponding to each monitoring indicator as the email body corresponding to the monitoring module, generating the email subject corresponding to the monitoring module according to the alarm source type, determining the email subject and the email body corresponding to the monitoring module as the monitoring email corresponding to the monitoring module, monitoring the monitored object through multi-dimensional monitoring indicators, the monitored object can be monitored more comprehensively, and the accuracy of email alarms can be improved.

[0070] Optionally, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email, including: obtaining an alarm contact information library; obtaining, based on the monitoring email, a module identifier of a monitoring module corresponding to the monitoring email; based on the module identifier, querying the alarm contact information library for at least one contact method corresponding to the module identifier; based on the alarm method corresponding to the monitoring email, querying a target contact method corresponding to the alarm method; and alerting the alarm information of the monitoring email according to the target contact method corresponding to the monitoring email.

[0071] The alarm contact information database may be a collection of contact information of the contact person to whom the alarm information is sent. The module identifier may be the identifier of the monitoring module, which may correspond to the object to be monitored. The target contact information may be the contact information of the person to be monitored for alarm.

[0072] Specifically, the alarm contact information library is obtained, and the contact information in the alarm contact information library can be preset. The module identifier of the monitoring module corresponding to the monitoring email is obtained, and according to the module identifier, at least one contact method corresponding to the module identifier is queried in the alarm contact information library. One monitoring module corresponds to one module identifier, and one module identifier corresponds to at least one contact method. According to the alarm method corresponding to the monitoring email, the target contact method corresponding to the alarm method is queried, and the alarm information of the monitoring email is alarmed according to the target contact method corresponding to the monitoring email.

[0073] In one example, the monitoring module identification 1 of the alarm contact information database is obtained: phone 123, SMS 456, email 789; monitoring module identification 2: phone 321, SMS 654, email 987. The module identification 1 of the monitoring module corresponding to the monitoring email is obtained, and according to the module identification 1, the contact information corresponding to the module identification 1 is queried in the alarm contact information database as phone 123, SMS 456 and email 789. According to the alarm method corresponding to the monitoring email 1 is the telephone alarm, the target contact method 123 corresponding to the telephone alarm is queried, and the alarm information of the monitoring email 1 is alarmed according to the target contact method corresponding to the monitoring email 1.

[0074] By obtaining the alarm contact information library, the module identifier of the monitoring module corresponding to the monitoring email is obtained according to the monitoring email, and at least one contact method corresponding to the module identifier is queried in the alarm contact information library according to the module identifier. According to the alarm method corresponding to the monitoring email, the target contact method corresponding to the alarm method is queried, and the alarm information of the monitoring email is alerted according to the target contact method corresponding to the monitoring email. Different alarm methods can be executed according to the alarm information for different monitored objects, thereby avoiding the situation where the monitored object cannot be alerted by multiple methods and improving the diversity of alarm methods.

[0075] Embodiment 2

[0076] Figure 2 This is a flow chart of an email alarm method provided by Embodiment 2 of the present invention. Based on the above embodiments, this embodiment of the present invention optimizes and improves the email alarm method.

[0077] Further, "matching the email body corresponding to the monitored email with the alarm template corresponding to the alarm source type of the monitored email to obtain the alarm information and alarm method of the monitored email" is refined into "screening the alarm template corresponding to the alarm source type of the monitored email to obtain the indicator matching formula corresponding to the monitored email; identifying the indicator matching formula corresponding to the monitored email to obtain at least one indicator to be matched; screening the email body corresponding to the monitored email to obtain the data to be matched corresponding to each indicator to be matched; calculating the data to be matched corresponding to each indicator to be matched corresponding to the monitored email according to the indicator matching formula to obtain the alarm information and alarm method of the monitored email" to improve the email alarm method.

[0078] It should be noted that for the parts not described in detail in the embodiments of the present invention, reference may be made to the descriptions of other embodiments.

[0079] See also Figure 2 The email alert method shown includes:

[0080] S201. Obtain a monitoring email corresponding to at least one monitoring module, where the monitoring email includes an email subject and an email body.

[0081] S202: For each monitored email, identify the email subject of the monitored email and obtain the alarm source type corresponding to the monitored email.

[0082] S203. For each alarm source type, query the alarm template library according to the alarm source type to obtain the alarm template corresponding to the alarm source type.

[0083] S204: Screen the alarm template corresponding to the alarm source type of the monitoring email to obtain the indicator matching formula corresponding to the monitoring email.

[0084] The indicator matching formula may be a matching method for monitoring indicators corresponding to the alarm source type, which may be used to match alarm information. For example, the alarm level or alarm mode may be matched.

[0085] Specifically, the alarm template corresponding to the alarm source type of the monitoring email is screened to obtain the indicator matching formula corresponding to the monitoring email, and one indicator matching formula may correspond to at least one monitoring indicator. Different monitoring indicators may correspond to different matching results.

[0086] In an example, the alarm template corresponding to the router alarm type of monitoring email 1 is screened, and the indicator matching formula corresponding to monitoring email 1 is obtained as throughput [1-9] \\ d {0,1} +.

[0087] S205: Identify the indicator matching formula corresponding to the monitored email to obtain at least one indicator to be matched.

[0088] The to-be-matched indicator may be an indicator to be matched in the email body of the monitored email.

[0089] Specifically, the indicator matching formula corresponding to the monitored email is identified to obtain at least one indicator to be matched, and the identification method may be a neural network.

[0090] In an example, the indicator matching formula throughput[1-9]\\d{0,1}+ corresponding to the monitored email 1 is identified, and the indicator to be matched is throughput.

[0091] S206: Screen the email body corresponding to the monitored email to obtain the to-be-matched data corresponding to each to-be-matched indicator.

[0092] The data to be matched may be a value in the email body of the monitored email corresponding to the indicator to be matched.

[0093] Specifically, the email body corresponding to the monitored email is screened to obtain the matching data corresponding to each matching indicator. The screening algorithm includes but is not limited to: forward maximum matching algorithm, reverse maximum matching algorithm or two-way matching algorithm, etc., which is not limited in the embodiment of the present invention.

[0094] In an example, the email body corresponding to the monitored email 1 is: throughput 10 Mbps. The email body corresponding to the monitored email 1 is screened to obtain the to-be-matched data 10 Mbps corresponding to the to-be-matched indicator throughput.

[0095] S207: Calculate the to-be-matched data corresponding to each to-be-matched indicator corresponding to the monitored email according to the indicator matching formula to obtain the alarm information and alarm method of the monitored email.

[0096] Specifically, the to-be-matched data corresponding to each to-be-matched indicator corresponding to the monitoring email is calculated according to the indicator matching formula, and it is determined whether the to-be-matched data corresponding to each to-be-matched indicator meets the data screening condition corresponding to the indicator matching formula, and the alarm information and alarm method of the monitoring email are obtained.

[0097] In an example, the email body corresponding to the monitored email 1 is: Throughput 10Mbps. The email body corresponding to the monitored email 1 is filtered to obtain the to-be-matched data corresponding to the to-be-matched indicator throughput 10Mbps. The indicator matching formula for the monitored email 1 is throughput [1-9] \\d{0,1}+_ Advanced Alarm_Phone Alarm is identified, and the indicator to be matched is throughput. The data to be matched 10 corresponding to the indicator to be matched corresponding to the monitoring email 1 is calculated according to the indicator matching formula, and 10 is within the data range corresponding to the indicator matching formula, and the alarm information advanced alarm and alarm method telephone alarm of the monitoring email are obtained.

[0098] S208. For each monitoring email, the alarm information of the monitoring email is issued in accordance with the alarm method corresponding to the monitoring email.

[0099] In an embodiment of the present invention, the alarm template corresponding to the alarm source type of the monitoring email is screened to obtain the indicator matching formula corresponding to the monitoring email; the indicator matching formula corresponding to the monitoring email is identified to obtain at least one indicator to be matched; the email body corresponding to the monitoring email is screened to obtain the data to be matched corresponding to each indicator to be matched; the data to be matched corresponding to each indicator to be matched corresponding to the monitoring email is calculated according to the indicator matching formula to obtain the alarm information and alarm method of the monitoring email.

[0100] Optionally, the indicator matching formula includes: obtaining at least one alarm source type; for each alarm source type, obtaining at least one alarm indicator, at least one alarm level and at least one alarm contact method; for each alarm source type, fusing each alarm indicator, each alarm level and each alarm contact method with a regular expression to obtain the indicator matching formula corresponding to the alarm source type.

[0101] Among them, the regular expression can be a regular expression composed of character strings, which can be used for text retrieval and matching, etc.

[0102] Specifically, the corresponding relationships among different alarm indicators, alarm levels and alarm contact methods are preset through regular expressions to obtain indicator matching formulas corresponding to different alarm source types.

[0103] In one example, the alarm source type is the router alarm type. For the router alarm type, the alarm indicator is throughput; the alarm levels are low-level alarm, medium-level alarm, and warning alarm; the alarm contact methods are SMS alarm, email alarm, and phone alarm. For the router alarm type, each alarm indicator, each alarm level, and each alarm contact method are combined with the regular expression to obtain the indicator matching formula corresponding to the alarm source type: throughput [1-9] \\d{0,1}+_ Advanced alarm_telephone alarm.

[0104] By obtaining at least one alarm source type, and for each alarm source type, obtaining at least one alarm indicator, at least one alarm level and at least one alarm contact method, for each alarm source type, integrating each alarm indicator, each alarm level and each alarm contact method with a regular expression to obtain the indicator matching formula corresponding to the alarm source type, the alarm information and alarm method can be quickly obtained for each alarm source type, thereby realizing automated alarms and improving the efficiency of alarms.

[0105] Embodiment 3

[0106] Figure 3 The structure diagram of an email alarm device provided in Embodiment 3 of the present invention is shown. The embodiment of the present invention is applicable to email alarm situations, the device can use an email alarm method, the device can be implemented in the form of hardware and / or software, and the device can be configured in an email alarm device.

[0107] See also Figure 3 The email alarm device shown includes: an email acquisition module 301, a type acquisition module 302, a template query module 303, a template matching module 304 and an email alarm module 305, wherein:

[0108] An email acquisition module 301 is used to acquire a monitoring email corresponding to at least one monitoring module, where the monitoring email includes an email subject and an email body;

[0109] The type acquisition module 302 is used to identify the email subject of each monitored email and obtain the alarm source type corresponding to the monitored email;

[0110] The template query module 303 is used to query the alarm template library for each alarm source type according to the alarm source type to obtain the alarm template corresponding to the alarm source type;

[0111] The template matching module 304 is used to match the email body corresponding to the monitored email with the alarm template corresponding to the alarm source type of the monitored email for each monitored email, so as to obtain the alarm information and alarm mode of the monitored email;

[0112] The email alarm module 305 is used to issue an alarm for each monitored email according to the alarm method corresponding to the monitored email.

[0113] The technical solution of the embodiment of the present invention obtains a monitoring email corresponding to at least one monitoring module, and the monitoring email includes an email subject and an email body; for each monitoring email, the email subject of the monitoring email is identified to obtain the alarm source type corresponding to the monitoring email; for each alarm source type, according to the alarm source type, a query is performed in the alarm template library to obtain the alarm template corresponding to the alarm source type; for each monitoring email, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email; for each monitoring email, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email, and different alarm methods can be executed for alarm emails corresponding to different alarm source types, thereby refining the operation of email alerts and improving the accuracy of email alerts.

[0114] Optionally, the template matching module 304 includes:

[0115] The template screening unit is used to screen the alarm template corresponding to the alarm source type of the monitoring email and obtain the indicator matching formula corresponding to the monitoring email;

[0116] A formula identification unit, used to identify the indicator matching formula corresponding to the monitored email, and obtain at least one indicator to be matched;

[0117] The text screening unit is used to screen the email text corresponding to the monitored email to obtain the to-be-matched data corresponding to each to-be-matched indicator;

[0118] The data calculation unit is used to calculate the to-be-matched data corresponding to each to-be-matched index corresponding to the monitored email according to the index matching formula to obtain the alarm information and alarm mode of the monitored email.

[0119] Optional, indicator matching formula, specifically used for:

[0120] Get at least one alarm source type;

[0121] For each alarm source type, obtaining at least one alarm indicator, at least one alarm level and at least one alarm contact method;

[0122] For each alarm source type, each alarm indicator, each alarm level and each alarm contact method are integrated with the regular expression to obtain the indicator matching formula corresponding to the alarm source type.

[0123] Optionally, the email alert device also includes:

[0124] An account creation module, used to create a monitoring primary mailbox number on the monitoring platform before obtaining a monitoring email corresponding to at least one monitoring module;

[0125] A data acquisition module, used to acquire at least one monitoring module;

[0126] A relationship creation module, used to create a connection relationship between the monitoring main mailbox number and each monitoring module according to the monitoring main mailbox number and each monitoring module;

[0127] The information sending module is used to create an automatic sending module corresponding to each monitoring module;

[0128] The email generation module is used to generate a monitoring email corresponding to each monitoring module according to the data log corresponding to the monitoring module;

[0129] The email sending module is used for each monitoring module. The automatic sending module corresponding to the monitoring module sends the monitoring email corresponding to the monitoring module to the monitoring main mailbox number.

[0130] Optional monitoring platforms include: Zabbix monitoring platform.

[0131] Optional, email generation module, specifically used for:

[0132] Get the alarm source type corresponding to the monitoring module;

[0133] Obtain historical alarm data and preset monitoring data corresponding to the alarm source type;

[0134] Identify historical alarm data and preset monitoring data corresponding to the alarm source type to obtain at least one monitoring indicator;

[0135] Filter the data logs corresponding to the monitoring module to obtain the monitoring data corresponding to each monitoring indicator of the monitoring module;

[0136] Determine each monitoring indicator and the monitoring data corresponding to each monitoring indicator as the email body corresponding to the monitoring module;

[0137] Generate the email subject corresponding to the monitoring module according to the alarm source type;

[0138] The email subject and email body corresponding to the monitoring module are determined as the monitoring email corresponding to the monitoring module.

[0139] Optionally, the email alert module 305 is specifically used for:

[0140] Get the alarm contact information database;

[0141] According to the monitoring email, obtain the module identifier of the monitoring module corresponding to the monitoring email;

[0142] According to the module identifier, querying at least one contact method corresponding to the module identifier in the alarm contact information database;

[0143] According to the alarm method corresponding to the monitoring email, query the target contact information corresponding to the alarm method;

[0144] The alarm information of the monitoring email will be alerted according to the target contact information corresponding to the monitoring email.

[0145] The email alert device provided in the embodiment of the present invention can execute the email alert method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the email alert method.

[0146] Embodiment 4

[0147] Figure 4 A schematic structural diagram of an email alert device 400 that can be used to implement an embodiment of the present invention is shown.

[0148] like Figure 4 As shown, the mail alert device 400 includes at least one processor 401, and a memory connected to the at least one processor 401, such as a read-only memory (ROM) 402, a random access memory (RAM) 403, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 401 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 402 or the computer program loaded from the storage unit 408 to the random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the mail alert device 400 can also be stored. The processor 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0149] Multiple components in the mail alert device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the mail alert device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0150] Processor 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of processor 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. Processor 401 executes the various methods and processes described above, such as the email alert method.

[0151] In some embodiments, the email alert method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the email alert device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the processor 401, one or more steps of the email alert method described above may be performed. Alternatively, in other embodiments, the processor 401 may be configured as the email alert method in any other appropriate manner (e.g., by means of firmware).

[0152] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0153] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0154] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0155] To provide interaction with a user, the systems and techniques described herein may be implemented on a mail alert device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the mail alert device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0156] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0157] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS (Virtual Private Server) services.

[0158] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0159] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. An email warning method, characterized in that: The method comprises: Obtaining a monitoring email corresponding to at least one monitoring module, where the monitoring email includes an email subject and an email body; For each of the monitoring emails, the email subject of the monitoring email is identified to obtain the alarm source type corresponding to the monitoring email; For each of the alarm source types, according to the alarm source type, query in the alarm template library to obtain the alarm template corresponding to the alarm source type; For each of the monitoring emails, the email body corresponding to the monitoring email is matched with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email; For each monitoring email, the alarm information of the monitoring email is alerted according to the alarm method corresponding to the monitoring email.

2. The method according to claim 1, characterized in that The step of matching the email body corresponding to the monitoring email with the alarm template corresponding to the alarm source type of the monitoring email to obtain the alarm information and alarm method of the monitoring email includes: Screening the alarm template corresponding to the alarm source type of the monitoring email to obtain the indicator matching formula corresponding to the monitoring email; Identify the indicator matching formula corresponding to the monitored email to obtain at least one indicator to be matched; Screening the email body corresponding to the monitored email to obtain the to-be-matched data corresponding to each to-be-matched indicator; The to-be-matched data corresponding to each of the to-be-matched indicators corresponding to the monitoring email are calculated according to the indicator matching formula to obtain the alarm information and alarm method of the monitoring email.

3. The method according to claim 2, characterized in that The indicator matching formula includes: Get at least one alarm source type; For each of the alarm source types, obtaining at least one alarm indicator, at least one alarm level and at least one alarm contact method; For each of the alarm source types, each of the alarm indicators, each of the alarm levels and each of the alarm contact methods are integrated with a regular expression to obtain an indicator matching formula corresponding to the alarm source type.

4. The method according to claim 1, characterized in that: Before obtaining the monitoring email corresponding to at least one monitoring module, the following steps are included: Create a monitoring primary mailbox number on the monitoring platform; Obtain at least one monitoring module; According to the monitoring main mailbox number and each of the monitoring modules, a connection relationship between the monitoring main mailbox number and each of the monitoring modules is established; For each of the monitoring modules, create an automatic sending module corresponding to the monitoring module; For each monitoring module, generating a monitoring email corresponding to the monitoring module according to the data log corresponding to the monitoring module; For each of the monitoring modules, the automatic sending module corresponding to the monitoring module sends the monitoring email corresponding to the monitoring module to the monitoring main mailbox number.

5. The method according to claim 4, characterized in that The monitoring platform comprises: Zabbix monitoring platform.

6. The method according to claim 4, characterized in that The step of generating a monitoring email corresponding to the monitoring module according to the data log corresponding to the monitoring module includes: Obtain the alarm source type corresponding to the monitoring module; Obtaining historical alarm data and preset monitoring data corresponding to the alarm source type; Identify historical alarm data and preset monitoring data corresponding to the alarm source type to obtain at least one monitoring indicator; Screening the data log corresponding to the monitoring module to obtain monitoring data corresponding to each monitoring indicator of the monitoring module; Determine each of the monitoring indicators and the monitoring data corresponding to each of the monitoring indicators as the body of the email corresponding to the monitoring module; Generate an email subject corresponding to the monitoring module according to the alarm source type; The email subject and email body corresponding to the monitoring module are determined as the monitoring email corresponding to the monitoring module.

7. The method according to claim 1, characterized in that The step of alerting the alarm information of the monitoring email according to the alarm mode corresponding to the monitoring email includes: Get the alarm contact information database; According to the monitoring email, obtaining a module identifier of the monitoring module corresponding to the monitoring email; According to the module identifier, querying at least one contact method corresponding to the module identifier in the alarm contact information database; According to the alarm method corresponding to the monitoring email, query the target contact method corresponding to the alarm method; The alarm information of the monitoring email is alerted according to the target contact information corresponding to the monitoring email.

8. An email warning device, characterized in that: The device comprises: An email acquisition module, used to acquire a monitoring email corresponding to at least one monitoring module, wherein the monitoring email includes an email subject and an email body; A type acquisition module, for identifying the email subject of each monitoring email, and obtaining the alarm source type corresponding to the monitoring email; A template query module, for querying the alarm template library for each alarm source type according to the alarm source type, to obtain the alarm template corresponding to the alarm source type; A template matching module is used to match the email body corresponding to the monitored email with the alarm template corresponding to the alarm source type of the monitored email for each monitored email, so as to obtain the alarm information and alarm mode of the monitored email; The email alarm module is used to issue an alarm for each of the monitored emails according to the alarm method corresponding to the monitored email.

9. An email alert device, characterized in that: The device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the email alert method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the email alert method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Processing device and method for anti-junk mails

    CN101005462A

  • Alarm receiving information plan processing method and system and storage medium

    CN114218915A

  • Alarm information processing method and device and storage medium

    CN114398230A

  • Mail management method and device, electronic equipment and computer readable storage medium

    CN116957527A

  • Service line monitoring alarm method and device

    CN117032131A