Alarm processing method and device, computer equipment and storage medium
By automatically processing alarm data and calling the data interface of automated operation and maintenance tools, the problem of manual intervention of alarm systems in the existing technology is solved, and the system recovery speed and stability is improved.
Patent Information
- Application Number
- CN202411207633.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-06
AI Technical Summary
The existing alarm system needs manual intervention after receiving the fault information, which cannot achieve self-healing of the fault, resulting in a long recovery time and poor overall stability.
By obtaining the pending alarm data, matching the operation when the alarm is triggered, calling the data interface of the automated operation and maintenance tool, and performing automated processing to restore the system.
It realizes automatic processing of alarm data, improves the system's recovery speed and overall stability, and reduces the need for manual intervention.
Smart Images

Figure CN119088651A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an alarm processing method, device, computer equipment, and storage medium. Background Art
[0002] The alarm system is used to monitor the working status of the monitored object. When an abnormality is detected in the monitored object, the monitored object will send an alarm message to the alarm system or the alarm system will automatically record the abnormal information of the monitored object.
[0003] In the prior art, when the alarm system receives alarm information or records abnormal information of the monitored object, the alarm system can successfully deliver the fault information, but the handling of the fault still requires manual intervention, and the fault cannot be self-healed. Summary of the invention
[0004] Based on this, it is necessary to provide an alarm processing method, device, computer equipment, and storage medium to address the above technical issues.
[0005] In a first aspect, the present application provides a method for processing an alarm. The method comprises:
[0006] Acquire the alarm data to be processed, wherein the alarm data to be processed includes alarm data satisfying an alarm rule, wherein the alarm rule includes category information of the alarm data, an alarm condition, and an operation performed when the alarm is triggered;
[0007] When the alarm data to be processed meets the alarm condition, trigger an alarm and obtain a host identifier corresponding to the alarm data to be processed;
[0008] matching the operation performed when the alarm is triggered based on the category information of the alarm data;
[0009] The data interface of the automated operation and maintenance tool is called to the host corresponding to the host identifier to execute the operation performed when the alarm is triggered.
[0010] In one of the embodiments, after the alarm is triggered based on the condition for triggering the alarm, the method further includes:
[0011] Based on the alarm data, determining attribute information of the alarm;
[0012] The alarm data is grouped based on the attribute information, and alarms of the same type are combined into one or more alarms for sending.
[0013] In one of the embodiments, after the alarm is triggered based on the condition for triggering the alarm, the method further includes:
[0014] The alarm data to be processed are grouped based on the host identifiers corresponding to the host identifiers, and the alarm data belonging to the same host identifier are combined into one alarm and sent.
[0015] In one embodiment, obtaining the alarm data to be processed includes:
[0016] Get various types of alarm rules;
[0017] Based on the alarm rules, each monitored object is monitored and alarm data corresponding to each monitored object is generated.
[0018] In one of the embodiments, after the alarm is triggered, the method further includes:
[0019] Obtaining an alarm rule corresponding to the alarm data and a rendering template corresponding to the alarm data;
[0020] Fill the alarm data and the alarm rule into the rendering template according to the preset rule corresponding to the rendering template to generate an alarm file;
[0021] The alarm file is sent to a target user corresponding to the monitored object.
[0022] In a second aspect, the present application further provides an alarm processing device, the device comprising:
[0023] An acquisition module, used to acquire the alarm data to be processed, wherein the alarm data to be processed includes the alarm data satisfying the alarm rule, wherein the alarm rule includes the category information of the alarm data, the alarm condition, and the operation performed when the alarm is triggered;
[0024] A trigger module, configured to trigger an alarm and obtain a host identifier corresponding to the alarm data to be processed when the alarm data to be processed meets the alarm condition;
[0025] A matching module, configured to match the operation to be performed when the alarm is triggered based on the category information of the alarm data;
[0026] The calling module is used to call the data interface of the automated operation and maintenance tool to the host corresponding to the host identifier to execute the operation performed when the alarm is triggered.
[0027] In one of the embodiments, after the alarm is triggered based on the condition for triggering the alarm, the device further includes:
[0028] Based on the alarm data, determining attribute information of the alarm;
[0029] The alarm data is grouped based on the attribute information, and alarms of the same type are combined into one or more alarms for sending.
[0030] In one of the embodiments, after the alarm is triggered based on the condition for triggering the alarm, the device further includes:
[0031] The alarm data to be processed are grouped based on the host identifiers corresponding to the host identifiers, and the alarm data belonging to the same host identifier are combined into one alarm and sent.
[0032] In one embodiment, obtaining the alarm data to be processed includes:
[0033] Get various types of alarm rules;
[0034] Based on the alarm rules, each monitored object is monitored and alarm data corresponding to each monitored object is generated.
[0035] In one of the embodiments, after the alarm is triggered, the device further includes:
[0036] Obtaining an alarm rule corresponding to the alarm data and a rendering template corresponding to the alarm data;
[0037] Fill the alarm data and the alarm rule into the rendering template according to the preset rule corresponding to the rendering template to generate an alarm file;
[0038] The alarm file is sent to a target user corresponding to the monitored object.
[0039] In a third aspect, the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the alarm processing method when executing the computer program.
[0040] In a fourth aspect, the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the alarm processing method when executed by a processor.
[0041] In a fifth aspect, the present disclosure further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method for processing an alarm are implemented.
[0042] The above-mentioned alarm processing method has at least the following beneficial effects:
[0043] The embodiment scheme provided by the present disclosure continuously monitors the state of the monitored object and collects relevant data. When the data meets the preset alarm conditions, alarm data is generated and the host identification is obtained. When the alarm data meets the alarm conditions, the host corresponding to the host identification is obtained, and the instruction is sent to the corresponding host for execution by calling the data interface of the automated operation and maintenance tool. By automatically processing the alarm, the normal operation of the system can be restored more quickly, thereby improving the overall stability of the system.
[0044] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0046] FIG1 is an application environment diagram of an alarm processing method in one embodiment;
[0047] Figure 2 A flowchart of a method for processing an alarm in an embodiment;
[0048] Figure 3 A schematic diagram of alarm processing in one embodiment;
[0049] Figure 4 is a structural block diagram of an alarm processing device in one embodiment;
[0050] FIG5 is a diagram showing the internal structure of a computer device in one embodiment;
[0051] FIG. 6 is a diagram showing the internal structure of a server in an embodiment. DETAILED DESCRIPTION
[0052] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0053] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure 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 disclosure described here can be implemented in an order other than those illustrated or described here. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are only examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, product or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements inherent to such process, method, product or device. In the absence of more restrictions, it is not excluded that there are other identical or equivalent elements in the process, method, product or device including the elements. For example, if the words first, second, etc. are used to represent the name, they do not represent any specific order.
[0054] The embodiment of the present disclosure provides a method for processing an alarm, which can be applied in an application environment as shown in FIG1 . Among them, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.
[0055] In some embodiments of the present disclosure, Figure 2 As shown, a method for processing an alarm is provided, and the method is applied to the server in FIG1 to process the alarm data as an example for explanation. It can be understood that the method can be applied to the server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In a specific embodiment, the method can include the following steps:
[0056] S202: Acquire alarm data to be processed, where the alarm data to be processed includes alarm data that complies with alarm rules, and the alarm rules include category information of the alarm data, alarm conditions, and operations performed when an alarm is triggered.
[0057] The alarm data to be processed can be the alarm information detected by the alarm system and meets the specific alarm rules. The alarm data to be processed can include detailed information of the alarm, such as the time of the alarm, the host to which the data belongs, the content of the alarm, etc. Category information includes the type or classification of the alarm, such as system alarm, application alarm, performance alarm, etc. Alarm conditions include the conditions or thresholds for triggering alarms, such as CPU usage exceeding 80%, disk space less than 10%, etc. The operation performed when the alarm is triggered includes the operation that the system will perform once the alarm condition is met, such as sending a notification, executing a script, adjusting the configuration, etc.
[0058] S204: When the alarm data to be processed meets the alarm condition, obtain a host identifier corresponding to the alarm data to be processed.
[0059] The alarm system continuously monitors the monitored object and collects relevant data to check whether the collected data meets the preset alarm conditions. If the collected data meets the alarm conditions, the collected data can be defined as alarm data, triggering the alarm mechanism, which can issue an alarm, send a notification to relevant personnel, or initiate some automated response measures. When the alarm is triggered, the information of the specific host that generated the alarm data can also be recorded, such as the host name, IP address, or other unique identifier.
[0060] S206: Match the operation to be performed when the alarm is triggered based on the category information of the alarm data.
[0061] The category information of the alarm data may be that each alarm data has a category information, which is used to indicate the type or classification of the alarm. For example, the alarm may belong to different categories such as "system alarm", "application alarm", "performance alarm", etc. Each alarm under each category has a specific trigger condition, such as high CPU usage, insufficient disk space, etc. When the alarm condition is met, the corresponding operation is performed according to the category information of the alarm.
[0062] S208: Calling a data interface of an automated operation and maintenance tool to a host corresponding to the host identifier, and executing an operation performed when an alarm is triggered.
[0063] When a certain indicator is detected to exceed the preset threshold or meet a specific condition, an alarm will be triggered. After the alarm occurs, the system will obtain the host ID that generated the alarm to identify which host has a problem. Call the data interface provided by the automated operation and maintenance tool. The automated operation and maintenance tool can be Ansible, which can remotely execute scripts or commands. Through the called data interface, the automated operation and maintenance tool will perform predefined operations on the alarm host.
[0064] For example, Figure 3This is a schematic diagram of alarm processing in an embodiment. When it is detected that the CPU usage of a server reaches 85%, the IP address of the server is obtained, the Ansible API (data interface) module is called, the target host is specified, and a pre-prepared command or script is executed to try to reduce the CPU usage, such as shutting down some unnecessary processes or services.
[0065] In the above alarm processing method, the state of the monitored object is continuously monitored and relevant data is collected. When these data meet the preset alarm conditions, alarm data is generated and the host identification is obtained. When the alarm data meets the alarm conditions, the host corresponding to the host identification is obtained, and the data interface of the automated operation and maintenance tool is called to send the instruction to the corresponding host for execution. By automatically processing alarms, the normal operation of the system can be restored more quickly, thereby improving the overall stability of the system.
[0066] In some embodiments of the present disclosure, after the alarm is triggered based on the condition for triggering the alarm, the method further includes:
[0067] Based on the alarm data, determining attribute information of the alarm;
[0068] The alarm data is grouped based on the attribute information, and alarms of the same type are combined into one or more alarms for sending.
[0069] When an alarm is triggered, the system analyzes the alarm data and extracts attribute information, which may include the alarm type, level, affected components or services, etc. Based on the extracted attribute information, the system will classify the alarm data, and alarms of the same type will be merged together to reduce the number of alarms. For multiple alarms of the same type, they may be merged into one or more alarm messages to avoid duplicate notifications. For example, if multiple servers trigger alarms due to insufficient disk space, these alarms may be merged into one alarm message.
[0070] In some embodiments of the present disclosure, after the alarm is triggered based on the condition for triggering the alarm, the method further includes:
[0071] The alarm data to be processed are grouped based on the host identifiers corresponding to the host identifiers, and the alarm data belonging to the same host identifier are combined into one alarm and sent.
[0072] When data that meets the alarm rules is detected, an alarm is triggered. After the alarm is triggered, the system obtains the host ID that generates the alarm, groups the alarm data according to the host ID, and merges the alarm data belonging to the same host ID into one alarm message and sends it. Merging alarms can help operation and maintenance personnel locate the root cause of the problem more quickly because they do not need to check each similar alarm one by one.
[0073] In some embodiments of the present disclosure, obtaining the alarm data to be processed includes:
[0074] Get various types of alarm rules;
[0075] Based on the alarm rules, each monitored object is monitored and alarm data corresponding to each monitored object is generated.
[0076] Periodically collect relevant performance indicator data from each monitored object, compare the collected data with the preset alarm rules, and trigger an alarm if the data of a monitored object meets the alarm rules. Record the relevant information of the triggering alarm, such as timestamp, monitored object ID, alarm level, etc., and send the alarm data to operation and maintenance personnel or other alarm processing systems.
[0077] In some embodiments of the present disclosure, after the alarm is triggered, the method further includes:
[0078] Obtaining an alarm rule corresponding to the alarm data and a rendering template corresponding to the alarm data;
[0079] Fill the alarm data and the alarm rule into the rendering template according to the preset rule corresponding to the rendering template to generate an alarm file;
[0080] The alarm file is sent to a target user corresponding to the monitored object.
[0081] Get the rule that triggers this alarm, get a predefined template that specifies how to display the alarm information, fill in the alarm data, such as time, monitoring object, alarm type, and alarm rule, into the corresponding position in the template, ensure that all information is arranged in the preset format, and send the generated alarm file to the target user. This can be done in a variety of ways, such as email, SMS, instant messaging applications, etc.
[0082] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0083] Based on the same inventive concept, the embodiment of the present disclosure also provides an alarm processing device for implementing the above-mentioned alarm processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiment of the alarm processing device provided below can refer to the limitations of the alarm processing method above, and will not be repeated here.
[0084] The device may include a system (including a distributed system), software (application), module, component, server, client, etc. that uses the method described in the embodiments of this specification and is combined with necessary implementation hardware. Based on the same innovative concept, the device in one or more embodiments provided in the embodiments of the present disclosure is as described in the following embodiments. Since the implementation scheme and method of the device to solve the problem are similar, the implementation of the specific device in the embodiments of this specification can refer to the implementation of the aforementioned method, and the repetitions will not be repeated. As used below, the term "unit" or "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0085] In one embodiment, Figure 4 As shown, a device 400 for processing an alarm is provided, and the device may be the aforementioned server, or a module, component, device, unit, etc. integrated in the server. The device 400 may include:
[0086] The acquisition module 402 is used to acquire the alarm data to be processed, wherein the alarm data to be processed includes the alarm data satisfying the alarm rule, wherein the alarm rule includes the category information of the alarm data, the alarm condition, and the operation performed when the alarm is triggered;
[0087] A trigger module 404 is used to obtain a host identifier corresponding to the alarm data to be processed when the alarm data to be processed meets the alarm condition;
[0088] A matching module 406, configured to match the operation performed when the alarm is triggered based on the category information of the alarm data;
[0089] The calling module 408 is used to call the data interface of the automated operation and maintenance tool to the host corresponding to the host identifier to execute the operation performed when the alarm is triggered.
[0090] In one of the embodiments, after the alarm is triggered based on the condition for triggering the alarm, the device further includes:
[0091] Based on the alarm data, determining attribute information of the alarm;
[0092] The alarm data is grouped based on the attribute information, and alarms of the same type are combined into one or more alarms for sending.
[0093] In one of the embodiments, after the alarm is triggered based on the condition for triggering the alarm, the device further includes:
[0094] The alarm data to be processed are grouped based on the host identifiers corresponding to the host identifiers, and the alarm data belonging to the same host identifier are combined into one alarm and sent.
[0095] In one embodiment, obtaining the alarm data to be processed includes:
[0096] Get various types of alarm rules;
[0097] Based on the alarm rules, each monitored object is monitored and alarm data corresponding to each monitored object is generated.
[0098] In one of the embodiments, after the alarm is triggered, the device further includes:
[0099] Obtaining an alarm rule corresponding to the alarm data and a rendering template corresponding to the alarm data;
[0100] Fill the alarm data and the alarm rule into the rendering template according to the preset rule corresponding to the rendering template to generate an alarm file;
[0101] The alarm file is sent to a target user corresponding to the monitored object.
[0102] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0103] Each module in the above-mentioned processing device for alarms can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0104] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG5. The computer device includes a processor, a memory, and a network interface connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store alarm data. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an alarm processing method is implemented.
[0105] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, an alarm processing method is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, a trackball or a touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0106] Those skilled in the art will understand that the structures shown in FIG. 5 and FIG. 6 are merely block diagrams of partial structures related to the scheme of the present disclosure, and do not constitute a limitation on the computer device to which the scheme of the present disclosure is applied. The specific computer device may include more or fewer components than those shown in the figures, or combine certain components, or have a different arrangement of components.
[0107] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present disclosure is implemented.
[0108] In one embodiment, a computer program product is provided, including a computer program, which implements the method described in any embodiment of the present disclosure when executed by a processor.
[0109] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present disclosure may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present disclosure may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, etc., but are not limited to this.
[0110] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0111] The above-described embodiments only express several implementation methods of the present disclosure, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present disclosure, and these all belong to the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the attached claims.
Claims
1. A method for processing an alarm, characterized in that: The method comprises: Acquire the alarm data to be processed, wherein the alarm data to be processed includes alarm data that meets the alarm rules, and the alarm rules include category information of the alarm data, alarm conditions, and operations performed when the alarm is triggered; When the alarm data to be processed meets the alarm condition, obtaining a host identifier corresponding to the alarm data to be processed; matching the operation performed when the alarm is triggered based on the category information of the alarm data; The data interface of the automated operation and maintenance tool is called to the host corresponding to the host identifier to execute the operation performed when the alarm is triggered.
2. The method according to claim 1, characterized in that After the alarm is triggered based on the condition for triggering the alarm, the method further includes: Based on the alarm data, determining attribute information of the alarm; The alarm data is grouped based on the attribute information, and alarms of the same type are combined into one or more alarms for sending.
3. The method according to claim 1, characterized in that After the alarm is triggered based on the condition for triggering the alarm, the method further includes: The alarm data to be processed are grouped based on the host identifiers corresponding to the host identifiers, and the alarm data belonging to the same host identifier are combined into one alarm and sent.
4. The method according to claim 1, characterized in that: The obtaining of the alarm data to be processed comprises: Get various types of alarm rules; Based on the alarm rules, each monitored object is monitored and alarm data corresponding to each monitored object is generated.
5. The method according to claim 4, characterized in that After the alarm is triggered, the method further includes: Obtaining an alarm rule corresponding to the alarm data and a rendering template corresponding to the alarm data; Fill the alarm data and the alarm rule into the rendering template according to the preset rule corresponding to the rendering template to generate an alarm file; The alarm file is sent to a target user corresponding to the monitored object.
6. An alarm processing device, characterized in that: The device comprises: An acquisition module, used to acquire the alarm data to be processed, wherein the alarm data to be processed includes the alarm data satisfying the alarm rule, wherein the alarm rule includes the category information of the alarm data, the alarm condition, and the operation performed when the alarm is triggered; A trigger module, configured to obtain a host identifier corresponding to the alarm data to be processed when the alarm data to be processed meets the alarm condition; A matching module, configured to match the operation to be performed when the alarm is triggered based on the category information of the alarm data; The calling module is used to call the data interface of the automated operation and maintenance tool to the host corresponding to the host identifier to execute the operation performed when the alarm is triggered.
7. The device according to claim 6, characterized in that After the alarm is triggered based on the condition for triggering the alarm, the device further includes: Based on the alarm data, determining attribute information of the alarm; The alarm data is grouped based on the attribute information, and alarms of the same type are combined into one or more alarms for sending.
8. The device according to claim 6, characterized in that After the alarm is triggered based on the condition for triggering the alarm, the device further includes: The alarm data to be processed are grouped based on the host identifiers corresponding to the host identifiers, and the alarm data belonging to the same host identifier are combined into one alarm and sent.
9. The device according to claim 6, characterized in that The obtaining of the alarm data to be processed comprises: Get various types of alarm rules; Based on the alarm rules, each monitored object is monitored and alarm data corresponding to each monitored object is generated.
10. The device according to claim 9, characterized in that After the alarm is triggered, the device further includes: Obtaining an alarm rule corresponding to the alarm data and a rendering template corresponding to the alarm data; Fill the alarm data and the alarm rule into the rendering template according to the preset rule corresponding to the rendering template to generate an alarm file; The alarm file is sent to a target user corresponding to the monitored object.
11. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
