A method, device, electronic device and storage medium for processing warning information

By acquiring and processing alarm information from F5 devices, and using dynamic association dictionaries and preset rules to classify and forward alarms, the problem of invalid and repeated alarms is solved, and the processing efficiency and accuracy of alarm information is improved.

CN117155755BActive Publication Date: 2024-09-03BEIJING YOUTEJIE INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311103425.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2024-09-03
Estimated Expiration
2043-08-29

AI Technical Summary

Technical Problem

In the existing technology, when the F5 device processes the alarm information of the business server, it will generate a large amount of invalid and repeated alarm information, making it difficult for the operation and maintenance party to distinguish real alarms, and increasing the complexity and load of alarm information processing.

Method used

By obtaining the alarm subject field and dynamic association dictionary of the alarm information, the alarm category is determined, and the data is processed and forwarded according to the preset processing rules to realize the classification and automatic forwarding of alarm information and avoid the sending of invalid and repeated alarms.

Benefits of technology

It reduces the amount of alarm information sent, avoids alarm storms, ensures that the operation and maintenance side can obtain real and important alarm information in a timely manner, and improves the efficiency and effect of alarm processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117155755B
    Figure CN117155755B
Patent Text Reader

Abstract

The present invention discloses an alarm information processing method, device, electronic device and storage medium, which relates to the field of equipment operation and maintenance. The method comprises: obtaining the alarm subject field of the first alarm information; obtaining the equipment association information of the first alarm information according to the alarm subject field and the dynamic association dictionary, and obtaining the alarm category of the first alarm information according to the alarm subject field; performing data processing on the first alarm information through a preset processing rule matching the alarm category and the equipment association information, so as to perform an alarm forwarding operation according to the data processing result. The technical scheme of the embodiment of the present invention not only realizes the classified acquisition and automatic forwarding of alarm information, but also avoids the redundant issuance of invalid alarms and repeated alarms, which not only reduces the amount of alarm information sent, but also avoids the generation of alarm storm problems, so that the operation and maintenance party can obtain real alarms and important alarms in a targeted manner, and improves the alarm effect of the alarm information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of equipment operation and maintenance, and in particular to an alarm information processing method, device, electronic equipment and storage medium. Background Art

[0002] When providing external business services, enterprises often provide complete business functions through business servers distributed in different regions. In order to ensure the continuous availability and security of business services, it is usually necessary to use F5 devices to build business server clusters in different regions.

[0003] When F5 devices perform load balancing, virtual proxy and other operations on the ports of business servers in the current area, they also monitor the various alarm information generated by the business servers, and then send the alarm information directly to various operation and maintenance parties, or send the alarm information to the alarm processing platform, which will complete the forwarding of the alarm information.

[0004] However, the above alarm information sending mechanism often generates a large number of alarm messages, and the number of alarm messages sent in a single day can even reach tens of thousands. This not only leads to the redundant sending of a large number of invalid alarms and repeated alarms, but also makes it impossible for the operation and maintenance party to distinguish between real alarms and important alarms in a timely manner. Summary of the invention

[0005] The present invention provides an alarm information processing method, device, electronic equipment and storage medium to solve the problem of excessive amount of alarm information.

[0006] According to one aspect of the present invention, there is provided a method for processing alarm information, comprising:

[0007] In response to obtaining the first alarm information, obtaining an alarm body field of the first alarm information;

[0008] According to the alarm subject field and the dynamic association dictionary, obtain the device association information of the first alarm information, and according to the alarm subject field, obtain the alarm category of the first alarm information;

[0009] The first alarm information is subjected to data processing by a preset processing rule that matches the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result.

[0010] According to another aspect of the present invention, there is provided an alarm information processing device, comprising:

[0011] An alarm subject acquisition module, configured to acquire an alarm subject field of the first alarm information in response to acquiring the first alarm information;

[0012] An alarm category acquisition module, used to acquire device association information of the first alarm information according to the alarm subject field and the dynamic association dictionary, and acquire the alarm category of the first alarm information according to the alarm subject field;

[0013] The alarm forwarding execution module is used to perform data processing on the first alarm information through a preset processing rule matching the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result.

[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0015] at least one processor; and

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

[0017] 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 alarm information processing method described in any embodiment of the present invention.

[0018] 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 alarm information processing method described in any embodiment of the present invention when executed.

[0019] The technical solution of the embodiment of the present invention, after obtaining the device association information of the first alarm information according to the alarm body field and the dynamic association dictionary of the first alarm information, and obtaining the alarm category of the first alarm information according to the alarm body field, performs data processing on the first alarm information through a preset processing rule that matches the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result, thereby realizing the classified acquisition and automatic forwarding of the alarm information, and avoiding the redundant issuance of invalid alarms and repeated alarms, which not only reduces the amount of alarm information sent, but also avoids the occurrence of alarm storm problems, so that the operation and maintenance party can obtain real alarms and important alarms in a targeted manner, and improves the alarm effect of the alarm information.

[0020] 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

[0021] 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.

[0022] Figure 1A is a schematic diagram of an application scenario of the alarm information processing method provided by an embodiment of the present invention;

[0023] Figure 1B is a flowchart of an alarm information processing method provided according to Embodiment 1 of the present invention;

[0024] Figure 2 is a flowchart of an alarm information processing method provided according to Embodiment 2 of the present invention;

[0025] Figure 3 is a flowchart of a method for processing alarm information provided according to Embodiment 3 of the present invention;

[0026] Figure 4 is a structural diagram of an alarm information processing device provided according to a fourth embodiment of the present invention;

[0027] Figure 5 It is a structural schematic diagram of an electronic device for implementing the alarm information processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] 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.

[0029] 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.

[0030] The present invention provides a method for processing alarm information, which can be applied to Figure 1A In the application scenario shown, Figure 1A The alarm processing platform in the system is executed, and the alarm processing platform can be configured in one or more electronic devices; the business cluster is composed of one or more business servers, and each business server is used to process one or more types of specific businesses, such as financial transaction business, user management business, asset management business, etc.; each business cluster is connected to a matching F5 cluster communication, so as to build a cross-regional cluster through the F5 cluster, and then realize load balancing and virtual proxy of different business ports in the region, so as to ensure the business sustainability of each business cluster and the operation of disaster recovery switching function; wherein, each F5 cluster includes one or more F5 devices; the alarm processing platform is connected to one or more F5 clusters communication, and after the F5 cluster detects the alarm information in the business cluster or receives the alarm information sent by the business cluster, it sends the above alarm information to the alarm processing platform.

[0031] The F5 device is a related facility for wide area network link traffic management used to improve link performance and availability. It sends alarm information based on the Trap method of the Simple Network Management Protocol (SNMP), and configures the IP address and group name of the alarm processing platform (that is, the SNMP service identifier of the alarm processing platform) at the corresponding output port (for example, port 162). The alarm processing platform is installed with a Linux operating system, thereby constructing a data transmission path from the F5 device to the alarm processing platform; optionally, in an embodiment of the present invention, the number of F5 clusters and service clusters is not specifically limited, and the number of F5 devices in the F5 cluster and the number of service servers in the service cluster are not specifically limited, that is, Figure 1A The quantity parameters J, K, L, M, N, P and Q in are all natural numbers greater than or equal to 1.

[0032] Embodiment 1

[0033] Figure 1B This is a flowchart of an alarm information processing method provided in the first embodiment of the present invention. This embodiment can be applied to data processing of alarm information according to the alarm category and device association information of the alarm information. The alarm information processing device can be implemented in the form of hardware and / or software. The alarm information processing device is configured in an alarm processing platform, and the alarm processing platform can be configured in electronic devices such as servers. Figure 1B As shown, the method includes:

[0034] S101. In response to obtaining first alarm information, obtain an alarm body field of the first alarm information.

[0035] F5 devices can send out standard format alarm information in the form of hexadecimal data, and the alarm processing platform can save the above hexadecimal data in a Hex format file; the content of the Hex file is encoded in a fixed pattern, and each line represents a Hex record; by parsing the Hex file, the hexadecimal data can be converted into a standard alarm text in a specified format, for example, into a standard digital alarm text in 8-bit (Universal Character Set / Unicode TransformationFormat, UTF-8) format.

[0036] Since the alarm information sent by F5 equipment is all standardized data information, the types of its constituent fields and the positions of each field in the character sequence (i.e., serial number) are all in a unified format, so the alarm body field in each alarm information also appears in the same position in the alarm information; the alarm processing platform parses the alarm body field at the specified position in the first alarm information through a regular parsing method; among them, the alarm body field may include a service address field, a service port field, an alarm feature field, an alarm duration field, and a pool name field, etc.

[0037] The business address field is the IP (Internet Protocol) address of the business server where the alarm is located; the business port field is the port identifier of the business server where the alarm is located; the alarm feature field is the descriptive information related to the current alarm, which indicates the specific alarm cause and alarm reason; the alarm duration field indicates time information such as the start time and duration of the alarm, for example, the offline duration, login duration, high load state duration, etc.; the pool (POOL) name field indicates the thread pool (Thread Pool) and resource pool (Resource Pool) involved in the current alarm information.

[0038] S102: Acquire device association information of the first alarm information according to the alarm subject field and the dynamic association dictionary, and acquire the alarm category of the first alarm information according to the alarm subject field.

[0039] The dynamic association dictionary records the relevant device information of each F5 device in the F5 cluster and each business server in the business cluster, as well as the association relationship between devices; for example, the cluster name of the F5 cluster and the business cluster; the number, model and type of F5 devices included in the F5 cluster, and the number, model and type of business servers included in the business cluster; the IP address, port information and location of the F5 device and business server; and also includes the identity information of the F5 device, that is, whether the F5 device is a master node device or a backup node device.

[0040] In particular, since the identity information of the F5 device will continue to change according to changes in business needs, and at the same time, the device address and device port of the F5 device, as well as the business address and business port of the business server may also continue to change with changes in the network status, the dynamic association dictionary is in a dynamic update state. After each alarm information is obtained and the alarm body field of the alarm information is obtained, the update operation of the dynamic association dictionary can be performed in advance, and then the device association information can be obtained according to the dynamic association dictionary to ensure that accurate device association information is obtained. Therefore, according to the alarm body field (for example, the IP address of the business server), the device association information matching the IP address is queried through the dynamic association dictionary, and the device association information can be used as additional information of the first alarm information.

[0041] Alarm categories may include port failure alarm, port recovery alarm, device status alarm and background login alarm, etc.; among them, port failure alarm is an alarm issued when the port is unavailable due to a line failure (i.e., the port status is "down"); when the port is started and in normal working state, the port status is "up"; port recovery alarm is an alarm issued when the port recovers from an unavailable failure state to a normal working state; device status alarm is an alarm generated when there is an abnormal operation of the equipment in the business server, for example, the specified functional component cannot run, the equipment operation load is too high, etc.; background login alarm is a login alarm generated when a user logs in to the business server.

[0042] After obtaining the alarm subject field of the first alarm information, the alarm category to which the first alarm information belongs can be determined by comparing the alarm subject field with the keywords of each alternative alarm category. The alarm classification model that has been pre-trained can also be used to take the alarm subject field as input data, predict the classification result of the alarm subject field through the alarm classification model, and use the classification result as the alarm category of the first alarm information.

[0043] Optionally, in an embodiment of the present invention, obtaining the alarm category of the first alarm information according to the alarm body field includes: obtaining the alarm category of the first alarm information according to the number of hits or hit rates of the alarm body field in the alarm keyword sets corresponding to the respective alternative alarm categories. Specifically, based on the data characteristics of each alternative alarm category, multiple alarm keywords may be pre-configured for each alternative alarm category, and the number of alarm keywords between the various alarm categories may be equal or may not be equal. After obtaining the alarm body field of the first alarm information, the alarm category to which the first alarm information belongs is determined based on the number of hit alarm keywords or the hit rate of the alarm body field in the alarm keyword sets of each alarm category, thereby achieving alarm classification under multiple alarm keywords and improving the classification accuracy of the first alarm information.

[0044] S103: Perform data processing on the first alarm information according to a preset processing rule that matches the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result.

[0045] The preset processing rules may include various data processing rules such as data filtering rules, data cleaning rules, data aggregation rules and data deletion rules; for example, the data filtering rules may include filtering the fields of a specified sequence of the first alarm information, retaining only some fields that have practical significance (for example, retaining only the alarm body field or some fields in the alarm body field); the data cleaning rules may include data consistency detection and missing information filling, for example, filling in some missing fields in the first alarm information through device association information; data aggregation rules, including merging multiple alarm information and generating new alarm information based on multiple alarm information; in an embodiment of the present invention, there is no specific limitation on the data processing types included in the preset processing rules.

[0046] Depending on the alarm category, different types of data processing operations are performed on the alarm information; for example, if the alarm category is an equipment safety alarm, the equipment-related information is merged with the first alarm information, and the merged alarm information is forwarded to the corresponding operation and maintenance party to ensure the data integrity of the equipment safety alarm; if the alarm category is an operating status alarm, it reflects the general changes in the operating status of the equipment, and the first alarm information is delayed for sending processing. When the same alarm information is obtained again, the first alarm information is sent again to avoid false alarms caused by accidental changes in equipment status.

[0047] The relevant information of the operation and maintenance party can be obtained through the service information table stored in the configuration management database (CMDB); for example, according to the business address, business port and business service type in the alarm body field, the contact information of the corresponding operation and maintenance personnel is queried through the CMDB, and the first alarm information or aggregated information is forwarded to the corresponding operation and maintenance party through various communication methods such as email, SMS, and telephone.

[0048] Optionally, in an embodiment of the present invention, the data processing of the first alarm information is performed through a preset processing rule that matches the alarm category and the device association information, including: if the sender of the first alarm information is a master node device, retaining the first alarm information; if the sender of the first alarm information is a standby node device, deleting the first alarm information. Specifically, in the alarm mechanism of the F5 device, after the F5 device as the master node sends an alarm message, another F5 device as the standby node will often send the same alarm message to ensure the consistency of the backup data. In fact, the above two alarm messages are exactly the same, that is, the alarm body field and the device association information are the same. At this time, only the alarm message sent by the master node is retained to avoid repeated issuance of alarm messages, reduce the alarm information processing volume of the alarm processing platform, and improve the alarm effect of the alarm information.

[0049] The technical solution of the embodiment of the present invention, after obtaining the device association information of the first alarm information according to the alarm body field and the dynamic association dictionary of the first alarm information, and obtaining the alarm category of the first alarm information according to the alarm body field, performs data processing on the first alarm information through a preset processing rule that matches the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result, thereby realizing the classified acquisition and automatic forwarding of the alarm information, and avoiding the redundant issuance of invalid alarms and repeated alarms, which not only reduces the amount of alarm information sent, but also avoids the occurrence of alarm storm problems, so that the operation and maintenance party can obtain real alarms and important alarms in a targeted manner, and improves the alarm effect of the alarm information.

[0050] Embodiment 2

[0051] Figure 2 This is a flowchart of an alarm information processing method provided by Embodiment 2 of the present invention. The relationship between this embodiment and the above embodiment is that after determining that the alarm type of the first alarm information is a port failure alarm or a port recovery alarm, it continues to detect whether the alarm is a normal network fluctuation alarm. Figure 2 As shown, the method specifically includes:

[0052] S201. In response to obtaining first alarm information, obtain an alarm body field of the first alarm information; and execute S202.

[0053] S202. According to the alarm body field and the dynamic association dictionary, obtain the device association information of the first alarm information, and according to the alarm body field, obtain the alarm category of the first alarm information; if it is determined that the alarm category of the first alarm information is a port failure alarm, execute S203; if it is determined that the alarm category of the first alarm information is a port recovery alarm, execute S206.

[0054] S203, setting the first alarm information to a waiting state, and setting a waiting time for the first alarm information; executing S204.

[0055] S204. Determine whether second alarm information matching the first alarm information is obtained within the waiting time; wherein, the second alarm information is the same as the device association information of the first alarm information, and the alarm category of the second alarm information is a port recovery alarm; if second alarm information matching the first alarm information is obtained within the waiting time, execute S205; if second alarm information matching the first alarm information is not obtained within the waiting time, execute S208.

[0056] If it is determined that the alarm category of the first alarm information is a port failure alarm, the first alarm information will not be forwarded temporarily, but the first alarm information will be set to a waiting status for processing, and a waiting time will be set for it. The waiting time can be pre-configured as needed, for example, the waiting time can be set to 1 minute; determine whether there is a second alarm information of the same type in a continuous time period after the current moment; wherein the second alarm information has the same device association information as the first alarm information, which means that the second alarm information and the first alarm information are port status alarms issued by the same business server for the same business port and for the same business service, and the difference is that the alarm category of the first alarm information is a port failure alarm, and the alarm category of the second alarm information is a port recovery alarm.

[0057] S205: Aggregate the first alarm information and the second alarm information into a network fluctuation alarm, and send the network fluctuation alarm to a corresponding operation and maintenance party.

[0058] If there is a second alarm message, since the interval between the second alarm message and the first alarm message is short, and the alarm message is issued by the same business server for the same business port and for the same business service, then it is determined that the disconnection and recovery of the port is caused by normal network fluctuation behavior. At this time, the first alarm message and the adjacent second alarm message located after it are aggregated into a network fluctuation alarm, and only the network fluctuation alarm is sent to the corresponding operation and maintenance party. Neither the first alarm message nor the second alarm message needs to be forwarded, thereby achieving compression of the number of alarm messages.

[0059] S206. Determine whether there is third alarm information matching the first alarm information within the preceding association time; wherein the third alarm information is the same as the device association information of the first alarm information, and the alarm category of the third alarm information is port failure alarm, and the third alarm information is in a waiting state; if there is third alarm information matching the first alarm information within the preceding association time, execute S207; if there is no third alarm information matching the first alarm information within the preceding association time, execute S208.

[0060] If it is determined that the alarm category of the first alarm information is a port recovery alarm, it is also determined whether there is a third alarm information in the continuous time period before the current moment; wherein the pre-association time is the same as the duration of the above-mentioned waiting time; the third alarm information is the same as the device association information of the first alarm information, indicating that the third alarm information and the first alarm information are also alarm information issued by the same business server for the same business port and for the same business service, and the only difference is that the alarm category of the first alarm information is a port recovery alarm, and the alarm category of the third alarm information is a port failure alarm. In addition, as described in the aforementioned technical solution, the third alarm information with an alarm category of a port failure alarm has been set to a waiting status for processing.

[0061] S207: Aggregate the first alarm information and the third alarm information into a network fluctuation alarm, and send the network fluctuation alarm to a corresponding operation and maintenance party.

[0062] Similarly, if there is a third alarm message, since the interval between the third alarm message and the first alarm message is short, and it is port status information issued by the same business server for the same business port and for the same business service, then it is determined that the disconnection and recovery of the port are also caused by normal network fluctuation behavior. At this time, the first alarm message and the third alarm message before it are aggregated into a network fluctuation alarm, and only the network fluctuation alarm is sent to the corresponding operation and maintenance party. Neither the first alarm message nor the third alarm message needs to be forwarded, thereby also achieving compression of the number of alarm messages.

[0063] S208: Send the first alarm information to the corresponding operation and maintenance party.

[0064] If the corresponding third alarm information is not obtained before the first alarm information with the alarm category of port recovery alarm, or the corresponding second alarm information is not obtained after the first alarm information with the alarm category of port failure alarm, it means that the port failure represented by the first alarm information has lasted for a long time, and there is obviously a port communication abnormality. At this time, the first alarm information is promptly forwarded to the corresponding operation and maintenance party to ensure that the port status alarm is issued in a timely manner.

[0065] Optionally, in an embodiment of the present invention, the first alarm information is processed by a preset processing rule that matches the alarm category and the device association information to perform an alarm forwarding operation based on the data processing result, including at least one of the following: updating the count value of the corresponding first counter according to the current network fluctuation alarm until the count value of the first counter is greater than or equal to a preset fluctuation threshold, and sending the current network fluctuation alarm to the corresponding operation and maintenance party; obtaining the matching waiting time and / or lead association time based on the device association information of the first alarm information.

[0066] Specifically, if the number of network fluctuation alarms is small, it means that the above fluctuations of the port are normal network behaviors, and it is not necessary to send each network fluctuation alarm to the corresponding operation and maintenance party. Therefore, when the count value of the first counter corresponding to the network fluctuation alarm does not reach the preset fluctuation threshold, the forwarding operation of the network fluctuation alarm will not be executed; and when the count value of the first counter corresponding to the network fluctuation alarm reaches the preset fluctuation threshold, the network fluctuation alarm will be sent to the corresponding operation and maintenance party, so as to avoid frequent alarm information caused by normal network fluctuation behavior.

[0067] Depending on the type of business service carried by the business server where the first alarm information is located, different waiting times and lead-association times can be assigned to the alarm information in different business servers; for example, if the business server is used to carry transaction services, then the business server must maintain a high degree of real-time performance. Therefore, the alarm information issued by each port in the business server can be set to a shorter waiting time and lead-association time to ensure the timely issuance of port failure alarms and port recovery alarms; if the business server is used to carry data backup services, it can adapt to longer and time-consuming network fluctuations. The alarm information issued by each port in the business server can be set to a longer waiting time and lead-association time to reduce the number of port status alarms issued by the above-mentioned business servers.

[0068] According to the technical solution of the embodiment of the present invention, if there is a second alarm information with the alarm category of a port recovery alarm after the first alarm information with the alarm category of a port failure alarm, or there is a third alarm information with the alarm category of a port failure alarm before the first alarm information with the alarm category of a port recovery alarm, then an aggregation operation of the network fluctuation alarm is performed, and only the network fluctuation alarm is sent to the corresponding operation and maintenance party. This not only achieves the compression of the number of alarm information, but also the network fluctuation alarm marked as normal network behavior, which also reflects that the alarm information is only a general notification message, which helps to guide the operation and maintenance party to view other alarm information with higher priority.

[0069] Embodiment 3

[0070] Figure 3 A flowchart of creating a display chart acceleration task is provided in the third embodiment of the present invention. The relationship between this embodiment and the above embodiment is that the alarm category of the first alarm information obtained is a port failure alarm or a port recovery alarm, such as Figure 3 As shown, the method specifically includes:

[0071] S301. In response to obtaining first alarm information, obtain an alarm body field of the first alarm information; and execute S302.

[0072] S302. According to the alarm subject field and the dynamic association dictionary, obtain the device association information of the first alarm information, and according to the alarm subject field, obtain the alarm category of the first alarm information; if it is determined that the alarm category of the first alarm information is the specified alarm category, execute S303.

[0073] S303, determine whether the count value of the second counter matching the first alarm information reaches a preset quantity threshold; wherein the specified alarm category includes a device status alarm or a background login alarm; if so, execute S304; if not, execute S305.

[0074] S304: Execute the forwarding operation of the first alarm information, and accumulate the count value of the second counter.

[0075] The data processing platform configures a counter for the business port of each business server, respectively, for the device status alarm and background login alarm issued by the same business service. The counter is used to record the number of triggers of this type of alarm information; the preset number threshold can be pre-configured as needed. For example, the preset number threshold can be set to 3 times, that is, when the first alarm information is sent less than 3 times, the obtained first alarm information can be directly forwarded, and the count value of the second counter will be increased by 1 after forwarding.

[0076] S305, determine whether the timing value of the first timer matching the second counter reaches a preset time threshold; if not, execute S306; if so, execute S307.

[0077] The data processing platform configures a timer for each business port of each business server, for the device status alarm and background login alarm issued for the same business service, and the timer is used to record the last issuance time of the alarm information and the interval time from the current time; the timer matches the above-mentioned counter one by one; when the count value of the second counter reaches the preset quantity threshold, the first timer starts timing; the preset time threshold can be pre-configured as needed, for example, the preset time threshold can be set to 2 hours.

[0078] S306: Do not forward the first alarm information.

[0079] As described in the above technical solution, when the first alarm information has been sent out 3 times cumulatively, the timing of the first timer is started, and the first alarm information will not be sent repeatedly within the next 2 hours.

[0080] S307: Execute the forwarding operation of the first alarm information, and reset the count value of the second counter to zero.

[0081] As described in the above technical solution, after the timing value of the first timer reaches 2 hours, the second counter is reset to zero to re-count the number of issued first alarm information.

[0082] The technical solution of the embodiment of the present invention, after determining that the alarm category of the first alarm information is a device status alarm or a background login alarm, suppresses the forwarding of the alarm information from two dimensions, namely, the number of sending and the sending cycle, through the joint use of a counter and a timer, thereby achieving the timely sending of device status alarms and background login alarms, avoiding the occurrence of alarm storms caused by an excessive number of alarm messages, and improving the alarm effect of the alarm information.

[0083] Embodiment 4

[0084] Figure 4 is a structural block diagram of an alarm information processing device provided by Embodiment 4 of the present invention, such as Figure 4 As shown, the device specifically includes:

[0085] The alarm subject acquisition module 401 is used to obtain the alarm subject field of the first alarm information in response to obtaining the first alarm information;

[0086] The alarm category acquisition module 402 is used to acquire the device association information of the first alarm information according to the alarm subject field and the dynamic association dictionary, and acquire the alarm category of the first alarm information according to the alarm subject field;

[0087] The alarm forwarding execution module 403 is used to perform data processing on the first alarm information by using a preset processing rule that matches the alarm category and the device association information, so as to perform an alarm forwarding operation according to the data processing result.

[0088] The technical solution of the embodiment of the present invention, after obtaining the device association information of the first alarm information according to the alarm body field and the dynamic association dictionary of the first alarm information, and obtaining the alarm category of the first alarm information according to the alarm body field, performs data processing on the first alarm information through a preset processing rule that matches the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result, thereby realizing the classified acquisition and automatic forwarding of the alarm information, and avoiding the redundant issuance of invalid alarms and repeated alarms, which not only reduces the amount of alarm information sent, but also avoids the occurrence of alarm storm problems, so that the operation and maintenance party can obtain real alarms and important alarms in a targeted manner, and improves the alarm effect of the alarm information.

[0089] Optionally, the alarm forwarding execution module 403 is specifically used to set the first alarm information to a waiting processing state and set a waiting time for the first alarm information if it is determined that the alarm category of the first alarm information is a port failure alarm; determine whether second alarm information matching the first alarm information is obtained within the waiting time; wherein the second alarm information is the same as the device association information of the first alarm information, and the alarm category of the second alarm information is a port recovery alarm; if second alarm information matching the first alarm information is obtained within the waiting time, aggregate the first alarm information and the second alarm information into a network fluctuation alarm, and send the network fluctuation alarm to the corresponding operation and maintenance party; if the second alarm information matching the first alarm information is not obtained within the waiting time, send the first alarm information to the corresponding operation and maintenance party.

[0090] Optionally, the alarm forwarding execution module 403 is specifically used to determine whether there is a third alarm information matching the first alarm information within the pre-association time if it is determined that the alarm category of the first alarm information is a port recovery alarm; wherein the third alarm information is the same as the device association information of the first alarm information, and the alarm category of the third alarm information is a port failure alarm, and the third alarm information is in a waiting for processing state; if there is a third alarm information matching the first alarm information within the pre-association time, the first alarm information and the third alarm information are aggregated into a network fluctuation alarm, and the network fluctuation alarm is sent to a corresponding operation and maintenance party; if there is no third alarm information matching the first alarm information within the pre-association time, the first alarm information is sent to the corresponding operation and maintenance party.

[0091] Optionally, the alarm forwarding execution module 403 is specifically used to update the count value of the corresponding first counter according to the current network fluctuation alarm, until the count value of the first counter is greater than or equal to a preset fluctuation threshold, and then send the current network fluctuation alarm to the corresponding operation and maintenance party; according to the device association information of the first alarm information, obtain the matching waiting time and / or lead association time.

[0092] Optionally, the alarm forwarding execution module 403 is specifically used to, if it is determined that the alarm category of the first alarm information is a device status alarm or a background login alarm, determine whether the count value of the second counter matching the first alarm information has reached a preset quantity threshold; if it is determined that the count value of the second counter has not reached the preset quantity threshold, execute the forwarding operation of the first alarm information, and accumulate the count value of the second counter; if it is determined that the count value of the second counter has reached the preset quantity threshold, determine whether the timing value of the first timer matching the second counter has reached the preset time threshold; if it is determined that the timing value of the first timer has reached the preset time threshold, execute the forwarding operation of the first alarm information, and reset the count value of the second counter to zero; if it is determined that the timing value of the first timer has reached the preset time threshold, do not execute the forwarding operation of the first alarm information.

[0093] Optionally, the alarm category acquisition module 402 is specifically configured to acquire the alarm category of the first alarm information according to the alarm subject field and the hit number or hit rate in the alarm keyword set corresponding to each candidate alarm category.

[0094] Optionally, the alarm forwarding execution module 403 is specifically configured to retain the first alarm information if the sender of the first alarm information is a master node device; and delete the first alarm information if the sender of the first alarm information is a standby node device.

[0095] The above device can execute the alarm information processing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method. For technical details not described in detail in this embodiment, please refer to the alarm information processing method provided by any embodiment of the present invention.

[0096] Embodiment 5

[0097] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0098] like Figure 5As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0099] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0100] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the alarm information processing method.

[0101] In some embodiments, the alarm information processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit. In some embodiments, part or all of the computer program may be loaded and / or installed on a heterogeneous hardware accelerator via a ROM and / or a communication unit. When the computer program is loaded into RAM and executed by a processor, one or more steps of the alarm information processing method described above may be performed. Alternatively, in other embodiments, the processor may be configured to execute the alarm information processing method in any other appropriate manner (e.g., by means of firmware).

[0102] 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), load 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.

[0103] 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.

[0104] 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.

[0105] To provide interaction with a user, the systems and techniques described herein may be implemented on a heterogeneous hardware accelerator having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) through which a user can provide input to the heterogeneous hardware accelerator. Other types of devices may also be used to provide interaction with a 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).

[0106] 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.

[0107] 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 client and server relationship 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 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 services.

[0108] 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.

[0109] 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. A method for processing alarm information, characterized in that: include: In response to obtaining the first alarm information, obtaining an alarm body field of the first alarm information; According to the alarm subject field and the dynamic association dictionary, obtain the device association information of the first alarm information, and according to the alarm subject field, obtain the alarm category of the first alarm information; Performing data processing on the first alarm information by using a preset processing rule that matches the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result; The performing data processing on the first alarm information by using a preset processing rule matching the alarm category and the device association information to perform an alarm forwarding operation according to the data processing result specifically includes: If it is determined that the alarm type of the first alarm information is a port failure alarm, setting the first alarm information to a waiting state and setting a waiting time for the first alarm information; Determine whether second alarm information matching the first alarm information is obtained within the waiting time; wherein the second alarm information is the same as the device association information of the first alarm information, and the alarm category of the second alarm information is a port recovery alarm; If second alarm information matching the first alarm information is obtained within the waiting time, the first alarm information and the second alarm information are aggregated into a network fluctuation alarm, and the network fluctuation alarm is sent to the corresponding operation and maintenance party; If the second alarm information matching the first alarm information is not obtained within the waiting time, the first alarm information is sent to the corresponding operation and maintenance party.

2. The method according to claim 1, characterized in that The performing data processing on the first alarm information by using a preset processing rule matching the alarm category and the device association information to perform an alarm forwarding operation according to the data processing result specifically includes: If it is determined that the alarm category of the first alarm information is a port recovery alarm, determine whether there is a third alarm information matching the first alarm information within the pre-association time; wherein the third alarm information is the same as the device association information of the first alarm information, and the alarm category of the third alarm information is a port failure alarm, and the third alarm information is in a waiting state; If there is third alarm information matching the first alarm information within the pre-correlation time, the first alarm information and the third alarm information are aggregated into a network fluctuation alarm, and the network fluctuation alarm is sent to the corresponding operation and maintenance party; If there is no third alarm information matching the first alarm information within the pre-association time, the first alarm information is sent to the corresponding operation and maintenance party.

3. The method according to claim 1 or 2, characterized in that: The performing data processing on the first alarm information by using a preset processing rule matching the alarm category and the device association information to perform an alarm forwarding operation according to the data processing result includes at least one of the following: Update the count value of the corresponding first counter according to the current network fluctuation alarm, until the count value of the first counter is greater than or equal to a preset fluctuation threshold, and send the current network fluctuation alarm to the corresponding operation and maintenance party; According to the device association information of the first alarm information, a matching waiting time and / or a leading association time is acquired.

4. The method according to claim 1, characterized in that The step of performing data processing on the first alarm information by using a preset processing rule that matches the alarm category and the device association information, so as to perform an alarm forwarding operation according to the data processing result, specifically includes: If it is determined that the alarm category of the first alarm information is a device status alarm or a background login alarm, it is determined that the count value of the second counter matching the first alarm information has reached a preset quantity threshold; If it is determined that the count value of the second counter does not reach the preset number threshold, executing the forwarding operation of the first alarm information, and accumulating the count value of the second counter; If it is determined that the count value of the second counter reaches a preset number threshold, determining whether the timing value of the first timer matching the second counter reaches a preset time threshold; If it is determined that the timing value of the first timer reaches the preset time threshold, the forwarding operation of the first alarm information is executed, and the counting value of the second counter is reset to zero; If it is determined that the timing value of the first timer has not reached the preset time threshold, the forwarding operation of the first alarm information is not performed.

5. The method according to claim 1, characterized in that The acquiring the alarm category of the first alarm information according to the alarm subject field includes: The alarm category of the first alarm information is obtained according to the alarm subject field and the hit number or hit rate in the alarm keyword set corresponding to each candidate alarm category.

6. The method according to claim 1, characterized in that The performing data processing on the first alarm information by using a preset processing rule matching the alarm category and the device association information includes: If the sender of the first alarm information is a master node device, retain the first alarm information; If the sender of the first alarm information is a standby node device, the first alarm information is deleted.

7. An alarm information processing device, characterized in that: include: An alarm subject acquisition module, configured to acquire an alarm subject field of the first alarm information in response to acquiring the first alarm information; An alarm category acquisition module, used to acquire device association information of the first alarm information according to the alarm subject field and the dynamic association dictionary, and acquire the alarm category of the first alarm information according to the alarm subject field; an alarm forwarding execution module, configured to perform data processing on the first alarm information by using a preset processing rule matching the alarm category and the device association information, so as to execute an alarm forwarding operation according to the data processing result; An alarm forwarding execution module is specifically used to, if it is determined that the alarm category of the first alarm information is a port failure alarm, set the first alarm information to a waiting processing state, and set a waiting time for the first alarm information; determine whether a second alarm information matching the first alarm information is obtained within the waiting time; wherein the second alarm information is the same as the device association information of the first alarm information, and the alarm category of the second alarm information is a port recovery alarm; if the second alarm information matching the first alarm information is obtained within the waiting time, aggregate the first alarm information and the second alarm information into a network fluctuation alarm, and send the network fluctuation alarm to a corresponding operation and maintenance party; If the second alarm information matching the first alarm information is not obtained within the waiting time, the first alarm information is sent to the corresponding operation and maintenance party.

8. An electronic device, characterized in that: The electronic 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 alarm information processing method according to any one of claims 1 to 6.

9. 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 alarm information processing method according to any one of claims 1 to 6 when executed.