Movatterモバイル変換


[0]ホーム

URL:


CN103840962B - Server alarm output method and system - Google Patents

Server alarm output method and system
Download PDF

Info

Publication number
CN103840962B
CN103840962BCN201210486810.3ACN201210486810ACN103840962BCN 103840962 BCN103840962 BCN 103840962BCN 201210486810 ACN201210486810 ACN 201210486810ACN 103840962 BCN103840962 BCN 103840962B
Authority
CN
China
Prior art keywords
alarm
server
information
processing module
key
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.)
Expired - Fee Related
Application number
CN201210486810.3A
Other languages
Chinese (zh)
Other versions
CN103840962A (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.)
Shenzhen ZTE Netview Technology Co Ltd
Original Assignee
Shenzhen ZTE Netview Technology 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 Shenzhen ZTE Netview Technology Co LtdfiledCriticalShenzhen ZTE Netview Technology Co Ltd
Priority to CN201210486810.3ApriorityCriticalpatent/CN103840962B/en
Publication of CN103840962ApublicationCriticalpatent/CN103840962A/en
Application grantedgrantedCritical
Publication of CN103840962BpublicationCriticalpatent/CN103840962B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Landscapes

Abstract

Translated fromChinese

本发明公开了一种服务器告警输出方法及系统,所述方法包括:创建键值对数据库,其采用键值对的形式记录了服务器已发送至对应告警处理模块的历史告警信息;在服务器与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理。采用本发明,服务器不会对已发送至告警处理模块的告警信息进行重复发送,并且可以保障在告警处理模块与服务器连接中断重连时获取告警信息的完整性。

The invention discloses a server alarm output method and system. The method includes: creating a key-value pair database, which records historical alarm information sent by a server to a corresponding alarm processing module in the form of a key-value pair; After the processing module establishes a connection, it obtains the login parameter information reported by the alarm processing module, and selects the corresponding alarm information output strategy according to the login parameter information, and compares the historical alarm information in the key-value pair database and the network management system according to the corresponding alarm information output strategy. The global alarm information in the system database is processed for alarm matching. With the present invention, the server does not repeatedly send the alarm information sent to the alarm processing module, and can guarantee the integrity of the alarm information obtained when the connection between the alarm processing module and the server is interrupted and reconnected.

Description

Translated fromChinese
服务器告警输出方法及系统Server alarm output method and system

技术领域technical field

本发明涉及电信网管技术领域,具体而言,涉及一种服务器告警输出方法及系统。The invention relates to the technical field of telecommunication network management, in particular to a server alarm output method and system.

背景技术Background technique

在电信网管软件领域,通信系统(包括传输系统、话务系统、安全系统、派单系统、动环系统等)的运行是否正常是通过告警来区别的。当系统运行异常时,触发告警信息,管理人员发现告警信息后进行处理,并确认告警信息;当系统恢复正常后,告警信息消除。In the field of telecommunications network management software, whether the communication system (including transmission system, traffic system, security system, order dispatching system, dynamic environment system, etc.) is running normally is distinguished through alarms. When the system is running abnormally, an alarm message will be triggered, and the management personnel will deal with the alarm message after discovering it, and confirm the alarm message; when the system returns to normal, the alarm message will be cleared.

在实际应用过程中,经常需要将系统产生的告警信息输出到某些第三方,如将动环网管系统产生的告警信息通过短信息、邮件等方式通知管理和维护人员;或者将传输网管系统与第三方厂家进行对接,如将传输网管系统产生的告警信息以SNMP(SimpleNetwork Management Protocol,简单网络管理协议)协议输出到第三方厂家的话务网管系统等。In the actual application process, it is often necessary to output the alarm information generated by the system to some third parties, such as notifying the management and maintenance personnel of the alarm information generated by the dynamic ring network management system through short messages, emails, etc.; Third-party manufacturers connect, such as outputting the alarm information generated by the transmission network management system to the traffic network management system of the third-party manufacturer through the SNMP (Simple Network Management Protocol) protocol.

通常,在网管系统服务器输出告警信息的过程中,其遵循的基本原则主要包括:Usually, in the process of outputting alarm information by the network management system server, the basic principles followed mainly include:

1、在告警信息产生、消除、确认时,能够正常发送到告警处理模块,并且相同的告警信息不重复发送;1. When the alarm information is generated, eliminated, and confirmed, it can be sent to the alarm processing module normally, and the same alarm information will not be sent repeatedly;

2、在服务器或者接收告警信息的告警处理模块发生异常重启后,服务器能够将异常期间的告警信息进行补发,保证传输的告警信息的完整性。2. After the server or the alarm processing module receiving the alarm information restarts abnormally, the server can reissue the alarm information during the abnormal period to ensure the integrity of the transmitted alarm information.

现有的告警输出方式大致分为以下两种:The existing alarm output methods are roughly divided into the following two types:

1、不做任何的输出匹配算法,只要有告警处理模块登录,服务器都将所有的告警信息发送到告警处理模块,不管这些告警信息是否已经发送过。在服务器重启或者告警处理模块重新登录后,期间产生的告警信息无法补发;1. Without any output matching algorithm, as long as there is an alarm processing module logging in, the server will send all alarm information to the alarm processing module, no matter whether the alarm information has been sent or not. After the server restarts or the alarm processing module logs in again, the alarm information generated during the period cannot be reissued;

2、网管系统服务器只负责发送告警,所有的匹配算法都在接收告警信息的告警处理模块端进行,此时,所有的告警处理模块都要进行告警匹配的设计。2. The network management system server is only responsible for sending alarms, and all matching algorithms are performed on the side of the alarm processing module that receives alarm information. At this time, all alarm processing modules must be designed for alarm matching.

由此,上述现有的两种处理方式存在一定的问题,分别为:Therefore, there are certain problems in the above two existing processing methods, which are:

1、已经发送到告警处理模块的告警没有做记录,重启告警处理模块或者服务器后,告警信息会重复发送,每个告警处理模块必须专门针对这部分重复发送的告警信息进行匹配处理。为此,系统设计人员不仅要设计告警处理模块的业务上的实现方法,还要专门设计该告警处理模块的匹配算法。尤其是在将网管系统产生的告警信息输出到第三方厂家时,还必须双方配合协商匹配算法,显然其效率低下,不利于双方系统对接。1. The alarms that have been sent to the alarm processing module are not recorded. After restarting the alarm processing module or the server, the alarm information will be sent repeatedly. Each alarm processing module must specifically match this part of the repeatedly sent alarm information. For this reason, system designers not only need to design the business implementation method of the alarm processing module, but also specially design the matching algorithm of the alarm processing module. Especially when the alarm information generated by the network management system is output to a third-party manufacturer, both parties must cooperate to negotiate a matching algorithm, which is obviously inefficient and is not conducive to the docking of the systems of both parties.

2、在服务器或者告警处理模块停止或退出过程中,如果有告警消除产生,且该告警消除对应的告警信息已经发送给相应的告警处理模块,在服务器或者告警处理模块重新启动后,现有的系统都只是获取当前系统所有的没有消除的告警信息,而那些已经消除的告警信息将无法获取,那么就会出现丢失告警消除的情况,告警输出模块某条告警可能后面一直都无法消除,这样就会导致服务器输出告警信息出现不完整以及不准确的情况。2. During the stop or exit process of the server or the alarm processing module, if there is an alarm elimination, and the alarm information corresponding to the alarm elimination has been sent to the corresponding alarm processing module, after the server or the alarm processing module is restarted, the existing The system only obtains all the alarm information that has not been eliminated in the current system, and those alarm information that has been eliminated will not be available, then there will be a situation of missing alarm elimination, and a certain alarm in the alarm output module may not be eliminated in the future, so that It will cause incomplete and inaccurate output of alarm information by the server.

发明内容Contents of the invention

为了解决现有技术存在的对已发送告警信息进行重复发送以及告警信息发送不完整的问题,本发明的目的在于提供一种服务器告警输出方法及系统。In order to solve the problems in the prior art that the sent alarm information is repeatedly sent and the alarm information is incompletely sent, the purpose of the present invention is to provide a server alarm output method and system.

为了达到本发明的目的,本发明采用以下技术方案实现:In order to achieve the purpose of the present invention, the present invention adopts the following technical solutions to realize:

一种服务器告警输出方法,包括:A server alarm output method, comprising:

创建键值对数据库,其采用键值对的形式记录了服务器已发送至对应告警处理模块的历史告警信息;Create a key-value pair database, which records the historical alarm information that the server has sent to the corresponding alarm processing module in the form of key-value pairs;

在服务器与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理。After the connection between the server and the alarm processing module is established, the login parameter information reported by the alarm processing module is obtained, and the corresponding alarm information output strategy is selected according to the login parameter information, and the history in the key-value pair database is selected according to the corresponding alarm information output strategy. The alarm information and the global alarm information in the network management system database are used for alarm matching processing.

优选地,所述告警匹配处理包括:Preferably, the alarm matching process includes:

服务器或告警处理模块异常期间服务器未发送的告警信息补发处理;Reissue processing of alarm information not sent by the server during the abnormal period of the server or alarm processing module;

和/或,已发送至告警处理模块的告警信息不再重复发送处理;And/or, the alarm information that has been sent to the alarm processing module will not be repeatedly sent for processing;

和/或,网管系统产生的重复告警信息只发送一次处理。And/or, the repeated alarm information generated by the network management system is only sent once for processing.

优选地,所述登陆参数包括第一参数match以及第二参数needcachesendalarm,服务器依据告警处理模块上报的这些登陆参数信息选择对应的告警信息输出策略的规则为:Preferably, the login parameters include the first parameter match and the second parameter needscachesendalarm, and the rules for the server to select the corresponding alarm information output strategy according to the login parameter information reported by the alarm processing module are:

当match为0,即表示该告警处理模块不需要服务器进行告警匹配处理,服务器收到该登陆参数后,将键值对数据库中缓存的与该告警处理模块对应的历史告警信息记录清空;When match is 0, it means that the alarm processing module does not need the server to perform alarm matching processing. After receiving the login parameters, the server clears the historical alarm information records cached in the key-value pair database corresponding to the alarm processing module;

当match为1,即表示该告警处理模块需要服务器进行告警匹配处理,服务器收到该登陆参数后,通过对键值对数据库进行反序列化处理得到与该告警处理模块对应的已发送的历史告警信息,其中,所述历史告警信息包括告警记录A以及告警确认记录B,如果网管系统数据库当前要发送给该告警处理模块的当前告警信息已经在告警记录A中出现,则表示该告警信息已经发送过,服务器不需要将其再次发送,否则,服务器需要将该当前告警信息发送至该告警处理模块;如果网管系统数据库当前要发送的当前告警确认在告警确认记录B中出现,表示该当前告警确认已经发送过,服务器不需要再次发送,否则,服务器需要将该当前告警确认发送至该告警处理模块;When match is 1, it means that the alarm processing module needs the server to perform alarm matching processing. After the server receives the login parameters, it deserializes the key-value database to obtain the sent historical alarms corresponding to the alarm processing module. information, wherein the historical alarm information includes alarm record A and alarm confirmation record B, if the current alarm information to be sent to the alarm processing module by the network management system database has appeared in alarm record A, it means that the alarm information has been sent However, the server does not need to send it again, otherwise, the server needs to send the current alarm information to the alarm processing module; if the current alarm confirmation to be sent by the network management system database appears in the alarm confirmation record B, it means that the current alarm confirmation It has already been sent, and the server does not need to send it again, otherwise, the server needs to send the current alarm confirmation to the alarm processing module;

当needcachesendalarm为0,即表示该告警处理模块不需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登录参数后,服务器对所有已发送至该告警处理模块的告警信息以及告警确认信息不执行缓存到键值对数据库中;When needscachesendalarm is 0, it means that the alarm processing module does not need the server to cache the sent alarm information and alarm confirmation information to the key-value pair database. The alarm information and alarm confirmation information are not cached into the key-value pair database;

当needcachesendalarm为1,即表示该告警处理模块需要服务器缓存其已发送的告警和告警确认信息至键值对数据库中,服务器收到该登录参数后,服务器对所有已发送至该告警处理模块的告警信息和告警确认信息将执行缓存到键值对数据库中。When needscachesendalarm is 1, it means that the alarm processing module needs the server to cache the sent alarms and alarm confirmation information to the key-value pair database. Information and alarm confirmation information will be executed and cached in the key-value pair database.

优选地,在创建所述键值对数据库之后,在服务器启动时,建立与键值对数据库的连接,服务器利用反序列化工具反序列化该键值对数据库中已经发送的历史告警信息。Preferably, after the key-value pair database is created, a connection to the key-value pair database is established when the server is started, and the server uses a deserialization tool to deserialize the sent historical alarm information in the key-value pair database.

优选地,所述键值对数据库为基于No-Sql技术的Redis键值对数据库,所述反序列化工具为Protocol Buffer。Preferably, the key-value pair database is a Redis key-value pair database based on No-Sql technology, and the deserialization tool is Protocol Buffer.

一种服务器告警输出系统,包括:A server alarm output system, comprising:

键值对数据库,其连接至服务器,用于采用键值对的形式记录服务器已发送至对应告警处理模块的历史告警信息;A key-value pair database, which is connected to the server, and is used to record the historical alarm information that the server has sent to the corresponding alarm processing module in the form of key-value pairs;

服务器,用于在与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理。The server is used to obtain the login parameter information reported by the alarm processing module after establishing a connection with the alarm processing module, and select the corresponding alarm information output strategy according to the login parameter information, and pair the key-value pair database according to the corresponding alarm information output strategy The historical alarm information in and the global alarm information in the network management system database are used for alarm matching processing.

至少一个告警处理模块,用于在登陆服务器时,上报登陆参数。At least one alarm processing module is used for reporting login parameters when logging in to the server.

优选地,服务器执行的所述告警匹配处理包括:Preferably, the alarm matching process performed by the server includes:

服务器或告警处理模块异常期间服务器未发送的告警信息补发处理;Reissue processing of alarm information not sent by the server during the abnormal period of the server or alarm processing module;

和/或,已发送至告警处理模块的告警信息不再重复发送处理;And/or, the alarm information that has been sent to the alarm processing module will not be repeatedly sent for processing;

和/或,网管系统产生的重复告警信息只发送一次处理。And/or, the repeated alarm information generated by the network management system is only sent once for processing.

优选地,所述登陆参数包括第一参数match以及第二参数needcachesendalarm,服务器依据告警处理模块上报的这些登陆参数信息选择对应的告警信息输出策略的规则为:Preferably, the login parameters include the first parameter match and the second parameter needscachesendalarm, and the rules for the server to select the corresponding alarm information output strategy according to the login parameter information reported by the alarm processing module are:

当match为0,即表示该告警处理模块不需要服务器进行告警匹配处理,服务器收到该登陆参数后,将键值对数据库中缓存的与该告警处理模块对应的历史告警信息记录清空;When match is 0, it means that the alarm processing module does not need the server to perform alarm matching processing. After receiving the login parameters, the server clears the historical alarm information records cached in the key-value pair database corresponding to the alarm processing module;

当match为1,即表示该告警处理模块需要服务器进行告警匹配处理,服务器收到该登陆参数后,通过对键值对数据库进行反序列化处理得到与该告警处理模块对应的已发送的历史告警信息,其中,所述历史告警信息包括告警记录A以及告警确认记录B,如果网管系统数据库当前要发送给该告警处理模块的当前告警信息已经在告警记录A中出现,则表示该告警信息已经发送过,服务器不需要将其再次发送,否则,服务器需要将该当前告警信息发送至该告警处理模块;如果网管系统数据库当前要发送的当前告警确认在告警确认记录B中出现,表示该当前告警确认已经发送过,服务器不需要再次发送,否则,服务器需要将该当前告警确认发送至该告警处理模块;When match is 1, it means that the alarm processing module needs the server to perform alarm matching processing. After the server receives the login parameters, it deserializes the key-value database to obtain the sent historical alarms corresponding to the alarm processing module. information, wherein the historical alarm information includes alarm record A and alarm confirmation record B, if the current alarm information to be sent to the alarm processing module by the network management system database has appeared in alarm record A, it means that the alarm information has been sent However, the server does not need to send it again, otherwise, the server needs to send the current alarm information to the alarm processing module; if the current alarm confirmation to be sent by the network management system database appears in the alarm confirmation record B, it means that the current alarm confirmation It has already been sent, and the server does not need to send it again, otherwise, the server needs to send the current alarm confirmation to the alarm processing module;

当needcachesendalarm为0,即表示该告警处理模块不需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登录参数后,服务器对所有已发送至该告警处理模块的告警信息以及告警确认信息不执行缓存到键值对数据库中;When needscachesendalarm is 0, it means that the alarm processing module does not need the server to cache the sent alarm information and alarm confirmation information to the key-value pair database. The alarm information and alarm confirmation information are not cached into the key-value pair database;

当needcachesendalarm为1,即表示该告警处理模块需要服务器缓存其已发送的告警和告警确认信息至键值对数据库中,服务器收到该登录参数后,服务器对所有已发送至该告警处理模块的告警信息和告警确认信息将执行缓存到键值对数据库中。When needscachesendalarm is 1, it means that the alarm processing module needs the server to cache the sent alarms and alarm confirmation information to the key-value pair database. Information and alarm confirmation information will be executed and cached in the key-value pair database.

优选地,在服务器启动时,其首先建立与键值对数据库的连接,并利用反序列化工具反序列化该键值对数据库中已经发送的历史告警信息。Preferably, when the server is started, it first establishes a connection with the key-value pair database, and uses a deserialization tool to deserialize the sent historical alarm information in the key-value pair database.

优选地,所述键值对数据库为基于No-Sql技术的Redis键值对数据库,所述反序列化工具为Protocol Buffer。Preferably, the key-value pair database is a Redis key-value pair database based on No-Sql technology, and the deserialization tool is Protocol Buffer.

本发明通过利用本地创建的键值对数据库,保存已经发送到各个告警处理模块的历史告警记录,并使得告警处理模块根据不同的事件(例如告警处理模块正常登陆服务器、告警处理模块登录完成后接收告警、服务器或告警处理模块异常恢复后重新登陆等)向服务器上报不同的登陆参数,从而服务器端能够依据这些登陆参数来自动完成告警信息的输出匹配,进而对于各个告警处理模块不用再去设计复杂的匹配算法,降低了系统设计的难度,并且能够解决现有技术中存在的对已发送告警信息进行重复发送以及告警信息发送不完整的技术问题,服务器不会对已发送至告警处理模块的告警信息进行重复发送,并且可以保障在告警处理模块与服务器连接中断重连时获取告警信息的完整性。The present invention saves the historical alarm records that have been sent to each alarm processing module by utilizing the locally created key-value pair database, and enables the alarm processing module to receive Alarm, server or alarm processing module recovers after abnormal recovery, etc.) report different login parameters to the server, so that the server can automatically complete the output matching of alarm information according to these login parameters, and then do not need to design complicated alarm processing modules The matching algorithm reduces the difficulty of system design, and can solve the technical problems of repeated sending of sent alarm information and incomplete sending of alarm information in the prior art, and the server will not The information is sent repeatedly, and the integrity of the alarm information obtained when the connection between the alarm processing module and the server is interrupted and reconnected can be guaranteed.

附图说明Description of drawings

图1为本发明实施例加载已经发送过的历史告警信息的处理流程示意图;Fig. 1 is a schematic diagram of the processing flow of loading historical alarm information that has been sent in an embodiment of the present invention;

图2为本发明实施例模块消除告警补发流程;Fig. 2 is the process of reissuing the module of the embodiment of the present invention to eliminate the alarm;

图3为本发明实施例告警发送流程示意图;FIG. 3 is a schematic diagram of an alarm sending process according to an embodiment of the present invention;

图4为本发明实施例将数据从键值对数据库同步到本地磁盘文件的流程示意图;Fig. 4 is the schematic flow chart that data is synchronized to local disk file from key-value pair database in the embodiment of the present invention;

图5为本发明实施例服务器告警输出系统结构示意图。FIG. 5 is a schematic structural diagram of a server alarm output system according to an embodiment of the present invention.

本发明目的的实现、功能特点及优异效果,下面将结合具体实施例以及附图做进一步的说明。The realization of the purpose of the present invention, functional characteristics and excellent effects will be further described below in conjunction with specific embodiments and accompanying drawings.

具体实施方式detailed description

下面结合附图和具体实施例对本发明所述技术方案作进一步的详细描述,以使本领域的技术人员可以更好的理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The technical scheme of the present invention will be described in further detail below in conjunction with the accompanying drawings and specific examples, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention .

本发明实施例提供的一种服务器告警输出方法,包括如下步骤:A server alarm output method provided by an embodiment of the present invention includes the following steps:

S10、创建键值对数据库,其采用键值对的形式记录了服务器已发送至对应告警处理模块的历史告警信息;S10. Create a key-value pair database, which records historical alarm information sent by the server to the corresponding alarm processing module in the form of key-value pairs;

S20、在服务器与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理。S20. After the server establishes a connection with the alarm processing module, obtain the login parameter information reported by the alarm processing module, select the corresponding alarm information output strategy according to the login parameter information, and pair the key-value pairs in the database according to the corresponding alarm information output strategy The historical alarm information and the global alarm information in the network management system database are used for alarm matching processing.

在所述步骤S10中,所述键值对数据库用于缓存服务器发送至各个告警处理模块的历史告警信息,其数据采用键值对(Key-Value)的形式予以缓存。例如,在本实施例中,在所述键值对数据库中保存的键值对信息的数据结构为:In the step S10, the key-value pair database is used to cache historical alarm information sent by the server to each alarm processing module, and its data is cached in the form of a key-value pair (Key-Value). For example, in this embodiment, the data structure of the key-value pair information stored in the key-value pair database is:

为后面论述方便,将服务器已经发送给告警处理模块的告警集合标记为A(下称告警记录A),已发送的告警确认集合标记为B(下称告警确认记录B)。For the convenience of discussion later, the alarm set sent by the server to the alarm processing module is marked as A (hereinafter referred to as alarm record A), and the sent alarm confirmation set is marked as B (hereinafter referred to as alarm confirmation record B).

具体地,在所述步骤S20中,所述告警匹配处理包括:Specifically, in the step S20, the alarm matching process includes:

服务器或告警处理模块异常期间服务器未发送的告警信息补发处理;Reissue processing of alarm information not sent by the server during the abnormal period of the server or alarm processing module;

和/或,已发送至告警处理模块的告警信息不再重复发送处理;And/or, the alarm information that has been sent to the alarm processing module will not be repeatedly sent for processing;

和/或,网管系统产生的重复告警信息只发送一次处理。And/or, the repeated alarm information generated by the network management system is only sent once for processing.

具体地,本实施例中,所述登陆参数包括第一参数match以及第二参数needcachesendalarm。Specifically, in this embodiment, the login parameters include a first parameter match and a second parameter needscachesendalarm.

每个告警处理模块在登录或者断开重连时都需要向服务器上报登陆参数,服务器根据接收到的登陆参数的不同,执行不同的匹配策略,其中,在本实施例中,例如所述登陆参数的格式如下:Each alarm processing module needs to report login parameters to the server when logging in or disconnecting and reconnecting, and the server executes different matching strategies according to the received login parameters, wherein, in this embodiment, for example, the login parameters The format is as follows:

登录参数名称login parameter name参数说明Parameter Descriptionmatchmatch0:不需要 1:需要0: not required 1: requiredneedcachesendalarmneed cache send alarm0:不需要 1:需要0: not required 1: required

服务器依据告警处理模块上报的这些登陆参数信息选择对应的告警信息输出策略的规则为:The rules for the server to select the corresponding alarm information output strategy based on the login parameter information reported by the alarm processing module are as follows:

1)当match为0,即表示该告警处理模块不需要服务器进行告警匹配处理,服务器收到该登陆参数后,将键值对数据库中缓存的与该告警处理模块对应的历史告警信息记录清空;1) When match is 0, it means that the alarm processing module does not need the server to perform alarm matching processing. After receiving the login parameters, the server clears the historical alarm information records cached in the key-value pair database corresponding to the alarm processing module;

2)当match为1,即表示该告警处理模块需要服务器进行告警匹配处理,服务器收到该登陆参数后,通过对键值对数据库进行反序列化处理得到与该告警处理模块对应的已发送的历史告警信息,其中,所述历史告警信息包括告警记录A以及告警确认记录B,如果网管系统数据库当前要发送给该告警处理模块的当前告警信息已经在告警记录A中出现,则表示该告警信息已经发送过,服务器不需要将其再次发送,否则,服务器需要将该当前告警信息发送至该告警处理模块;如果网管系统数据库当前要发送的当前告警确认在告警确认记录B中出现,表示该当前告警确认已经发送过,服务器不需要再次发送,否则,服务器需要将该当前告警确认发送至该告警处理模块;2) When match is 1, it means that the alarm processing module needs the server to perform alarm matching processing. After receiving the login parameters, the server deserializes the key-value database to obtain the sent data corresponding to the alarm processing module. Historical alarm information, wherein the historical alarm information includes an alarm record A and an alarm confirmation record B, if the current alarm information to be sent to the alarm processing module by the network management system database has appeared in the alarm record A, it means that the alarm information has already been sent, the server does not need to send it again, otherwise, the server needs to send the current alarm information to the alarm processing module; if the current alarm confirmation to be sent by the network management system database appears in the alarm confirmation record B, it means that the current alarm information The alarm confirmation has already been sent, and the server does not need to send it again, otherwise, the server needs to send the current alarm confirmation to the alarm processing module;

3)当needcachesendalarm为0,即表示该告警处理模块不需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登录参数后,服务器对所有已发送至该告警处理模块的告警信息以及告警确认信息不执行缓存到键值对数据库中,此时键值对数据库中与该告警处理模块对应的发送记录(告警记录A和告警确认记录B)将为空;3) When needscachesendalarm is 0, it means that the alarm processing module does not need the server to cache the alarm information and alarm confirmation information it has sent to the key-value pair database. The alarm information and alarm confirmation information of the processing module are not cached in the key-value pair database. At this time, the sending records (alarm record A and alarm confirmation record B) corresponding to the alarm processing module in the key-value pair database will be empty;

4)当needcachesendalarm为1,即表示该告警处理模块需要服务器缓存其已发送的告警和告警确认信息至键值对数据库中,服务器收到该登录参数后,服务器对所有已发送至该告警处理模块的告警信息和告警确认信息将执行缓存到键值对数据库中,此时键值对数据库中与该告警处理模块对应的发送记录(告警记录A和告警确认记录B)将不为空。4) When needscachesendalarm is 1, it means that the alarm processing module needs the server to cache the sent alarms and alarm confirmation information to the key-value pair database. The alarm information and alarm confirmation information will be cached in the key-value pair database. At this time, the sending record (alarm record A and alarm confirmation record B) corresponding to the alarm processing module in the key-value pair database will not be empty.

具体地,在所述步骤S10中,在创建所述键值对数据库之后,在服务器启动时,建立与键值对数据库的连接,服务器利用反序列化工具反序列化该键值对数据库中已经发送的历史告警信息。Specifically, in the step S10, after the key-value pair database is created, when the server is started, a connection with the key-value pair database is established, and the server uses a deserialization tool to deserialize the key-value pair database. The historical alarm information sent.

启动服务器时,反序列化本地键值对数据库中已经发送的历史告警信息。其中,图1为本发明实施例加载已经发送过的历史告警信息的处理流程示意图,如图1所示,服务器启动时,创建与键值对数据库的连接,利用反序列化工具获取按照告警处理模块的编号,获取所有的告警处理模块的已经发送的告警信息A和告警确认信息B,便于后面不再发送重复的告警信息到对应告警处理模块中。When starting the server, deserialize the historical alarm information that has been sent in the local key-value pair database. Among them, Figure 1 is a schematic diagram of the processing flow of loading historical alarm information that has been sent according to the embodiment of the present invention. As shown in Figure 1, when the server is started, a connection with the key-value pair database is created, and the deserialization tool is used to obtain the information according to the alarm processing. Module number, to obtain the sent alarm information A and alarm confirmation information B of all alarm processing modules, so that repeated alarm information will not be sent to the corresponding alarm processing module later.

具体地,一种具体实施例中,在告警处理模块登录到服务器后,服务器根据其发送的登陆参数,决定是否进入告警消除补发流程。Specifically, in a specific embodiment, after the alarm processing module logs in to the server, the server determines whether to enter the process of alarm elimination and reissuance according to the login parameters sent by the server.

如图2所示,当某一个告警处理模块登录服务器时,如果该告警处理模块上报的登陆参数表明需要服务器端进行告警匹配,这样就需要将已经发送至该告警处理模块的告警信息A、告警确认信息B和当前从网管系统数据库(其中,所述网管系统数据库为核心数据库,用于存放网管的配置以及系统产生的实时告警信息等)获取的当前所有的未消除告警信息C进行比较,找出A和B中所有不在C中出现的告警信息,这些告警信息即为告警消除信息,此时,需要将这些告警消除信息都补发给该告警处理模块,这样,则保证了该对应的告警处理模块接收告警信息的完整性。As shown in Figure 2, when an alarm processing module logs in to the server, if the login parameters reported by the alarm processing module indicate that the server needs to perform alarm matching, it is necessary to send the alarm information A, alarm Confirm information B is compared with all current unremoved alarm information C obtained from the network management system database (wherein, the network management system database is a core database, used to store network management configuration and real-time alarm information generated by the system, etc.), and find All the alarm information in A and B that does not appear in C, these alarm information is the alarm elimination information, at this time, these alarm elimination information need to be reissued to the alarm processing module, so that the corresponding alarm information is guaranteed The processing module receives the integrity of the alarm information.

在将告警消除信息补发给告警处理模块时,每发送一条告警消除信息,需要在A和B中将与该告警处理模块对应的与告警消除信息具有相同流水号的告警信息和告警确认信息记录删除,表示告警信息已经消除。When the alarm elimination information is reissued to the alarm processing module, each time an alarm elimination information is sent, it is necessary to record the alarm information and alarm confirmation information corresponding to the alarm processing module with the same serial number as the alarm elimination information in A and B Delete means that the warning message has been cleared.

另一种具体实施例中,服务器根据告警处理模块的登录参数,进入告警的正常发送流程。In another specific embodiment, the server enters a normal sending process of the alarm according to the login parameters of the alarm processing module.

如图3所示,对于需要正常获取告警信息的告警处理模块,在其登陆至服务器后,服务器先判断其登录时上报的登陆参数,如果该告警处理模块不需要服务器缓存其已发送的告警信息和告警确认信息到本地键值对数据库中,表示该告警处理模块重启后不会追溯告警信息是否已经发送,此时则不需要服务器再补发告警至该告警处理模块。此种情形下,告警处理模块在每次登录后,都是从服务器获取所有的告警信息。As shown in Figure 3, for an alarm processing module that needs to obtain alarm information normally, after it logs in to the server, the server first judges the login parameters reported when it logs in. If the alarm processing module does not require the server to cache the alarm information it has sent And the alarm confirmation information is sent to the local key-value pair database, which means that the alarm processing module will not trace whether the alarm information has been sent after restarting. At this time, there is no need for the server to resend the alarm to the alarm processing module. In this case, the alarm processing module obtains all alarm information from the server after each login.

如果该告警处理模块需要服务器缓存其已发送的告警信息和告警确认信息到本地键值对数据库中,且如果当前为告警产生和告警确认,则需要判断该当前告警产生和告警确认是否已经发送过,没有发送过,则服务器对其予以发送,发送完毕后,服务器将发送记录添加到本地键值对数据库中;如果为告警消除,则服务器需要将本地键值对数据库中存在的对应的告警信息A和告警确认信息B删除。If the alarm processing module needs the server to cache the sent alarm information and alarm confirmation information in the local key-value pair database, and if the current alarm generation and alarm confirmation are currently generated, it needs to determine whether the current alarm generation and alarm confirmation have been sent , has not been sent, the server will send it, after sending, the server will add the sending record to the local key-value pair database; if the alarm is eliminated, the server needs to add the corresponding alarm information in the local key-value pair database A and alarm confirmation information B are deleted.

通常,在服务器进行告警信息输出匹配处理之后,服务器还将所有的告警处理模块的告警信息A和告警确认信息B序列化到本地磁盘文件。Usually, after the server performs the alarm information output matching process, the server also serializes the alarm information A and the alarm confirmation information B of all alarm processing modules to a local disk file.

如图4所示,键值对数据库在运行的过程中,为了提高效率,需要将键值对数据库中的数据加载到内存中,且服务器需要定期将键值对数据库在内存中的数据保存到本地磁盘文件中,这样即使应用服务器退出,也可以从本地磁盘文件中恢复数据,不会因为键值对数据库的内存丢失导致告警发送信息记录丢失。As shown in Figure 4, during the operation of the key-value pair database, in order to improve efficiency, the data in the key-value pair database needs to be loaded into the memory, and the server needs to periodically save the data in the key-value pair database in the memory to In the local disk file, even if the application server exits, the data can be recovered from the local disk file, and the alarm sending information record will not be lost due to the memory loss of the key-value database.

以及,在服务器退出时,需要先将未同步到本地磁盘文件的告警信息发送记录序列化到本地磁盘,然后再退出。And, when the server exits, it is necessary to serialize the alarm message sending records that have not been synchronized to the local disk file to the local disk before exiting.

本地键值对数据库作为服务器的一部分或者独立于服务器部署,本实施例中选择基于No-Sql技术的Redis,它是一个高性能的key-value数据库。由于要将已经发送的告警信息和告警确认信息保存在本地键值对数据库中,因此需要将告警信息和告警确认信息进行序列化,在本地键值对数据库中获取告警和告警确认时需要反序列到具体的告警对象,本实施例采用采用的反序列化工具是Google的Protocol Buffer,它是一款高性能的序列化和反序列化告警包。The local key-value pair database is deployed as a part of the server or independently of the server. In this embodiment, Redis based on No-Sql technology is selected, which is a high-performance key-value database. Since the sent alarm information and alarm confirmation information need to be stored in the local key-value pair database, the alarm information and alarm confirmation information need to be serialized, and the serialization needs to be reversed when obtaining the alarm and alarm confirmation information in the local key-value pair database Regarding the specific alarm object, the deserialization tool used in this embodiment is Google's Protocol Buffer, which is a high-performance serialization and deserialization alarm package.

下面给出几种不同应用下,按照本发明提供的方法进行匹配的过程。The matching process according to the method provided by the present invention under several different applications is given below.

场景1:登录时不需要匹配,发送过程中需要匹配,中断重连需要匹配。常见的应用是一个专门用来进行程序告警的客户端,每次登录要获取最新的未消除告警,匹配过程如下:Scenario 1: Matching is not required during login, matching is required during sending, and matching is required for reconnection after interruption. A common application is a client dedicated to program alarms. Every time you log in, you need to get the latest unresolved alarms. The matching process is as follows:

告警处理模块登录时:告警处理模块上报的登陆参数为match=0,needcachesendalarm=1,服务器发送当前所有未消除的告警记录到告警处理模块,并存储告警发送记录A,告警确认记录B到Redis中;When the alarm processing module logs in: the login parameters reported by the alarm processing module are match=0, needscachesendalarm=1, the server sends all current unresolved alarm records to the alarm processing module, and stores the alarm sending record A and the alarm confirmation record B to Redis ;

服务器正常发送过程中:服务器发送告警、消除、确认信息到告警处理模块,如果已经发送过,就不再发送,存储告警发送记录A,告警确认记录B到Redis中,如果是告警消除,删除A和B中对应的记录;During the normal sending process of the server: the server sends the alarm, clearing, and confirmation information to the alarm processing module. If it has already been sent, it will not send again. The alarm sending record A and the alarm confirmation record B are stored in Redis. If the alarm is cleared, delete A and the corresponding record in B;

告警处理模块中断后重连:告警处理模块上报的登陆参数为match=1,needcachesendalarm=1,服务器发送告警、消除、确认信息到告警处理模块,如果已经发送过,就不再发送,存储告警发送记录A,告警确认记录B到Redis中,如果是告警消除,删除A和B中对应的记录;Reconnect after the alarm processing module is interrupted: the login parameters reported by the alarm processing module are match=1, needscachesendalarm=1, and the server sends the alarm, elimination, and confirmation information to the alarm processing module. If it has already been sent, it will not be sent again, and the alarm will be sent Record A, alarm confirmation record B to Redis, if the alarm is cleared, delete the corresponding records in A and B;

场景2:登录和发送过程都需要匹配。常见的应用是短信输出告警,邮件输出告警,第三方厂家输出告警,匹配过程如下:Scenario 2: Both login and send process need to match. Common applications are SMS output alarms, email output alarms, and third-party manufacturers output alarms. The matching process is as follows:

告警处理模块登录时:告警处理模块上报的登陆参数为match=1,needcachesendalarm=1,服务器先补发所有的消除信息,然后发送告警、消除、确认信息到告警处理模块,如果已经发送过,就不再发送,存储告警发送记录A,告警确认记录B到Redis中,如果是告警消除,删除A和B中对应的记录;When the alarm processing module logs in: the login parameters reported by the alarm processing module are match=1, needcachesendalarm=1, the server first resends all the elimination information, and then sends the alarm, elimination, and confirmation information to the alarm processing module. If it has already been sent, it will No longer send, store alarm sending record A, alarm confirmation record B to Redis, if the alarm is cleared, delete the corresponding records in A and B;

服务器正常发送过程中:服务器发送告警、消除、确认信息到告警处理模块,如果已经发送过,就不再发送,存储告警发送记录A,告警确认记录B到Redis中,如果是告警消除,删除A和B中对应的记录;During the normal sending process of the server: the server sends the alarm, clearing, and confirmation information to the alarm processing module. If it has already been sent, it will not send again. The alarm sending record A and the alarm confirmation record B are stored in Redis. If the alarm is cleared, delete A and the corresponding record in B;

告警处理模块中断后重连:告警处理模块上报的登陆参数为match=1,needcachesendalarm=1,服务器发送告警、消除、确认信息到告警处理模块,如果已经发送过,就不再发送,存储告警发送记录A,告警确认记录B到Redis中,如果是告警消除,删除A和B中对应的记录;Reconnect after the alarm processing module is interrupted: the login parameters reported by the alarm processing module are match=1, needscachesendalarm=1, and the server sends the alarm, elimination, and confirmation information to the alarm processing module. If it has already been sent, it will not be sent again, and the alarm will be sent Record A, alarm confirmation record B to Redis, if the alarm is cleared, delete the corresponding records in A and B;

场景3:登录和发送过程都不需要匹配。常见的应用是语音输出告警,声音输出告警,匹配过程如下表:Scenario 3: Neither the login nor the sending process needs to match. The common application is voice output alarm, sound output alarm, the matching process is as follows:

告警处理模块登录时:告警处理模块上报的登陆参数为match=0,needcachesendalarm=0,服务器发送所有的未消除告警信息;When the alarm processing module logs in: the login parameters reported by the alarm processing module are match=0, needscachesendalarm=0, and the server sends all unresolved alarm information;

服务器正常发送过程中:服务器直接发送告警信息;During the normal sending process of the server: the server sends the alarm information directly;

告警处理模块中断后重连:告警处理模块上报的登陆参数为match=0,needcachesendalarm=0,服务器发送所有的未消除告警信息。Reconnect after the alarm processing module is interrupted: the login parameters reported by the alarm processing module are match=0, needscachesendalarm=0, and the server sends all unresolved alarm information.

如图5所示,本发明实施例提供了一种服务器告警输出系统,包括:As shown in Figure 5, an embodiment of the present invention provides a server alarm output system, including:

键值对数据库300,其连接至服务器200,用于采用键值对的形式记录服务器200已发送至对应告警处理模块的历史告警信息;A key-value pair database 300, which is connected to the server 200, is used to record the historical alarm information that the server 200 has sent to the corresponding alarm processing module in the form of a key-value pair;

服务器200,用于在与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库300中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理。The server 200 is configured to obtain the login parameter information reported by the alarm processing module after establishing a connection with the alarm processing module, select a corresponding alarm information output strategy according to the login parameter information, and pair key-value pairs according to the corresponding alarm information output strategy The historical alarm information in the database 300 and the global alarm information in the network management system database are subjected to alarm matching processing.

至少一个告警处理模块100,用于在登陆服务器200时,上报登陆参数。At least one alarm processing module 100 is configured to report login parameters when logging into the server 200 .

具体地,服务器200执行的所述告警匹配处理包括:Specifically, the alarm matching process performed by the server 200 includes:

服务器200或告警处理模块100异常期间服务器200未发送的告警信息补发处理;Reissue processing of alarm information not sent by the server 200 during the abnormal period of the server 200 or the alarm processing module 100;

和/或,已发送至告警处理模块100的告警信息不再重复发送处理;And/or, the alarm information that has been sent to the alarm processing module 100 is no longer sent repeatedly;

和/或,网管系统产生的重复告警信息只发送一次处理。And/or, the repeated alarm information generated by the network management system is only sent once for processing.

具体地,所述登陆参数包括第一参数match以及第二参数needcachesendalarm,服务器200依据告警处理模块100上报的这些登陆参数信息选择对应的告警信息输出策略的规则为:Specifically, the login parameters include the first parameter match and the second parameter needscachesendalarm, and the server 200 selects the corresponding alarm information output strategy according to the login parameter information reported by the alarm processing module 100:

1)当match为0,即表示该告警处理模块100不需要服务器200进行告警匹配处理,服务器200收到该登陆参数后,将键值对数据库300中缓存的与该告警处理模块100对应的历史告警信息记录清空;1) When match is 0, it means that the alarm processing module 100 does not need the server 200 to perform alarm matching processing. After receiving the login parameters, the server 200 will store the key-value pair in the database 300 and cache the history corresponding to the alarm processing module 100 Alarm information records are cleared;

2)当match为1,即表示该告警处理模块100需要服务器200进行告警匹配处理,服务器200收到该登陆参数后,通过对键值对数据库300进行反序列化处理得到与该告警处理模块100对应的已发送的历史告警信息,其中,所述历史告警信息包括告警记录A以及告警确认记录B,如果网管系统数据库当前要发送给该告警处理模块100的当前告警信息已经在告警记录A中出现,则表示该告警信息已经发送过,服务器200不需要将其再次发送,否则,服务器200需要将该当前告警信息发送至该告警处理模块100;如果网管系统数据库当前要发送的当前告警确认在告警确认记录B中出现,表示该当前告警确认已经发送过,服务器200不需要再次发送,否则,服务器200需要将该当前告警确认发送至该告警处理模块100;2) When match is 1, it means that the alarm processing module 100 needs the server 200 to perform alarm matching processing. After the server 200 receives the login parameters, it deserializes the key value database 300 to obtain the corresponding alarm processing module 100 Corresponding historical alarm information that has been sent, wherein the historical alarm information includes alarm record A and alarm confirmation record B, if the current alarm information that the network management system database is currently sending to the alarm processing module 100 has appeared in alarm record A , it means that the alarm information has been sent, and the server 200 does not need to send it again, otherwise, the server 200 needs to send the current alarm information to the alarm processing module 100; if the current alarm confirmation to be sent by the network management system database is in the alarm Appearing in the confirmation record B means that the current alarm confirmation has already been sent, and the server 200 does not need to send it again, otherwise, the server 200 needs to send the current warning confirmation to the alarm processing module 100;

3)当needcachesendalarm为0,即表示该告警处理模块100不需要服务器200缓存其已发送的告警信息和告警确认信息至键值对数据库300中,服务器200收到该登录参数后,服务器200对所有已发送至该告警处理模块100的告警信息以及告警确认信息不执行缓存到键值对数据库300中;3) When needscachesendalarm is 0, it means that the alarm processing module 100 does not need the server 200 to cache the sent alarm information and alarm confirmation information in the key-value pair database 300. The alarm information and alarm confirmation information sent to the alarm processing module 100 are not cached into the key-value pair database 300;

4)当needcachesendalarm为1,即表示该告警处理模块100需要服务器200缓存其已发送的告警和告警确认信息至键值对数据库300中,服务器200收到该登录参数后,服务器200对所有已发送至该告警处理模块100的告警信息和告警确认信息将执行缓存到键值对数据库300中。4) When needscachesendalarm is 1, it means that the alarm processing module 100 needs the server 200 to cache the sent alarms and alarm confirmation information in the key-value pair database 300. The alarm information and alarm confirmation information sent to the alarm processing module 100 are cached in the key-value pair database 300 for execution.

具体地,在服务器200启动时,其首先建立与键值对数据库300的连接,并利用反序列化工具反序列化该键值对数据库300中已经发送的历史告警信息。Specifically, when the server 200 starts, it first establishes a connection with the key-value pair database 300, and uses a deserialization tool to deserialize the historical alarm information that has been sent in the key-value pair database 300.

具体地,所述键值对数据库300为基于No-Sql技术的Redis键值对数据库,所述反序列化工具为Protocol Buffer。Specifically, the key-value pair database 300 is a Redis key-value pair database based on No-Sql technology, and the deserialization tool is Protocol Buffer.

本发明通过利用在本地创建键值对数据库,保存已经发送到各个告警处理模块的历史告警记录,并根据告警处理模块在登录服务器、登录完成后接收告警、与服务器连接中断再重连上三种不同的处理场景上报登陆参数,从而通过服务器来自动来完成告警信息的输出匹配,这些输出匹配包括:发送过的告警不再发送;告警处理模块中断重连后,服务器补发告警消除;服务器重启后补发告警消除。因此,各个告警处理模块只需要连接到服务器接收告警即可,省去了告警处理模块的匹配算法的设计,减少了工作量,从而提高了和第三方厂家对接的效率。The present invention saves the historical alarm records that have been sent to each alarm processing module by using the locally created key-value pair database, and according to the alarm processing module, log in to the server, receive an alarm after the login is completed, and disconnect from the server and then reconnect. The login parameters are reported in different processing scenarios, so that the output matching of the alarm information is automatically completed through the server. These output matching include: the alarm that has been sent is no longer sent; after the alarm processing module is interrupted and reconnected, the server reissues the alarm to eliminate; the server restart After reissue the alarm is eliminated. Therefore, each alarm processing module only needs to be connected to the server to receive the alarm, which saves the design of the matching algorithm of the alarm processing module, reduces the workload, and improves the efficiency of docking with third-party manufacturers.

以上所述仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related All technical fields are equally included in the scope of patent protection of the present invention.

Claims (8)

Translated fromChinese
1.一种服务器告警输出方法,其特征在于,包括:1. A server alarm output method, characterized in that, comprising:创建键值对数据库,其采用键值对的形式记录了服务器已发送至对应告警处理模块的历史告警信息;Create a key-value pair database, which records the historical alarm information that the server has sent to the corresponding alarm processing module in the form of key-value pairs;在服务器与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理,所述登陆参数信息包括第一参数match以及第二参数needcachesendalarm,服务器依据告警处理模块上报的这些登陆参数信息选择对应的告警信息输出策略的规则为:After the connection between the server and the alarm processing module is established, the login parameter information reported by the alarm processing module is obtained, and the corresponding alarm information output strategy is selected according to the login parameter information, and the history in the key-value pair database is selected according to the corresponding alarm information output strategy. The alarm information and the global alarm information in the network management system database perform alarm matching processing, the login parameter information includes the first parameter match and the second parameter needscachesendalarm, and the server selects the corresponding alarm information output strategy according to these login parameter information reported by the alarm processing module The rules for are:当match为0,即表示该告警处理模块不需要服务器进行告警匹配处理,服务器收到该登陆参数后,将键值对数据库中缓存的与该告警处理模块对应的历史告警信息记录清空;When match is 0, it means that the alarm processing module does not need the server to perform alarm matching processing. After receiving the login parameters, the server clears the historical alarm information records cached in the key-value pair database corresponding to the alarm processing module;当match为1,即表示该告警处理模块需要服务器进行告警匹配处理,服务器收到该登陆参数后,通过对键值对数据库进行反序列化处理得到与该告警处理模块对应的已发送的历史告警信息,其中,所述历史告警信息包括告警记录A以及告警确认记录B,如果网管系统数据库当前要发送给该告警处理模块的当前告警信息已经在告警记录A中出现,则表示该告警信息已经发送过,服务器不需要将其再次发送,否则,服务器需要将该当前告警信息发送至该告警处理模块;如果网管系统数据库当前要发送的当前告警确认信息在告警确认记录B中出现,表示该当前告警确认已经发送过,服务器不需要再次发送,否则,服务器需要将该当前告警确认信息发送至该告警处理模块;When match is 1, it means that the alarm processing module needs the server to perform alarm matching processing. After the server receives the login parameters, it deserializes the key-value database to obtain the sent historical alarms corresponding to the alarm processing module. information, wherein the historical alarm information includes alarm record A and alarm confirmation record B, if the current alarm information to be sent to the alarm processing module by the network management system database has appeared in alarm record A, it means that the alarm information has been sent However, the server does not need to send it again, otherwise, the server needs to send the current alarm information to the alarm processing module; if the current alarm confirmation information to be sent by the network management system database appears in the alarm confirmation record B, it means that the current alarm The confirmation has been sent, and the server does not need to send it again, otherwise, the server needs to send the current alarm confirmation information to the alarm processing module;当needcachesendalarm为0,即表示该告警处理模块不需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登陆 参数后,服务器对所有已发送至该告警处理模块的告警信息以及告警确认信息不执行缓存到键值对数据库中;When needscachesendalarm is 0, it means that the alarm processing module does not need the server to cache the sent alarm information and alarm confirmation information to the key-value pair database. The alarm information and alarm confirmation information are not cached into the key-value pair database;当needcachesendalarm为1,即表示该告警处理模块需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登陆 参数后,服务器对所有已发送至该告警处理模块的告警信息和告警确认信息将执行缓存到键值对数据库中。When needscachesendalarm is 1, it means that the alarm processing module needs the server to cache the sent alarm information and alarm confirmation information to the key-value pair database. Alarm information and alarm confirmation information will be executed and cached in the key-value pair database.2.如权利要求1所述的服务器告警输出方法,其特征在于,所述告警匹配处理包括:2. The server alarm output method according to claim 1, wherein the alarm matching process comprises:服务器或告警处理模块异常期间服务器未发送的告警信息补发处理;Reissue processing of alarm information not sent by the server during the abnormal period of the server or alarm processing module;和/或,已发送至告警处理模块的告警信息不再重复发送处理;And/or, the alarm information that has been sent to the alarm processing module will not be repeatedly sent for processing;和/或,网管系统产生的重复告警信息只发送一次处理。And/or, the repeated alarm information generated by the network management system is only sent once for processing.3.如权利要求1所述的服务器告警输出方法,其特征在于,在创建所述键值对数据库之后,在服务器启动时,建立与键值对数据库的连接,服务器利用反序列化工具反序列化该键值对数据库中已经发送的历史告警信息。3. the server alarm output method as claimed in claim 1, is characterized in that, after creating described key-value pair database, when server starts, set up the connection with key-value pair database, server utilizes deserialization tool deserialization Optimize the historical alarm information sent in the key-value pair database.4.如权利要求3所述的服务器告警输出方法,其特征在于,所述键值对数据库为基于No-Sql技术的Redis键值对数据库,所述反序列化工具为Protocol Buffer。4. The server alarm output method according to claim 3, wherein the key-value pair database is a Redis key-value pair database based on No-Sql technology, and the deserialization tool is Protocol Buffer.5.一种服务器告警输出系统,其特征在于,包括:5. A server alarm output system, characterized in that, comprising:键值对数据库,其连接至服务器,用于采用键值对的形式记录服务器已发送至对应告警处理模块的历史告警信息;A key-value pair database, which is connected to the server, and is used to record the historical alarm information that the server has sent to the corresponding alarm processing module in the form of key-value pairs;服务器,用于在与告警处理模块建立连接后,获取告警处理模块上报的登陆参数信息,并依据该登陆参数信息选择对应的告警信息输出策略,并依据对应的告警信息输出策略对键值对数据库中的历史告警信息以及网管系统数据库中的全局告警信息进行告警匹配处理,所述登陆参数信息包括第一参数match以及第二参数needcachesendalarm,服务器依据告警处理模块上报的这些登陆参数信息选择对应的告警信息输出策略的规则为:The server is used to obtain the login parameter information reported by the alarm processing module after establishing a connection with the alarm processing module, and select the corresponding alarm information output strategy according to the login parameter information, and pair the key-value pair database according to the corresponding alarm information output strategy The historical alarm information in and the global alarm information in the network management system database perform alarm matching processing. The login parameter information includes the first parameter match and the second parameter needcachesendalarm, and the server selects the corresponding alarm according to these login parameter information reported by the alarm processing module. The rules of the information output policy are:当match为0,即表示该告警处理模块不需要服务器进行告警匹配处理,服务器收到该登陆参数后,将键值对数据库中缓存的与该告警处理模块对应的历史告警信息记录清空;When match is 0, it means that the alarm processing module does not need the server to perform alarm matching processing. After receiving the login parameters, the server clears the historical alarm information records cached in the key-value pair database corresponding to the alarm processing module;当match为1,即表示该告警处理模块需要服务器进行告警匹配处理,服务器收到该登陆参数后,通过对键值对数据库进行反序列化处理得到与该告警处理模块对应的已发送的历史告警信息,其中,所述历史告警信息包括告警记录A以及告警确认记录B,如果网管系统数据库当前要发送给该告警处理模块的当前告警信息已经在告警记录A中出现,则表示该告警信息已经发送过,服务器不需要将其再次发送,否则,服务器需要将该当前告警信息发送至该告警处理模块;如果网管系统数据库当前要发送的当前告警确认信息在告警确认记录B中出现,表示该当前告警确认已经发送过,服务器不需要再次发送,否则,服务器需要将该当前告警确认信息发送至该告警处理模块;When match is 1, it means that the alarm processing module needs the server to perform alarm matching processing. After the server receives the login parameters, it deserializes the key-value database to obtain the sent historical alarms corresponding to the alarm processing module. information, wherein the historical alarm information includes alarm record A and alarm confirmation record B, if the current alarm information to be sent to the alarm processing module by the network management system database has appeared in alarm record A, it means that the alarm information has been sent However, the server does not need to send it again, otherwise, the server needs to send the current alarm information to the alarm processing module; if the current alarm confirmation information to be sent by the network management system database appears in the alarm confirmation record B, it means that the current alarm The confirmation has been sent, and the server does not need to send it again, otherwise, the server needs to send the current alarm confirmation information to the alarm processing module;当needcachesendalarm为0,即表示该告警处理模块不需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登陆 参数后,服务器对所有已发送至该告警处理模块的告警信息以及告警确认信息不执行缓存到键值对数据库中;When needscachesendalarm is 0, it means that the alarm processing module does not need the server to cache the sent alarm information and alarm confirmation information to the key-value pair database. The alarm information and alarm confirmation information are not cached into the key-value pair database;当needcachesendalarm为1,即表示该告警处理模块需要服务器缓存其已发送的告警信息和告警确认信息至键值对数据库中,服务器收到该登陆 参数后,服务器对所有已发送至该告警处理模块的告警信息和告警确认信息将执行缓存到键值对数据库中;When needscachesendalarm is 1, it means that the alarm processing module needs the server to cache the sent alarm information and alarm confirmation information to the key-value pair database. Alarm information and alarm confirmation information will be executed and cached in the key-value pair database;至少一个告警处理模块,用于在登陆服务器时,上报登陆参数。At least one alarm processing module is used for reporting login parameters when logging in to the server.6.如权利要求5所述的服务器告警输出系统,其特征在于,服务器执行的所述告警匹配处理包括:6. The server alarm output system according to claim 5, wherein the alarm matching process performed by the server comprises:服务器或告警处理模块异常期间服务器未发送的告警信息补发处理;Reissue processing of alarm information not sent by the server during the abnormal period of the server or alarm processing module;和/或,已发送至告警处理模块的告警信息不再重复发送处理;And/or, the alarm information that has been sent to the alarm processing module will not be repeatedly sent for processing;和/或,网管系统产生的重复告警信息只发送一次处理。And/or, the repeated alarm information generated by the network management system is only sent once for processing.7.如权利要求5所述的服务器告警输出系统,其特征在于,在服务器启动时,其首先建立与键值对数据库的连接,并利用反序列化工具反序列化该键值对数据库中已经发送的历史告警信息。7. The server alarm output system as claimed in claim 5, wherein when the server starts, it first establishes a connection with the key-value pair database, and utilizes a deserialization tool to deserialize the key-value pair database. The historical alarm information sent.8.如权利要求7所述的服务器告警输出系统,其特征在于,所述键值对数据库为基于No-Sql技术的Redis键值对数据库,所述反序列化工具为Protocol Buffer。8. The server alarm output system according to claim 7, wherein the key-value pair database is a Redis key-value pair database based on No-Sql technology, and the deserialization tool is Protocol Buffer.
CN201210486810.3A2012-11-262012-11-26 Server alarm output method and systemExpired - Fee RelatedCN103840962B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201210486810.3ACN103840962B (en)2012-11-262012-11-26 Server alarm output method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201210486810.3ACN103840962B (en)2012-11-262012-11-26 Server alarm output method and system

