CN109412852B - Alarm method, alarm device, computer equipment and storage medium - Google Patents

Alarm method, alarm device, computer equipment and storage medium Download PDF

Info

Publication number
CN109412852B
CN109412852B CN201811271497.5A CN201811271497A CN109412852B CN 109412852 B CN109412852 B CN 109412852B CN 201811271497 A CN201811271497 A CN 201811271497A CN 109412852 B CN109412852 B CN 109412852B
Authority
CN
China
Prior art keywords
alarm
current
level
state parameter
current alarm
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
CN201811271497.5A
Other languages
Chinese (zh)
Other versions
CN109412852A (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems 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 Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201811271497.5A priority Critical patent/CN109412852B/en
Publication of CN109412852A publication Critical patent/CN109412852A/en
Application granted granted Critical
Publication of CN109412852B publication Critical patent/CN109412852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0604Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time
    • H04L41/0609Management of faults, events, alarms or notifications using filtering, e.g. reduction of information by using priority, element types, position or time based on severity or priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Maintenance And Management Of Digital Transmission (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to an alarm method, an alarm device, computer equipment and a storage medium. The method comprises the following steps: acquiring current alarm detection data; obtaining a current alarm level according to the current alarm detection data and a plurality of alarm level thresholds; determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level; and if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level. By adopting the method, the alarm information is generated and reported only when the current alarm state parameter meets the alarm reporting condition, thereby avoiding the frequent reporting of the alarm information caused by the instantaneous jitter of the alarm detection parameter, preventing the data congestion in the network management or network element equipment from being caused, and not influencing the equipment performance.

Description

Alarm method, alarm device, computer equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an alarm method and apparatus, a computer device, and a storage medium.
Background
In a communication system, a plurality of alarm detection data need to be monitored in network management equipment and network element equipment. When the alarm detection data exceeds the alarm threshold, alarm information is generated and reported, and operation and maintenance personnel are informed to adjust the equipment in time so as to recover the alarm.
In the conventional technology, a multi-level alarm threshold and an alarm clearing threshold are set, and when alarm detection data reaches a certain alarm threshold, alarm information is reported immediately. In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: traffic of the communication system is changing in real time, and thus alarm detection data on devices in the communication system may also exhibit a dynamically changing state. The frequent reporting of multi-level alarm information can be generated by applying the traditional technology, so that data congestion in network management or network element equipment is caused, and the equipment performance is influenced.
Disclosure of Invention
Therefore, it is necessary to provide an alarm method, an alarm device, computer equipment, and a storage medium for solving the problem of data congestion in network management or network element equipment caused by frequent reporting of alarm information in the conventional technology.
In one aspect, an embodiment of the present invention provides an alarm method, including:
acquiring current alarm detection data;
obtaining a current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
In one embodiment, the step of determining whether the current alarm state parameter meets the alarm reporting condition includes:
determining a state stability threshold corresponding to the current alarm level;
and judging whether the current alarm state parameter is equal to a state stability threshold corresponding to the current alarm level.
In one embodiment, the step of determining the current alarm state parameter comprises:
and if the current alarm level is the same as the previous alarm level, determining the current alarm state parameter according to the previous alarm state parameter.
In one embodiment, the step of determining the current alarm state parameter further comprises:
if the current alarm level is different from the previous alarm level, acquiring an initial alarm state parameter corresponding to the current alarm level, and setting the initial alarm state parameter corresponding to the current alarm level as the current alarm state parameter.
In one embodiment, if the current alarm state parameter satisfies the alarm reporting condition, the step of generating and reporting the alarm information includes:
when the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level, comparing the current alarm level with the alarm level contained in the alarm information reported last time;
and if the current alarm level is different from the alarm level contained in the alarm information reported last time, generating and reporting the alarm information.
In one embodiment, the method further comprises the following steps:
when the current alarm level is different from the alarm level contained in the alarm information reported last time, selecting the alarm information meeting the preset condition from the reported alarm information; the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level;
generating and reporting alarm clearing information; the alarm clearing information is used for clearing the alarm information meeting the preset condition.
On the other hand, an embodiment of the present invention further provides an alarm device, including:
the data acquisition module is used for acquiring current alarm detection data;
the alarm level determining module is used for obtaining the current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
a reporting condition judging module for determining the current alarm state parameter and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and the alarm information reporting module is used for generating and reporting alarm information when the current alarm state parameter meets the alarm reporting condition, wherein the alarm information comprises the current alarm level.
In one embodiment, the reporting condition determining module further includes:
the state stability threshold value determining unit is used for acquiring a state stability threshold value corresponding to the current alarm level;
and the judging unit is used for judging whether the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level.
In still another aspect, an embodiment of the present invention further provides a computer device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
acquiring current alarm detection data;
obtaining a current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
In yet another aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, the computer program, when executed by a processor, implementing the steps of:
acquiring current alarm detection data;
obtaining a current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
According to the alarming method, the alarming device, the computer equipment and the storage medium, the current alarming level is obtained through the current alarming detection data and the plurality of alarming level thresholds, when the current alarming level is obtained, the alarming information is not directly reported, whether the current alarming state parameter meets the preset alarming reporting condition or not is judged, the alarming information is generated and reported only when the current alarming state parameter meets the alarming reporting condition, the frequent reporting of the alarming information caused by the instantaneous jitter of the alarming detection parameter is avoided, the data congestion in the network management or the network element equipment is prevented from being caused, and the equipment performance is not influenced.
Drawings
FIG. 1 is a flow diagram of an alarm method in one embodiment;
FIG. 2 is a flow chart illustrating an alerting method in another embodiment;
FIG. 3 is a flow chart illustrating an alerting method according to yet another embodiment;
FIG. 4 is a block diagram of an alert device in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
An embodiment of the present invention provides an alarm method, as shown in fig. 1, including:
step S100, acquiring current alarm detection data;
step S200, obtaining the current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
step S400, determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
step S500, if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
The alarm detection data is data that needs to be alarmed in the communication system, and may be some data such as usage rate, overload rate, capacity, and the like. In one embodiment, the alarm detection data is real-time utilization of ground circuit timeslot resources under a single POOL of the GSM gateway.
Specifically, the alarm detection data is collected to obtain the current alarm detection data. And comparing the current alarm detection data with alarm level thresholds corresponding to a plurality of alarm levels, and calculating to obtain the current alarm level corresponding to the current alarm detection data. And determining the current alarm state parameter, wherein the current alarm state parameter can represent the times of continuously obtaining the current alarm level. And if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level. The alarm reporting condition may be a preset condition that different alarm levels are the same. For example, the number of times of continuously obtaining the current alarm level reaches a certain preset number of times. The alarm reporting condition may also be a preset condition preset for each alarm level. For example, for a level 1 alarm, the number of times of continuously obtaining the level 1 alarm reaches 5 times as an alarm reporting condition; for the 2-level alarm, the alarm reporting condition is that the number of times of continuously obtaining the 2-level alarm reaches 3 times. The reporting may be to the network management device, or to the management and control software on the same device.
In the alarm method provided by this embodiment, the current alarm level is obtained through the current alarm detection data and the multiple alarm level thresholds, when the current alarm level is obtained, the alarm information is not reported directly, but whether the current alarm state parameter meets the preset alarm reporting condition is judged, and the alarm information is generated and reported only when the current alarm state parameter meets the alarm reporting condition, so that frequent reporting of the alarm information caused by the transient jitter of the alarm detection parameter is avoided, and data congestion in a network manager or network element device is prevented from causing and the performance of the device is not affected.
In an embodiment, as shown in fig. 2, the step of determining whether the current alarm state parameter meets the alarm reporting condition includes:
step S430, determining a state stability threshold corresponding to the current alarm level;
step S440, determine whether the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level.
Specifically, a state stability threshold is preset for each alarm level. And determining a state stability threshold corresponding to the current alarm level according to the current alarm level. And judging whether the current alarm state parameter is equal to a state stability threshold corresponding to the current alarm level. If the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level, the current alarm state parameter is indicated to meet the alarm reporting condition, the alarm level is continuously stabilized on the current alarm level, and alarm information is generated and reported; if the current alarm state parameter is not equal to the state stability threshold corresponding to the current alarm level, the current alarm state parameter is indicated to not meet the alarm reporting condition, and the steps of generating and reporting alarm information are not performed. When the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level, that is, the alarm level is continuously maintained at the current alarm level, the alarm information is generated and reported, and the reported alarm level is more accurate.
In one embodiment, as shown in FIG. 2, the step of determining the current alarm state parameter includes:
step S410, if the current alarm level is the same as the previous alarm level, determining the current alarm state parameter according to the previous alarm state parameter.
Specifically, when the current alarm level is the same as the previous alarm level, the previous alarm state parameter is obtained, and the current alarm state parameter is determined according to the previous alarm state parameter. In one embodiment, the current alarm state parameter is obtained by adding 1 to the previous alarm state parameter. In another embodiment, the previous alarm state parameter is subtracted by 1 to obtain the current alarm state parameter.
In one embodiment, as shown in fig. 2, the step of determining the current alarm state parameter further comprises:
step S420, if the current alarm level is different from the previous alarm level, obtaining an initial alarm state parameter corresponding to the current alarm level, and setting the initial alarm state parameter corresponding to the current alarm level as the current alarm state parameter.
Specifically, an initial alarm state parameter and a state stability threshold are preset for each alarm level. When the current alarm level is different from the previous alarm level, acquiring an initial alarm state parameter corresponding to the current alarm level, and determining that the value of the current alarm state parameter is equal to the value of the initial alarm state parameter corresponding to the current alarm level.
And if the next alarm level is the same as the current alarm level, obtaining the next alarm state parameter according to the initial alarm state parameter. In one embodiment, the state stability threshold is smaller than the initial alarm state parameter, and the initial state parameter is subtracted by 1 to obtain the next alarm state parameter. In one embodiment, the state stability threshold is greater than the initial alarm state parameter, and 1 is added to the initial state parameter to obtain the next alarm state parameter.
In one embodiment, the difference between the initial alarm state parameter and the state stability threshold set for different alarm levels is different. For increasing alarm levels, the difference is gradually decreased. For example, 3 alarm levels are preset, the difference between the initial alarm state parameter of the level 0 alarm and the state stability threshold is set to be 8, the difference between the initial alarm state parameter of the level 1 alarm and the state stability threshold is set to be 5, and the difference between the initial alarm state parameter of the level 2 alarm and the state stability threshold is set to be 3. And reporting the larger alarm level for less times, so that the priority and timely reporting of the larger alarm level is realized, and the high-risk operation condition of the communication system can be known by operation and maintenance personnel preferentially.
In an embodiment, as shown in fig. 2, if the current alarm state parameter meets the alarm reporting condition, the step of generating and reporting the alarm information further includes:
step S510, when the current alarm state parameter is equal to the state stability threshold value corresponding to the current alarm level, comparing the current alarm level with the alarm level contained in the alarm information reported last time;
step S520, if the current alarm level is different from the alarm level contained in the alarm information reported last time, generating and reporting the alarm information.
Specifically, when the current alarm state parameter is judged to be equal to the state stability threshold corresponding to the current alarm level, the current alarm level is compared with the alarm level contained in the alarm information reported last time. If the current alarm level is different from the alarm level contained in the alarm information reported last time, generating and reporting the alarm information; and if the current alarm level is the same as the alarm level contained in the alarm information reported last time, the generation and the report of the alarm information are not carried out. When the alarm detection parameter is stable, the alarm level and the alarm state parameter can be kept unchanged continuously, so that the repeated reporting of the same alarm level can be prevented, and the burden of an alarm receiving end is reduced.
In one embodiment, as shown in fig. 3, further comprising the steps of:
step S600, when the current alarm level is different from the alarm level contained in the alarm information reported last time, selecting the alarm information meeting the preset condition from the reported alarm information; the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level;
step S700, generating and reporting alarm clearing information; the alarm clearing information is used for clearing the alarm information meeting the preset condition.
Specifically, each time the alarm information is reported, the alarm information is also synchronously stored. And when judging that the current alarm level is different from the alarm level contained in the alarm information reported last time, selecting the alarm information meeting the preset condition from the reported alarm information. The preset condition is that the included alarm level is larger than the current alarm level. And generating and reporting alarm clearing information according to the selected result, and clearing the alarm information which is reported to the network management equipment or the management and control software on the same equipment and meets the preset condition. The method and the device avoid the false alarm of the alarm information caused by the fact that when the management and control software on the network management equipment or the same equipment receives the alarm information containing the current alarm level, the alarm information which is received before and contains the alarm level higher than the current alarm level is also reserved.
In one embodiment, the alarm method operates in a GSM gateway device, and the alarm detection data is real-time utilization rate of ground circuit timeslot resources under a single POOL of the GSM gateway. When the GSM gateway equipment operates and processes GSM signaling service, dynamic allocation is carried out on a plurality of time slots in ground circuit time slot resources, the state of the time slots is refreshed along with the dynamic allocation, and the state is divided into idle state and use state. The GSM gateway device manages the state of all ground circuit resources. The real-time utilization rate of the ground circuit time slot under a single POOL of the GSM gateway is the quotient of the utilization number of the ground circuit time slot under the POOL and the total number of the ground circuit time slots, and reflects the service condition of the ground circuit time slot resources under the POOL.
And presetting a plurality of alarm level thresholds and alarm levels for the real-time utilization rate of the time slot resources of the ground circuit of the GSM gateway. 3 alarm level thresholds are set, 60%, 70% and 80%, respectively. 4 alarm levels are set, namely a 0-level alarm (alarm clear level), a 1-level alarm, a 2-level alarm and a 3-level alarm.
And corresponding to each alarm level, presetting initial alarm state parameters and state stability threshold values. The initial alarm state parameter for the level 0 alarm is set to 105 and the state stability threshold is set to 100. The initial alarm state parameter for the level 1 alarm is set to 205 and the state stability threshold is set to 200. The initial alarm state parameter for the level 2 alarm is set to 305 and the state stability threshold is set to 300. The initial alarm state parameter for the level 3 alarm is set to 405 and the state stability threshold is set to 400.
And periodically and continuously acquiring the real-time utilization rate of ground circuit time slot resources under a single POOL of the GSM gateway and executing an alarm method. And when the timing of the preset time period is finished, acquiring the real-time utilization rate of the ground circuit time slot resources under the single POOL of the current GSM gateway, and sequentially comparing the real-time utilization rate of the ground circuit time slot resources under the single POOL of the current GSM gateway with 3 preset alarm level thresholds to determine the current alarm level. If the real-time utilization rate of the ground circuit time slot resources under a single POOL of the GSM gateway is less than 60%, the current alarm level is alarm clearing; if the real-time utilization rate of the ground circuit time slot resources under a single POOL of the GSM gateway is more than 60% and less than 70%, the current alarm level is a level 1 alarm; if the real-time utilization rate of the ground circuit time slot resources under a single POOL of the GSM gateway is more than 70% and less than 80%, the current alarm level is 2-level alarm; and if the real-time utilization rate of the ground circuit time slot resources under a single POOL of the GSM gateway is more than 80%, the current alarm level is 3-level alarm.
After the current alarm level is obtained, if the current alarm level is different from the alarm level obtained at the end of the previous preset time period, the initial alarm state parameter corresponding to the current alarm level is used as the current alarm state parameter, and the continuity counting of the current alarm level is started. And if the alarm level obtained at the end of the next preset time period is the same as the current alarm level, subtracting 1 from the current alarm state parameter to serve as the next alarm state parameter. By analogy, when the same alarm level is obtained at the 6 th time, the current alarm state parameter is equal to the state stability threshold value of the current alarm level, and the alarm state parameter meets the alarm reporting condition.
When the alarm state parameter meets the alarm reporting condition, comparing whether the current alarm level is the same as the alarm level contained in the alarm information reported last time; if the alarm information is the same, the alarm information containing the same alarm level is not reported repeatedly. If not, on one hand, generating and reporting alarm information, wherein the alarm information comprises the current alarm level; meanwhile, on the other hand, in the reported alarm information, the alarm information meeting the preset condition is selected, and the alarm clearing information is generated and reported according to the selected result, wherein the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level.
The following specifically exemplifies the execution flow of the above-mentioned alarm method. Before the alarm method is executed, the initial alarm level is set to be 0 level alarm, and the alarm state parameter is 0.
And when the timing of the first preset time period is finished, acquiring the real-time utilization rate of ground circuit time slot resources under a single POOL of the GSM gateway, and judging that the current alarm level is 2-level alarm according to a preset alarm level threshold value. The current alarm level is different from the initial alarm level and the current alarm state parameter is set to the initial alarm state parameter 305 for the level 2 alarm. The current alarm state parameter 305 is not equal to the state stability threshold 300 of the level 2 alarm, does not satisfy the alarm reporting condition, does not generate and report the alarm information, and then performs timing of a second preset time period.
And when the timing of the second preset time period is finished, acquiring the real-time utilization rate of the ground circuit time slot resources under a single POOL of the GSM gateway, and judging that the current alarm level is 2-level alarm according to a preset alarm level threshold value. The current alarm level is the same as the alarm level of the first period and is 2-level alarm. Subtracting 1 from the previous alarm state parameter 305 to obtain a current alarm state parameter 304, wherein the current alarm state parameter 304 is not equal to the state stability threshold 300 of the 2-level alarm and does not meet the alarm reporting condition, and then timing a third preset time period.
And the same cycle processing is carried out by analogy, and the current alarm level obtained in each cycle is 2-level alarm. When the timing of the sixth preset time period is finished, the current alarm level is still obtained to be 2-level alarm. And subtracting 1 from the previous alarm state parameter 301 to obtain the current alarm state parameter 300, wherein the current alarm state parameter 300 is equal to the state stability threshold 300 of the 2-level alarm, and the alarm reporting condition is met. At this time, whether the 2-level alarm has been reported in the previous time is judged, and the judgment result is no because the current alarm state parameter is judged to meet the alarm reporting condition for the first time after the alarm method is started and no reported alarm information exists. Generating and reporting alarm information, wherein the alarm level contained in the alarm information is 2-level alarm; and meanwhile, selecting the alarm information meeting the preset condition from the reported alarm information, wherein the selection result is null and no reported alarm clearing information is generated because the reported alarm information does not exist.
And then, according to the method, the preset time period is cycled for timing and alarm judgment, and the level 1 alarm is obtained for 5 times continuously. And then, when the timing of the next period, namely the twelfth preset time period, is ended, the current alarm level is still obtained as the level 1 alarm, the previous alarm state parameter 201 is reduced by 1 to obtain the current alarm state parameter 200, and the current alarm state parameter 200 is equal to the state stability threshold 200 of the level 1 alarm, so that the alarm reporting condition of the alarm state parameter is met. The level of the level 1 alarm is not equal to the level of the level 2 alarm contained in the alarm information reported last time. Generating and reporting alarm information, wherein the alarm level contained in the alarm information is a level 1 alarm; and meanwhile, selecting alarm information with alarm level greater than 1 level alarm from the reported alarm information, obtaining a selection result as alarm information with 2 level alarm, generating and reporting alarm clearing information, wherein the alarm clearing information is used for deleting the selected alarm information with 2 level alarm.
In another embodiment, when a certain alarm level is obtained for the first time, an initial alarm state parameter corresponding to the alarm level is obtained, and the initial alarm state parameter is subtracted by 1 to be used as the current alarm state parameter. And then, continuously obtaining the alarm level for the second time, and subtracting 1 from the previous alarm state parameter to be used as the current alarm state parameter. And so on until the alarm level is obtained for the 5 th time continuously.
It should be noted that the data acquired in each period, the obtained alarm level, the alarm state parameter, the alarm information reported each time and the alarm level included in the alarm information are all stored in an association table. When the data is called later, the data is called from the association table.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided an alerting device comprising:
the data obtaining module 610 is configured to obtain current alarm detection data.
And an alarm level determining module 620, configured to obtain a current alarm level according to the current alarm detection data and the multiple alarm level thresholds.
A reporting condition determining module 640, configured to determine a current alarm state parameter, and determine whether the current alarm state parameter meets an alarm reporting condition; the current alarm state parameter is used to indicate the number of times the current alarm level is continuously obtained.
And an alarm information reporting module 650, configured to generate and report alarm information when the current alarm state parameter meets an alarm reporting condition, where the alarm information includes a current alarm level.
In an embodiment, the reporting condition determining module 640 further includes:
and the state stability threshold value determining unit is used for determining a state stability threshold value corresponding to the current alarm level.
And the judging unit is used for judging whether the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level.
In one embodiment, the reporting condition determining module 640 includes:
and the first alarm state parameter determining unit is used for determining the current alarm state parameter according to the previous alarm state parameter when the current alarm level is the same as the previous alarm level.
In an embodiment, the reporting condition determining module 640 further includes:
and the second alarm state parameter determining unit is used for acquiring the initial alarm state parameter corresponding to the current alarm level when the current alarm level is different from the previous alarm level, and setting the initial alarm state parameter corresponding to the current alarm level as the current alarm state parameter.
In one embodiment, the alarm information reporting module 650 further includes:
and the first comparison unit is used for comparing the current alarm level with the alarm level contained in the alarm information reported last time when the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level.
And the alarm information reporting unit is used for generating and reporting the alarm information when the current alarm level is different from the alarm level contained in the alarm information reported last time.
In one embodiment, further comprising:
the alarm information selection module is used for selecting alarm information meeting preset conditions from the reported alarm information when the current alarm level is different from the alarm level contained in the alarm information reported last time; the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level.
The alarm clearing information reporting module is used for generating and reporting alarm clearing information; the alarm clearing information is used for clearing the alarm information meeting the preset condition.
For the specific definition of the warning device, reference may be made to the above definition of the warning method, which is not described herein again. The modules in the alarm device can be wholly or partially realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device comprises a processor, a memory and a network interface which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement an alert method.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring current alarm detection data;
obtaining a current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
determining a state stability threshold corresponding to the current alarm level;
and judging whether the current alarm state parameter is equal to a state stability threshold corresponding to the current alarm level.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
and if the current alarm level is the same as the previous alarm level, determining the current alarm state parameter according to the previous alarm state parameter.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
if the current alarm level is different from the previous alarm level, acquiring an initial alarm state parameter corresponding to the current alarm level, and setting the initial alarm state parameter corresponding to the current alarm level as the current alarm state parameter.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level, comparing the current alarm level with the alarm level contained in the alarm information reported last time;
and if the current alarm level is different from the alarm level contained in the alarm information reported last time, generating and reporting the alarm information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
when the current alarm level is different from the alarm level contained in the alarm information reported last time, selecting the alarm information meeting the preset condition from the reported alarm information; the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level;
generating and reporting alarm clearing information; the alarm clearing information is used for clearing the alarm information meeting the preset condition.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring current alarm detection data;
obtaining a current alarm level according to the current alarm detection data and a plurality of alarm level thresholds;
determining the current alarm state parameter, and judging whether the current alarm state parameter meets the alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and if the current alarm state parameter meets the alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
In one embodiment, the computer program when executed by the processor further performs the steps of:
determining a state stability threshold corresponding to the current alarm level;
and judging whether the current alarm state parameter is equal to a state stability threshold corresponding to the current alarm level.
In one embodiment, the computer program when executed by the processor further performs the steps of:
and if the current alarm level is the same as the previous alarm level, determining the current alarm state parameter according to the previous alarm state parameter.
In one embodiment, the computer program when executed by the processor further performs the steps of:
if the current alarm level is different from the previous alarm level, acquiring an initial alarm state parameter corresponding to the current alarm level, and setting the initial alarm state parameter corresponding to the current alarm level as the current alarm state parameter.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level, comparing the current alarm level with the alarm level contained in the alarm information reported last time;
and if the current alarm level is different from the alarm level contained in the alarm information reported last time, generating and reporting the alarm information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
when the current alarm level is different from the alarm level contained in the alarm information reported last time, selecting the alarm information meeting the preset condition from the reported alarm information; the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level;
generating and reporting alarm clearing information; the alarm clearing information is used for clearing the alarm information meeting the preset condition.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An alarm method, applied to a communication system, the method comprising:
acquiring current alarm detection data;
comparing the current alarm detection data with a plurality of alarm level thresholds to obtain a current alarm level;
determining a current alarm state parameter, and judging whether the current alarm state parameter meets an alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and if the current alarm state parameter meets an alarm reporting condition, generating and reporting alarm information, wherein the alarm information comprises the current alarm level.
2. The alarm method according to claim 1, wherein the step of determining whether the current alarm state parameter satisfies an alarm reporting condition comprises:
determining a state stability threshold corresponding to the current alarm level;
and judging whether the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level.
3. The alerting method of claim 2 wherein the step of determining current alert state parameters comprises:
and if the current alarm level is the same as the previous alarm level, determining the current alarm state parameter according to the previous alarm state parameter.
4. The alert method of claim 3 wherein the step of determining current alert state parameters further comprises:
if the current alarm level is different from the previous alarm level, acquiring an initial alarm state parameter corresponding to the current alarm level, and setting the initial alarm state parameter corresponding to the current alarm level as the current alarm state parameter.
5. The alarm method according to claim 4, wherein the step of generating and reporting alarm information if the current alarm state parameter satisfies an alarm reporting condition comprises:
when the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level, comparing the current alarm level with the alarm level contained in the alarm information reported last time;
and if the current alarm level is different from the alarm level contained in the alarm information reported last time, generating and reporting the alarm information.
6. The warning method according to claim 5, further comprising the steps of:
when the current alarm level is different from the alarm level contained in the alarm information reported last time, selecting the alarm information meeting the preset condition from the reported alarm information; the preset condition is that the alarm level contained in the alarm information is greater than the current alarm level;
generating and reporting alarm clearing information; and the alarm clearing information is used for clearing the alarm information meeting the preset condition.
7. An alerting device for use in a communication system, the device comprising:
the data acquisition module is used for acquiring current alarm detection data;
the alarm level determining module is used for comparing the current alarm detection data with a plurality of alarm level thresholds to obtain the current alarm level;
a reporting condition judging module, configured to determine a current alarm state parameter, and judge whether the current alarm state parameter meets an alarm reporting condition; the current alarm state parameter is used for indicating the times of continuously obtaining the current alarm level;
and the alarm information reporting module is used for generating and reporting alarm information when the current alarm state parameter meets an alarm reporting condition, wherein the alarm information comprises the current alarm level.
8. The alarm device according to claim 7, wherein the reporting condition determining module further comprises:
a state stability threshold determining unit, configured to obtain a state stability threshold corresponding to the current alarm level;
and the judging unit is used for judging whether the current alarm state parameter is equal to the state stability threshold corresponding to the current alarm level.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201811271497.5A 2018-10-29 2018-10-29 Alarm method, alarm device, computer equipment and storage medium Active CN109412852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811271497.5A CN109412852B (en) 2018-10-29 2018-10-29 Alarm method, alarm device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811271497.5A CN109412852B (en) 2018-10-29 2018-10-29 Alarm method, alarm device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109412852A CN109412852A (en) 2019-03-01
CN109412852B true CN109412852B (en) 2022-05-03

Family

ID=65469883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811271497.5A Active CN109412852B (en) 2018-10-29 2018-10-29 Alarm method, alarm device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109412852B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110018943B (en) * 2019-04-11 2023-01-10 苏州浪潮智能科技有限公司 Disk warning method and system, electronic equipment and storage medium
CN110660198A (en) * 2019-09-29 2020-01-07 广东美的制冷设备有限公司 Alarm information processing method and device and household appliance
CN111026642A (en) * 2019-11-14 2020-04-17 山东中创软件商用中间件股份有限公司 Database operation detection system, method and device and computer readable storage medium
CN111186337A (en) * 2020-01-14 2020-05-22 深圳天邦达科技有限公司 Battery fault judging method and device
CN111564027B (en) * 2020-05-08 2022-05-13 北京深演智能科技股份有限公司 Alarm information processing method and device
CN112087331B (en) * 2020-09-03 2023-04-25 北京陶乐科技有限公司 Alarm management system and method based on big data
CN112564951B (en) * 2020-11-27 2023-01-20 广东电网有限责任公司广州供电局 Method, device, computer equipment and storage medium for avoiding alarm storm
CN113607336A (en) * 2021-07-28 2021-11-05 安徽理工大学 Distributed detection system and detection method for leakage of vertically-paved plastic seepage-proof curtain
CN113760668A (en) * 2021-08-30 2021-12-07 浪潮电子信息产业股份有限公司 Fault warning method, system and related device of cloud platform
CN113923103A (en) * 2021-12-06 2022-01-11 深圳市城市交通规划设计研究中心股份有限公司 Alarm method, alarm device, cloud service platform and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62238147A (en) * 1986-04-10 1987-10-19 Sharp Corp Alarm device
CN1645818A (en) * 2005-01-28 2005-07-27 港湾网络有限公司 Alarming inhibiting method based on inhibiting account
CN101128001A (en) * 2006-08-18 2008-02-20 中兴通讯股份有限公司 Processing method for surge alarm of network element management system
CN101132589A (en) * 2006-08-24 2008-02-27 中兴通讯股份有限公司 Oscillation alarm processing method
CN106713049A (en) * 2017-02-04 2017-05-24 杭州迪普科技股份有限公司 Alarm method and device of monitor

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102566475B (en) * 2010-12-17 2015-07-08 北京北方微电子基地设备工艺研究中心有限责任公司 Method and device for processing monitoring alarm and plasma processing device
CN104009854B (en) * 2013-02-21 2019-01-22 中兴通讯股份有限公司 A kind of alert processing method and device, alarm association information setting method
CN104735719B (en) * 2015-03-13 2018-07-06 京信通信***(中国)有限公司 A kind of method and apparatus of premature beats
CN104880247B (en) * 2015-05-04 2016-01-20 华中科技大学 A kind of group alarm method for rotating machinery on-line monitoring system
CN106557407B (en) * 2016-11-14 2020-03-17 腾讯科技(深圳)有限公司 Method and device for monitoring equipment load
CN107547262B (en) * 2017-07-25 2021-07-06 新华三技术有限公司 Method and device for generating alarm level and network management equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62238147A (en) * 1986-04-10 1987-10-19 Sharp Corp Alarm device
CN1645818A (en) * 2005-01-28 2005-07-27 港湾网络有限公司 Alarming inhibiting method based on inhibiting account
CN101128001A (en) * 2006-08-18 2008-02-20 中兴通讯股份有限公司 Processing method for surge alarm of network element management system
CN101132589A (en) * 2006-08-24 2008-02-27 中兴通讯股份有限公司 Oscillation alarm processing method
CN106713049A (en) * 2017-02-04 2017-05-24 杭州迪普科技股份有限公司 Alarm method and device of monitor

Also Published As

Publication number Publication date
CN109412852A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109412852B (en) Alarm method, alarm device, computer equipment and storage medium
CN108509323B (en) Service processing method and device based on log analysis and computer equipment
CN110460676B (en) Request quantity control method and device, storage medium and computer equipment
CN109343965A (en) Resource adjusting method, device, cloud platform and server
CN110677459A (en) Resource adjusting method and device, computer equipment and computer storage medium
CN111881004A (en) Hardware resource control method, device, equipment and storage medium
CN109815004B (en) Request load control method, device, storage medium and computer equipment
CN111585824B (en) Resource distribution method, device and system and electronic equipment
CN112910723B (en) Edge terminal management method, device, equipment and storage medium
CN112689007B (en) Resource allocation method, device, computer equipment and storage medium
CN108769936B (en) Short message distribution method and device, computer equipment and storage medium
CN112564951A (en) Method, device, computer equipment and storage medium for avoiding alarm storm
CN112527544A (en) Server, and method and device for triggering fusing
CN111062590A (en) Electricity abnormal behavior detection method and device, computer equipment and storage medium
CN109039694B (en) Global network resource allocation method and device for service
CN110764975B (en) Early warning method and device for equipment performance and monitoring equipment
CN110955516B (en) Batch task processing method and device, computer equipment and storage medium
CN109656707B (en) Metering data acquisition method and device, computer equipment and storage medium
WO2015011220A1 (en) Monitoring network use of resources
CN112346880A (en) Interface calling method and device, computer readable storage medium and computer equipment
CN109684182B (en) Method and device for predicting influence of network congestion on network quality
CN114390005B (en) Method and device for processing communication link blocking, electronic equipment and storage medium
JP4452236B2 (en) Node device and communication network system
CN110890977B (en) Host node monitoring method and device of cloud platform and computer equipment
CN106170767B (en) Device and method for determining number adjustment operation of virtual machines

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
TA01 Transfer of patent application right

Effective date of registration: 20200108

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

TA01 Transfer of patent application right
CB02 Change of applicant information

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant before: Comba Telecom System (China) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant