CN103678095A - Warning detection method - Google Patents

Warning detection method Download PDF

Info

Publication number
CN103678095A
CN103678095A CN201210321520.3A CN201210321520A CN103678095A CN 103678095 A CN103678095 A CN 103678095A CN 201210321520 A CN201210321520 A CN 201210321520A CN 103678095 A CN103678095 A CN 103678095A
Authority
CN
China
Prior art keywords
fault
fault detection
detection unit
center
fault detect
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.)
Pending
Application number
CN201210321520.3A
Other languages
Chinese (zh)
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.)
TD Tech Ltd
Original Assignee
TD Tech 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 TD Tech Ltd filed Critical TD Tech Ltd
Priority to CN201210321520.3A priority Critical patent/CN103678095A/en
Publication of CN103678095A publication Critical patent/CN103678095A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Alarm Systems (AREA)

Abstract

The invention discloses a warning detection method. The method includes the steps of building a self-processing task which can operate in a cyclic mode with a preset cycling interval as a cycle, wherein the self-processing task serves as a fault detection center; arranging a corresponding fault detection unit for each fault detection point in a system, wherein the fault detection units are used for carrying out fault detection of the corresponding fault detection point; determining a duration through a fault detection center according to cyclic operating frequency, and advising each fault detection unit to carry out fault detection on the corresponding fault detection point according to the detection cycle of each fault detection unit; receiving fault detection results reported by the fault detection units through the fault detection center, judging the current states of the fault detection points according to the fault state judgment conditions of the fault detection points, and warning a user when the current state of any fault detection point is faulty. According to the warning detection method, system performance can be improved.

Description

