CN103840962B - Server alerts output intent and system - Google Patents
Server alerts output intent and system Download PDFInfo
- Publication number
- CN103840962B CN103840962B CN201210486810.3A CN201210486810A CN103840962B CN 103840962 B CN103840962 B CN 103840962B CN 201210486810 A CN201210486810 A CN 201210486810A CN 103840962 B CN103840962 B CN 103840962B
- Authority
- CN
- China
- Prior art keywords
- server
- information
- processing module
- warning
- alarm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Computer And Data Communications (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of server alarm output intent and system, methods described includes:Key-value pair data storehouse is created, it have recorded server in the form of key-value pair and has sent to the history alarm information of correspondence warning processing module;After server and warning processing module are set up and are connected, what acquisition warning processing module was reported logs in parameter information, and the corresponding warning information output policy of parameter information selection is logged according to this, and alarm matching treatment is carried out to the global warning information in the history alarm information and network management system database in key-value pair data storehouse according to corresponding warning information output policy.Using the present invention, server will not carry out repeating transmission to the warning information sent to warning processing module, and can ensure the integrality that warning information is obtained when warning processing module and server disconnecting are reconnected.
Description
Technical field
The present invention relates to technologies of telecommunications network management field, output intent and system are alerted in particular to a kind of server.
Background technology
In telecommunicatioin network management software field, communication system(Including Transmission system, telephone traffic system, security system, distribute leaflets system,
Rotating ring system etc.)Operation whether normally distinguished by alerting.When system operation is abnormal, warning information, pipe are triggered
Reason personnel are handled after finding warning information, and confirm warning information;After system recovers normal, warning information is eliminated.
, such as will be dynamic in actual application, it is often necessary to which the warning information that system is produced is output into some third parties
The warning information that looped network guard system is produced notifies management and attendant by modes such as short message, mails;Or by transmission network
Guard system is docked with third party producer, and the warning information for such as producing transmission network management system is with SNMP(Simple
Network Management Protocol, Simple Network Management Protocol)Agreement is output to the telephone traffic network system of third party producer
System etc..
Generally, during network management system server outputting alarm information, its basic principle followed mainly includes:
1st, in warning information generation, elimination, confirmation, warning processing module can be normally sent to, and identical is accused
Alert information does not repeat to send;
2nd, server or receive warning information warning processing module occur abnormal restarting after, server can will be different
Warning information during often is reissued, it is ensured that the integrality of the warning information of transmission.
The existing alarm way of output is roughly divided into following two:
1st, any output matching algorithm is not done, as long as there is warning processing module login, server is all by all alarms
Information is sent to warning processing module, no matter whether these warning information have been transmitted across.At Server Restart or alarm
After reason module is logged in again, the warning information during which produced can not be reissued;
2nd, network management system server is only responsible for sending alarm, and all matching algorithms are all at the alarm for receiving warning information
Manage module end to carry out, now, all warning processing modules will carry out alerting the design of matching.
Thus, the problem of above-mentioned existing two kinds of processing modes have certain, be respectively:
1st, the alarm for being already sent to warning processing module does not keep a record, and restarts warning processing module or server
Afterwards, warning information can repeat to send, and the warning information that each warning processing module must repeat to send specifically designed for this part enters
Row matching treatment.Therefore, system designer will not only design the operational implementation method of warning processing module, it is also special
Design the matching algorithm of the warning processing module.Especially third party producer is output in the warning information for producing network management system
When, it is necessary to both sides coordinate negotiated match algorithm, it is clear that its inefficiency, are unfavorable for both sides' system docking.
2nd, during server or warning processing module stop or exited, produced if alarm is eliminated, and the announcement
It is alert to eliminate corresponding warning information and have transmitted to corresponding warning processing module, in server or warning processing module again
After startup, existing system is all to obtain all warning information without elimination of current system, and what those had been eliminated
Warning information will be unable to obtain, then the situation that loss alarm is eliminated just occur, after alarm output module alarm is possible
Face can not all be eliminated always, so may result in server outputting alarm information and imperfect and inaccurate situation occur.
The content of the invention
In order to solve prior art presence carried out to having sent a warning message repeat transmission and warning information and send not
Complete the problem of, it is an object of the invention to provide a kind of server alarm output intent and system.
In order to reach the purpose of the present invention, the present invention is realized using following technical scheme:
A kind of server alerts output intent, including:
Key-value pair data storehouse is created, it have recorded server in the form of key-value pair and has sent to correspondence alarming processing mould
The history alarm information of block;
After server and warning processing module are set up and be connected, what acquisition warning processing module was reported logs in parameter information,
And the corresponding warning information output policy of parameter information selection is logged according to this, and according to corresponding warning information output policy pair
Global warning information in history alarm information and network management system database in key-value pair data storehouse is carried out at alarm matching
Reason.
Preferably, the alarm matching treatment includes:
The warning information that server is not sent during server or warning processing module exception reissues processing;
And/or, send to the warning information of warning processing module and be not repeated that transmission is handled;
And/or, the repetition warning information that network management system is produced only sends single treatment.
Preferably, the parameter that logs in includes the first parameter match and the second parameter needcachesendalarm, clothes
Business device report according to warning processing module these log in parameter information and select rules of corresponding warning information output policy to be:
When match is 0, that is, represent that the warning processing module does not need server to carry out alarm matching treatment, server is received
Logged in this after parameter, history alarm information record corresponding with the warning processing module will be cached in key-value pair data storehouse clear
It is empty;
When match is 1, that is, represent that the warning processing module needs server to carry out alarm matching treatment, server is received
This is logged in after parameter, and sent out corresponding with the warning processing module is obtained by carrying out unserializing processing to key-value pair data storehouse
The history alarm information sent, wherein, the history alarm information includes alarm record A and acknowledged alarm record B, if webmaster
System database will currently be sent to the current alarm information of the warning processing module to be occurred in alarm record A, then table
Show that the warning information has been transmitted across, server need not send it again, otherwise, server needs to believe the current alarm
Breath is sent to the warning processing module;If the current alarm that network management system database currently to be sent is confirmed in acknowledged alarm note
Record B in occur, represent that the current acknowledged alarm has been transmitted across, server need not be sent again, otherwise, server need by
The current acknowledged alarm is sent to the warning processing module;
When needcachesendalarm be 0, that is, represent the warning processing module do not need server buffer its sent
Warning information and acknowledged alarm information into key-value pair data storehouse, server is received after the login parameters, and server is to all
Send to the warning information of the warning processing module and acknowledged alarm information not performing and be cached in key-value pair data storehouse;
When needcachesendalarm is 1, that is, represent the warning processing module to need server buffer that it has sent
Alarm and acknowledged alarm information are into key-value pair data storehouse, and server is received after the login parameters, and server has been sent to all
Execution is cached in key-value pair data storehouse by warning information and acknowledged alarm information to the warning processing module.
Preferably, after the key-value pair data storehouse is created, in startup of server, set up and key-value pair data storehouse
The history alarm information sent in connection, the server by utilizing unserializing instrument unserializing key-value pair data storehouse.
Preferably, the key-value pair data storehouse is the Redis key-value pair datas storehouse based on No-Sql technologies, the antitone sequence
Chemical industry tool is Protocol Buffer.
A kind of server alerts output system, including:
Key-value pair data storehouse, it is connected to server, has been sent for recording server in the form of key-value pair to right
Answer the history alarm information of warning processing module;
Server, for after being connected with warning processing module foundation, what acquisition warning processing module was reported to log in parameter
Information, and the corresponding warning information output policy of parameter information selection is logged according to this, and according to the output of corresponding warning information
Strategy is alerted to the global warning information in the history alarm information and network management system database in key-value pair data storehouse
Matching treatment.
At least one warning processing module, in game server, reporting and logging in parameter.
Preferably, the alarm matching treatment that server is performed includes:
The warning information that server is not sent during server or warning processing module exception reissues processing;
And/or, send to the warning information of warning processing module and be not repeated that transmission is handled;
And/or, the repetition warning information that network management system is produced only sends single treatment.
Preferably, the parameter that logs in includes the first parameter match and the second parameter needcachesendalarm, clothes
Business device report according to warning processing module these log in parameter information and select rules of corresponding warning information output policy to be:
When match is 0, that is, represent that the warning processing module does not need server to carry out alarm matching treatment, server is received
Logged in this after parameter, history alarm information record corresponding with the warning processing module will be cached in key-value pair data storehouse clear
It is empty;
When match is 1, that is, represent that the warning processing module needs server to carry out alarm matching treatment, server is received
This is logged in after parameter, and sent out corresponding with the warning processing module is obtained by carrying out unserializing processing to key-value pair data storehouse
The history alarm information sent, wherein, the history alarm information includes alarm record A and acknowledged alarm record B, if webmaster
System database will currently be sent to the current alarm information of the warning processing module to be occurred in alarm record A, then table
Show that the warning information has been transmitted across, server need not send it again, otherwise, server needs to believe the current alarm
Breath is sent to the warning processing module;If the current alarm that network management system database currently to be sent is confirmed in acknowledged alarm note
Record B in occur, represent that the current acknowledged alarm has been transmitted across, server need not be sent again, otherwise, server need by
The current acknowledged alarm is sent to the warning processing module;
When needcachesendalarm be 0, that is, represent the warning processing module do not need server buffer its sent
Warning information and acknowledged alarm information into key-value pair data storehouse, server is received after the login parameters, and server is to all
Send to the warning information of the warning processing module and acknowledged alarm information not performing and be cached in key-value pair data storehouse;
When needcachesendalarm is 1, that is, represent the warning processing module to need server buffer that it has sent
Alarm and acknowledged alarm information are into key-value pair data storehouse, and server is received after the login parameters, and server has been sent to all
Execution is cached in key-value pair data storehouse by warning information and acknowledged alarm information to the warning processing module.
Preferably, in startup of server, it initially sets up the connection with key-value pair data storehouse, and utilizes antitone sequence chemical industry
The history alarm information sent in the tool unserializing key-value pair data storehouse.
Preferably, the key-value pair data storehouse is the Redis key-value pair datas storehouse based on No-Sql technologies, the antitone sequence
Chemical industry tool is Protocol Buffer.
The present invention is already sent to each warning processing module by using the key-value pair data storehouse locallyd create, preservation
History alarm is recorded, and causes warning processing module according to different events(The normal game server of such as warning processing module,
Warning processing module is logged in again after receiving alarm, server or warning processing module abnormal restoring after the completion of logging in)To clothes
Business device report it is different log in parameter so that server end can log in parameter to be automatically performed the defeated of warning information according to these
Go out matching, and then the difficulty of system design is reduced without removing the complicated matching algorithm of design again for each warning processing module
Degree, and can solve the problem that repeatedly transmission and warning information are sent not to the progress that sent a warning message present in prior art
Complete technical problem, server will not carry out repeating transmission to the warning information sent to warning processing module, and can
To ensure the integrality that warning information is obtained when warning processing module and server disconnecting are reconnected.
Brief description of the drawings
Fig. 1 is the handling process schematic diagram that the embodiment of the present invention loads the history alarm information being transmitted across;
Fig. 2 is that flow is reissued in the elimination alarm of module of the embodiment of the present invention;
Fig. 3 is that the embodiment of the present invention alerts transmission flow schematic diagram;
Fig. 4 is the schematic flow sheet that data are synchronized to local disk file by the embodiment of the present invention from key-value pair data storehouse;
Fig. 5 is that server of the embodiment of the present invention alerts output system structural representation.
The realization, functional characteristics and excellent effect of the object of the invention, below in conjunction with specific embodiment and accompanying drawing do into
The explanation of one step.
Embodiment
Technical scheme of the present invention is described in further detail with specific embodiment below in conjunction with the accompanying drawings, so that this
The technical staff in field can be better understood from the present invention and can be practiced, but illustrated embodiment is not as the limit to the present invention
It is fixed.
A kind of server alarm output intent provided in an embodiment of the present invention, comprises the following steps:
S10, establishment key-value pair data storehouse, it have recorded server in the form of key-value pair and has sent to correspondence alarm
Manage the history alarm information of module;
S20, after server and warning processing module are set up and be connecteds, obtain the parameter that logs in that warning processing module reports and believe
Breath, and the corresponding warning information output policy of parameter information selection is logged according to this, and export plan according to corresponding warning information
Alarm slightly is carried out to the global warning information in the history alarm information and network management system database in key-value pair data storehouse
With processing.
In the step S10, the key-value pair data storehouse is sent to each warning processing module for caching server
History alarm information, its data uses key-value pair(Key-Value)Form cached.For example, in the present embodiment,
The data structure of the key-value pair information preserved in the key-value pair data storehouse is:
To discuss below conveniently, the alarm aggregated label that server is had transmitted into warning processing module is A(Call announcement in the following text
Alert record A), the acknowledged alarm aggregated label sent is B(Call acknowledged alarm record B in the following text).
Specifically, in the step S20, the alarm matching treatment includes:
The warning information that server is not sent during server or warning processing module exception reissues processing;
And/or, send to the warning information of warning processing module and be not repeated that transmission is handled;
And/or, the repetition warning information that network management system is produced only sends single treatment.
Specifically, in the present embodiment, the parameter that logs in includes the first parameter match and the second parameter
needcachesendalarm。
Each warning processing module is required for reporting to server when logging in or disconnecting and reconnecting logs in parameter, server
According to the difference for logging in parameter received, different matching strategies are performed, wherein, it is in the present embodiment, such as described to log in
The form of parameter is as follows:
Login parameters title | Parameter declaration |
match | 0:Do not need 1:Need |
needcachesendalarm | 0:Do not need 1:Need |
Server report according to warning processing module these log in parameter information and select corresponding warning information output plan
Slightly rule be:
1)When match is 0, that is, represent that the warning processing module does not need server to carry out alarm matching treatment, server
Receive this to log in after parameter, history alarm information record corresponding with the warning processing module will be cached in key-value pair data storehouse
Empty;
2)When match is 1, that is, represent that the warning processing module needs server to carry out alarm matching treatment, server is received
Logged in this after parameter, by key-value pair data storehouse carry out unserializing processing obtain it is corresponding with the warning processing module
The history alarm information of transmission, wherein, the history alarm information includes alarm record A and acknowledged alarm record B, if net
Guard system database will currently be sent to the current alarm information of the warning processing module to be occurred in alarm record A, then
Represent that the warning information has been transmitted across, server need not send it again, otherwise, and server is needed the current alarm
Information is sent to the warning processing module;If the current alarm that network management system database currently to be sent is confirmed in acknowledged alarm
Record in B and occur, represent that the current acknowledged alarm has been transmitted across, server need not be sent again, otherwise, server needs
The current acknowledged alarm is sent to the warning processing module;
3)When needcachesendalarm be 0, that is, represent the warning processing module do not need server buffer its sent out
The warning information and acknowledged alarm information sent is into key-value pair data storehouse, and server is received after the login parameters, and server is to institute
Have to have sent to the warning information of the warning processing module and acknowledged alarm information not performing and be cached in key-value pair data storehouse,
It is now corresponding with the warning processing module in key-value pair data storehouse to send record(Alarm record A and acknowledged alarm record B)Will
For sky;
4)When needcachesendalarm is 1, that is, represent the warning processing module to need server buffer that it has sent
Alarm and acknowledged alarm information into key-value pair data storehouse, server is received after the login parameters, and server has been sent out all
Execution is cached in key-value pair data storehouse by the warning information and acknowledged alarm information for delivering to the warning processing module, now key assignments
Record is sent to corresponding with the warning processing module in database(Alarm record A and acknowledged alarm record B)To not be sky.
Specifically, in the step S10, after the key-value pair data storehouse is created, in startup of server, set up
With the connection in key-value pair data storehouse, send in the server by utilizing unserializing instrument unserializing key-value pair data storehouse
History alarm information.
When starting server, the history alarm information sent in the local key-value pair data storehouse of unserializing.Wherein, scheme
1 is the handling process schematic diagram that the embodiment of the present invention loads the history alarm information being transmitted across, as shown in figure 1, server
During startup, the connection with key-value pair data storehouse is created, the numbering according to warning processing module is obtained using unserializing instrument, obtains
The warning information A sent and acknowledged alarm information B of all warning processing modules are taken, is easy to not retransmit repetition below
Warning information to correspondence warning processing module in.
Specifically, in a kind of specific embodiment, after warning processing module signs in server, server is sent according to it
Log in parameter, decide whether enter alarm elimination reissue flow.
As shown in Fig. 2 when some warning processing module login service device, if stepping on of reporting of the warning processing module
Land parameter demonstrates the need for server end and carries out alarm matching, is so accomplished by the alarm by the warning processing module is had been sent to
Information A, acknowledged alarm information B and current from network management system database(Wherein, the network management system database is core data
Storehouse, Real-time Alarm information that configuration and system for depositing webmaster are produced etc.)What is obtained current all does not eliminate alarm
Information C is compared, and finds out all warning information not occurred in C in A and B, and these warning information are that alarm eliminates letter
Breath, the warning processing module is given at this time, it may be necessary to which these alarms are eliminated into information and all reissued, and so, then ensure that the corresponding announcement
Alert processing module receives the integrality of warning information.
Will alarm eliminate information and reissue to warning processing module when, often send an alarm eliminate information, it is necessary in A and
The warning information and acknowledged alarm for having identical serial number with alarm elimination information corresponding with the warning processing module is believed in B
Record deletion is ceased, represents that warning information has been eliminated.
In another specific embodiment, server is according to the login parameters of warning processing module, into the normal hair of alarm
Send flow.
As shown in figure 3, for needing the normal warning processing module for obtaining warning information, after it logs on to server,
Server first judges that what is reported during its login logs in parameter, if the warning processing module does not need server buffer, it has sent
Warning information and acknowledged alarm information into local key-value pair data storehouse, represent that the warning processing module will not be reviewed after restarting
Whether warning information has sent, and does not now need then server to reissue alarm again to the warning processing module.Under such a situation,
Warning processing module is all that all warning information are obtained from server after each log in.
If the warning processing module need its warning information for having sent of server buffer and acknowledged alarm information to this
In ground key-value pair data storehouse, and if current produce and acknowledged alarm for alarm, then need to judge that the current alarm is produced and accused
Police is confirmed whether to be transmitted across, and is not transmitted across, then server is sent to it, after being sent, and server will be sent
Record is added in local key-value pair data storehouse;Eliminated if alarm, then server is needed in local key-value pair data storehouse
The corresponding warning information A and acknowledged alarm information B existed is deleted.
Generally, after server carries out warning information output matching processing, server is also by all alarming processing moulds
Local disk file is arrived in warning information A and acknowledged alarm information the B serializing of block.
As shown in figure 4, key-value pair data storehouse is during operation, in order to improve efficiency, it is necessary to by key-value pair data storehouse
In data be loaded into internal memory, and server need data of the key-value pair data storehouse in internal memory are periodically saved in this earth magnetism
In disk file, accordingly even when application server is exited, data can also be recovered from local disk file, will not be because of key-value pair
The internal memory of database, which is lost, causes alarm to send information record loss.
And, when server is exited, it is necessary to which the warning information for not being synchronized to local disk file first is sent into record sequence
Rowization arrive local disk, then exit again.
Local key-value pair data storehouse is selected as a part for server or independently of server disposition in the present embodiment
Based on the Redis of No-Sql technologies, it is a high performance key-value database.Due to by the alarm sent
Information and acknowledged alarm information are stored in local key-value pair data storehouse, it is therefore desirable to enter warning information and acknowledged alarm information
Row serializing, antitone sequence is needed to specific alarm object when alarm and acknowledged alarm are obtained in local key-value pair data storehouse,
The present embodiment is using the Protocol Buffer that the unserializing instrument used is Google, and it is a high performance sequence
Change and unserializing alerts bag.
It is given below under several different applications, the process that the method provided according to the present invention is matched.
Scene 1:It need not be matched during login, matching be needed in transmission process, interruption, which is reconnected, needs matching.Common application
A client for being specifically used to alert into line program, log in every time to obtain it is newest do not eliminate alarm, matching process is such as
Under:
When warning processing module is logged in:What warning processing module was reported logs in parameter for match=0,
Needcachesendalarm=1, server sends current all alarms not eliminated and recorded warning processing module, and stores
Alarm is sent in record A, acknowledged alarm record B to Redis;
In the normal transmission process of server:Server sends alarm, elimination, confirmation to warning processing module, if
It has been be transmitted across that, just do not retransmited, storage alarm is sent in record A, acknowledged alarm record B to Redis, if alarm disappears
Remove, delete corresponding record in A and B;
Warning processing module is reconnected after interrupting:What warning processing module was reported logs in parameter for match=1,
Needcachesendalarm=1, server sends alarm, elimination, confirmation to warning processing module, if sent
Cross, just do not retransmit, storage alarm send record A, acknowledged alarm record B to Redis in, if alarm eliminate, delete A and
Corresponding record in B;
Scene 2:Log in and transmission process is required for matching.Common application is short message outputting alarm, mail outputting alarm,
Third party producer outputting alarm, matching process is as follows:
When warning processing module is logged in:What warning processing module was reported logs in parameter for match=1,
Needcachesendalarm=1, server first reissues all elimination information, then send alarm, eliminate, confirmation to
Warning processing module, if be transmitted across, is not just retransmited, and storage alarm sends record A, acknowledged alarm record B to Redis
In, if alarm is eliminated, delete corresponding record in A and B;
In the normal transmission process of server:Server sends alarm, elimination, confirmation to warning processing module, if
It has been be transmitted across that, just do not retransmited, storage alarm is sent in record A, acknowledged alarm record B to Redis, if alarm disappears
Remove, delete corresponding record in A and B;
Warning processing module is reconnected after interrupting:What warning processing module was reported logs in parameter for match=1,
Needcachesendalarm=1, server sends alarm, elimination, confirmation to warning processing module, if sent
Cross, just do not retransmit, storage alarm send record A, acknowledged alarm record B to Redis in, if alarm eliminate, delete A and
Corresponding record in B;
Scene 3:Log in and transmission process need not all be matched.Common application is voice output alarm, and sound output is accused
It is alert, matching process such as following table:
When warning processing module is logged in:What warning processing module was reported logs in parameter for match=0,
Needcachesendalarm=0, server, which is sent, all does not eliminate warning information;
In the normal transmission process of server:Server directly transmits warning information;
Warning processing module is reconnected after interrupting:What warning processing module was reported logs in parameter for match=0,
Needcachesendalarm=0, server, which is sent, all does not eliminate warning information.
As shown in figure 5, output system is alerted the embodiments of the invention provide a kind of server, including:
Key-value pair data storehouse 300, it is connected to server 200, for having recorded server 200 in the form of key-value pair
Send to the history alarm information of correspondence warning processing module;
Server 200, for after being connected with warning processing module foundation, what acquisition warning processing module was reported to log in ginseng
Number information, and the corresponding warning information output policy of parameter information selection is logged according to this, and it is defeated according to corresponding warning information
Go out strategy to carry out the global warning information in the history alarm information and network management system database in key-value pair data storehouse 300
Alert matching treatment.
At least one warning processing module 100, in game server 200, reporting and logging in parameter.
Specifically, the alarm matching treatment that server 200 is performed includes:
The warning information that server 200 is not sent during server 200 or the exception of warning processing module 100 reissues processing;
And/or, send to the warning information of warning processing module 100 and be not repeated that transmission is handled;
And/or, the repetition warning information that network management system is produced only sends single treatment.
Specifically, the parameter that logs in includes the first parameter match and the second parameter needcachesendalarm, clothes
Business device 200 report according to warning processing module 100 these log in parameter information and select corresponding warning information output policy
Rule is:
1)When match is 0, that is, represent that the warning processing module 100 does not need server 200 to carry out alarm matching treatment,
Server 200 receives this and logged in after parameter, will be cached in key-value pair data storehouse 300 corresponding with the warning processing module 100
History alarm information record is emptied;
2)When match is 1, that is, represent that the warning processing module 100 needs server 200 to carry out alarm matching treatment, clothes
Business device 200 receives this and logged in after parameter, is obtained and the alarming processing by carrying out unserializing processing to key-value pair data storehouse 300
The corresponding history alarm information sent of module 100, wherein, the history alarm information includes alarm record A and alarm
Record B is confirmed, if the current alarm information that network management system database will currently be sent to the warning processing module 100 exists
Occur in alarm record A, then it represents that the warning information has been transmitted across, and server 200 need not send it again, otherwise,
Server 200 needs to send the current warning information to the warning processing module 100;If network management system database currently will
The current alarm of transmission confirms occur in acknowledged alarm record B, represents that the current acknowledged alarm has been transmitted across, server
200 need not send again, otherwise, and server 200 needs to send the current acknowledged alarm to the warning processing module 100;
3)When needcachesendalarm is 0, that is, represent that the warning processing module 100 does not need server 200 to cache
Its warning information sent and acknowledged alarm information are into key-value pair data storehouse 300, and server 200 receives the login parameters
Afterwards, 200 pairs of server it is all sent to the warning information of the warning processing module 100 and acknowledged alarm information do not perform it is slow
It is stored in key-value pair data storehouse 300;
4)When needcachesendalarm is 1, that is, represent that the warning processing module 100 needs server 200 to cache it
The alarm sent and acknowledged alarm information are into key-value pair data storehouse 300, and server 200 is received after the login parameters, service
200 pairs of device is all have been sent to the warning information of the warning processing module 100 and acknowledged alarm information execution being cached to key assignments
To in database 300.
Specifically, when server 200 starts, it initially sets up the connection with key-value pair data storehouse 300, and utilizes inverted sequence
The history alarm information sent in the row chemical industry tool unserializing key-value pair data storehouse 300.
Specifically, the key-value pair data storehouse 300 is the Redis key-value pair datas storehouse based on No-Sql technologies, described anti-
Serializing instrument is Protocol Buffer.
The present invention is by using key-value pair data storehouse is being locallyd create, and preservation is already sent to each warning processing module
History alarm is recorded, and according to warning processing module in login service device, log in after the completion of receive alarm, be connected with server
It is disconnected reconnect three kinds of different processing scenes again and report log in parameter, so as to come automatically to complete warning information by server
Output matching, these output matchings include:The alarm being transmitted across is not retransmited;After warning processing module interruption is reconnected, server
Alarm is reissued to eliminate;Alarm is reissued after Server Restart to eliminate.Therefore, each warning processing module only needs to be connected to server
Alarm is received, the design of the matching algorithm of warning processing module is eliminated, reduces workload, so as to improve and the 3rd
The efficiency of square producer's docking.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, it is every to utilize
Equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.
Claims (8)
1. a kind of server alerts output intent, it is characterised in that including:
Key-value pair data storehouse is created, it have recorded server in the form of key-value pair and has sent to correspondence warning processing module
History alarm information;
After server and warning processing module are set up and be connecteds, what acquisition warning processing module was reported log in parameter information, and according to
Parameter information, which is logged in, according to this selects corresponding warning information output policy, and according to corresponding warning information output policy to key assignments
Alarm matching treatment, institute are carried out to the global warning information in the history alarm information and network management system database in database
State and log in parameter information including the first parameter match and the second parameter needcachesendalarm, server is according to alarm
Processing module report these log in parameter information and select rules of corresponding warning information output policy to be:
When match is 0, that is, represent that the warning processing module does not need server to carry out alarm matching treatment, server receives this
Log in after parameter, history alarm information record corresponding with the warning processing module will be cached in key-value pair data storehouse and is emptied;
When match is 1, that is, represent that the warning processing module needs server to carry out alarm matching treatment, server receives this and stepped on
After the parameter of land, sent with the warning processing module corresponding is obtained by carrying out unserializing processing to key-value pair data storehouse
History alarm information, wherein, the history alarm information includes alarm record A and acknowledged alarm record B, if network management system
Database will currently be sent to the current alarm information of the warning processing module to be occurred in alarm record A, then it represents that should
Warning information has been transmitted across, and server need not send it again, otherwise, and server needs to send out the current warning information
Deliver to the warning processing module;If the network management system database current alarm confirmation currently to be sent is remembered in acknowledged alarm
Record B in occur, represent that the current acknowledged alarm has been transmitted across, server need not be sent again, otherwise, server need by
The current acknowledged alarm information is sent to the warning processing module;
When needcachesendalarm is 0, that is, represent that the warning processing module does not need its announcement for having sent of server buffer
Alert information and acknowledged alarm information are into key-value pair data storehouse, and server receives this and logged in after parameter, and server has been sent out all
The warning information and acknowledged alarm information for delivering to the warning processing module are not performed and are cached in key-value pair data storehouse;
When needcachesendalarm is 1, that is, represent that the warning processing module needs its alarm for having sent of server buffer
Information and acknowledged alarm information are into key-value pair data storehouse, and server receives this and logged in after parameter, and server has been sent to all
Execution is cached in key-value pair data storehouse by warning information and acknowledged alarm information to the warning processing module.
2. server as claimed in claim 1 alerts output intent, it is characterised in that the alarm matching treatment includes:
The warning information that server is not sent during server or warning processing module exception reissues processing;
And/or, send to the warning information of warning processing module and be not repeated that transmission is handled;
And/or, the repetition warning information that network management system is produced only sends single treatment.
3. server as claimed in claim 1 alerts output intent, it is characterised in that create the key-value pair data storehouse it
Afterwards, in startup of server, the connection with key-value pair data storehouse, the server by utilizing unserializing instrument unserializing key are set up
Value is to the history alarm information that has been sent in database.
4. server as claimed in claim 3 alerts output intent, it is characterised in that the key-value pair data storehouse be based on
The Redis key-value pair datas storehouse of No-Sql technologies, the unserializing instrument is Protocol Buffer.
5. a kind of server alerts output system, it is characterised in that including:
Key-value pair data storehouse, it is connected to server, has been sent for recording server in the form of key-value pair to correspondence announcement
The history alarm information of alert processing module;
Server, for warning processing module set up be connected after, acquisition warning processing module report log in parameter information,
And the corresponding warning information output policy of parameter information selection is logged according to this, and according to corresponding warning information output policy pair
Global warning information in history alarm information and network management system database in key-value pair data storehouse is carried out at alarm matching
Reason, the parameter information that logs in includes the first parameter match and the second parameter needcachesendalarm, server foundation
Warning processing module report these log in parameter information and select rules of corresponding warning information output policy to be:
When match is 0, that is, represent that the warning processing module does not need server to carry out alarm matching treatment, server receives this
Log in after parameter, history alarm information record corresponding with the warning processing module will be cached in key-value pair data storehouse and is emptied;
When match is 1, that is, represent that the warning processing module needs server to carry out alarm matching treatment, server receives this and stepped on
After the parameter of land, sent with the warning processing module corresponding is obtained by carrying out unserializing processing to key-value pair data storehouse
History alarm information, wherein, the history alarm information includes alarm record A and acknowledged alarm record B, if network management system
Database will currently be sent to the current alarm information of the warning processing module to be occurred in alarm record A, then it represents that should
Warning information has been transmitted across, and server need not send it again, otherwise, and server needs to send out the current warning information
Deliver to the warning processing module;If the network management system database current alarm confirmation currently to be sent is remembered in acknowledged alarm
Record B in occur, represent that the current acknowledged alarm has been transmitted across, server need not be sent again, otherwise, server need by
The current acknowledged alarm information is sent to the warning processing module;
When needcachesendalarm is 0, that is, represent that the warning processing module does not need its announcement for having sent of server buffer
Alert information and acknowledged alarm information are into key-value pair data storehouse, and server receives this and logged in after parameter, and server has been sent out all
The warning information and acknowledged alarm information for delivering to the warning processing module are not performed and are cached in key-value pair data storehouse;
When needcachesendalarm is 1, that is, represent that the warning processing module needs its alarm for having sent of server buffer
Information and acknowledged alarm information are into key-value pair data storehouse, and server receives this and logged in after parameter, and server has been sent to all
Execution is cached in key-value pair data storehouse by warning information and acknowledged alarm information to the warning processing module;
At least one warning processing module, in game server, reporting and logging in parameter.
6. server as claimed in claim 5 alerts output system, it is characterised in that the alarm matching that server is performed
Processing includes:
The warning information that server is not sent during server or warning processing module exception reissues processing;
And/or, send to the warning information of warning processing module and be not repeated that transmission is handled;
And/or, the repetition warning information that network management system is produced only sends single treatment.
7. server as claimed in claim 5 alerts output system, it is characterised in that in startup of server, it builds first
The vertical connection with key-value pair data storehouse, and utilize going through for having been sent in the unserializing instrument unserializing key-value pair data storehouse
History warning information.
8. server as claimed in claim 7 alerts output system, it is characterised in that the key-value pair data storehouse be based on
The Redis key-value pair datas storehouse of No-Sql technologies, the unserializing instrument is Protocol Buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210486810.3A CN103840962B (en) | 2012-11-26 | 2012-11-26 | Server alerts output intent and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210486810.3A CN103840962B (en) | 2012-11-26 | 2012-11-26 | Server alerts output intent and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103840962A CN103840962A (en) | 2014-06-04 |
CN103840962B true CN103840962B (en) | 2017-09-05 |
Family
ID=50804127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210486810.3A Active CN103840962B (en) | 2012-11-26 | 2012-11-26 | Server alerts output intent and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103840962B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107172112B (en) * | 2016-03-07 | 2020-10-02 | 阿里巴巴集团控股有限公司 | Computer file transmission method and device |
CN106021061B (en) * | 2016-04-29 | 2019-05-28 | 北京奇虎科技有限公司 | Alarm information processing method, apparatus and system |
CN108073611A (en) * | 2016-11-14 | 2018-05-25 | 国网江苏省电力公司镇江供电公司 | The filter method and device of a kind of warning information |
CN106992895A (en) * | 2017-05-26 | 2017-07-28 | 郑州云海信息技术有限公司 | A kind of alarm method of anti-oscillating, alarm device and program product |
CN113037570B (en) * | 2021-04-29 | 2022-12-13 | 中国联合网络通信集团有限公司 | Alarm processing method and equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1720286A2 (en) * | 2005-05-06 | 2006-11-08 | Samsung Electronics Co., Ltd. | Network management system and method |
CN101350735A (en) * | 2007-07-20 | 2009-01-21 | 中兴通讯股份有限公司 | Method for synchronization of alarm |
CN101741615A (en) * | 2009-12-14 | 2010-06-16 | 北京神州泰岳软件股份有限公司 | Server-based alarm filtering system and method |
CN101938374A (en) * | 2010-08-24 | 2011-01-05 | 中兴通讯股份有限公司 | System performance monitoring and alarming method and system |
-
2012
- 2012-11-26 CN CN201210486810.3A patent/CN103840962B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1720286A2 (en) * | 2005-05-06 | 2006-11-08 | Samsung Electronics Co., Ltd. | Network management system and method |
CN101350735A (en) * | 2007-07-20 | 2009-01-21 | 中兴通讯股份有限公司 | Method for synchronization of alarm |
CN101741615A (en) * | 2009-12-14 | 2010-06-16 | 北京神州泰岳软件股份有限公司 | Server-based alarm filtering system and method |
CN101938374A (en) * | 2010-08-24 | 2011-01-05 | 中兴通讯股份有限公司 | System performance monitoring and alarming method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103840962A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103840962B (en) | Server alerts output intent and system | |
CN101646135B (en) | Warning noticing method and system used for colony monitoring | |
CN103019866A (en) | Distributed method and system based on message queue | |
US20150026277A1 (en) | Method and system for message processing | |
CN105991412B (en) | Information push method and device | |
CN107479514B (en) | A kind of industry big data process control data acquisition and Transmission system and implementation method | |
CN106407030A (en) | Failure processing method and system for storage cluster system | |
CN101409638B (en) | Method, system and apparatus for warning distributed business system fault | |
WO2022062407A1 (en) | Link monitoring method and apparatus, and storage medium and electronic apparatus | |
CN102820993A (en) | Network resource monitoring system and network resource monitoring method | |
CN102882704A (en) | Link protection method and apparatus in soft restart upgrade process of ISSU (in-service software upgrade) | |
CN107835222A (en) | Combustion gas data transmission method and Internet of things system based on compound Internet of Things | |
CN113923397A (en) | Method and device for detecting state of conference room equipment, electronic equipment and storage medium | |
CN109635560A (en) | Offshore platform generalized information management system | |
CN111711689B (en) | Method, system, equipment and storage medium for live image-text of consultation system | |
US9444913B2 (en) | Multi-ring reliable messaging system | |
CN105791015B (en) | Distributed warning processing system based on High Availabitity message transmission channel and method | |
CN104038368A (en) | Device alarm full-data notification system and method for electric-power communication network | |
CN101364903A (en) | Base station alarming method, system and related apparatus | |
CN102026249B (en) | A kind of voice class operation system and disaster tolerance implementation method | |
CN102118256A (en) | Method for acquiring simple network management protocol (SNMP) data and equipment-side device | |
CN109086390A (en) | A kind of realization data consistency method for real-time monitoring | |
CN105634834A (en) | Data monitoring system and method | |
CN103107991A (en) | Multiple network visual terminal (NVT) event processing method, network video conference system (NVC) and security and protection monitoring platform | |
CN110888935A (en) | Data transaction method based on block chain |
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 |