Method for processing alarm message of safe city video monitoring system
Technical field
The present invention relates to the real-time monitoring technique of the network equipment in the communications field, relate in particular to a kind of method for processing alarm message of safe city video monitoring system.
Background technology
In current network communication applications system, NMS is a kind of concentrating a large amount of network equipments configuration, management, the indispensable system of maintenance.It roughly comprises functions such as equipment topology, network element configuration, performance management, alarm management, log management; Alarm management then is the important management function of webmaster; It is for the network device management personnel provide in real time, true, detailed and network equipment operation conditions that locate fast.In safe city video monitoring system, alarm reports different alarms according to client's specified rule, can be divided into critical alarm, main alarm, minor alarm and warning alarm etc. according to alarm level.Simultaneously can also formulate the alarm mode, like alarm modes such as note, multimedia message, mail and system's jingle bells according to customer demand.
At present, most of alarm methods all adopt service end to send the communication mode of notice to client, and this communication mode uses usually
RMI,
CORBAPerhaps technology such as self-defined tcp/ip message.These technology are often owing to complicacy produces many disadvantages:
1, technology is difficult to realize;
2, there is firewall restriction (because need open the PORT COM of non-HTTP);
3, need extra SERVER exploitation and maintenance.
In safe city video monitoring system; In order to solve the alarm of rolling off the production line on all kinds of such as video capture device (DVS scrambler, IPC video camera etc.), disparate networks unit (rack server, storage array, switch, router etc.) and video processing applications software (distribution of media software, video recording storing software etc.); And assemble, run, cross the border, in warning system, produce warning information by customer demand after the graphical analysis such as mobile detection and object are lost to all kinds of faults of these equipment and software (suspension, load overload, handling property are low inferior) and to the personnel in the video image; Need these warning information be passed to NM client through network management center, NM client is redispatched to mobile phone, mail and browser etc.
Summary of the invention
The object of the invention just is to overcome the shortcoming and defect that prior art exists, and a kind of method for processing alarm message of safe city video monitoring system is provided.
The objective of the invention is to realize like this:
In order to adapt to the diversification of network equipment alarm in the safe city video monitoring system, software fault alarm, business datum warning information; And the multiple mode of message subscribing, what the present invention adopted is that a kind of PUSHLET push technology and JAVA messenger service JMS based on COMET realizes the network equipment and software fault, performance and the business datum warning information that the WEB client subscription sends to service end.
The present invention adopts publisher-subscriber's message TRANSFER MODEL to receive and dispatch alarm.In issue-subscribe model, alarm is exactly a theme, as using formation, can let a plurality of recipients monitor a theme, and all like this theme subscribers can receive alarm.
One, safe city video monitoring system
Safe city video monitoring system is a kind of network management and monitoring system based on distributed network equipment management, supports multistage interconnectedly, and alarm then is its nucleus module.The alarm of all network elements, software and video special image data all is the alarm module that is sent to NM server by central server.Alarm module then sends to the message subscribing client through the mode of issuing subject with alarm, also warning information is kept at database server simultaneously.The message subscribing manner variation can send to client's mobile phone with warning information through the Short Message Service Gateway interface, also can send to client's mailbox through the STMP mail interface, also can send to NM client simultaneously.
NM server is the network device management center of safe city video monitoring system.Warning processing module is its important module, and it is responsible for other NEs and application software system warning information such as receiver, video collecting device.Obtain through SNMP and soap protocol on equipment such as video capture device and application server and the software systems roll off the production line, performance and failure message.
Two, method for processing alarm message
This method for processing alarm message is based on a kind of safe city video monitoring system, and its working mechanism adopts publisher-subscriber's model, and publisher/subscriber's model supports gives out information to a specific message subject;
Concrete steps are following:
1. set up traffic model by camera, video capture device, central server, application server and NM server;
2. gather the warning information of video capture device and initiatively report NM server by central server;
3. the warning information that sends of NM server receiving center server is handled, and judges and selects the corresponding client receive mode, and information is saved in database server;
4. the client receives the warning information that concrete NM client is sent through mobile phone, mail and browser.
The present invention has advantage and good effect:
1, for program provides asynchronous mechanism, client receiving alarm information needn't the wait service end;
2, support a large amount of concurrent warning information, the alarm response is timely, and alarm efficient is high;
3, support multiple message subscribing, client's receiving alarm information is flexible, does not receive time and space constraint;
4, support is multistage interconnected, can make subordinate's alarm send to Upper NM Station;
5, can and confirm alarm according to client rights filtering alarm, cleared alarm, recovery alarm;
6, each is grade coupled loose for equipment control and devices communicating agreement, device type, network type; And followed standard network communication protocols; Extendability is flexible, can be transplanted to a lot of scenes, and for example stock, weather, ballot, airport arrive system, interactive game and chat in time etc.
Description of drawings
Fig. 1 is the block diagram of this webmaster supervisory system;
Fig. 2 is the processor drawing in this method for processing alarm message;
Fig. 3 is the processing flow chart in this method for processing alarm message.
Wherein:
The 10-application server;
The 20-database server;
The 30-central server;
The 40-video capture device;
The 50-camera;
The 60-NM server;
The 70-NM client;
The 80-terminal device, 81-mobile phone, 82-mailbox, 83-browser;
F-publisher's (NM server 60);
The A-alarm information;
The B-theme;
C-subscriber's (NM client 70), C1, C2 ... CN-the 1st, 2 ... N subscriber.
Embodiment
Specify below in conjunction with accompanying drawing and embodiment:
One, network management and monitoring system
1, overall
Like Fig. 1; This webmaster supervisory system is a kind of network management and monitoring system based on the distributed network equipment management, comprises application server 10, database server 20, central server 30, video capture device 40, camera 50, NM server 60, NM client 70 and terminal device 80;
1) video monitoring platform
Camera 50, video capture device 40, central server 30 and NM server 60 front and back are connected successively, form video monitoring platform;
Application server 10 is connected with central server 30, realizes video record, real-time video and distribution of media.
2) network management center
NM server 60 is connected with central server 30, database server 20 and NM client 70 respectively, and NM client 70 is connected with terminal device 80, realizes network management and preserves business datum.
2, principle of work
Video capture device 40 is formed alarm information with central server 30 or application server 10 respectively with central server 30 and is obtained passage;
Central server 30 is formed the alarm information transmission channels with NM server 60;
NM server 60 is formed the service data visitation passage with database server 20;
Video capture device 40 sends alarm data; Be responsible for image data by central server 30, and report NM server 60, after NM server 60 is received warning information; Alarm data is stored in database server 20, also reports NM client 70 simultaneously and be presented on the terminal device 80.
Two, method for processing alarm message
This webmaster supervisory system is a common system in the prior art, and this method is provided with the alarm information processing module according to this system exactly in NM server 60.
1, treatment mechanism
The alarm information processing module is a kind of method for processing alarm message of one-to-many, adopts publisher-subscriber's model, and publisher/subscriber's model supports gives out information to a specific message subject.
Alarm is exactly a theme, and zero or a plurality of subscribers maybe be interested in from the message of particular message theme receiving.Under this model, publisher and subscriber do not know the other side each other.It is anonymous bulletin board that this pattern cans be compared to.This pattern is summarized as: a plurality of consumers can obtain message; Life period dependence between publisher and subscriber; The publisher need set up a subscription (subscription), so that the client can subscribe to; The active state that the subscriber must keep continuing is to receive message, only if the subscriber has set up lasting subscription; Under the sort of situation, the message of issue will not issued when the subscriber connects again again when the subscriber connects.
Specifically, like Fig. 2, this alert processing method comprises the following steps:
1. publisher F issuing subject B;
2. the theme B of subscriber C subscription oneself needs monitors;
3. publisher F receives the warning information A that central server 30 reports;
4. publisher F is related with alarm information A with theme B;
5. publisher F issues out through the message transmission channels with theme B;
6. subscriber C automatic reception is to the related message A of the theme B that subscribes to.
2, treatment scheme
Like Fig. 3, this treatment scheme comprises the following steps:
The one 100, the equipment report and alarm;
The 2 200, resolve the distribution alarm
1. 210, resolve warning information;
2. 220, judge and resolve whether success of alarm, be then to arrive next step 3. 230, otherwise jump to step 1. 210;
3. 230, facility information and corresponding warning content are published to the equipment appointed area with the theme form;
The 3 300, the warning information issue
1. 310, alarm is distributed to the region and handles, and adds in the regional alarming processing formation;
2. 320, find rank, priority, type and the alarm date of alarm;
Or 330, should alarm and store database service into through data access service, arrive next step 3. 350 again;
Or 340, handle alarm category statistics;
3. 350, zone group thread detects the subscriber of warning information;
4. 380, according to the mode (mobile phone, mail, browser) 370 of the subscription alarm of calling alarm filter mechanism filter 23 60 and query subscription person, the subscriber sends a warning message;
The 4 400, the subscriber obtains alarm;
1. 410, obtain the concrete equipment running of particular location through client terminal;
2. 420, the client can confirm alarm, recover alarm, cleared alarm through client.