A kind of alarm detection method
Technical field
The application relates to fault detection technique, particularly a kind of alarm detection method.
Background technology
For the detection of Real-time Alarm, prior art is all to adopt separately to detect alone mostly, the mode of aggregation process.Concrete processing as shown in Figure 1:
1, each functional module regularly detects dependent failure separately by timing system respectively, by unified interface, is reported to fault management center;
2, by fault management center, to fault is unified, processed, by alarm, represent to user.
There are the following problems for above-mentioned Real-time Alarm detection mode:
1, because check point is many, the detection necessary being of a large amount of Real-time Alarms, and different alarm detection mechanism is different, therefore, cause needing to enable in system a large amount of timer (each check point at least one), and the operation of timer is all the time ceaselessly, have a strong impact on system performance.For the alarm detection of same module, also once there is scheme to attempt merging timer.But because the mechanism of different alarm detection is different: comprise that detection opportunity, sense cycle, Rule of judgment, alarm detection are level and smooth etc., cause a lot of timers to merge, otherwise will increase the complexity of testing mechanism and sacrifice the extensibility of code.
2, for multitasking system, between a plurality of tasks, according to task priority, distribute the timeslice of CPU, priority is high preferentially obtains timeslice, the mean allocation timeslice of level that All factors being equal, preference will be give to.The task function that Processing tasks is realized in the timeslice of distributing.If if higher task processing time of priority ratio is long, will affect the execution of other task.Detection module place task priority is relatively high, when the timer of the detection alarm of this module constantly produces overtime interrupt and processes, take a large amount of CPU, make other task relatively low or All factors being equal, preference will be give to level cannot move or move slower, the operational effect that has affected other function even causes other function normally to move.
Detection for some alarm, due to sense cycle shorter (minimum is that 100ms detects once), and place task priority is relatively high, cause this timer place task to take CPU many, affect the operation of functional module in this task or other task or business module.After system operation, cause other function normally to move, some business cannot be carried out.In serious situation, owing to taking in a large number CPU, system can not be fed dog in time, causes system reset.Because system is to take task as unit operation, for locating this problem, increased difficulty.After problem discover, because alarm detection is also the function that must pay, need to find out in time the mode that substitutes timer, and can not affect the operation of other task.
3, alarm detection is distributed in different modules, and testing mechanism is different, is difficult to unified.Alarm detection point is many, and testing mechanism is different, needs different modules to complete respectively.
Summary of the invention
The application provides a kind of alarm detection method, when can carry out number of different types detection in system, greatly reduces the impact on system performance, improves entire system performance.
An alarm detection method, comprising:
Being take in the intercycle of presetting in establishment is the self-processing task of loop cycle operation, as fault detect center; For each fault detecting point in system arranges corresponding fault detection unit, for carrying out the fault detect of corresponding failure check point;
Duration is determined according to the number of times of self circular flow in described fault detect center, and according to the sense cycle of each fault detection unit, notifies each fault detection unit to carry out fault detect to corresponding fault detecting point;
Described fault detect center receives the fault detect result that each fault detection unit reports, and according to the malfunction judgment condition of corresponding failure check point, judge the current state of described fault detecting point, when the current state of arbitrary fault detecting point is fault to user's alarm.
Preferably, the mode that described fault detect center obtains the sense cycle of each fault detection unit and the malfunction judgment condition of corresponding failure check point is: described each fault detection unit detects information to described fault detect center reporting fault, comprises the sense cycle of fault detection unit and the malfunction judgment condition of corresponding failure check point.
Preferably, described malfunction judgment condition comprises smoothness period.
Preferably, the processing priority at described fault detect center is lower than the business module in system and functional module.
Preferably, the fault detect information that described fault detection unit reports comprises: malfunction obtains interface and fault reports interface;
Describedly notify each fault detection unit to carry out fault detect to corresponding fault detecting point to comprise: the malfunction that described fault detect center utilizes each fault detection unit to report is obtained interface, and the detection function that calls corresponding failure check point carries out described fault detect;
Describedly to user's alarm, comprise: the fault that described fault detect center utilizes each fault detection unit to report reports interface, the malfunction of corresponding failure check point is reported to fault handling center, and described fault handling center offers user by described malfunction by alarm form.
Preferably, the integral multiple that the sense cycle of each fault detection unit is described intercycle.
As seen from the above technical solution, in the application, create that to take the intercycle of presetting be the self-processing task of loop cycle operation, as fault detect center; For each fault detecting point in system arranges corresponding fault detection unit, for carrying out the fault detect of corresponding failure check point.Duration is determined according to the number of times of self circular flow in fault detect center, and according to the sense cycle of each fault detection unit, notifies each fault detection unit to carry out fault detect to corresponding fault detecting point.At fault detection unit, carry out after fault detect, fault detect center receives the fault detect result that each fault detection unit reports, and according to the malfunction judgment condition of corresponding failure check point, judge the current state of corresponding failure check point, when the current state of arbitrary fault detecting point changes to user's alarm.By the way, utilize the intercycle of self-processing task to replace timer to calculate duration, thereby control the fault detect cycle, can save the system resource that numerous timers take, for carrying out other tasks, improve system performance.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of existing alarm detection method;
Fig. 2 is the particular flow sheet of alarm detection method in the application.
Embodiment
In order to make the application's object, technological means and advantage clearer, below in conjunction with accompanying drawing, the application is described in further details.
Fig. 2 is the particular flow sheet of alarm detection method in the application, for realizing the fault detect to a plurality of check points in system.Wherein, in system, corresponding each trouble shooting point is provided with corresponding fault detection unit, for realizing the fault detect to corresponding failure check point.As shown in Figure 2, the method comprises:
Step 201, after system starts, creates that to take the intercycle of presetting be the self-processing task of loop cycle operation, as fault detect center.
Self-processing task can be realized by an endless loop function, and the cycle that this function is carried out is intercycle.Wherein, intercycle arrange can be rule of thumb with system in fault detect cycle of each fault detection unit set.Conventionally, in system, the fault detect cycle of fault detection unit is the integral multiple of intercycle, like this, can utilize the circulation execution number of times of self-processing task to replace timer to determine duration.
In addition, preferably, priority that can self-processing task is set to lower than other functional modules and business module in system, thus the execution of other tasks in assurance system.
Step 202, fault detect center obtains the sense cycle of each fault detection unit.
Wherein, fault detect center obtains the sense cycle of each fault detection unit, can be undertaken by pre-configured mode, or also can after system starts, by each fault detection unit, be reported voluntarily.
When fault detect center obtains sense cycle, the dependent failure that can obtain in the lump fault detection unit detects information, such as fault judgment condition, the malfunction of corresponding failure check point obtain interface, fault reports interface and fault type etc.Wherein, in fault judgment condition, can comprise smoothness period etc.
Step 203, duration is determined according to the number of times of self circular flow in fault detect center, and according to the sense cycle of each fault detection unit, notifies each fault detection unit to carry out fault detect to corresponding fault detecting point.
As previously mentioned, intercycle be take as periodic duty in fault detect center, therefore according to the number of times of circular flow, can accurately calculate the duration of experience, add the sense cycle of having determined each fault detection unit by step 202, like this, just do not need to arrange again timer, for the opportunity of determining that each fault detection unit carries out fault detect, but the number of run that utilizes unified fault detect center carries out corresponding duration judgement, thereby which fault detecting point when judgement need carry out fault detect.
When the sense cycle condition of determining a fault detection unit when fault detect center has met, fault detect center notifies corresponding fault detection unit to carry out fault detect.If the malfunction of utilizing step 202 to get each fault detection unit aforementioned is obtained interface, while carrying out fault detect notice here, can directly utilize corresponding malfunction to obtain the corresponding fault detect function of interface interchange (the concrete fault detect that is fault detection unit is processed) and carry out fault detect.Certainly, also can notify by other means fault detection unit, the application is not construed as limiting this.
Step 204, carries out after fault detect at fault detection unit, and fault detect center receives the fault detect result that fault detection unit reports.
Fault detection unit can carry out fault detect according to existing mode, and determines fault detect result and report fault detect center.
Step 205, the fault detect result reporting according to fault detection unit, judges the current state of fault detecting point according to the malfunction judgment condition of fault detecting point, when the current state of arbitrary fault detecting point is fault to user's alarm.
For avoiding the detection error of primary fault in detecting etc., fault judgment condition can be set, for example smoothness period.Usually, can arrange when continuous several times fault detect result is all diagnosed as fault, judge that corresponding failure check point breaks down; In like manner, after entering malfunction, also can arrange and all be diagnosed as when normal when continuous several times fault detect result, judge that the fault of corresponding failure checkpoint is recovered.
If aforementioned, utilize step 202 to get the malfunction judgment condition of each fault detecting point, receive here after the fault detect result that fault detection unit reports, can judge according to corresponding malfunction judgment condition the current state of corresponding failure check point.Certainly, also can obtain by other means malfunction judgment condition, for judging the current state of fault detecting point, the application is not construed as limiting this.
When determining that according to malfunction judgment condition reversion appears in the current state of certain fault detecting point, for example, from normally becoming fault, or become normally from fault, in fault detect, mind-set user provides corresponding information change.Wherein, when current state is fault, by alarm form, information is offered to user; Current state becomes when normal, the information of recovering to user's prompt alarm.
Wherein, if the fault of utilizing step 202 to get each fault detection unit aforementioned reports interface, when the current state of definite certain fault detecting point is fault here, can utilize fault to report interface that fault status information is reported to fault handling center, by fault handling center, the malfunction of corresponding failure check point be presented to user by alarm form.Certainly, also can to user, carry out by other means the alarm of malfunction, the application is not construed as limiting this.
So far, the method flow in the application finishes.
In said method flow process, when system starts, modules respectively to fault detect center (self-processing task realization) subscribe to the detection of each alarm, subscribe to the time-division and you can well imagine for sense cycle, smoothness period, fault type, fault and report interface, malfunction to obtain interface etc.Fault detect center automatic discrimination in system operational process meets the alarm of testing conditions, then adjusts back corresponding detection function and judges whether fault.After corresponding smoothing processing, adjust back again corresponding alarm sending function alarm is sent to fault management center, by fault management center, complete reporting of alarm.
From above-mentioned, in the application, in order to ensure the normal operation that does not affect other task, fault detect is carried out in self-processing task.Intercycle with self-processing task replaces timer, thereby other tasks can be carried out within the break period of self-processing task.
Meanwhile, it is lower priority that self-processing task priority can also be further set, lower than other functional module and business module.In self-processing task operational process, if when the task of higher priority need to be moved, self-processing task can discharge the disposal right of oneself to other task like this, thereby has guaranteed the operation of other task.By the way, avoid expending too much system resource and moved numerous timers, and as far as possible for other tasks in system provide the more processing time, greatly improved system performance.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (6)

1. an alarm detection method, is characterized in that, comprising:
Being take in the intercycle of presetting in establishment is the self-processing task of loop cycle operation, as fault detect center; For each fault detecting point in system arranges corresponding fault detection unit, for carrying out the fault detect of corresponding failure check point;
Duration is determined according to the number of times of self circular flow in described fault detect center, and according to the sense cycle of each fault detection unit, notifies each fault detection unit to carry out fault detect to corresponding fault detecting point;
Described fault detect center receives the fault detect result that each fault detection unit reports, and according to the malfunction judgment condition of corresponding failure check point, judge the current state of described fault detecting point, when the current state of arbitrary fault detecting point is fault to user's alarm.
2. method according to claim 1, it is characterized in that, the mode that described fault detect center obtains the sense cycle of each fault detection unit and the malfunction judgment condition of corresponding failure check point is: described each fault detection unit detects information to described fault detect center reporting fault, comprises the sense cycle of fault detection unit and the malfunction judgment condition of corresponding failure check point.
3. method according to claim 1 and 2, is characterized in that, described malfunction judgment condition comprises smoothness period.
4. method according to claim 1 and 2, is characterized in that, the processing priority at described fault detect center is lower than the business module in system and functional module.
5. method according to claim 2, is characterized in that, the fault detect information that described fault detection unit reports comprises: malfunction obtains interface and fault reports interface;
Describedly notify each fault detection unit to carry out fault detect to corresponding fault detecting point to comprise: the malfunction that described fault detect center utilizes each fault detection unit to report is obtained interface, and the detection function that calls corresponding failure check point carries out described fault detect;
Describedly to user's alarm, comprise: the fault that described fault detect center utilizes each fault detection unit to report reports interface, the malfunction of corresponding failure check point is reported to fault handling center, and described fault handling center offers user by described malfunction by alarm form.
6. method according to claim 1 and 2, is characterized in that, the integral multiple that the sense cycle of each fault detection unit is described intercycle.
CN201210321520.3A 2012-09-03 2012-09-03 Warning detection method Pending CN103678095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210321520.3A CN103678095A (en) 2012-09-03 2012-09-03 Warning detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210321520.3A CN103678095A (en) 2012-09-03 2012-09-03 Warning detection method

Publications (1)

Publication Number Publication Date
CN103678095A true CN103678095A (en) 2014-03-26

Family

ID=50315736

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210321520.3A Pending CN103678095A (en) 2012-09-03 2012-09-03 Warning detection method

Country Status (1)

Country Link
CN (1) CN103678095A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408059A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Fault processing method and device
CN106708675A (en) * 2016-11-18 2017-05-24 广西大学 Method for detecting faults before starting of computers
CN114039836A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Fault processing method and device for Exporter collector

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838087A (en) * 2005-03-21 2006-09-27 华为技术有限公司 Fault alarm reporting management method
CN1996905A (en) * 2006-11-24 2007-07-11 中兴通讯股份有限公司 The method for detection and processing of the remote route node
CN101022363A (en) * 2007-03-23 2007-08-22 杭州华为三康技术有限公司 Network storage equipment fault protecting method and device
CN101110642A (en) * 2006-07-19 2008-01-23 中兴通讯股份有限公司 System fault detecting method and device
CN101149702A (en) * 2007-11-14 2008-03-26 华为技术有限公司 Operating system failure testing method and device
CN101361320A (en) * 2005-12-31 2009-02-04 中兴通讯股份有限公司 Timer management system in software system and management method
US20090048700A1 (en) * 2007-08-16 2009-02-19 Mock Michael W Method for reporting the status of a control application in an automated manufacturing environment
CN103294596A (en) * 2013-05-23 2013-09-11 西安电子科技大学 Early warning method for contract-type software fault based on program invariants

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1838087A (en) * 2005-03-21 2006-09-27 华为技术有限公司 Fault alarm reporting management method
CN101361320A (en) * 2005-12-31 2009-02-04 中兴通讯股份有限公司 Timer management system in software system and management method
CN101110642A (en) * 2006-07-19 2008-01-23 中兴通讯股份有限公司 System fault detecting method and device
CN1996905A (en) * 2006-11-24 2007-07-11 中兴通讯股份有限公司 The method for detection and processing of the remote route node
CN101022363A (en) * 2007-03-23 2007-08-22 杭州华为三康技术有限公司 Network storage equipment fault protecting method and device
US20090048700A1 (en) * 2007-08-16 2009-02-19 Mock Michael W Method for reporting the status of a control application in an automated manufacturing environment
CN101149702A (en) * 2007-11-14 2008-03-26 华为技术有限公司 Operating system failure testing method and device
CN103294596A (en) * 2013-05-23 2013-09-11 西安电子科技大学 Early warning method for contract-type software fault based on program invariants

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104408059A (en) * 2014-10-29 2015-03-11 中国建设银行股份有限公司 Fault processing method and device
CN106708675A (en) * 2016-11-18 2017-05-24 广西大学 Method for detecting faults before starting of computers
CN114039836A (en) * 2021-11-05 2022-02-11 光大科技有限公司 Fault processing method and device for Exporter collector

Similar Documents

Publication Publication Date Title
CN109726072B (en) WebLogic server monitoring and alarming method, device and system and computer storage medium
US9720761B2 (en) System fault detection and processing method, device, and computer readable storage medium
CN101800675B (en) Failure monitoring method, monitoring equipment and communication system
CN103150237B (en) Based on the part replacement of fault
CN105095001A (en) Virtual machine exception recovery method under distributed environment
CN103092746A (en) Positioning method and system for thread anomaly
CN103246589A (en) Multithread monitoring method and device
CN102761439A (en) Device and method for detecting and recording abnormity on basis of watchdog in PON (Passive Optical Network) access system
CN104156297A (en) Warning method and device
CN108632106A (en) System for monitoring service equipment
WO2002093374A2 (en) Task supervision
CN101964724A (en) Energy conservation method of communication single plate and communication single plate
CN103678095A (en) Warning detection method
CN111130821A (en) Power failure alarm method, processing method and device
US9335754B2 (en) Method for testing the real-time capability of an operating system
CN117149482A (en) Method and device for detecting thread state, electronic equipment and medium
CN101820317A (en) Method and system for realizing protection switching (PS) of protection groups
JP2010003092A (en) Screen display system
JP2007028118A (en) Failure judging method of node device
CN101937371A (en) Method and device for monitoring task execution state in embedded system
CN106354635B (en) A kind of the program code segments self checking method and device of embedded device
WO2014040470A1 (en) Alarm message processing method and device
CN102929772A (en) Monitoring method and system of intelligent real-time system
CN113296997A (en) Task monitoring method and device based on watchdog
CN102111300A (en) Monitoring system and method for guaranteeing business continuity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326