Background technology
In enterprise's IT operation management, event monitoring system is transported with event management system (WorkForm System) typically as IT
Tie up the significant components of management platform.For event monitoring system for event alarm, requirement of real-time is very high, needs at once on monitoring circle
It is shown on face, allows operation maintenance personnel that can view the information such as position, event level, the responsible person of node at a glance.
It is reminded as necessary by supplementary means such as buzzers.Existing monitoring system mainly has:Instrument board is shown by CS programs
(Dashboard), it (is based on using the Informal development Dashboard of Web, the push technology realized on Web and Comet
" server push " technology of HTTP long connections is a kind of new WEB application framework).
Traditional monitoring software shows instrument board (Dashboard) by CS programs, although fast response time can expire
The requirement of sufficient user, but system needs installation, upgrading, not only occupies the memory source of client but also needs periodic maintenance.
Using the Dashboard of the Informal development of WEB, need not install any software can access quilt by browser
Node is monitored, but postpones in warning reminding longer, information desk is made not handle in time failure.
The push technology realized on WEB, technology used are all polls.Poll is in specific time interval (such as every 1
Second), hypertext transfer protocol (HTTP, Hyper Text Transfer Protocol) is sent out to server by browser and is asked
It asks, browser of the newest data to client is then returned to by server.This traditional pattern there are the shortcomings that have:Browsing
Device needs constantly send out request to server, however the request header of HTTP request (header) is longer, the data that the inside includes
It may be the value of a very little, many bandwidth and server resource can be occupied in this way.
Using Comet carry out poll, used Ajax (Asynchronous Java script And XML,
AJAX) technology.Although this technology can reach two-way communication, but still need to send out request, and in Comet, generally adopt
With long link, this also can largely consume server bandwidth and resource.
Invention content
For the above problem existing for existing event monitoring system, now provide one kind aim at can in real time to event into
The monitor event methods of exhibiting of row monitoring.
Specific technical solution is as follows:
A kind of monitor event methods of exhibiting, for showing monitor event, including data monitoring end, data relay end to user
And data receiver, the data monitoring end and the data receiver are all connected with the data relay end, in the data
Turn end and establishes a data queue memory:
Step S1, the data monitoring end monitors to obtain abnormal data, and the abnormal data is sent to the data
Transfer end, to be stored in the data queue memory;
Step S2, the data receiver persistently monitor the data queue memory, and in the data queue memory
The abnormal data is read when including the new abnormal data and is shown to the user.
Preferably, it is preset with the monitoring threshold value for different monitoring project in the data monitoring end;
The step S1 is specifically included:
Step S11, the data monitoring end monitors multiple nodes, to generate corresponding monitoring data;
The monitoring data that monitoring obtains is compared with the monitoring threshold value for step S12, the data monitoring end,
And step S13 is turned to when the value of the monitoring data is less than the monitoring threshold value;
Step S13, the data monitoring end as abnormal data and preserve the monitoring data, and by the abnormal number
According in the data queue memory being sent in the data relay end.
Preferably, in the step S13, the data monitoring end generates corresponding work order according to the abnormal data and is associated with
Link, so that user is operated accordingly for the corresponding abnormal nodes of the abnormal data.
Preferably, the step S2 is specifically included:
Step S21, the data receiver persistently monitor the data queue memory;
Step S22, the data receiver identify in the data queue memory listened to the presence or absence of newly described
Abnormal data;
If there is the new abnormal data in the data queue memory, step S23 is executed;
If there is no the new abnormal datas in the data queue memory, returns and execute the step S21;
Step S23, the data receiver read the new abnormal data and are shown to the user.
Preferably, the data receiver is called described different in the data queue memory using JavaScript engine
Regular data.
Preferably, the data receiver includes a default indicating template, and the abnormal data is described aobvious by being filled in
Show in template to be shown.
Preferably, the abnormal data includes:
The location information of the node, and/or
The title of the node, and/or
The duration of the abnormality with the corresponding abnormal data characterization of the node, and/or
The alarm level of the abnormality of the node.
Preferably, in including a WEB page on the display interface of the data receiver, the WEB page is for showing
The abnormal data.
The advantageous effect of above-mentioned technical proposal:
In technical solution, monitor event methods of exhibiting changes the mode of the server acquisition event of poll, passes through number
Realize that anomalous event real time push is arrived at data monitoring end according to the full-duplex communication technology between receiving terminal and data monitoring client
Data receiver, and the purpose that abnormal data is shown by data receiver.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art obtained under the premise of not making creative work it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The invention will be further described in the following with reference to the drawings and specific embodiments, but not as limiting to the invention.
As shown in Figure 1, a kind of monitor event methods of exhibiting, for showing monitor event to user, including data monitoring end,
Data relay end and data receiver, data monitoring end and data receiver are all connected with data relay end, are built in data relay end
A vertical data queue memory:
Step S1, data monitoring end monitors to obtain abnormal data, and abnormal data is sent to data relay end, to preserve
In data queue memory;
Step S2, data receiver continue monitored data storage queue, and include new different in data queue memory
Abnormal data is read when regular data and is shown to user.
Further, data receiver may include multiple, and can be different types of data receiver.
In the present embodiment, monitor event methods of exhibiting changes the mode of the server acquisition event of poll, passes through number
Realize that anomalous event real time push is arrived at data monitoring end according to the full-duplex communication technology between receiving terminal and data monitoring client
Data receiver, and the purpose that abnormal data is shown by data receiver.
In a preferred embodiment, it is preset with the monitoring threshold value for different monitoring project in data monitoring end;
As shown in Fig. 2, step S1 is specifically included:
Step S11, data monitoring end monitors multiple nodes, to generate corresponding monitoring data;
The monitoring data that monitoring obtains is compared with monitoring threshold value for step S12, data monitoring end, and in monitoring data
Value less than monitoring threshold value when turn to step S13;
If the value of monitoring data is less than monitoring threshold value, S11 is returned to step;
Step S13, data monitoring end as abnormal data and preserves monitoring data, and abnormal data is sent to data
In data queue memory in transfer end.
In the present embodiment, monitor event methods of exhibiting is applicable to a variety of different types of systems, data monitoring end
Upgrading only need to more can be realized by fresh code.It data monitoring end can be by the performance index value of the monitored node of timing acquiring
(monitoring data) and monitoring threshold value are compared, and the event of corresponding level is generated when less than threshold values, can be with short message, mail etc.
Form notifies information desk and related personnel.
In a preferred embodiment, in step S13, data monitoring end generates corresponding work order according to abnormal data and is associated with chain
It connects, so that user is operated accordingly for the corresponding abnormal nodes of abnormal data.
In the present embodiment, the regular automatic collection or the passive property for receiving monitored node that data monitoring end can be by setting
Can related data, while the data are saved in database, and carry out merger and the operations such as summarize;By the data and corresponding monitoring
Threshold value is compared, if exceeding threshold values, generates the anomalous event of corresponding level, which is automatically logged into data monitoring end
In database, corresponding work order is generated;It after sequence of events, will be published to by data relay end and support publish/subscribe pattern
Data receiver, so that user handles anomalous event accordingly.
As shown in figure 3, in a preferred embodiment, step S2 is specifically included:
Step S21, data receiver continue monitored data storage queue;
Step S22, data receiver, which identifies, whether there is new abnormal data in the data queue memory listened to;
If there are new abnormal datas in data queue memory, step S23 is executed;
If new abnormal data is not present in data queue memory, S21 is returned to step;
Step S23, data receiver read new abnormal data and are shown to user.
In the present embodiment, monitored node list letter need to be obtained after data receiver starts from data monitoring end backstage
Breath generally comprises section by the original state of certain organizational form (such as institutional framework, operation system classification etc.) display node
The information such as point, monitored item, total number of events, pending event number;Connect data monitoring end, monitored data storage queue;Work as data
When thering is new event to generate in storage queue, the data such as the corresponding node of new event, error message are obtained;According to new event
Information updating corresponding node displaying interface, during which can lead to API and obtain more monitoring datas from monitoring backstage.
In a preferred embodiment, data receiver calls the exception in data queue memory using JavaScript engine
Data.
In the present embodiment, when data queue memory has new event to generate, data receiver can call automatically
JavaScript code, to obtain the data such as the corresponding node of new event, error message.
In a preferred embodiment, data receiver includes a default indicating template, and abnormal data is by being filled in display
To be shown in template.
In this example it is shown that template includes the display area of an instrument board, which can be from global angle
Show the health status and state-event of all monitoring projects (monitored node), including the performance trend of node, abnormal data,
Alarm quantity, tier levels and duration etc..
In a preferred embodiment, abnormal data includes:
The location information of node, and/or
The title of node, and/or
The duration of the abnormality with corresponding abnormal data characterization of node, and/or
The alarm level of the abnormality of node.
Specifically, when node is a computer, if the temperature of the CPU of computer is above standard when temperature, the meter
Calculation machine is in abnormality, and the duration of abnormality is the high-temperature duration of CPU, and the alarm level of abnormality can
Associated with the duration of abnormality, the duration is longer, and alarm level is higher.
In a preferred embodiment, in including a WEB page on the display interface of data receiver, WEB page is for showing
Show abnormal data.
In the present embodiment, data receiver is directly opened browser and be can be used without installing other software, and according to
The association link of the subpage frames such as corresponding work order, you can searched engine retrieval, the response time is within 10 seconds.Anomalous event from
It generates the time interval shown on the interfaces Dashboard of WEB page to can be controlled within 3 seconds, meets monitor event pair
The requirement of real-time.
The present invention can utilize the Web Socket agreements in HTML5, realize that WEB page is arrived at data monitoring end
The active push of Dashboard, to solve the drawbacks of alarm lags.The resource of data receiver can be saved, and save bandwidth with
Achieve the purpose that real-time communication.Using the data monitoring end of publish/subscribe pattern as case distribution and push protocol, can support
The synchronous displaying of multiple terminals, more device types.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.