CN101252465A - Warning data acquisition method and server and client end in system - Google Patents

Warning data acquisition method and server and client end in system Download PDF

Info

Publication number
CN101252465A
CN101252465A CNA2008101036448A CN200810103644A CN101252465A CN 101252465 A CN101252465 A CN 101252465A CN A2008101036448 A CNA2008101036448 A CN A2008101036448A CN 200810103644 A CN200810103644 A CN 200810103644A CN 101252465 A CN101252465 A CN 101252465A
Authority
CN
China
Prior art keywords
server
alarm
alarm data
rough estimates
client
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.)
Granted
Application number
CNA2008101036448A
Other languages
Chinese (zh)
Other versions
CN101252465B (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN2008101036448A priority Critical patent/CN101252465B/en
Publication of CN101252465A publication Critical patent/CN101252465A/en
Application granted granted Critical
Publication of CN101252465B publication Critical patent/CN101252465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a warning data collection method, the method comprises original warning information of a managed device obtained through a server, and preliminary statistical warning data obtained through making statistics unrelated with user authority; a client-side obtains preliminary statistical warning data through the server, and the obtained preliminary statistical warning data is performed based on the statistics of the user authority, and the warning data in accord with assumed conditions is obtained according to the user authority of the registered user. The invention also discloses the server and the client-side in the data warning collection system. By adopting the data warning collection method, the burden of the server can be lightened, and the performance of the server can be enhanced.

Description

Server and client side in warning data acquisition method and the system thereof
Technical field
The present invention relates to the network communications technology, be specifically related to warning data acquisition method in the network communicating system and the server and client side in the warning data acquisition system.
Background technology
In recent years, along with the expansion day by day of scope of the enterprise, the client of same enterprise distributes increasingly extensive, and the affiliate is also increasing, and this becomes the speed of geometric progression to rise with regard to the network size that causes the intranet user.Understand the enterprise network failure condition timely and effectively, for ensureing that customer service is most important.
At present, the warning data acquisition system that various structures occurred.This system is responsible for obtaining the network equipment of being managed and presets the original alarm information that alarm event sends because of triggering, and obtains alarm data by statistics and offers the user.The alarm data that the warning data acquisition system provides can effectively help the user to understand the practical operation situation of current network.
Fig. 1 shows existing a kind of widely used warning data acquisition system based on browser/server (Browser/Server) structure, and the warning data acquisition system of this structure adopts the application program of network (Web) application program as server side and client-side.The server of operation Web program is called Web server, and the client browser of operation Web program is called Web browser.Web server can provide service for a plurality of Web browsers simultaneously.
Referring to Fig. 1, after warning system started, the warning information of Web server monitoring managed devices, collection managed devices also was stored in the local data base of Web server.Behind the Web browser of the user's logging on client with administration authority, Web browser sends the alarm data request to Web server, and Web server is notified in which Client-initiated request simultaneously is.After Web server is received the alarm data request, obtain user right from server self, according to the user right inquiry local data base that obtains, obtain the original alarm information under the user right, then according to the original alarm Information Statistics alarm data that inquires, generate the alarming page of HTML (HTML, the Hyper TextMark Language) form that comprises statistics at last, and send to the client of filing a request.The Web browser of client shows received alarming page.Behind the Web browser display alarm interface, the user just can see the alarm data of each managed devices under its authority.During Web browser display alarm interface, can provide multiple display format for the user by acousto-optic hint.
Above-mentioned process according to original alarm information calculations alarm data is to filter out according to alarm data to meet all kinds of warning information quantity that impose a condition, and all kinds of new filter process to warning information quantity that produces between this visit and the last visit.So-called alarm data is meant the warning information quantity statistics value of adding up all kinds of alarm quantities, each rank alarm quantity or the like according to warning information.
Above-mentioned user right is by server admin, and the indication user can inquire about the authority information of which managed devices.After user right changes, need to nullify and lay equal stress on new login and initiate the alarm data request, just can see the alarm data under the new authority.And after user's login,, need the control key that refreshes on the manual triggers alarm interface if up-to-date alarm data is obtained in hope, at this moment, Web browser sends the alarm data request to Web server again, receives alarm interface and the demonstration returned then.
Existing warning data acquisition scheme has following shortcoming:
At first, carry out at server end according to the operation of original alarm Information Statistics alarm data.Under the situation big in network size, that managed devices is more, the original alarm information content is huge, during each client-requested data, all will carry out a statistical operation at original alarm information, and therefore each statistics all consumes a large amount of server resources.If client frequently sends request to server, then can increase the computation burden of server greatly.When warning information breaks out, the execution storage operation that server stores original alarm database of information will not stopped, bear very heavy, if a plurality of user captures are arranged this moment, then server also needs to carry out simultaneously the operation of Query Database, and the concurrent database that may cause of a large amount of storages and query manipulation can't respond.Certainly, also have server that original alarm information is sent to the warning data acquisition system of client by the client statistics at present, still, the quantity of original alarm data is huge, and the data between the server to client end send will take massive band width.
Secondly, the warning data acquisition scheme shown in Fig. 1, when having only user capture or user's manual refreshing page, client just can be obtained up-to-date alarm data, so the alarm data renewal is untimely, can't support user's network management effectively.
In addition, with acoustooptic form display alarm data the time, utilize the third party's media player control that is embedded in Web browser to play acousto-optic to be shown usually.But, third party's media player is subjected to the constraint of client operating system, browser tenability, system developer must be considered the compatibility of different operating system, different browsers, also need consider the version compatibility of third party's media play control simultaneously.
Summary of the invention
In view of this, the invention provides a kind of warning data acquisition method, can reduce load of server.
This method comprises: server obtains the original alarm information of managed devices, and described original alarm information is carried out and the irrelevant statistics of user right, obtains the rough estimates alarm data;
Client is obtained described rough estimates alarm data from server, and according to the user right of login user, and the rough estimates alarm data that obtains is carried out statistics based on user right, obtains meeting the alarm data that imposes a condition.
Wherein, described server obtains the original alarm information of managed devices, described original alarm information is carried out and the irrelevant statistics of user right, obtaining the rough estimates alarm data is: server is when the warning data acquisition system start-up of place, obtain the original alarm information of all managed devices, carry out and the irrelevant statistics of user right, obtain the rough estimates alarm data; After starting, regularly according to the newly-increased described rough estimates alarm data of original alarm information updating.
Preferably, this method further comprises: server is kept at local cache with the rough estimates alarm data that obtains;
Described timing according to the newly-increased described rough estimates alarm data of original alarm information updating is:
Server obtains newly-increased original alarm information from managed devices in real time, upgrades the rough estimates alarm data of described acquisition;
Server by utilizing runs on the poll thread of server background, regularly obtains the rough estimates alarm data of variation and upgrades local cache.
Preferably, this method further comprises: after the described startup, the state of server monitoring managed devices, add fashionable at new managed devices, obtain the original alarm information of described new managed devices, carry out and the irrelevant statistics of user right, obtain the rough estimates alarm data of new managed devices correspondence, and be increased to described local cache;
When the existing managed devices in the warning data acquisition system of server place withdraws from, the rough estimates alarm data of the managed devices correspondence that withdraws from is deleted from described local cache.
Wherein, described client is obtained described rough estimates alarm data from server and is: when client is logined the user, send alarm data request, all the rough estimates alarm datas in the described local cache that reception server returns to server.
Wherein, described client is obtained described rough estimates alarm data from server: login the back during log off the user, described client regularly sends alarm data request, all the rough estimates alarm datas in the described local cache that reception server returns to server; And after obtaining the rough estimates alarm data from server, carry out described statistical operation based on user right at every turn.
Wherein, the user right of described login user and described imposing a condition are that client is obtained from server when the user logins;
Described user right according to login user carries out statistics based on user right to the rough estimates alarm data that obtains, and obtains meeting the alarm data that imposes a condition and is:
Client is filtered the described rough estimates alarm data that obtains according to the user right of login user, obtains the rough estimates alarm data of each managed devices correspondence that described user right can inquire about;
Add up according to the rough estimates alarm data that imposes a condition to described correspondence, obtain meeting the alarm data that imposes a condition.
Preferably, describedly obtain meeting after the alarm data that imposes a condition, further comprise: when user right was modified, server was revised message to client broadcasting authority; Receive described authority and revise the client of message,, carry out described statistics again based on user right according to the user right of amended login user.
Preferably, describedly obtain meeting after the alarm data that imposes a condition, further comprise: the applet Applet that described client utilization is obtained from server draws the alarm interface, and the described alarm data that imposes a condition that meets is presented on the described alarm interface by acousto-optic.
Preferably, carry out described statistics at every turn, obtain meeting after the alarm data that imposes a condition, refresh described alarm interface based on user right.
Wherein, the described statistics that has nothing to do with user right is: add up corresponding various types of other original alarm information content of each managed devices.
The present invention also provides the server in a kind of warning data acquisition system, can reduce load of server.
This server comprises Alarm Unit and service unit, wherein,
Described Alarm Unit is used to obtain the original alarm information of managed devices, to the statistics that described original alarm information is carried out and user right is irrelevant, obtains the rough estimates alarm data;
Described service unit is used for returning described rough estimates alarm data to described client when the alarm data request that receives from client.
The present invention also provides the client in a kind of warning data acquisition system, can reduce load of server.
This server comprises Alarm Unit and service unit, wherein,
Described Alarm Unit is used to obtain the original alarm information of managed devices, to the statistics that described original alarm information is carried out and user right is irrelevant, obtains the rough estimates alarm data;
Described service unit is used for returning described rough estimates alarm data to described client when the alarm data request that receives from client.
According to above technical scheme as seen, use the present invention and can reduce load of server.Specifically, have following advantage:
1) embodiment of the invention is carried out and the irrelevant statistics of user right at server side, i.e. rough estimates because the workload of rough estimates is far smaller than the workload of complete statistics, have therefore alleviated load of server.So, server is used for the response data request with regard to having more resource, thereby has improved the overall performance of server.Only need between server and the client to transmit the rough estimates alarm data,, can not cause bigger bandwidth occupancy because the data volume of rough estimates alarm data is far smaller than the data volume of all original alarm information.And client only needs the alarm data after the rough estimates is carried out the statistics relevant with user right, has also alleviated the workload of client.
2) embodiment of the invention is kept at the server local cache with the rough estimates result, when the user asks, directly adopts the local cache response, and response speed is fast.And the data in the local cache periodically update, and therefore the data validity of response is strong.Simultaneously,, need not to receive that the alarm data request all calculates again at every turn, thereby further reduced the workload of server as long as because the statistics of identical data is carried out once.
3) embodiment of the invention utilization automatic regular polling thread that runs on the backstage is safeguarded local cache, thereby the updating maintenance of rough estimates alarm data is separated with server response user requested operation, is independent of each other, and has further improved the overall performance of server.
4) after the warning data acquisition system start-up, each poll only obtains and the rough estimates alarm data of storage change, and the operation that has alleviated server has further improved the overall performance of server.
5) client is logined the request of back timed sending alarm data the user, obtains current up-to-date alarm data, thereby timely and effectively the fault of current network is carried out audible and visual alarm, supports for the user provides management efficiently, and has improved the intelligent of system.
6) message of the timely broadcasting user authority change of server, client is upgraded the authority of login user, and adds up the fail safe that has improved system again.
7) customer end adopted JAVA Applet technology to drawing is alarmed the interface and acousto-optic hint is provided, because Applet has platform-neutral, thereby has satisfied operating system, the irrelevant requirement of browser.
Description of drawings
Fig. 1 is existing warning data acquisition system configuration schematic diagram based on browser/server's structure.
Fig. 2 obtains the process chart of alarm data for server end in the embodiment of the invention.
Fig. 3 is the flow chart of server end customer in response end alarm data request in the embodiment of the invention.
Fig. 4 is the process chart of client in the embodiment of the invention.
Fig. 5 is the structural representation of warning data acquisition system in the embodiment of the invention.
Fig. 6 is the structural representation of server in the embodiment of the invention.
Fig. 7 is the structural representation of client in the embodiment of the invention.
Embodiment
In order to alleviate load of server, the present invention shares client with the part operation in the alarm data statistics.The statistics part of sharing client is relevant with user right, and the statistics part of staying server end is irrelevant with user right.
For the statistical operation of Differentiated Services device end and the statistical operation of client, below server is carried out be called rough estimates with the irrelevant statistical operation of user right, the statistics of client is called statistics based on user right.
By as can be known, comprise according to the filter operation of user right with according to pre-conditioned statistical operation according to the process of original alarm information acquisition alarm data to the analysis of server statistical operation in the prior art.Filter operation according to user right is relevant with user right, and the original alarm information that the user right difference filters out is all different, therefore, the filter operation according to user right can be shared client process.
And during according to pre-conditioned statistical operation, need the quantity of all kinds of warning information of each managed devices correspondence of statistics earlier, for different user, this operation is identical, irrelevant with user right, therefore the operation of adding up all kinds of warning information quantity of each managed devices correspondence can be retained in server end.
In pre-conditioned statistical operation, after the quantity of all kinds of warning information of each managed devices correspondence of statistics, just can count the alarm datas such as all kinds of warning information quantity, all class warning information quantity of some managed devices of all managed devices that this user right can check according to user right.As seen, it is relevant with user right to obtain pre-conditioned statistical value at last, therefore client process is shared in this operation.
Based on above analysis, the server of the embodiment of the invention obtains the original alarm information of managed devices and carries out and the irrelevant statistics of user right, obtains the rough estimates alarm data; Client is obtained the rough estimates alarm data from server after user login, and according to the user right of login user, and the rough estimates alarm data that obtains is carried out statistics based on user right, obtains meeting the alarm data that imposes a condition.After this, client can also show the alarm data that imposes a condition that meets that obtains by user interface.As seen, the embodiment of the invention is shared each client with the statistical operation relevant with user right, thereby has reduced load of server.And server only needs to send the rough estimates alarm data to client, and data volume is little, need not to take massive band width.
In addition, the embodiment of the invention is kept at the rough estimates result in the server local cache, when the user asks, adopts local cache directly to respond.Owing to need not to visit the local data base of storage original alarm data, even the alarm data outburst therefore occurs, also can utilize local cache to respond user's request fast and effectively, thereby further improve the overall performance of server.
Preferably, server by utilizing runs on the automatic regular polling thread on backstage and safeguards the local cache that stores the rough estimates alarm data, thereby the updating maintenance of rough estimates alarm data is separated with server response user requested operation, server response user request does not influence the maintenance of buffer memory, the maintenance of buffer memory can not take the device resource of server response user request yet, thereby has improved the overall performance of server.In addition, after the warning data acquisition system start-up, the each poll of server only obtains the alarm data of the managed devices that alarm data changes, and the Data Update local cache of employing variation, owing to the alarm data that does not have to change is not upgraded, reduce the operation of server, further improved the overall performance of server.
For client, in order to obtain alarm data timely, client is not only sent the request of obtaining alarm data when the user logins, further, after user login during log off, client is the request of timed sending alarm data also, and the rough estimates alarm data filtration according to the server response obtains meeting the alarm data that imposes a condition under the user right then, and refreshes display page.Thereby timely and effectively the fault of current network is carried out audible and visual alarm, support for the user provides management efficiently.
For the audible and visual alarm prompting is provided, the customer end adopted Applet technology to drawing alarm interface of the embodiment of the invention also provides acousto-optic hint.Applet can be translated as applet, is the JAVA small routine that moves in the client Web browser, is embedded within usually in the html page, is used to strengthen the display function of application program.Therefore Applet has the characteristic of the platform independence of JAVA own, thereby has satisfied operating system, the irrelevant requirement of browser.Therefore and all Applet all operate on the virtual machine of client, do not carry out any program of client terminal local, can not suffer the destruction of rogue program, and the user can secure access, and therefore, Applet has also guaranteed the fail safe of warning data acquisition.
Below in conjunction with the accompanying drawing embodiment that develops simultaneously, the implementation procedure of the various operations of server end of the present invention and client is described in detail.
Fig. 2 shows the process chart that server end in the embodiment of the invention obtains the rough estimates alarm data.As shown in Figure 2, this method may further comprise the steps:
Step 201: during warning data acquisition system start-up, server obtains the original alarm information of all managed devices, obtains the primary statistics alarm data after rough estimates, and is saved in the local cache.
In this step, rough estimates are and the irrelevant statistical operation of user right, are specially: the quantity that counts all kinds of warning information of each managed devices correspondence.The classification of warning information comprises alarm level classification, alarm type classification, alarm time classification, newly-increased alarm quantity class etc.For example, managed devices is A, B and C, and this step counts all kinds of warning information quantity of device A, B and C respectively so.
After the startup, below from step 202, server upgrades the value of each rough estimates alarm data in the local cache regularly according to newly-increased original alarm information.
Step 202: judge whether this poll time arrive, if then execution in step 204, otherwise execution in step 203.
Step 203: the monitoring managed devices, return step 202.
In the monitor procedure of this step, server receives the newly-increased original alarm information that managed devices is sent in real time, and according to newly-increased original alarm information updating rough estimates alarm data.Need to prove that the rough estimates alarm data of server real-time update is not the data that are kept in the local cache.
Step 204: judge whether the preliminary alarm data of managed devices changes in the polling interval between this poll and the last time poll, if, execution in step 205 and 206 then, otherwise, execution in step 206.
Step 205: the rough estimates alarm data after will changing is updated to local cache.
This step adopts the respective record in the up-to-date preliminary alarm data renewal local data base.For example, the statistical value of the x class warning information of device A becomes 100 by 7, and then the statistical value with the x class warning information of device A in the local cache is updated to 100.
Step 206: enter the next round poll, return step 202.
Preferably, the operation of above step 203 monitoring managed devices further comprises the state of server monitoring managed devices, the change of record managed devices state, and for example new managed devices adds, and existing managed devices withdraws from etc.Wherein, the implementation of managed devices being carried out condition monitoring is: after existing managed devices withdraws from preceding or new managed devices and is increased, the managed devices of state variation can be broadcasted deletion message or be increased message, when server receives the message of broadcasting, the state variation of record managed devices.
In this case, server can be handled according to the equipment variations state in real time, also can handle according to the equipment variations state when the 204 poll times of above-mentioned steps arrive.The specific implementation of handling is: in that to have new managed devices to add fashionable, obtain the original alarm information of new managed devices, carry out and statistics that user right is irrelevant, obtain the rough estimates alarm data of new managed devices correspondence, and be increased to local cache.When the existing device in place warning data acquisition system withdraws from, the rough estimates alarm data that withdraws from the equipment correspondence is deleted from described local cache.The reason that existing device withdraws from may be that equipment is worked as machine, and perhaps equipment is deleted by the keeper.
Fig. 3 is the flow chart of server end customer in response end alarm data request in the embodiment of the invention.As shown in Figure 3, this method may further comprise the steps:
Step 301: server end receives client because of the user logins the alarm data request of transmission, comprises the user name of login user in this alarm data request.
Step 302: server obtains user right according to the user name of login user.
Step 303: from local cache, obtain all rough estimates alarm datas.
Step 304: the rough estimates alarm data that user right that step 302 is obtained and step 303 are obtained sends to the client of filing a request.
Because client is when the user logins first, self does not have Applet, therefore this step when server end sends to client with user right and rough estimates alarm data or before, further user interface and the Applet with html format sends to client, and client just can adopt the Applet of reception to draw the alarm interface and the alarm data of adding up is presented in the alarm interface by acousto-optic so.The downloading process of user interface and Applet program is disposable, promptly as long as the user once logined, does not just need to have downloaded again.
Step 305: server end receives the alarm data request of client timed sending after the user logins.
Step 306: the alarm data request that utilizes all the rough estimates alarm data responses in the local cache to receive.Above-mentioned steps 305 and 306 is carried out repeatedly, up to user's no longer alarm data request of logging off.
So far, this flow process finishes.
Fig. 4 is the process chart of client in the embodiment of the invention.As shown in Figure 4, this processing procedure may further comprise the steps:
Step 401: client detects the user when logining, and sends the alarm data request to server.
Step 402: the alarm data response that the client reception server returns.The user right that comprises initial statistics alarm data and login user in this alarm data response.
Step 403: the user right according to login user filters initial statistics alarm data, obtains the initial statistics alarm data that login user has authority to check.
Step 404: the initial statistics alarm data after filtering is carried out the statistics second time, obtain meeting the alarm data that imposes a condition, and statistics is presented on the alarm interface by acousto-optic.
Wherein, the computation rule of statistics all is in the program of being solidificated in imposing a condition for the second time, and by server maintenance, client can be downloaded computation rule and impose a condition from server.Impose a condition and include but not limited to: the sum of all kinds of warning information, the sum of each equipment all types warning information, all kinds of new quantity that produces between this visit and the last visit, the Alarm Classification that managed devices is newly-increased etc. to warning information.
Certainly, client also can provide various users optional control, needs with the inquiry of supporting the user.For example, provide the control of certain equipment all types warning information quantity of inquiry, inquire about the control of certain type warning information quantity of certain equipment, or the like.Above acousto-optic shows and the optional control of user all adopts Applet to be plotted on the alarm interface, thereby breaks away from the platform restriction, reaches operating system, the irrelevant requirement of browser.
Above step 403 and 404 operation be after the server rough estimates, carry out, based on the statistics of user right, thereby shared the burden of server end by client.
Step 405: judge regularly whether arrive update time, if then execution in step 406; Otherwise, continue execution in step 405.
Step 406: send the alarm data request to server.
Step 407: the rough estimates alarm data that reception server returns, filter according to the authority of login user again, and carry out the statistics second time, obtain meeting pre-conditioned alarm data.
Step 408: the pre-conditioned alarm data that meets that adopts step 407 to obtain refreshes the alarm interface.Return step 405.
So far, this flow process finishes.
The purpose that present embodiment timer access server also refreshes the alarm interface automatically is in time to obtain the alarm situation of managed devices, and the refresh operation at alarm interface is finished automatically without the user manually gets involved.In practice, can adopt information assignment process (MDP, Message Dispatch Process) message communicating mechanism to realize timed sending alarm data requested operation.
Preferably, after certain user's authority changed, client need be carried out the statistics based on new user right according to the alarm data that the authority that changes is returned server again, and refreshed the alarm interface automatically according to up-to-date data statistics result.The operation of change user right can be carried out by the user with high authority, user with high authority is at logging on client and after revising low rights user's authority, by client authority is revised message and send to server, server is revised information broadcast with authority and is given connected all clients, comprises the client of sending permission modification message.The client that receives authority modification message is all carried out based on the alarm data statistics of revising the back user right, and refreshes the alarm interface.Usually, the refresh operation after user right changes not is to carry out at once after obtaining alarm data, but will keep consistent with the refresh operation after client is regularly obtained alarm data.For example, the fixed time interval that client is obtained alarm data is 5s, and client 5s refreshes and once alarms the interface so, and after user right changed, client was calculated new alarm data, need wait until that the timing of 5s arrives, and just carries out refresh operation.Do so not only to have reduced and alarm the refresh operation that interface operation is realized, and when alarm takes place frequently, also can not alarm interface speech prompting and ring a situation of not stopping, can not influence user's operating experience to repaint.As seen, login user need not be nullified the new login of laying equal stress in the process that client recomputates, and also need not to trigger the control that refreshes on the interface, makes whole process finish in real time and automatically, has guaranteed the network management system safety of data.
For example, user 1 has the authority of revising authority, when user 2 checks the alarm data of device A, equipment B and equipment C in the user interface that client 2 shows, user 1 checks user 2 in client 1 the authority deletion of equipment C, at this moment, client 1 is revised message to the server sending permission, and server is revised message to this authority and broadcasted.After client 2 received that this authority is revised message, rough estimates alarm data that will be relevant with equipment C according to new authority of the user 2 filtered out, and carries out the statistics of alarm data again, and statistics finishes to upgrade automatically and alarms the interface.At this moment, the related data that does not comprise equipment C in the alarm interface after the renewal.
In order to realize above-mentioned warning data acquisition method, the present invention also provides a kind of warning data acquisition system.Fig. 5 shows the structural representation of warning data acquisition system in the embodiment of the invention.As shown in Figure 5, this warning data acquisition system comprises server 510 and client 520.
Wherein, server 510 is used to obtain the original alarm information of managed devices, carries out and statistics that user right is irrelevant, obtains the rough estimates alarm data.
Client 520 is used for obtaining the rough estimates alarm data from server, and according to the authority of login user, and the rough estimates alarm data that obtains is carried out statistics based on user right, obtains meeting the alarm data that imposes a condition.
Fig. 6 is a server in the embodiment of the invention, i.e. the structural representation of server 510 among Fig. 5.As shown in Figure 6, this server 510 comprises Alarm Unit 511, service unit 512, buffer unit 513 and original alarm information memory cell 514.Wherein,
Alarm Unit 511 is used to obtain the original alarm information of managed devices, and the original alarm information stores in original alarm information memory cell 514, is carried out the irrelevant statistics of user right to the original alarm information of obtaining, and obtains the rough estimates alarm data.Specifically, this Alarm Unit 511 obtains the original alarm information of all managed devices when the startup of server of place, carries out and the irrelevant statistics of user right, obtains the rough estimates alarm data; After startup, in real time according to the newly-increased acquired rough estimates alarm data of original alarm information updating.When service unit 512 inquiries, Alarm Unit 511 is added up alarm data with current preliminary and is offered service unit 512.
Service unit 512 is used for returning described rough estimates alarm data to client when the alarm data request that receives from client.
In order to improve the handling property of 512 pairs of concurrent events of service unit, service unit 512 specifically comprises processing module 532 that runs on the foreground and the poll module 531 that runs on the backstage.Poll module 531 is separate with processing module 532, does not disturb mutually.Wherein,
Poll module 531 is used for when startup of server, obtains all rough estimates alarm datas from Alarm Unit 511; After startup, utilize the poll thread, regularly query warning unit 511 obtains the rough estimates alarm data of variation, and adopts the corresponding record in the rough estimates alarm data renewal buffer unit 513 that changes.When obtaining the rough estimates alarm data of variation, can obtain all rough estimates alarm datas from Alarm Unit 511 earlier and judge again which has modification; Can also in Alarm Unit 511, the alarm data mark that is modified be come out, and when service unit 512 obtains, provide.
Processing module 532 is used to receive the alarm data request of client 520, all the rough estimates alarm datas in the return cache unit 513.Can also return simultaneously user right returning the rough estimates alarm data at the client login user.Carry out when certainly, returning the alarm data request that the operation of user right can only initiate first after the login of customer in response end subscriber.
Buffer unit 513 is used for buffer memory rough estimates alarm data.
Original alarm information memory cell 514 is used to store original alarm information.
In practice, for in real time according to the local cache of the variation update service device of managed devices resource, Alarm Unit 511 can further write down the equipment state change information of each managed devices, and in that to have new managed devices to add fashionable, Alarm Unit 511 not only recording equipment state change information obtains the original alarm information of new managed devices, carry out and the irrelevant statistics of user right, obtain the rough estimates alarm data of new managed devices correspondence, the original alarm information with new managed devices correspondence is saved in the original alarm information memory cell 514 simultaneously; When the existing managed devices in the system of place withdrawed from, Alarm Unit 511 can a recording equipment state change information.
In this case, poll module 531 is further obtained the equipment state change information of Alarm Unit 511 records, there have new managed devices to add in equipment state change information indication to be fashionable, and the rough estimates alarm data of new managed devices correspondence is sent to buffer unit 513; When the existing managed devices in the system of equipment state change information indication place withdraws from, the rough estimates alarm data of the managed devices correspondence that withdraws from is deleted from buffer unit 513.The above operation of upgrading local cache according to the equipment state change information can regularly be carried out during query warning unit 511 in poll module 531.
In practice, for real-time variation update service device local cache according to user right, processing module 532 is further when user right changes, revise message informing and all clients that its place server is connected by the broadcasting user authority, make client to add up alarm data again according to amended user right.
Fig. 7 is a client in the embodiment of the invention, i.e. the structural representation of client 520 among Fig. 5.As shown in Figure 7, client 520 comprises login unit 521, request unit 522, statistic unit 523 and display unit 524, wherein,
Login unit 521 is when the user logins, and user profile such as the user name of reception user input, password send to request unit 522 then.
Request unit 522, be used to receive the user profile of login unit 521 after, user profile be carried in the alarm data request send, user right that reception server returns and rough estimates alarm data, and send to statistical module 523 to server 510.This request unit 523 is also logined the back during log off the user, regularly send the alarm data request to server 510, can not comprise user profile in this alarm data request, the alarm data request returned of reception server 510 then, and send to statistic unit 523.
Statistic unit 523 is used for the user right according to login user, and the rough estimates alarm data that request unit 522 is received carries out the statistics based on user right, obtains meeting the alarm data that imposes a condition, and sends to display unit 524.Wherein, the user right of login user obtains from server by request unit 522.
Because request unit 522 can regularly be initiated the alarm data request, and the up-to-date rough estimates alarm data that server returns sent to statistic unit 523, therefore statistic unit 523 whenever receives the rough estimates alarm data one time, all carry out, send to display unit 524 obtaining up-to-date alarm data once based on the statistical operation of user right.
Display unit 524 is presented at alarm data in the alarm interface with acoustooptic form.Display operation is to carry out Applet to realize.This Applet is carried in the html page, send request unit 522 in the client 520 by server, request unit 522 passes through display unit 524 with the html page that obtains by statistic unit 523, or directly sends to display unit 524 (the single arrow solid line of expression html page sendaisle that points to display units 524 from request unit 522 is not shown in Figure 7).
Preferably, in order in real time the variation of user right to be reflected in client, request unit 522 is also revised the authority of back user right and is revised message, notice statistic unit 523 receiving carrying of server 510 broadcasting.
In this case, statistic unit 523 according to amended user right, is carried out based on the statistical operation of revising the back user right after the notice that receives, and sends to display unit 524 with obtaining up-to-date alarm data.
By the above as can be seen, warning data acquisition method provided by the present invention can reduce load of server, improves the server overall performance.
In sum, more than be preferred embodiment of the present invention only, be not to be used to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (20)

1. a warning data acquisition method is characterized in that, this method comprises:
Server obtains the original alarm information of managed devices, and described original alarm information is carried out and the irrelevant statistics of user right, obtains the rough estimates alarm data;
Client is obtained described rough estimates alarm data from server, and according to the user right of login user, and the rough estimates alarm data that obtains is carried out statistics based on user right, obtains meeting the alarm data that imposes a condition.
2. the method for claim 1, it is characterized in that, described server obtains the original alarm information of managed devices, described original alarm information is carried out and the irrelevant statistics of user right, obtaining the rough estimates alarm data is: server is when the warning data acquisition system start-up of place, obtain the original alarm information of all managed devices, carry out and the irrelevant statistics of user right, obtain the rough estimates alarm data; After starting, regularly according to the newly-increased described rough estimates alarm data of original alarm information updating.
3. method as claimed in claim 2 is characterized in that, this method further comprises: server is kept at local cache with the rough estimates alarm data that obtains;
Described timing according to the newly-increased described rough estimates alarm data of original alarm information updating is:
Server obtains newly-increased original alarm information from managed devices in real time, upgrades the rough estimates alarm data of described acquisition;
Server by utilizing runs on the poll thread of server background, regularly obtains the rough estimates alarm data of variation and upgrades local cache.
4. method as claimed in claim 3, it is characterized in that, this method further comprises: after the described startup, the state of server monitoring managed devices, add fashionablely at new managed devices, obtain the original alarm information of described new managed devices, carry out and statistics that user right is irrelevant, obtain the rough estimates alarm data of new managed devices correspondence, and be increased to described local cache;
When the existing managed devices in the warning data acquisition system of server place withdraws from, the rough estimates alarm data of the managed devices correspondence that withdraws from is deleted from described local cache.
5. method as claimed in claim 3, it is characterized in that, described client is obtained described rough estimates alarm data from server: when client is logined the user, send alarm data request, all the rough estimates alarm datas in the described local cache that reception server returns to server.
6. method as claimed in claim 3, it is characterized in that, described client is obtained described rough estimates alarm data from server: login the back during log off the user, described client regularly sends alarm data request, all the rough estimates alarm datas in the described local cache that reception server returns to server;
After obtaining the rough estimates alarm data from server, carry out described statistical operation based on user right at every turn.
7. the method for claim 1 is characterized in that, the user right of described login user and described imposing a condition are that client is obtained from server when the user logins;
Described user right according to login user carries out statistics based on user right to the rough estimates alarm data that obtains, and obtains meeting the alarm data that imposes a condition and is:
Client is filtered the described rough estimates alarm data that obtains according to the user right of login user, obtains the rough estimates alarm data of each managed devices correspondence that described user right can inquire about;
Add up according to the rough estimates alarm data that imposes a condition to described correspondence, obtain meeting the alarm data that imposes a condition.
8. the method for claim 1 is characterized in that, describedly obtains meeting after the alarm data that imposes a condition, and further comprises: when user right was modified, server was revised message to client broadcasting authority; Receive described authority and revise the client of message,, carry out described statistics again based on user right according to the user right of amended login user.
9. the method for claim 1, it is characterized in that, describedly obtain meeting after the alarm data that imposes a condition, further comprise: the applet Applet that described client utilization is obtained from server draws the alarm interface, and the described alarm data that imposes a condition that meets is presented on the described alarm interface by acousto-optic.
10. method as claimed in claim 9 is characterized in that, carries out described statistics based on user right at every turn, obtains meeting after the alarm data that imposes a condition, and refreshes described alarm interface.
11. the method for claim 1 is characterized in that, the described statistics that has nothing to do with user right is: add up corresponding various types of other original alarm information content of each managed devices.
12. the server in the warning data acquisition system is characterized in that this server comprises Alarm Unit and service unit, wherein,
Described Alarm Unit is used to obtain the original alarm information of managed devices, to the statistics that described original alarm information is carried out and user right is irrelevant, obtains the rough estimates alarm data;
Described service unit is used for returning described rough estimates alarm data to described client when the alarm data request that receives from client.
13. server as claimed in claim 12 is characterized in that, described Alarm Unit is further used for, when the startup of server of place, obtain the original alarm information of all managed devices, carry out and the irrelevant statistics of user right, obtain the rough estimates alarm data; After starting, real-time rough estimates alarm data according to the newly-increased described acquisition of original alarm information updating.
14. server as claimed in claim 13 is characterized in that, this server further comprises buffer unit, is used for buffer memory rough estimates alarm data;
Described service unit comprises the poll module that runs on server background and runs on the processing module on server foreground;
Described poll module is used for when the startup of server of place, obtains all rough estimates alarm datas and is saved in buffer unit from described Alarm Unit; After startup, utilize the poll thread, regularly the query warning unit obtains the rough estimates alarm data of variation, and upgrades described buffer unit;
Described processing unit is used to receive the alarm data request of client, returns all rough estimates alarm datas in the described buffer unit to described client.
15. server as claimed in claim 14 is characterized in that, described Alarm Unit is further used for writing down the equipment state change information of managed devices; And add fashionablely at new managed devices, obtain the original alarm information of described new managed devices, carry out and statistics that user right is irrelevant, obtain the rough estimates alarm data of new managed devices correspondence;
Described poll module is further obtained described equipment state change information, and there have new managed devices to add in the indication of described equipment state change information to be fashionable, and the rough estimates alarm data of described new managed devices correspondence is sent to described buffer unit; When the existing managed devices in the system of described equipment state change information indication place withdraws from, the rough estimates alarm data of the managed devices correspondence that withdraws from is deleted from described buffer unit.
16. server as claimed in claim 14 is characterized in that, described processing unit is broadcast to all clients in the system with amended user right further after revising user right.
17. the client in the warning data acquisition system is characterized in that c
18. client as claimed in claim 17, it is characterized in that, the described request unit is further used for carrying out when the user logins described to server transmission alarm data requested operation, and the user logins the back during log off, and timing is carried out described to server generation alarm data requested operation;
Described statistic unit is carried out described statistical operation based on user right after receiving the rough estimates alarm data from request unit at every turn.
19. client as claimed in claim 17 is characterized in that, further behind user right after the modification that receives server broadcast, the notice statistic unit is carried out described statistical operation based on user right according to revising the back user right in the described request unit.
20. client as claimed in claim 17, it is characterized in that, this client further comprises display module, be used to utilize the Applet that obtains from server to draw the alarm interface, and the alarm data that imposes a condition that meets that described statistic unit obtains is presented on the described alarm interface by acousto-optic.
CN2008101036448A 2008-04-09 2008-04-09 Warning data acquisition method and server and client end in system Active CN101252465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101036448A CN101252465B (en) 2008-04-09 2008-04-09 Warning data acquisition method and server and client end in system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101036448A CN101252465B (en) 2008-04-09 2008-04-09 Warning data acquisition method and server and client end in system

Publications (2)

Publication Number Publication Date
CN101252465A true CN101252465A (en) 2008-08-27
CN101252465B CN101252465B (en) 2011-05-11

Family

ID=39955662

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101036448A Active CN101252465B (en) 2008-04-09 2008-04-09 Warning data acquisition method and server and client end in system

Country Status (1)

Country Link
CN (1) CN101252465B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148692A (en) * 2010-02-09 2011-08-10 新奥特(北京)视频技术有限公司 Secondary filtering monitoring method and system for alarm information
CN102195825A (en) * 2010-03-05 2011-09-21 新奥特(北京)视频技术有限公司 Monitoring system and monitoring method thereof for complete interaction between client and server
WO2012068833A1 (en) * 2010-11-25 2012-05-31 中兴通讯股份有限公司 Method and system for collecting alarm and performance of communication device
CN101753988B (en) * 2008-12-04 2013-05-22 北京中星微电子有限公司 Alarming filter method in a video monitoring system, system and central platform server
CN103117898A (en) * 2013-01-30 2013-05-22 深圳联友科技有限公司 Method and system for monitoring data
CN104008264A (en) * 2013-02-22 2014-08-27 三星电子株式会社 Method and system for implementing alarms for medical device through mobile device
CN104202201A (en) * 2014-09-16 2014-12-10 广州金山网络科技有限公司 Log processing method and device and terminal
CN104462150A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Alarm filter method and device in network element management system
CN104823157A (en) * 2012-09-12 2015-08-05 格林伊登美国控股有限责任公司 System and method for providing dynamic elasticity of contact center resources
CN104880997A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Respirator network connection control method and system
CN107229394A (en) * 2017-06-07 2017-10-03 郑州云海信息技术有限公司 A kind of method and device of interface alarm
CN108540976A (en) * 2018-03-07 2018-09-14 京信通信系统(中国)有限公司 A kind of method and device of data statistics
US10404784B2 (en) 2013-02-22 2019-09-03 Samsung Electronics Co., Ltd. Method and system for transmitting result of examination of specimen from medical device to destination
US10411794B2 (en) 2013-02-22 2019-09-10 Samsung Electronics Co., Ltd. Method and system for transmitting result of examination of specimen from medical device to destination through mobile device
CN110401570A (en) * 2019-08-06 2019-11-01 中国联合网络通信集团有限公司 Alarm method, device, system, equipment and readable storage medium storing program for executing
CN110751815A (en) * 2019-11-01 2020-02-04 天地(常州)自动化股份有限公司 Intelligent control system and method for mine audible and visual alarm
CN113630396A (en) * 2021-07-28 2021-11-09 上海纽盾科技股份有限公司 Method, device and system for processing network security alarm information

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1550034A2 (en) * 2002-06-20 2005-07-06 International Business Machines Corporation A system and method to re-synchronize client devices while refreshing them from a server
CN100384153C (en) * 2005-12-26 2008-04-23 北京交通大学 Network performance analysis report system based on IPv6 and its implementing method

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753988B (en) * 2008-12-04 2013-05-22 北京中星微电子有限公司 Alarming filter method in a video monitoring system, system and central platform server
CN102148692A (en) * 2010-02-09 2011-08-10 新奥特(北京)视频技术有限公司 Secondary filtering monitoring method and system for alarm information
CN102148692B (en) * 2010-02-09 2015-02-18 新奥特(北京)视频技术有限公司 Secondary filtering monitoring method and system for alarm information
CN102195825A (en) * 2010-03-05 2011-09-21 新奥特(北京)视频技术有限公司 Monitoring system and monitoring method thereof for complete interaction between client and server
CN102195825B (en) * 2010-03-05 2015-11-25 新奥特(北京)视频技术有限公司 A kind of client and the complete mutual supervisory control system of server and method for supervising thereof
WO2012068833A1 (en) * 2010-11-25 2012-05-31 中兴通讯股份有限公司 Method and system for collecting alarm and performance of communication device
CN104823157A (en) * 2012-09-12 2015-08-05 格林伊登美国控股有限责任公司 System and method for providing dynamic elasticity of contact center resources
CN103117898A (en) * 2013-01-30 2013-05-22 深圳联友科技有限公司 Method and system for monitoring data
CN104008264A (en) * 2013-02-22 2014-08-27 三星电子株式会社 Method and system for implementing alarms for medical device through mobile device
US10109170B2 (en) 2013-02-22 2018-10-23 Samsung Electronics Co., Ltd. Method and system for implementing alarms for medical device through mobile device
US10411794B2 (en) 2013-02-22 2019-09-10 Samsung Electronics Co., Ltd. Method and system for transmitting result of examination of specimen from medical device to destination through mobile device
US10404784B2 (en) 2013-02-22 2019-09-03 Samsung Electronics Co., Ltd. Method and system for transmitting result of examination of specimen from medical device to destination
CN104008264B (en) * 2013-02-22 2018-11-16 三星电子株式会社 For implementing the method and system of the alarm of medical device by mobile device
CN104462150A (en) * 2013-09-25 2015-03-25 中兴通讯股份有限公司 Alarm filter method and device in network element management system
CN104880997A (en) * 2014-02-28 2015-09-02 北京谊安医疗系统股份有限公司 Respirator network connection control method and system
CN104202201A (en) * 2014-09-16 2014-12-10 广州金山网络科技有限公司 Log processing method and device and terminal
CN104202201B (en) * 2014-09-16 2018-01-23 广州金山网络科技有限公司 A kind of log processing method, device and terminal
CN107229394A (en) * 2017-06-07 2017-10-03 郑州云海信息技术有限公司 A kind of method and device of interface alarm
CN108540976A (en) * 2018-03-07 2018-09-14 京信通信系统(中国)有限公司 A kind of method and device of data statistics
CN110401570A (en) * 2019-08-06 2019-11-01 中国联合网络通信集团有限公司 Alarm method, device, system, equipment and readable storage medium storing program for executing
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
CN113630396A (en) * 2021-07-28 2021-11-09 上海纽盾科技股份有限公司 Method, device and system for processing network security alarm information
CN113630396B (en) * 2021-07-28 2023-02-21 上海纽盾科技股份有限公司 Method, device and system for processing network security alarm information

Also Published As

Publication number Publication date
CN101252465B (en) 2011-05-11

Similar Documents

Publication Publication Date Title
CN101252465B (en) Warning data acquisition method and server and client end in system
CN101621405B (en) Distributed type management monitoring system, monitoring method and establishing method thereof
CN102779185B (en) High-availability distribution type full-text index method
CN106709003A (en) Hadoop-based mass log data processing method
WO2017167050A1 (en) Configuration information generation and transmission method, and resource loading method, apparatus and system
CN106789377B (en) Service parameter updating method of network element cluster
CN103383689A (en) Service process fault detection method, device and service node
CN103067230A (en) Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code
CN103488793A (en) User behavior monitoring method based on information retrieval
CN103024065A (en) System configuration management method for cloud storage system
CN102932204A (en) Monitoring method and monitoring system of content delivery network
CN103645904A (en) Cache realization method of interface calling
CN110968603B (en) Data access method and device
US11700314B2 (en) Aggregated service status reporter
EP2767912A2 (en) In-memory real-time synchronized database system and method
US8326913B2 (en) Method and system for service contract discovery
CN113067709A (en) Charging method, device and equipment based on cloud service and readable storage medium
CN100413257C (en) Network element warning data obtaining method
CN112019362B (en) Data transmission method, device, server, terminal, system and storage medium
KR20100132752A (en) Distributed data processing system
US11954012B2 (en) Client-side telemetry data filter model
CN111294231B (en) Resource management method and system
CN104010008A (en) Method for controlling mass invalid access to server
CN101364224A (en) Information management system and method
CN112860844A (en) Case clue processing system, method and device and computer equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.