CN105427545B - Device Alarm Management method and device based on drools - Google Patents

Device Alarm Management method and device based on drools Download PDF

Info

Publication number
CN105427545B
CN105427545B CN201511025826.4A CN201511025826A CN105427545B CN 105427545 B CN105427545 B CN 105427545B CN 201511025826 A CN201511025826 A CN 201511025826A CN 105427545 B CN105427545 B CN 105427545B
Authority
CN
China
Prior art keywords
alarm
regulation
drools
status data
warning information
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
CN201511025826.4A
Other languages
Chinese (zh)
Other versions
CN105427545A (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.)
CVIC Software Engineering Co Ltd
Original Assignee
CVIC Software Engineering 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 CVIC Software Engineering Co Ltd filed Critical CVIC Software Engineering Co Ltd
Priority to CN201511025826.4A priority Critical patent/CN105427545B/en
Publication of CN105427545A publication Critical patent/CN105427545A/en
Application granted granted Critical
Publication of CN105427545B publication Critical patent/CN105427545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B25/00Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
    • G08B25/007Details of data content structure of message packets; data protocols

Landscapes

  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Alarm Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of device Alarm Management method and device based on drools.The method includes:The status data of collecting device;It is true that the status data is packaged into alarm;The alarm fact is matched to trigger alarm regulation with the alarm regulation in drools rule bases, wherein the alarm regulation and is loaded into the rule base of drools by user configuration alarm template dynamic generation;According to the true match condition with the alarm regulation of alarm, warning information is sent out, is showed with showing interface by product alarm.The present invention can be directed to different equipment and different usage scenarios flexibly configures alarm regulation, convenient for users to use, and when there are a large amount of alarm regulations and true alarm, can efficiently and reliably send out alarm.

Description

Device Alarm Management method and device based on drools
Technical field
The present invention relates to device management techniques field more particularly to a kind of device Alarm Management method based on drools and Device.
Background technology
In equipment management system, device Alarm Management is the important function of one of which, by alarm management function, if Standby administrative staff or the owner can discovering device in time failure, to eliminate failure in time.Alarm management needs to set Certain alarm regulation, equipment is under different scenes, it may be desirable to set different alarm regulations.
In the implementation of the present invention, inventor has found at least to have the following technical problems in the prior art:
When alarm regulation needs set or change with environmental change, the personnel of profession is needed to change the source generation of equipment Code, it is very inconvenient.Moreover, because there may be a large amount of alarm regulations in source code, when new alarm regulation being arranged or will be former When the alarm regulation come changes, it may generate and conflict between other alarm regulations.
Invention content
Device Alarm Management method and device provided by the invention based on drools, can be directed to different equipment and Different usage scenarios flexibly configures alarm regulation, convenient for users to use, and when there are a large amount of alarm regulations and announcements When alert true, alarm can efficiently and be reliably sent out.
In a first aspect, the present invention provides a kind of device Alarm Management method based on drools, including:
The status data of collecting device;
It is true that the status data is packaged into alarm;
The alarm fact is matched with the alarm regulation in drools rule bases to trigger alarm regulation, wherein described Alarm regulation and is loaded into the rule base of drools by user configuration alarm template dynamic generation;
According to the true match condition with the alarm regulation of alarm, warning information is sent out, to be alerted by product Show interface to be showed.
Optionally, after the status data of the collecting device, further include:
The status data is stored, and the status data is sent to alarm part;
Optionally, described according to the true match condition with the alarm regulation of alarm, warning information is sent out, with logical It crosses product alarm to show interface and showed, further includes:According to the equipment state of warning information modification storage.
Optionally, described according to the true match condition with the alarm regulation of alarm, warning information is sent out, with logical It crosses product alarm to show interface and showed, further includes:Alarm notification is sent to user, the alarm notification includes system log Notice, mail notification, short massage notice.
Optionally, described according to the true match condition with the alarm regulation of alarm, warning information is sent out, with logical It crosses product alarm to show interface and showed, further includes:It will be in warning information storage to database.
Optionally, the user is by alarm template interface configurations alarm template, the alarm template include alarm name, Resource type, alarm description, alarm index and alarm parameter.
Second aspect, the present invention provide a kind of device Alarm Management device based on drools, including:
Adapter is used for the status data of collecting device;
Wrapper, it is true for the status data to be packaged into alarm;
Adaptation, for being matched the alarm fact with the alarm regulation in drools rule bases to trigger alarm rule Then, wherein the alarm regulation and is loaded into the rule base of drools by user configuration alarm template dynamic generation;
Alarm device, for according to the true match condition with the alarm regulation of alarm, warning information being sent out, with logical Product alarm is crossed to show interface and showed.
Optionally, described device further includes status container, is sent out for storing the status data, and by the status data It send to alarm part;
Optionally, the alarm device is additionally operable to change the equipment shape of the status container storage according to the warning information State.
Optionally, the alarm device is additionally operable to send alarm notification to user, and the alarm notification includes that system log is logical Know, mail notification, short massage notice.
Optionally, the alarm device is additionally operable to store the warning information into database.
Optionally, the user is by alarm template interface configurations alarm template, the alarm template include alarm name, Resource type, alarm description, alarm index and alarm parameter.
Device Alarm Management method and device provided in an embodiment of the present invention based on drools, drools is applied to and is set In standby alarm management, different equipment can be directed to and different usage scenarios flexibly configures alarm regulation, facilitate use The use at family, and when there are a large amount of alarm regulations and true alarm, can efficiently and reliably send out alarm.
Description of the drawings
Fig. 1 is the flow chart of device Alarm Management method of the one embodiment of the invention based on drools;
Fig. 2 is the flow chart of device Alarm Management method of the another embodiment of the present invention based on drools;
Fig. 3 is the structural schematic diagram of device Alarm Management device of the one embodiment of the invention based on drools.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill The every other embodiment that personnel are obtained without making creative work, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of device Alarm Management method based on drools, as shown in Figure 1, the method packet It includes:
The status data of S11, collecting device;
S12, the status data is packaged into the alarm fact;
S13, the alarm fact is matched with the alarm regulation in drools rule bases to trigger alarm regulation, wherein The alarm regulation and is loaded into the rule base of drools by user configuration alarm template dynamic generation;
S14, the true match condition with the alarm regulation is alerted according to described, warning information is sent out, to pass through product Alarm shows interface and is showed.
Drools is a regulation engine increased income under Jboss house flags, it may be implemented to be retouched with natural language mode State business rule so that business analyst can also understand business rule code, have the characteristics that speed is fast, efficient.
Device Alarm Management method provided in an embodiment of the present invention based on drools, equipment alarm is applied to by drools In management, different equipment can be directed to and different usage scenarios flexibly configures alarm regulation, facilitate making for user With, and when there are a large amount of alarm regulations and true alarm, can efficiently and reliably send out alarm.
The embodiment of the present invention also provides a kind of device Alarm Management method based on drools, as shown in Fig. 2, the side Method includes:
S21, status number of the snmp agreements by pull-mode timing acquisition monitoring device corresponding index is used by adapter end According to.
S22, the status data of acquisition is stored in the status container of product.
Wherein, caching (cache) storage device status data after status container starts as product.
S23, status container are used to show in real time the indices data of equipment, while will in the form of distribution subscription event Status data is sent to alarm entrance.
S24, alarm part get after status data that the status data of equipment is packaged into alarm is true.
S25, the alarm fact is inserted into the working space of drools regulation engines, triggers alarm regulation.
Wherein, drools plug-in units are mounted and are integrated into equipment.User can be accused by alarm template interface input device The parameter of alert configuration, in conjunction with alarm regulation template, dynamic generation alarm regulation is loaded into the rule base of drools.For example, with Family (for example is alerted in alarm template interface configurations alarm name, resource type, alarm description, alarm index and alarm parameter Title:" server memory utilization rate is excessively high ", resource type:" server ", alarm index:" memory usage ", alarm parameter: “>" " 80% " " minor alarm " ">" " 90% " " high severity alarm "), alarm regulation is generated, is loaded in rule base.
Drools matches alarm template by regulation engine class, the alarm template of a kind of resource by resource type come Match, the alarm template of single resource is matched by resource identification.The manager of drools working spaces StatefulKnowledgeSession can be called, will be matched to obtain the working space entrance of corresponding alarm template The alarm fact is inserted into corresponding working space, triggers alarm regulation.
After S26, alarm regulation and alarm circumstances matching, is handled by agenda conflict decisions, send out alarm.
After triggering alarm regulation, status data of the alarm in true is matched with alarm regulation.If meeting alarm template The parameter of configuration, then send out warning information.
After warning information is sent out, the equipment state stored in status container can be changed, wherein equipment state include it is normal, Minor alarm, high severity alarm, without response;Warning information can be stored to database, in order to which user inquires;It can also configure Alarm notification notifies corresponding personnel to handle when sending out certain alarm.Wherein, alarm notification has syslog notification, mail Three kinds of notice, short massage notice modes.
S27, show interface by product alarm and check warning information.
Show interface in product alarm, user can intuitively check warning information, orientation problem root, and make corresponding Processing, can also inquire specific warning information, can be clicked if the processed alarm of user and confirm corresponding warning information, Indicate that user has received and handled the alarm.In the warning information inquiry list that product alarm shows interface, it can be obtained Following information:
Resource name, type, path:Determine which equipment goes wrong.
Alarm name:From alarm template configuration, that is, there is any problem.
Alarm level:Product has two minor alarm, high severity alarm ranks.
Alarm status:Including current alarm and history alarm.Current alarm, that is, occurent alarm;History alarm was i.e. once Alarm through generation.When equipment running status does not meet alarm regulation, i.e. equipment restores normal, current alarm is set to history Alarm.
Alarm triggered time, nearest alarm time, alarm number of repetition:Equipment is alerted period in which, is sent out How many times alarm is given birth to.
Acknowledgement state confirms people, acknowledging time:Which user confirmed this alarm at what time, that is, represent Having handled the alarm showing interface information above and providing corresponding querying condition facilitates user to inquire.
In addition product alarm shows interface and also provides " my concern " function, and permission user pays close attention to the fortune of which equipment Row situation, and corresponding displaying interface is provided.
The embodiment of the present invention also provides a kind of device Alarm Management device based on drools, as shown in figure 3, described device Including:
Adapter 11 is used for the status data of collecting device;
Wrapper 12, it is true for the status data to be packaged into alarm;
Adaptation 13, for being matched the alarm fact with the alarm regulation in drools rule bases to trigger alarm rule Then, wherein the alarm regulation and is loaded into the rule base of drools by user configuration alarm template dynamic generation;
Alarm device 14, for according to the true match condition with the alarm regulation of alarm, sending out warning information.
Described device can also include status container, be sent for storing the status data, and by the status data To alarm part;
The alarm device can be additionally used in:The equipment state of the status container storage is changed according to the warning information;To User sends alarm notification, and the alarm notification includes syslog notification, mail notification, short massage notice;The alarm is believed In breath storage to database.
User can include alarm name by alarm template interface configurations alarm template, the alarm template, resources-type Type, alarm description, alarm index and alarm parameter.
Device Alarm Management device provided in an embodiment of the present invention based on drools, equipment alarm is applied to by drools In management, different equipment can be directed to and different usage scenarios flexibly configures alarm regulation, facilitate making for user With, and when there are a large amount of alarm regulations and true alarm, can efficiently and reliably send out alarm.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, all answer by the change or replacement that can be readily occurred in It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (10)

1. a kind of device Alarm Management method based on drools, which is characterized in that including:
The status data of collecting device;
It is true that the status data is packaged into alarm;
The alarm fact is matched with the alarm regulation in drools rule bases to trigger alarm regulation, wherein the alarm Rule and is loaded into the rule base of drools by user configuration alarm template dynamic generation, and the alarm template includes Alarm name, resource type, alarm description, alarm index and alarm parameter;
According to the true match condition with the alarm regulation of alarm, warning information is sent out, to show by product alarm Interface is showed.
2. according to the method described in claim 1, it is characterized in that, after the status data of the collecting device, further include:
The status data is stored, and the status data is sent to alarm part.
3. according to the method described in claim 2, it is characterized in that,
The match condition according to the alarm fact and the alarm regulation sends out warning information, to be alerted by product Show interface to be showed, further includes:
According to the equipment state of warning information modification storage.
4. according to the method described in claim 1, it is characterized in that, described according to the alarm fact and the alarm regulation Match condition sends out warning information, is showed with showing interface by product alarm, further includes:
Alarm notification is sent to user, the alarm notification includes syslog notification, mail notification, short massage notice.
5. according to the method described in claim 1, it is characterized in that, described according to the alarm fact and the alarm regulation Match condition sends out warning information, is showed with showing interface by product alarm, further includes:
It will be in warning information storage to database.
6. a kind of device Alarm Management device based on drools, which is characterized in that including:
Adapter is used for the status data of collecting device;
Wrapper, it is true for the status data to be packaged into alarm;
Adaptation, for being matched the alarm fact with the alarm regulation in drools rule bases to trigger alarm regulation, In, the alarm regulation and is loaded into the rule base of drools, the announcement by user configuration alarm template dynamic generation Alert template includes alarm name, resource type, alarm description, alarm index and alarm parameter;
Alarm device, for according to the true match condition with the alarm regulation of alarm, sending out warning information, to pass through production Product alarm shows interface and is showed.
7. device according to claim 6, which is characterized in that further include:
Status container is sent to alarm part for storing the status data, and by the status data.
8. device according to claim 7, which is characterized in that
The alarm device is additionally operable to change the equipment state of the status container storage according to the warning information.
9. device according to claim 6, which is characterized in that the alarm device is additionally operable to send alarm notification to user, The alarm notification includes syslog notification, mail notification, short massage notice.
10. device according to claim 6, which is characterized in that
The alarm device, being additionally operable to will be in warning information storage to database.
CN201511025826.4A 2015-12-30 2015-12-30 Device Alarm Management method and device based on drools Active CN105427545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511025826.4A CN105427545B (en) 2015-12-30 2015-12-30 Device Alarm Management method and device based on drools

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511025826.4A CN105427545B (en) 2015-12-30 2015-12-30 Device Alarm Management method and device based on drools

Publications (2)

Publication Number Publication Date
CN105427545A CN105427545A (en) 2016-03-23
CN105427545B true CN105427545B (en) 2018-07-17

Family

ID=55505720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511025826.4A Active CN105427545B (en) 2015-12-30 2015-12-30 Device Alarm Management method and device based on drools

Country Status (1)

Country Link
CN (1) CN105427545B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250290A (en) * 2016-08-03 2016-12-21 广州唯品会信息科技有限公司 The analysis method and device of abnormal information
CN106991033A (en) * 2017-04-01 2017-07-28 北京蓝海讯通科技股份有限公司 Notify method, device, server and the readable storage medium storing program for executing of alarm information
CN109726073A (en) * 2018-07-26 2019-05-07 平安科技(深圳)有限公司 Database monitoring method, device, equipment and readable storage medium storing program for executing
CN108847995A (en) * 2018-08-01 2018-11-20 平安科技(深圳)有限公司 A kind of method and apparatus of the configuration O&M alarm template based on private clound
CN110401570B (en) * 2019-08-06 2022-09-27 中国联合网络通信集团有限公司 Alarm method, device, system, equipment and readable storage medium
CN110751815A (en) * 2019-11-01 2020-02-04 天地(常州)自动化股份有限公司 Intelligent control system and method for mine audible and visual alarm
CN114253244B (en) * 2022-01-17 2024-04-05 粤芯半导体技术股份有限公司 System and method for automatically identifying alarm level of product manufacturing equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101651576B (en) * 2009-08-28 2011-11-30 国家计算机网络与信息安全管理中心 Alarm information processing method and system
CN102520965A (en) * 2011-12-28 2012-06-27 山东中创软件工程股份有限公司 Method and system for message processing
CN102568135B (en) * 2011-12-28 2013-12-18 南京理工大学常熟研究院有限公司 Data storing and matching method facing to pulse electronic fence system
CN102724057B (en) * 2012-02-23 2017-03-08 北京市计算中心 A kind of distributed levelization autonomous management method towards cloud computing platform
CN103856339B (en) * 2012-12-04 2017-11-21 中国移动通信集团广西有限公司 A kind of method and apparatus being compressed to warning information
CN103617705B (en) * 2013-12-10 2016-01-13 北京邮电大学 A kind of rule-based Internet of Things alarm method and system
CN105117315B (en) * 2015-08-06 2018-07-20 上海携程商务有限公司 Alarming processing system and method based on CEP

Also Published As

Publication number Publication date
CN105427545A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105427545B (en) Device Alarm Management method and device based on drools
US8341004B2 (en) Dynamically managing electronic calendar events based upon key performance indicators (KPIS) within a business process monitoring (BPM) system
CN108572907B (en) Alarm method, alarm device, electronic equipment and computer readable storage medium
US10496815B1 (en) System, method, and computer program for classifying monitored assets based on user labels and for detecting potential misuse of monitored assets based on the classifications
CN104836701B (en) Order monitoring method and device
CN110232010A (en) A kind of alarm method, alarm server and monitoring server
CN106371973B (en) A kind of data processing method, equipment and system
US20170013003A1 (en) Log Analysis Based on User Activity Volume
CN108289034B (en) A kind of fault discovery method and apparatus
US20120311562A1 (en) Extendable event processing
CN105373899A (en) Server asset management method and apparatus
US7734723B2 (en) Deferred handling of a message
CA2578957A1 (en) Agile information technology infrastructure management system
CN109558301A (en) A kind of distributed system data monitoring method, device and relevant device
CN110019001A (en) Promote method, system and the monitoring module of message-oriented middleware message trace ability
Ligus Effective Monitoring and Alerting: For Web Operations
CN111669295B (en) Service management method and device
US20100082388A1 (en) Method and system for managing information technology (it) infrastructural elements
CN103973484B (en) A kind of operation management system based on network topology structure
CN109800133A (en) A kind of method, one-stop monitoring alarm platform and the system of unified monitoring alarm
CN103490978A (en) Terminal, server and message monitoring method
CN105119761B (en) O&M monitoring and solution integrated management system and method
US8850321B2 (en) Cross-domain business service management
CN108073703A (en) A kind of comment information acquisition methods, device, equipment and storage medium
CN113472580A (en) Alarm system and alarm method based on dynamic loading mechanism

Legal Events

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