Publications (2)

Publication NumberPublication Date
CN103840962A CN103840962A (en)2014-06-04
CN103840962Btrue CN103840962B (en)2017-09-05

Family

ID=50804127

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201210486810.3AExpired - Fee RelatedCN103840962B (en)2012-11-262012-11-26 Server alarm output method and system

Country Status (1)

CountryLink
CN (1)CN103840962B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107172112B (en)*2016-03-072020-10-02阿里巴巴集团控股有限公司Computer file transmission method and device
CN106021061B (en)*2016-04-292019-05-28北京奇虎科技有限公司Alarm information processing method, apparatus and system
CN108073611A (en)*2016-11-142018-05-25国网江苏省电力公司镇江供电公司The filter method and device of a kind of warning information
CN106992895A (en)*2017-05-262017-07-28郑州云海信息技术有限公司A kind of alarm method of anti-oscillating, alarm device and program product
CN113037570B (en)*2021-04-292022-12-13中国联合网络通信集团有限公司Alarm processing method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1720286A2 (en)*2005-05-062006-11-08Samsung Electronics Co., Ltd.Network management system and method
CN101350735A (en)*2007-07-202009-01-21中兴通讯股份有限公司Method for synchronization of alarm
CN101741615A (en)*2009-12-142010-06-16北京神州泰岳软件股份有限公司Server-based alarm filtering system and method
CN101938374A (en)*2010-08-242011-01-05中兴通讯股份有限公司System performance monitoring and alarming method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
EP1720286A2 (en)*2005-05-062006-11-08Samsung Electronics Co., Ltd.Network management system and method
CN101350735A (en)*2007-07-202009-01-21中兴通讯股份有限公司Method for synchronization of alarm
CN101741615A (en)*2009-12-142010-06-16北京神州泰岳软件股份有限公司Server-based alarm filtering system and method
CN101938374A (en)*2010-08-242011-01-05中兴通讯股份有限公司System performance monitoring and alarming method and system

Also Published As

Publication numberPublication date
CN103840962A (en)2014-06-04

Similar Documents

PublicationPublication DateTitle
CN110224858B (en)Log-based alarm method and related device
CN103840962B (en) Server alarm output method and system
CN103139018B (en)Network card status monitoring under a kind of modulation integral system and TCP communication method
CN110445683B (en)Server, equipment, method and system for monitoring survival state of server
CN100464600C (en) Alarm processing method and background management device
CN102412983B (en)Reporting method for equipment alarm
CN101938374A (en)System performance monitoring and alarming method and system
CN100417087C (en) A kind of alarm management method of SNMP protocol network management system
WO2024082471A1 (en)Inter-node link status monitoring method and apparatus
CN111917577B (en)BGP route information acquisition method, device, computer equipment and storage medium
CN105243002A (en)Message middleware monitoring method and system
US20240388517A1 (en)Method for cloud-edge data transmission of electrochemical energy storage station
CN114885373B (en) A node data uploading method, device, equipment and storage medium
CN114979037B (en)Multicast method, device, switch and storage medium
CN114710394B (en)Alarm synchronization method and device, electronic equipment and readable storage medium
CN107645563B (en)Internet of things communication method and system of medical test equipment
CN117118839A (en)Log information transmission backup method, system, equipment and storage medium
CN112437146B (en) A device state synchronization method, device and system
CN113965447B (en)Online cloud diagnosis method, device, system, equipment and storage medium
CN113472566A (en)Status monitoring method of union block chain and master node status monitoring system
CN107590647A (en)The servo supervisory systems of ship-handling system
WO2016065752A1 (en)Method and device for detecting link state, and storage medium
CN112069027A (en)Interface data processing method and device, electronic equipment and storage medium
CN114363899A (en) 5G network element management method and system based on proxy isolation
CN119835333B (en) A multi-cluster cloud native task scheduling method and system based on zero trust

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20170905


[8]ページ先頭

©2009-2025 Movatter.jp