CN110232006B - Equipment alarm method and related device - Google Patents

Equipment alarm method and related device Download PDF

Info

Publication number
CN110232006B
CN110232006B CN201910405812.7A CN201910405812A CN110232006B CN 110232006 B CN110232006 B CN 110232006B CN 201910405812 A CN201910405812 A CN 201910405812A CN 110232006 B CN110232006 B CN 110232006B
Authority
CN
China
Prior art keywords
alarm
information
target
level
equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910405812.7A
Other languages
Chinese (zh)
Other versions
CN110232006A (en
Inventor
谢文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910405812.7A priority Critical patent/CN110232006B/en
Publication of CN110232006A publication Critical patent/CN110232006A/en
Application granted granted Critical
Publication of CN110232006B publication Critical patent/CN110232006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses an equipment alarming method and a related device, and the method is suitable for safety management. The method comprises the following steps: acquiring equipment information of target equipment, and extracting equipment position information and/or equipment identification information carried in the equipment information; determining an alarm level of the target device based on the device location information and/or the device identification information; determining a target alarm mode corresponding to the target equipment based on the alarm level of the target equipment; and acquiring the alarm information of the target equipment, and sending the alarm information to alarm receiving equipment based on a target alarm mode. By adopting the embodiment of the invention, the position of the alarm equipment can be accurately obtained, the equipment graded alarm can be realized, the alarm flexibility is high, the equipment safety management is convenient, and the application range is wide.

Description

Equipment alarm method and related device
Technical Field
The invention relates to the technical field of computers, in particular to an equipment alarming method and a related device.
Background
With the continuous development of scientific technology, the utilization rate of enterprise equipment is higher and higher, and the safety of various equipment is gradually improved. It is understood that the equipment failure may cause the reduction of the whole equipment system working capability and even lead to the breakdown of the whole equipment system. In order to quickly solve the risk and fault of equipment, alarm management modes aiming at different equipment are provided. By monitoring the equipment state of each equipment in real time, when a certain equipment is abnormal, the equipment can quickly respond and can provide detailed abnormal information and a corresponding processing solution for equipment maintenance personnel.
However, in the prior art, a single alarm mode and a large amount of alarm information put high requirements on the alarm of the response equipment, and meanwhile, due to the fact that the response is not timely, property loss is brought to an equipment system, the alarm flexibility is not high, and the applicability is low.
Disclosure of Invention
The embodiment of the invention provides an equipment alarming method and a related device, which can realize the graded alarming of equipment, improve the alarming flexibility, facilitate the equipment management and have high applicability.
In a first aspect, an embodiment of the present invention provides an apparatus alarm method, where the method includes:
acquiring equipment information of target equipment, and extracting equipment position information and/or equipment identification information carried in the equipment information;
determining an alarm level of the target device based on the device location information and/or the device identification information;
determining a target alarm mode corresponding to the target equipment based on the alarm level of the target equipment;
and when the target equipment is detected to send an alarm, acquiring alarm information of the target equipment, and sending the alarm information to alarm receiving equipment based on the target alarm mode.
In the embodiment of the invention, the equipment is subjected to alarm grade classification and different alarm modes are matched according to different alarm grades, so that the alarm grade and the alarm mode of the equipment with different importance degree grades can be effectively distinguished, the alarm receiving equipment can quickly respond to the alarm and distinguish different equipment after receiving the alarm information, and the equipment has high flexibility and strong applicability.
With reference to the first aspect, in a possible implementation manner, before determining the alarm level of the target device based on the device location information and/or the device identification information, the method further includes:
inputting the device location information into a location level model, outputting a location weight of the target device based on the location level model, and determining a location level of the target device corresponding to the location weight based on a preset location weight and level correspondence, wherein the location level model is obtained by training device location sample information, and the identification level is used for determining an alarm level of the target device;
and/or inputting the equipment identification information into an identification grade model, outputting an identification weight of the target equipment based on the identification grade model, and determining the identification grade of the target equipment corresponding to the identification weight based on a preset identification weight and grade corresponding relation, wherein the identification grade model is obtained by training equipment identification sample information, and the identification grade is used for determining the alarm grade of the target equipment.
In the embodiment of the invention, the position information and/or the identification information are used for determining the position and/or the identification grade of the equipment based on the position and/or identification grade model and the corresponding relation between the preset position and/or identification weight and the grade, so that the grade division of the equipment is more scientific, the position and/or the identification information of the equipment is more intuitively represented in a grade mode, and the flexibility is higher.
With reference to the first aspect, in a possible implementation manner, the determining, based on the device location information and/or the device identification information, an alert level of the target device includes:
if the device information carries the device location information or the device identification information, determining the location level or the identification level of the target device as the alarm level of the target device;
if the device information carries the device location information and the device identification information, an alarm weight of the target device is obtained based on the location level and the identification level of the target device, and an alarm level of the target device is determined based on a preset alarm weight and level correspondence.
In the embodiment of the invention, the importance degrees of different devices can be effectively distinguished by determining the alarm level of the device, so that whether the alarm device is important or not can be determined directly according to the alarm level of the device in the alarm process, different response measures can be taken conveniently when the alarm is responded, the device management is convenient, and the applicability is high.
With reference to the first aspect, in a possible implementation manner, the alarm level of the target device at least includes a first alarm level and a second alarm level, and an alarm processing priority of the first alarm level is higher than that of the second alarm level; the determining a target alarm mode corresponding to the target device based on the alarm level of the target device includes:
If the alarm level is a first alarm level, determining a first alarm mode corresponding to the first alarm level as a target alarm mode corresponding to the target equipment;
if the alarm level is a second alarm level, determining a second alarm mode corresponding to the second alarm level as a target alarm mode corresponding to the target equipment;
the alarm instantaneity of the first alarm mode is higher than that of the second alarm mode, and the first alarm mode is different from the second alarm mode.
In the embodiment of the invention, different alarm modes are matched for different alarm levels, so that the alarm modes of equipment alarm are enriched, and the alarm redundancy brought by a single alarm mode is avoided. Meanwhile, the alarm level of the equipment and the importance degree of the equipment can be obtained under the condition of not checking the alarm level through different alarm modes, so that the alarm management and response speed are improved, and the applicability is high.
With reference to the first aspect, in a possible implementation manner, the acquiring the alarm information of the target device includes:
determining a target log from the logs generated by the target equipment, wherein the target log comprises log content triggering the target equipment to send an alarm;
Performing log analysis on the target log to determine at least one item of attribute information belonging to a preset alarm attribute from the log content, wherein the preset alarm attribute comprises one or more combinations of alarm time, alarm reason, alarm location, equipment type and equipment position;
and generating alarm information based on the at least one item of attribute information.
With reference to the first aspect, in a possible implementation manner, the sending the alarm information to the alarm receiving device based on the target alarm manner includes;
judging whether the alarm level of the target equipment is greater than a preset alarm level;
if the alarm level of the target equipment is greater than a preset alarm level, sending the alarm information to alarm receiving equipment based on the target alarm mode;
and if the alarm level of the target equipment is not greater than the preset alarm level, counting the alarm occurrence times corresponding to the alarm level, and when the alarm occurrence times corresponding to the alarm level are greater than or equal to the preset times, sending the alarm information to the alarm receiving equipment based on the target alarm mode.
In the embodiment of the invention, whether the alarm information is sent or not is determined by judging whether the alarm level is greater than the preset alarm level or not, and the alarm information with higher alarm level can be preferentially sent to the alarm receiving equipment. Meanwhile, the system consumption caused by sending a large amount of low-level alarm information to the alarm receiving equipment and the corresponding untimely condition of high-level alarm are avoided, and the alarm receiving equipment is convenient to manage the alarm.
With reference to the first aspect, in a possible implementation manner, after the sending the alarm information to an alarm receiving device based on the target alarm manner is performed, the method further includes:
storing the alarm information into a database to obtain standby information, wherein the database also comprises the alarm information of one or more devices except the target device;
when the alarm information of any equipment including the target equipment is displayed and/or inquired based on display equipment, the alarm information of any equipment is acquired from the standby information and is output to the display equipment.
In the embodiment of the invention, after the alarm information is sent to the alarm receiving equipment, the alarm information is stored in the database so as to correct and optimize the similar problems existing at present in the enterprise and provide for subsequent upgrading and reconstruction of enterprise equipment, thereby improving the alarm processing speed and accuracy of the enterprise and immediately stopping loss.
In a second aspect, an embodiment of the present invention provides an apparatus alarm device, where the apparatus alarm device includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the device information of target devices and extracting the device position information and/or the device identification information carried in the device information;
A determining unit, configured to determine an alarm level of the target device based on the device location information and/or the device identification information acquired by the acquiring unit;
the determining unit is configured to determine a target alarm manner corresponding to the target device based on the alarm level of the target device determined by the determining unit;
and the sending unit is used for acquiring the alarm information of the target equipment when detecting that the target equipment sends an alarm, and sending the alarm information to the alarm receiving equipment based on the target alarm mode determined by the determining unit.
With reference to the second aspect, in a possible implementation manner, the above-mentioned warning device further includes:
the input unit is further configured to input the device location information into a location class model, output a location weight of the target device based on the location class model, and determine a location class of the target device corresponding to the location weight based on a preset location weight and a class correspondence, where the location class model is obtained by training device location sample information, and the location class is used for determining an alarm class of the target device;
the input unit is further configured to input the device identification information into an identification level model, output an identification weight of the target device based on the identification level model, and determine an identification level of the target device corresponding to the identification weight based on a preset identification weight and level correspondence, where the identification level model is obtained by training device identification sample information, and the identification level is used to determine an alarm level of the target device.
With reference to the second aspect, in a possible implementation manner, the determining unit is configured to determine, when the device location information or the device identification information is carried in the device information, a location level or an identification level of the target device as an alarm level of the target device;
the determining unit is configured to, when the device information carries the device location information and the device identification information, obtain an alarm weight of the target device based on the location level and the identification level of the target device, and determine an alarm level of the target device based on a preset alarm weight and a level correspondence relationship.
With reference to the second aspect, in a possible implementation manner, the alarm level of the target device at least includes a first alarm level and a second alarm level, and the alarm processing priority of the first alarm level is higher than that of the second alarm level;
the determining unit is configured to determine, when the alarm level is a first alarm level, a first alarm manner corresponding to the first alarm level as a target alarm manner corresponding to the target device;
the determining unit is configured to determine, when the alarm level is a second alarm level, a second alarm manner corresponding to the second alarm level as a target alarm manner corresponding to the target device;
Wherein the alarm instantaneity of the first alarm mode is higher than that of the second alarm mode, and the first alarm mode is different from the second alarm mode.
With reference to the second aspect, in a possible implementation manner, the determining unit is configured to:
determining a target log from the logs generated by the target device, wherein the target log comprises log content triggering the target device to send an alarm;
performing log analysis on the target log to determine at least one item of attribute information belonging to a preset alarm attribute from the log content, wherein the preset alarm attribute comprises one or more combinations of alarm time, alarm reason, alarm location, equipment type and equipment position;
the above-mentioned alarm device includes:
and the generating unit is used for generating alarm information based on the at least one item of attribute information.
With reference to the second aspect, in a possible implementation manner, the above-mentioned warning device further includes:
a determining unit, configured to determine whether the alarm level of the target device determined by the determining unit is greater than a preset alarm level;
the sending unit is configured to send the alarm information to an alarm receiving device based on the target alarm manner determined by the determining unit when the alarm level of the target device is greater than a preset alarm level;
And the counting unit is used for counting the alarm occurrence frequency corresponding to the alarm level when the alarm level of the target equipment is not more than the preset alarm level, and sending the alarm information to the alarm receiving equipment based on the target alarm mode when the alarm occurrence frequency corresponding to the alarm level is more than or equal to the preset frequency. With reference to the second aspect, in a possible implementation manner, the above-mentioned warning device further includes:
the storage unit is further used for storing the alarm information into a database to obtain standby information, and the database further comprises alarm information of one or more devices except the target device;
the acquiring unit is further configured to acquire alarm information of any device from the standby information and output the alarm information of the any device to the display device when alarm information of any device including the target device is displayed and/or queried based on the display device.
In the embodiment of the invention, the alarm can be managed in a grading way based on each module in the alarm device, the information such as the alarm grade, the alarm event, the position of the equipment and the like can be determined based on different alarm modes, the filtering of the low-grade alarm information can be realized, the response speed and the management efficiency of the alarm are greatly improved, and the applicability is higher.
In a third aspect, an embodiment of the present invention provides an apparatus, which includes a processor and a memory, where the processor and the memory are connected to each other. The memory is configured to store a computer program that enables the apparatus to perform the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect, where the computer program includes program instructions, and the processor is configured to call the program instructions to perform the method provided by the first aspect and/or any one of the possible implementation manners of the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute the method provided by the first aspect and/or any possible implementation manner of the first aspect.
In the embodiment of the invention, the alarm level when the equipment generates the alarm can be determined based on the information such as the position, the identification and the like of the equipment, so that different alarm modes are adopted according to different alarm levels, the flexibility of alarm management is greatly improved, and meanwhile, the information such as the position, the identification and the like of the equipment can be directly obtained, and the flexibility is better. Meanwhile, the low alarm level is filtered, so that the problems of alarm redundancy and corresponding untimely alarm can be greatly avoided, and the applicability is higher.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an apparatus alarm method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of an apparatus alarm device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The equipment alarm method provided by the embodiment of the invention can be widely applied to equipment alarm systems consisting of various types of equipment. The corresponding alarm mode can be determined based on the position of the equipment and the different types of the equipment, the layering of the equipment alarm is realized, the positioning of the alarm equipment can be realized while the corresponding alarm efficiency is improved, the alarm flexibility is high, and the application range is wide.
The following describes in detail the device alarm method and the related apparatus provided in the embodiment of the present invention with reference to fig. 1 to 3, respectively.
Referring to fig. 1, fig. 1 is a schematic flowchart of an apparatus alarm method according to an embodiment of the present invention. The equipment warning method provided by the embodiment of the invention can comprise the following steps of S11-S14:
and S11, acquiring the device information of the target device, and extracting the device position information and/or the device identification information carried in the device information.
In some possible embodiments, the target device includes, but is not limited to, a computer, a server, a mobile terminal, a switch, a router, a modem, a door lock, an Uninterruptible Power Supply (UPS), a monitor, a camera, and other devices that may transmit data based on a network, and may be determined according to an actual application scenario, which is not limited herein. In the stage of obtaining the device information of the target device, the device location information of the target device may be obtained. The source of the device location information of the target device may be in various manners, for example, location information of a city, a building, and the like where the target device is located may be obtained through GPRS, specific device location information of the device in the office and/or the machine room may be obtained by performing omnidirectional information collection on the office and/or the machine room where the target device is located, and device location information of the target device in the environment may also be obtained through different office environments, and a method for specifically obtaining the device location information of the target device is not limited and is not described in detail below. Here, after acquiring the device location information of the device, it is necessary to provide accurate and concise device location information after generating an alarm by performing data processing on the device location information.
It can be understood that, when the device location information of the target device is obtained based on the different obtaining manners, different weights may be assigned to the different device location information sources according to different properties of different enterprises, different use scenes of different devices, and the like, so as to meet specific requirements of different enterprises. For example, for enterprise core devices such as a server, in order to ensure that the location of the server and the environment where the server is located can be accurately located, device location information such as a city, a building, a machine room where the server is located, and a specific location in the machine room can be obtained to ensure that the specific location of the server can be determined at the first time when an alarm is responded. For a certain office computer, only the specific position information of the office computer in the office area can be acquired. In a specific implementation manner, when the device location information of the target device is obtained through different obtaining manners, the location information can be obtained within a period of time closest to the current time, so as to ensure the accuracy of the device location information. Meanwhile, after the device location information of the target device is acquired, re-verifying or checking the acquired device location information of the target device within a certain time period to ensure that the device location information of the target device always keeps valid, wherein a specific verification or checking manner is not limited herein.
In some possible embodiments, in the stage of obtaining the device information of the target device, device identification information of the target device may be obtained, where the device identification information may be a device name, a device model, a character identifier of the device, and the like, and may be specifically determined according to an actual application scenario, which is not limited herein. It should be noted that any device identification is used to identify an independent target device. For example, for a certain computer room, there are various names of switches in the computer room. For example, if a certain computer room includes a core layer switch, a convergence layer switch, and an access layer switch, when acquiring the device identification information of each switch in the computer room, the name of each switch (e.g., WS-C3750G-16TD-S) may be determined as the device identification information of each switch and directly acquired. For another example, if the identifier is a character identifier, for the switch, the three switches located at the core layer, the convergence layer and the access layer may also be a type a switch, a type B interactive machine and a type C interactive machine. Wherein the character identifications "type a", "type B", and "type C" may be acquired as the device identification information of the switch. It should be noted that, in the stage of obtaining the device identifier information of the target device, the device identifier of the target device is not necessarily only the predetermined information such as the device name and the model in the target device, but may also be some manually set distinguishing standards, which are not described herein again.
In some feasible embodiments, after the device information of the target device is obtained, in order to make the device information simpler and improve the information transmission efficiency, the obtained device information of the target device may be filtered, and the device location information and/or the device identification information carried in the device information may be extracted. When the device position information and/or the device identification information carried in the device information are extracted, the device position information and/or the device identification information may be obtained by screening the device information with a data screening tool, or the device position information and/or the device identification information may be extracted from the device information with a data analysis algorithm, and the specific implementation manner is not limited herein.
And S12, determining the alarm level of the target device based on the device position information and/or the device identification information.
In some feasible embodiments, when the device information carries device location information, the device location information may be input into a location level model, and a location weight of the device location information is obtained through the location level model. The position grade model is obtained by training device position sample information before the target device information is obtained. For example, in a position level model training stage, device position sample information, such as a certain office device layout scene, a certain machine room device layout scene, each regional office and/or machine room and core server layout scene, which reflect the importance degree of a certain device in different scenes, may be simulated, and the position level model may be obtained based on the multi-dimensional device layout scene training. The position information of any equipment can be converted into a position weight value through the position grade model, and then the position grade of the target equipment can be obtained according to the corresponding relation between the preset position weight value and the grade. In the training stage of the position grade model, a higher position weight can be configured for the position information corresponding to the equipment with higher importance degree. For example, in a certain office equipment layout scenario, network equipment such as an exchange has a higher importance level, and a higher weight may be configured for the location information corresponding to the exchange, and a lower weight may be configured for the location information corresponding to a personal computer of a general employee, where the importance level of the personal computer of the general employee is lower. For another example, in the layout scene of the offices and/or the machine rooms in each region and the core server, the core server occupies an absolute important position, so that a higher weight is allocated to the position information corresponding to the core server, and the importance degree of the equipment in the offices and/or the machine rooms in other regions and the importance degree of the position information corresponding to the equipment can be determined based on the actual situation, which is not limited herein. Different weight values are configured for the position information of different equipment in different scenes in the training stage, after the different position information is input into the position grade model, the importance degree of the equipment corresponding to certain position information can be directly judged and embodied by the different position weight values, and then different alarm grades can be determined for the equipment with different importance degrees according to the different position weight values.
In some feasible embodiments, after the device location information of a certain storage device in a certain machine room is obtained, the location information of the storage device can be input into the location level model to obtain a location weight of the storage device, and then the location level of the storage device is obtained according to a preset location weight and level correspondence. The corresponding relationship between the position weight and the level may be established at the same time when the position level model is trained, and the establishing manner of the corresponding relationship between the position weight and the level may also be a simple corresponding manner between the weight and the level, or may be established based on a computer program algorithm, which is not limited herein.
In some feasible embodiments, when the device information carries device identification information, the device identification information may be input into an identification level model, and an identification weight of the device identification information is obtained through the identification level model. The identification level model is obtained by training equipment identification sample information before the target equipment information is obtained. For example, in the identification level model training stage, the device name or the device model may be directly obtained according to the scene of the actual device, or the device identification may be manually set for each device in a certain scene, and then the identification level model may be obtained through training. The equipment identification information of any equipment can be converted into an identification weight value through the identification grade model, and then the identification grade of the target equipment can be obtained according to the corresponding relation between the preset identification weight value and the grade. For example, after the device identification information of a certain storage device in a certain machine room is obtained, the identification information of the storage device may be input into the identification level model to obtain an identification weight of the storage device, and then the identification level of the storage device is obtained according to a preset identification weight and level correspondence. The correspondence between the identification weight and the level may be established at the same time when the identification level model is trained, and the establishment manner of the correspondence between the identification weight and the level may also be a simple correspondence between the weight and the level, or may be established based on a computer program algorithm, which is not limited herein. In the identification level model training stage, a higher position weight value can be configured for the identification information corresponding to the equipment with higher importance degree. For example, in a certain office equipment layout scenario, the network equipment such as the switch and the like has a higher importance degree, and a higher weight can be configured for the identification information corresponding to the switch, and the common staff personal computer has a lower importance degree, and a lower weight can be configured for the identification information corresponding to the common staff personal computer. For another example, in the layout scene of the offices and/or the machine rooms in each region and the core server, the core server occupies an absolute important position, so that a higher weight is allocated to the identification information corresponding to the core server, and the importance degree of the equipment in the offices and/or the machine rooms in other regions and the importance degree of the identification information corresponding to the equipment in the offices and/or the machine rooms in other regions can be determined based on the actual situation, which is not limited herein. Different weight values are configured for the identification information corresponding to different equipment in different scenes in the training stage, the importance degree of the equipment corresponding to different identification information can be directly judged after the different identification information is input into the identification grade model and embodied by the different identification weight values, and then different alarm grades can be determined for the equipment with different importance degrees according to the different identification weight values.
In some possible embodiments, when the device information carries the device location information, the location level of the target device may be determined as an alarm level of the target device. For example, when the location weight obtained by inputting the location information of the target device into the location level model is 1, and the location level corresponding to the location weight 1 obtained from the preset location weight and level correspondence is 1, the location level 1 may be determined as the alarm level of the target device, that is, the alarm level of the target device is 1. In a case where the device information only carries the device identification information, the identification level of the target device may be determined as an alarm level of the target device. For example, when the identification weight value obtained by inputting the identification information of the target device into the identification level model is 2, and the identification level corresponding to the identification weight value 2 is 2 based on the preset identification weight value and level correspondence relationship, the identification level 2 may be determined as the alarm level of the target device, that is, the alarm level of the target device is 2.
In some feasible embodiments, when the device information carries the device location information and the device identification information at the same time, the alarm weight of the target device may be obtained based on the location level and the identification level of the target device, and the alarm level of the target device may be determined based on a preset corresponding relationship between the alarm weight and the level. The corresponding relationship between the alarm weight and the level may be established simultaneously when the location level model and the identification level model are trained, and the establishment manner of the corresponding relationship between the alarm weight and the level may also be a simple corresponding manner between the weight and the level, or may be established based on a computer program algorithm, which is not limited herein. For example, the location rank corresponding to the location weight obtained in the corresponding relationship between the preset location weight and the rank is X, and the identifier rank corresponding to the identifier weight obtained in the corresponding relationship between the preset identifier weight and the rank is Y. At this time, the alarm weight value Z of the target device may be obtained based on the location level X and the identifier level Y of the target device, and then the alarm level of the target device corresponding to the alarm weight value Z is determined to be N based on a preset alarm weight value and level correspondence, where X, Y, Z and N are integers greater than or equal to 1, and are exemplary illustrations. It should be particularly noted that specific values of the position weight X, the identifier level Y alarm weight Z, and the alarm level N may be determined according to actual situations and corresponding relationships between the weights and the levels, which is not limited herein.
And S13, determining a target alarm mode corresponding to the target equipment based on the alarm level of the target equipment.
In some possible embodiments, after the alarm level of the target device is determined, the target device may be matched with a corresponding alarm manner according to the alarm level of the target device, that is, the target devices with different alarm levels may be distinguished in different alarm manners, so as to adopt different emergency responses and immediately stop loss. The distribution of the alarm levels can be determined according to actual application scenarios, for example, in a common office area, the alarm levels can be divided into a first alarm level and a second alarm level due to the fact that the types of equipment are simple, and in a machine room where a core server is located, the alarm levels of merchants can be divided into a first alarm level to an eighth alarm level due to the fact that the machine room equipment is important and the types of equipment are many, so that the alarm levels of all equipment in the machine room can be distinguished without limitation. It should be noted that, the above-mentioned alert modes include, but are not limited to, telephone, mail, system push, etc., and are not limited herein.
In some possible embodiments, if the alarm level is a first alarm level, the first alarm manner corresponding to the first alarm level is determined as a target alarm manner corresponding to the target device, and if the alarm level is a second alarm level, the second alarm manner corresponding to the second alarm level is determined as a target alarm manner corresponding to the target device. Wherein the alarm instantaneity of the first alarm mode is higher than that of the second alarm mode, and the first alarm mode is different from the second alarm mode. It should be noted that, the above-mentioned alarm levels may include not only the first alarm level and the second alarm level, but also other alarm levels, which may be determined according to the actual application scenario, and are not limited herein. For example, for a network device in a certain computer room, an alarm generated by a core layer network device may cause the whole network to be broken down due to a small problem, the alarm level of the core layer network device may be determined as the first alarm level, and the alarm mode is set to be a telephone alarm. For the alarm generated by the aggregation layer network equipment, because the aggregation layer network equipment is the aggregation point of a plurality of access layer network equipment, the alarm level of the aggregation layer network equipment can be determined as a second alarm level, and the alarm mode is set to be alarm through a short message. For the access layer network device, the access layer provides the user with the ability to access the application system in the local network segment, so that the alarm level of the access layer device can be determined as the third alarm level, and the alarm mode is set to be alarm by mail. The warning instantaneity of the telephone warning is higher than that of the short message warning, and the warning instantaneity of the short message warning is higher than that of the mail warning, and the warning instantaneity of the short message warning can be determined according to the actual application scene without limitation. For another example, when determining the alarm levels of all devices in a certain area, determining that the alarm level of the switch a closest to the core server in the area is a first alarm level and the alarm level of the switch b farther from the core server is a second alarm level according to the position level model, setting the alarm mode of the switch a as a telephone alarm, setting the alarm mode of the switch b as a short message alarm, and setting the instantaneity of the telephone alarm to be higher than that of the short message alarm. That is, when the switches a and b generate alarms simultaneously, the alarm mode corresponding to the switch a is a telephone alarm, the alarm mode corresponding to the switch b is a short message alarm, and the alarm instantaneity of the telephone alarm is higher than that of the short message alarm.
And S14, when the target device is detected to send out the alarm, acquiring the alarm information of the target device, and sending the alarm information to an alarm receiving device based on the target alarm mode.
In some possible embodiments, since the target device always generates a log during the operation of the device, when the target device is detected to issue an alarm, a target log for a device alarm only needs to be obtained from the log generated by the target device. And the log content in the target log is used for triggering the target equipment to send an alarm. In a specific implementation, the log whose log content includes the target identifier may be determined as the target log by screening the log contents of all logs generated by the target device. The target identifiers include, but are not limited to, keywords for indicating error information, such as debug, info, notice, war, error, crit, alert, and emerg. A log having a preset target file name error.log may also be determined as the target log, and a specific implementation manner is limited herein. In addition, after the target log is determined, the target log may be parsed to determine attribute information belonging to preset alarm attributes from the log content of the target log, where the preset alarm attributes include, but are not limited to, one or more combinations of alarm time, alarm reason, alarm location, device type, and device location. Specifically, when the target log is analyzed, a plurality of log fields meeting the preset alarm attribute may be determined from the log content of the target log based on a regular expression, a log analysis algorithm, a log analysis tool, and the like. Furthermore, the plurality of log fields may be recombined to obtain alarm information indicating information such as alarm time, alarm reason, alarm location, and the like corresponding to the alarm sent by the target device, and a specific implementation manner of the information recombination is not limited herein.
In some possible embodiments, after the target device issues an alarm, alarm data generated by the target device may be obtained. Due to different equipment types under different application scenes, after the alarm data are acquired, effective information in the alarm data can be extracted, the effective information is sorted according to a specific rule, and the sorted effective information is used as the alarm information. The rules may be arranged according to the sequence of the timestamp, the device identifier, the device location, and the alarm event, or may be arranged according to the sequence of the timestamp, the device identifier, the device location, the function name, and the alarm event, which may be specifically determined according to the actual application scenario, and is not limited herein.
In some possible embodiments, tens of thousands of devices may be operated simultaneously in some application scenarios, so that the number of alarm messages generated at the same time and/or within a certain period of time even if only the devices belonging to a certain alarm level are viewed is very large, and the severity of the failure of each device in the same alarm level is different. At this time, if each piece of alarm information generated by the above-mentioned device is immediately transmitted to the alarm receiving device, the difficulty and workload of device maintenance are also very large. Therefore, for alarm information with a small degree of failure, a delayed alarm may be selected.
In some possible embodiments, in practical applications, when the alarm level is a first-level alarm, it may be determined that a serious fault or a major error occurs during operation of the device, and then the alarm information may be immediately sent to the corresponding alarm receiving device in the target alarm mode corresponding to the alarm, so as to timely troubleshoot the device fault after receiving the alarm information. When the alarm level is a secondary alarm, usually indicating that although an error event occurs in the device, the continuous operation of the system is still not affected, at this time, the number of times of generating the secondary alarm by the device may be counted, and when the number of times of the secondary alarm is greater than or equal to the preset number of times of the secondary alarm, the alarm information is sent to the corresponding alarm receiving device in a target alarm mode corresponding to the secondary alarm. When the alarm level is a three-level alarm, it usually indicates that the device may have a potential error, at this time, the number of times that the device generates the three-level alarm may be counted, and when the number of times of the three-level alarm is greater than or equal to the preset number of times of the three-level alarm, the alarm information is sent to the corresponding alarm receiving device in the target alarm mode corresponding to the three-level alarm. The preset times of the alarms of the above levels of alarms may be the same or different, and are specifically determined according to the actual application scenario, which is not limited herein. It can be understood that when the alarm times of any level alarm is less than the preset times, the alarm information will not be sent out, and the alarm quantity received by the alarm receiving device can be greatly reduced by delaying the alarm, so as to avoid a large number of repeated alarms. In general, when the alarm level is a first-level alarm, since the alarm event is the most serious, the first-level alarm may be matched with the first alarm mode corresponding to the first alarm level to ensure that the first-level alarm can be responded with the highest immediacy and corresponding response measures are taken. When the alarm level is a second-level alarm, a second alarm mode corresponding to the second alarm level matched with the second alarm level can respond to the second-level alarm in a lower instantaneity relative to the first alarm mode and take corresponding response measures, and so on, and other alarm levels are not described in detail herein. It should be particularly noted that the specific alarm mode corresponding to the alarm level may be determined according to the actual application scenario. For example, in a certain scenario, due to actual requirements, only the first-level alarm needs to be matched with the second alarm mode corresponding to the second alarm level, that is, the second alarm mode corresponding to the second alarm level can satisfy the alarm information sending instantaneity and sending mode of the first-level alarm at that time, and other alarm levels, such as the second-level alarm, can be matched with the first alarm mode corresponding to the first alarm level under certain special requirements, and can also be matched with the alarm mode with lower timeliness, without limitation.
Optionally, in some possible embodiments, it may also be determined whether the alarm level of the device is greater than a preset level by comparing the alarm level with the preset level. And if the alarm level is not greater than the preset level, counting the occurrence frequency of the alarm level, and when the occurrence frequency of the alarm level is greater than or equal to the preset frequency, sending the alarm information to alarm receiving equipment in a target alarm mode corresponding to the alarm level. It can be understood that when the number of times of occurrence of the alarm level is less than the preset number of times, the alarm information will not be sent out, and by this way, the number of alarms received by the alarm receiving device can be greatly reduced, and a large number of repeated alarms are avoided.
In some possible embodiments, when the alarm information is sent to the alarm receiving device in a text manner, the detailed device location, the degree of importance, the failure and/or risk reason, the device type, the device parameter, and the like of the device may be displayed on the front page of the alarm device, which is not limited herein. Therefore, the detailed information of the alarm device can be more detailed and intuitively known based on the displayed information, and corresponding emergency response measures can be conveniently taken based on the alarm information.
In the concrete implementation, after the equipment gives an alarm, the system can send different alarm information according to the importance degree of the current equipment, and can automatically confirm the position of the alarm equipment at the first time when the alarm information is generated, so that enterprise workers can conveniently and timely position the alarm equipment and take emergency response measures. After the alarm is released, the alarm information is not sent any more, and the position information, the alarm reason, the importance degree, the emergency response measures and the like of the alarm equipment can be fed back to the related system database. When the alarm information of any equipment including the target equipment is displayed and/or inquired based on the display equipment, the alarm information of any equipment is obtained from the standby information and is output to the display equipment, so that similar problems existing in an enterprise at present can be corrected and optimized, subsequent enterprise equipment is upgraded and modified, the alarm processing speed and accuracy of the enterprise can be improved, and loss can be stopped immediately. It should be noted here that, after the device generates an alarm, the timeliness of the system response alarm is triggered in seconds, the response speed is far higher than that of the current traditional alarm mode, and meanwhile, the alarm information can be sent to the corresponding enterprise staff with the same timeliness. Under the condition that the timeliness of responding to the alarm and transmitting the alarm information is triggered in the second level, the time consumed from the alarm generation of the equipment to the transmission of the alarm information to the staff of the enterprise is greatly shortened, and therefore the enterprise can take emergency response measures in the first time. The method and the system not only facilitate the enterprise to process the equipment alarm, but also can prevent serious consequences possibly caused by the fact that the equipment alarm cannot be solved for a long time.
In the embodiment of the invention, the alarm level when the equipment generates the alarm can be determined based on the information such as the position, the identification and the like of the equipment, so that different alarm modes are adopted according to different alarm levels, the flexibility of alarm management is greatly improved, and meanwhile, the information such as the position, the identification and the like of the equipment can be directly obtained, and the flexibility is better. Meanwhile, the low alarm level is filtered, so that the problems of alarm redundancy and corresponding untimely alarm can be greatly avoided, and the applicability is higher.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an apparatus alarm device according to an embodiment of the present invention. The equipment alarm device provided by the embodiment of the invention comprises:
an obtaining unit 21, configured to obtain device information of a target device, and extract device location information and/or device identification information carried in the device information;
a determining unit 22, configured to determine an alarm level of the target device based on the device location information and/or the device identification information acquired by the acquiring unit 21;
the determining unit 22 is configured to determine a target alarm manner corresponding to the target device based on the alarm level of the target device determined by the determining unit 22;
a sending unit 23, configured to, when it is detected that the target device sends an alarm, obtain alarm information of the target device, and send the alarm information to an alarm receiving device based on the target alarm manner determined by the determining unit 22.
In some possible embodiments, the warning device further includes:
the input unit 24 is further configured to input the device location information into a location class model, output a location weight of the target device based on the location class model, and determine a location class of the target device corresponding to the location weight based on a preset location weight and a class correspondence, where the location class model is obtained by training device location sample information, and the location class is used to determine an alarm class of the target device;
the input unit 24 is further configured to input the device identification information into an identification level model, output an identification weight of the target device based on the identification level model, and determine an identification level of the target device corresponding to the identification weight based on a preset identification weight and level correspondence, where the identification level model is obtained by training device identification sample information, and the identification level is used to determine an alarm level of the target device.
In some possible embodiments, the determining unit 22 is configured to determine, when the device location information or the device identification information is carried in the device information, a location level or an identification level of the target device as an alarm level of the target device;
The determining unit 22 is configured to, when the device information carries the device location information and the device identification information, obtain an alarm weight of the target device based on the location level and the identification level of the target device, and determine an alarm level of the target device based on a preset alarm weight and a level correspondence relationship.
In some possible embodiments, the alarm levels of the target device at least include a first alarm level and a second alarm level, and the alarm processing priority of the first alarm level is higher than that of the second alarm level;
the determining unit 22 is configured to determine, when the alarm level is a first alarm level, a first alarm manner corresponding to the first alarm level as a target alarm manner corresponding to the target device;
the determining unit 22 is configured to determine, when the alarm level is a second alarm level, a second alarm manner corresponding to the second alarm level as a target alarm manner corresponding to the target device;
the alarm instantaneity of the first alarm mode is higher than that of the second alarm mode, and the first alarm mode is different from the second alarm mode.
In some possible embodiments, the determining unit 22 is configured to:
determining a target log from the logs generated by the target equipment, wherein the target log comprises log contents for triggering the target equipment to send an alarm;
performing log analysis on the target log to determine at least one item of attribute information belonging to a preset alarm attribute from the log content, wherein the preset alarm attribute comprises one or more combinations of alarm time, alarm reason, alarm location, equipment type and equipment position;
the above-mentioned alarm device includes:
a generating unit 28 for generating alarm information based on the at least one item of attribute information.
In some possible embodiments, the above-mentioned warning device further includes:
a judging unit 25, configured to judge whether the alarm level of the target device determined by the determining unit 22 is greater than a preset alarm level;
the sending unit 23 is configured to send the alarm information to an alarm receiving device based on the target alarm manner determined by the determining unit 22 when the alarm level of the target device is greater than a preset alarm level;
a counting unit 26, configured to count alarm occurrence times corresponding to alarm levels when the alarm level of the target device is not greater than a preset alarm level, and send the alarm information to the alarm receiving device based on the target alarm manner when the alarm occurrence times corresponding to the alarm levels are greater than or equal to the preset times.
In some possible embodiments, the warning device further includes:
a storage unit 27, further configured to store the alarm information into a database to obtain standby information, where the database includes alarm information of one or more devices except the target device;
the obtaining unit 21 is further configured to obtain alarm information of any device from the standby information and output the alarm information of the any device to the display device when alarm information of any device including the target device is displayed and/or queried based on the display device.
In a specific implementation, the above-mentioned warning device may execute, through its built-in modules, the implementation manner provided in each step in fig. 1. For example, the obtaining unit 21 may be configured to obtain device information of a target device, and extract implementation manners such as device location information and/or device identification information carried in the device information, which may specifically refer to the implementation manners provided in the above steps, and are not described herein again. The determining unit 22 may be configured to determine, based on the device location information and/or the device identification information, implementation manners such as an alarm level of the target device, which may specifically refer to implementation manners provided in the above steps, and are not described herein again. The sending unit 23 may be configured to send the alarm information to an alarm receiving device based on the target alarm manner when the alarm information of the target device is obtained, which may specifically refer to the implementation manners provided in the above steps, and is not described herein again. The input unit 24 may be configured to input the device location information into a location level model, output a location weight of the target device based on the location level model, and determine an implementation manner such as a location level of the target device corresponding to the location weight based on a preset location weight and a level correspondence relationship, which may specifically refer to the implementation manners provided in the above steps and is not described herein again. The determining unit 25 may be configured to determine whether the alarm level of the target device is greater than a preset alarm level, and for details, reference may be made to the implementation manners provided in the above steps, which is not described herein again. The counting unit 26 may be configured to count the number of times of occurrence of an alarm corresponding to the alarm level when the alarm level of the target device is not greater than a preset alarm level, and send the alarm information to the alarm receiving device based on the target alarm mode when the number of times of occurrence of the alarm corresponding to the alarm level is greater than or equal to the preset number of times, which may specifically refer to the implementation manners provided in the above steps, and will not be described herein again. The storage unit 27 may be configured to store the alarm information in a database to obtain implementation manners such as standby information, which may specifically refer to the implementation manners provided in the above steps, and will not be described herein again. The generating unit 28 may be configured to generate implementation manners such as warning information based on the at least one item of attribute information, which may specifically refer to the implementation manners provided in the above steps, and will not be described herein again.
In the embodiment of the invention, the alarm can be managed in a grading way based on each module in the alarm device, the information such as the alarm grade, the alarm event, the position of the equipment and the like of the equipment can be determined based on different alarm modes, the filtering of the low-grade alarm information can be realized, the response speed and the management efficiency of the alarm are greatly improved, and the applicability is higher.
Referring to fig. 3, fig. 3 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention. As shown in fig. 3, the apparatus in this embodiment may include: one or more processors 301 and memory 302. The processor 301 and the memory 302 are connected by a bus 303. The memory 302 is used for storing a computer program comprising program instructions, and the processor 301 is used for executing the program instructions stored in the memory 302, and performing the following operations:
acquiring equipment information of target equipment, and extracting equipment position information and/or equipment identification information carried in the equipment information;
determining an alarm level of the target device based on the device location information and/or the device identification information;
determining a target alarm mode corresponding to the target equipment based on the alarm level of the target equipment;
And when the target equipment is detected to send an alarm, acquiring alarm information of the target equipment, and sending the alarm information to alarm receiving equipment based on the target alarm mode.
In some possible embodiments, the processor 301 is further configured to:
inputting the device location information into a location level model, outputting a location weight of the target device based on the location level model, and determining a location level of the target device corresponding to the location weight based on a preset location weight and a level corresponding relationship, wherein the location level model is obtained by training device location sample information, and the location level is used for determining an alarm level of the target device;
and/or inputting the equipment identification information into an identification grade model, outputting an identification weight of the target equipment based on the identification grade model, and determining the identification grade of the target equipment corresponding to the identification weight based on a preset identification weight and grade corresponding relation, wherein the identification grade model is obtained by training equipment identification sample information, and the identification grade is used for determining the alarm grade of the target equipment.
In some possible embodiments, the processor 301 is configured to:
If the device information carries the device location information or the device identification information, determining the location grade or the identification grade of the target device as the alarm grade of the target device;
if the device information carries the device location information and the device identification information, an alarm weight of the target device is obtained based on the location level and the identification level of the target device, and an alarm level of the target device is determined based on a preset alarm weight and level correspondence.
In some possible embodiments, the alarm levels of the target device at least include a first alarm level and a second alarm level, and the alarm processing priority of the first alarm level is higher than that of the second alarm level; the processor 301 is configured to:
if the alarm level is a first alarm level, determining a first alarm mode corresponding to the first alarm level as a target alarm mode corresponding to the target equipment;
if the alarm level is a second alarm level, determining a second alarm mode corresponding to the second alarm level as a target alarm mode corresponding to the target equipment;
the alarm instantaneity of the first alarm mode is higher than that of the second alarm mode, and the first alarm mode is different from the second alarm mode.
In some possible embodiments, the processor 301 is configured to:
determining a target log from the logs generated by the target equipment, wherein the target log comprises log content triggering the target equipment to send an alarm;
performing log analysis on the target log to determine at least one item of attribute information belonging to a preset alarm attribute from the log content, wherein the preset alarm attribute comprises one or more combinations of alarm time, alarm reason, alarm location, equipment type and equipment position;
and generating alarm information based on the at least one item of attribute information.
In some possible embodiments, the processor 301 is configured to:
judging whether the alarm level of the target equipment is greater than a preset alarm level;
if the alarm level of the target equipment is greater than a preset alarm level, sending the alarm information to alarm receiving equipment based on the target alarm mode;
and if the alarm level of the target equipment is not greater than the preset alarm level, counting the alarm occurrence times corresponding to the alarm level, and when the alarm occurrence times corresponding to the alarm level are greater than or equal to the preset times, sending the alarm information to the alarm receiving equipment based on the target alarm mode.
In some possible embodiments, the processor 301 is further configured to:
storing the alarm information into a database to obtain standby information, wherein the database comprises the alarm information of one or more devices except the target device;
when the alarm information of any equipment including the target equipment is displayed and/or inquired based on the display equipment, the alarm information of any equipment is acquired from the standby information and is output to the display equipment.
It should be understood that in some possible embodiments, the processor 301 may be a Central Processing Unit (CPU), and the processor may be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 302 may include both read-only memory and random access memory, and provides instructions and data to the processor 301. A portion of the memory 302 may also include non-volatile random access memory. For example, the memory 302 may also store device type information.
In a specific implementation, the device may execute the implementation manners provided in the steps in fig. 1 through the built-in functional modules, which may specifically refer to the implementation manners provided in the steps, and are not described herein again.
In the embodiment of the invention, the alarm level when the equipment generates the alarm can be determined based on the information such as the position, the identification and the like of the equipment, so that different alarm modes are adopted according to different alarm levels, the flexibility of alarm management is greatly improved, and meanwhile, the information such as the position, the identification and the like of the equipment can be directly obtained, and the flexibility is better. Meanwhile, the low alarm level is filtered, so that the problems of alarm redundancy and corresponding untimely alarm can be greatly avoided, and the applicability is higher.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, where the computer program includes program instructions, and the program instructions, when executed by a processor, implement the method provided in each step in fig. 1, which may specifically refer to the implementation manner provided in each step, and are not described herein again.
The computer readable storage medium may be the task processing device provided in any of the foregoing embodiments or an internal storage unit of the foregoing device, such as a hard disk or a memory of an electronic device. The computer readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash card (flash card), and the like, which are provided on the electronic device. The computer readable storage medium may further include a magnetic disk, an optical disk, a read-only memory (ROM), a Random Access Memory (RAM), and the like. Further, the computer readable storage medium may also include both an internal storage unit and an external storage device of the electronic device. The computer-readable storage medium is used for storing the computer program and other programs and data required by the electronic device. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
The terms "first", "second", and the like in the claims and in the description and drawings of the present invention are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items and includes such combinations.
Those of ordinary skill in the art will appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
While the invention has been described in connection with what is presently considered to be the most practical and preferred embodiment, it is to be understood that the invention is not to be limited to the disclosed embodiment, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (7)

1. A device alarm method, the method comprising:
acquiring equipment information of target equipment, and extracting equipment position information and/or equipment identification information carried in the equipment information;
inputting the device location information into a location level model, outputting a location weight of the target device based on the location level model, and determining a location level of the target device corresponding to the location weight based on a preset location weight and level correspondence, wherein the location level model is obtained by training device location sample information, and the location level is used for determining an alarm level of the target device; and/or inputting the equipment identification information into an identification grade model, outputting an identification weight of the target equipment based on the identification grade model, and determining the identification grade of the target equipment corresponding to the identification weight based on the corresponding relation between a preset identification weight and the grade, wherein the identification grade model is obtained by training equipment identification sample information, and the identification grade is used for determining the alarm grade of the target equipment;
If the device location information or the device identification information is carried in the device information, determining the location grade or the identification grade of the target device as the alarm grade of the target device;
if the device information carries the device position information and the device identification information, obtaining an alarm weight of the target device based on the position grade and the identification grade of the target device, and determining the alarm grade of the target device based on the corresponding relation between a preset alarm weight and the grade;
determining a target alarm mode corresponding to the target equipment based on the alarm level of the target equipment;
and when the target equipment is detected to send out an alarm, acquiring alarm information of the target equipment, and sending the alarm information to alarm receiving equipment based on the target alarm mode.
2. The method of claim 1, wherein the obtaining the alarm information of the target device comprises:
determining a target log from logs generated by the target equipment, wherein the target log comprises log content for triggering the target equipment to send an alarm;
performing log analysis on the target log to determine at least one item of attribute information belonging to a preset alarm attribute from the log content, wherein the preset alarm attribute comprises one or more combinations of alarm time, alarm reason, alarm place, equipment type and equipment position;
And generating alarm information based on the at least one item of attribute information.
3. The method according to claim 1 or 2, wherein the sending the alarm information to an alarm receiving device based on the target alarm mode comprises;
judging whether the alarm level of the target equipment is greater than a preset alarm level or not;
if the alarm level of the target equipment is greater than a preset alarm level, sending the alarm information to alarm receiving equipment based on the target alarm mode;
and if the alarm level of the target equipment is not greater than the preset alarm level, counting the alarm occurrence times corresponding to the alarm level, and when the alarm occurrence times corresponding to the alarm level are greater than or equal to the preset times, sending the alarm information to the alarm receiving equipment based on the target alarm mode.
4. The method of claim 3, wherein after sending the alert information to an alert receiving device based on the target alert mode, the method further comprises:
storing the alarm information into a database to obtain standby information, wherein the database also comprises the alarm information of one or more devices except the target device;
When the alarm information of any equipment including the target equipment is displayed and/or inquired based on display equipment, the alarm information of any equipment is obtained from the standby information and is output to the display equipment.
5. An equipment alerting device, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the device information of the target device and extracting the device position information and/or the device identification information carried in the device information;
the input unit is further configured to input the device location information into a location class model, output a location weight of the target device based on the location class model, and determine a location class of the target device corresponding to the location weight based on a preset location weight and a class correspondence, where the location class model is obtained by training device location sample information, and the location class is used to determine an alarm class of the target device;
the input unit is further configured to input the device identification information into an identification level model, output an identification weight of the target device based on the identification level model, and determine an identification level of the target device corresponding to the identification weight based on a preset identification weight and level correspondence, where the identification level model is obtained by training device identification sample information, and the identification level is used to determine an alarm level of the target device;
A determining unit, configured to determine, when the device location information or the device identification information is carried in the device information, a location level or an identification level of the target device as an alarm level of the target device; when the device information carries the device position information and the device identification information, obtaining an alarm weight of the target device based on the position level and the identification level of the target device, and determining the alarm level of the target device based on the corresponding relation between a preset alarm weight and the level;
the determining unit is further configured to determine a target alarm mode corresponding to the target device based on the alarm level of the target device;
and the sending unit is used for sending the alarm information to the alarm receiving equipment based on the target alarm mode determined by the determining unit when the alarm information of the target equipment is obtained.
6. A device comprising a processor and a memory, the processor and memory interconnected;
the memory for storing a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-4.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to carry out the method according to any one of claims 1-4.
CN201910405812.7A 2019-05-16 2019-05-16 Equipment alarm method and related device Active CN110232006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910405812.7A CN110232006B (en) 2019-05-16 2019-05-16 Equipment alarm method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910405812.7A CN110232006B (en) 2019-05-16 2019-05-16 Equipment alarm method and related device

Publications (2)

Publication Number Publication Date
CN110232006A CN110232006A (en) 2019-09-13
CN110232006B true CN110232006B (en) 2022-06-28

Family

ID=67860665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910405812.7A Active CN110232006B (en) 2019-05-16 2019-05-16 Equipment alarm method and related device

Country Status (1)

Country Link
CN (1) CN110232006B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110164101B (en) * 2019-04-09 2021-05-11 烽台科技(北京)有限公司 Alarm information processing method and equipment
CN112598205A (en) * 2019-09-17 2021-04-02 北京国双科技有限公司 Alarm information processing method and device, storage medium and electronic equipment
CN115987773A (en) 2019-10-12 2023-04-18 华为技术有限公司 Equipment management method, device and system
CN111564027B (en) * 2020-05-08 2022-05-13 北京深演智能科技股份有限公司 Alarm information processing method and device
CN112489350B (en) * 2020-11-27 2022-08-05 润建股份有限公司 Dynamic-optimization bank electricity safety alarm grading method
CN112488875A (en) * 2020-12-09 2021-03-12 岭澳核电有限公司 Network risk situation sensing method of nuclear power plant monitoring system and electronic equipment
CN114006758B (en) * 2021-10-29 2024-01-09 北京达佳互联信息技术有限公司 Method, device and storage medium for managing equipment identification

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5655068A (en) * 1993-06-10 1997-08-05 Adc Telecommunications, Inc. Point-to-multipoint performance monitoring and failure isolation system
CN102065385A (en) * 2009-11-12 2011-05-18 中兴通讯股份有限公司 Remote control method and device of alarm
JP2012203616A (en) * 2011-03-25 2012-10-22 Hitachi Kokusai Electric Inc Alarm system
CN106407077A (en) * 2016-09-21 2017-02-15 广州华多网络科技有限公司 A real-time alarm method and system
CN109347672A (en) * 2018-10-26 2019-02-15 南京天溯自动化控制系统有限公司 A kind of method and system pushing driving workflow based on message

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5655068A (en) * 1993-06-10 1997-08-05 Adc Telecommunications, Inc. Point-to-multipoint performance monitoring and failure isolation system
CN102065385A (en) * 2009-11-12 2011-05-18 中兴通讯股份有限公司 Remote control method and device of alarm
JP2012203616A (en) * 2011-03-25 2012-10-22 Hitachi Kokusai Electric Inc Alarm system
CN106407077A (en) * 2016-09-21 2017-02-15 广州华多网络科技有限公司 A real-time alarm method and system
CN109347672A (en) * 2018-10-26 2019-02-15 南京天溯自动化控制系统有限公司 A kind of method and system pushing driving workflow based on message

Also Published As

Publication number Publication date
CN110232006A (en) 2019-09-13

Similar Documents

Publication Publication Date Title
CN110232006B (en) Equipment alarm method and related device
CN110224858B (en) Log-based alarm method and related device
CN103220173B (en) A kind of alarm monitoring method and supervisory control system
CN102937930B (en) Application program monitoring system and method
CN108572907B (en) Alarm method, alarm device, electronic equipment and computer readable storage medium
CN112631913B (en) Method, device, equipment and storage medium for monitoring operation faults of application program
CN105095056A (en) Method for monitoring data in data warehouse
CN112311617A (en) Configured data monitoring and alarming method and system
CN111475370A (en) Operation and maintenance monitoring method, device and equipment based on data center and storage medium
CN113190423B (en) Method, device and system for monitoring service data
KR20180037342A (en) Application software error monitoring, statistics management service and solution method.
CN113312200A (en) Event processing method and device, computer equipment and storage medium
CN109840183B (en) Data center grading early warning method and device and storage medium
CN114443437A (en) Alarm root cause output method, apparatus, device, medium, and program product
KR20180015027A (en) Apparatus and Method for Automatic Error Alarm of DDS Applications System
CN116069838A (en) Data processing method, device, computer equipment and storage medium
CN117765701A (en) Information detection method and device, electronic equipment and storage medium
CN110633165B (en) Fault processing method, device, system server and computer readable storage medium
CN111835566A (en) System fault management method, device and system
CN115496470A (en) Full-link configuration data processing method and device and electronic equipment
CN115408236A (en) Log data auditing system, method, equipment and medium
CN114049100A (en) Wisdom government affairs integration platform based on letter creates environment
CN114500316A (en) Method and system for inspecting equipment of Internet of things
CN113946465A (en) Big data fault processing method and related equipment thereof
CN114238069A (en) Web application firewall testing method and device, electronic equipment, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant