CN105072418B - A kind of method and apparatus that judgement monitoring frontend is offline - Google Patents
A kind of method and apparatus that judgement monitoring frontend is offline Download PDFInfo
- Publication number
- CN105072418B CN105072418B CN201510535754.1A CN201510535754A CN105072418B CN 105072418 B CN105072418 B CN 105072418B CN 201510535754 A CN201510535754 A CN 201510535754A CN 105072418 B CN105072418 B CN 105072418B
- Authority
- CN
- China
- Prior art keywords
- monitoring frontend
- monitoring
- resource
- storage
- frontend
- 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
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a kind of method that judgement monitoring frontend is offline, and this method is applied to storage equipment, this method comprises: carrying out performance statistics for a certain logical resource;If the write performance on the logical resource is less than given threshold within a preset time, the data packet of Ping order building is sent to the corresponding monitoring frontend of the logical resource;If not receiving the response data packet of the monitoring frontend, judge that the monitoring frontend is offline, otherwise judges that the monitoring frontend is online.The present invention program reduces the consumption to storage device performance relative to timing Ping monitoring frontend, reduces the data packet in network.
Description
Technical field
The present invention relates to technical field of video monitoring more particularly to a kind of methods and dress that judgement monitoring frontend is offline
It sets.
Background technique
Monitoring business model is substantially video recording write-in in 7 × 24 hours.Each monitoring frontend (such as IPC, access simulation
The encoder of camera) it sends the video monitoring data after oneself compressed encoding in the storage equipment of rear end and stores.
In general, each monitoring frontend can get the memory space for being specific to oneself in storage equipment.Each monitoring frontend
Be mounted to back-end storage device by iSCSI protocol, in the storage resource for being specific to oneself carry out video monitoring data 7 ×
24 hours recurrent wrItings.
Since the storage equipment of monitoring frontend to rear end is needed by IP network, so when monitoring frontend is to depositing
When the IP network of storage equipment is obstructed, the storage stream of monitoring frontend will be unable to that back-end storage device successfully is written.
Currently, can be by being timed ping (packet internet group, internet to monitoring frontend
Packet survey meter) wrap the mode of detection to judge whether network obstructed, i.e. whether confirmation monitoring frontend is offline.Such as it supervises
The management server of control system sent ping packet to monitoring frontend every 20 seconds, leads to if being unable to ping, is considered as monitoring
Headend equipment has been off.Alternatively, monitoring frontend can also send keep-alive message to management server every 20 seconds, if
Management server does not all receive the keep-alive message of monitoring frontend transmission for 40 seconds in the regular hour, then just
Think that monitoring frontend has been off.
Although the above method can confirm that whether monitoring frontend is offline, this mode compares to the consumption of system
It is larger.
Summary of the invention
In view of this, the present invention provides a kind of method and apparatus that judgement monitoring frontend is offline.
This method comprises: carrying out performance statistics for a certain logical resource;If the write performance on the logical resource exists
It is less than given threshold in preset time, then sends the data of Ping order building to the corresponding monitoring frontend of the logical resource
Packet;If not receiving the response data packet of the monitoring frontend, judges that the monitoring frontend is offline, otherwise judge
The monitoring frontend is online.
Preferably, the write performance on the logical resource includes bandwidth or the number per second for writing IO.
Preferably, this method further include:
Pre-establish the Universally Unique Identifier UUID of storage resource and the corresponding relationship of monitoring frontend IP address;
The corresponding monitoring frontend of the described pair of logical resource sends the data packet that Ping order constructs
Inquire the corresponding IP address of UUID of the logical resource;
The data packet that Ping order constructs is sent to the IP address.
Preferably, the corresponding relationship for pre-establishing storage resource UUID and monitoring frontend IP address includes:
After the IP address of the monitoring frontend carried in the storage plan that the management server of acquisition monitoring system issues,
Corresponding storage resource is distributed to the monitoring frontend, and in the UUID and monitoring frontend for locally recording the storage resource
The corresponding relationship of IP address.
The offline device of the judgement monitoring frontend includes:
Performance statistic module, for carrying out performance statistics to logical resource;
Ping command module, if the write performance on the logical resource is less than given threshold within a preset time,
The data packet of Ping order building is then sent to the corresponding monitoring frontend of the logical resource;
Offline judgment module, if the response data packet for not receiving the monitoring frontend, judges the prison
It is offline to control headend equipment, otherwise judges that the monitoring frontend is online.
Preferably, the device further include:
List item establishes module, for pre-establishing the Universally Unique Identifier UUID and monitoring frontend IP of storage resource
The corresponding relationship of address;
The Ping command module sends the data of Ping order building to the corresponding monitoring frontend of the logical resource
Packet includes:
Inquire the corresponding IP address of UUID of the logical resource;
The data packet that Ping order constructs is sent to the IP address.
Preferably, list item establishes the corresponding relationship that module pre-establishes storage resource UUID and monitoring frontend IP address
Include: the monitoring frontend carried in the storage plan that issues of management server for obtain monitoring system IP address after, point
The monitoring frontend is given with corresponding storage resource, and in the UUID and monitoring frontend IP for locally recording the storage resource
The corresponding relationship of address.
Compared to the prior art, whether the present invention program does not blindly confirm monitoring frontend online, is supervising
There is exception in the write performance controlled on the corresponding storage logical resource of headend equipment, i.e., it is essentially close write-in flow constantly occur
0 the case where, stores equipment ability Ping monitoring frontend.In this way relative to timing Ping monitoring frontend, reduce to depositing
The consumption for storing up equipment performance, reduces the data packet in network.
Detailed description of the invention
Fig. 1 is flow chart of the embodiment of the present invention.
Fig. 2 is logical resource performance statistics schematic diagram.
Fig. 3 is the device of that embodiment of the invention building-block of logic.
Specific embodiment
To solve the technical issues of mentioning in background technique, the present invention provides one kind and targetedly judges that front monitoring front-end is set
Standby offline scheme.Whether the program blindly do not confirm monitoring frontend online, but in any case
Judgement whether just triggering to monitoring frontend online.It is described in detail below by way of specific embodiment.
It please join flow chart of the embodiment of the present invention shown in FIG. 1.
S11, performance statistics are carried out to logical resource.
If the write performance on S12, the logical resource is less than given threshold within a preset time, to the logical resource
Corresponding monitoring frontend sends the data packet of Ping order building;
If S13, the response data packet for not receiving the monitoring frontend, judge the monitoring frontend from
Otherwise line judges that the monitoring frontend is online.
Memory space in storage equipment can be divided into several logical resources.Each logical resource is as a monitoring
The storage resource of headend equipment, so that the monitoring frontend is in storing surveillance video above.Storing equipment has to each
A storage resource carries out the ability of performance statistics, please join an example shown in Fig. 2.The example shows reflection logical resources
Two parameters of energy: bandwidth and IOPS (number of read-write IO per second).The example, which is directed to, to be read and writes to have carried out performance statistics.But
The present embodiment, monitoring frontend is substantially intended only as on write device write-in video monitoring data to logical resource, so only
Need to consider the write performance of storage resource, therefore, it is only necessary to concern writes bandwidth or per second writes IO number.
By it is per second write IO number for, if within a preset time the number be less than given threshold, to the logical resource
Corresponding monitoring frontend sends the data packet of Ping order building.A specific example are as follows: if in 5 seconds, it is described to write
IO number is average per second less than N, then it is assumed that current monitor headend equipment is possible to have been off.Here N is than normal discharge
The small multiple data of logical resource are written, it is contemplated that the case where data are written there is likely to be other equipment managements,
So N can not be 0, specific size can be provided in conjunction with empirical data.
In the case where monitoring frontend may be offline, equipment is stored again to storing data in the prison on the logical resource
Control the data packet that headend equipment sends Ping order building, i.e. ICMP request data package.Before if storage equipment receives the monitoring
The response data packet of end equipment, then it is assumed that the monitoring frontend is also online, otherwise it is assumed that the monitoring frontend has been off.
The whether offline trigger condition of storage equipment confirmation monitoring frontend is: the corresponding storage of the monitoring frontend
Write performance on logical resource occur it is abnormal, i.e., constantly occur write-in flow essentially close to 0 the case where.In the trigger condition
When generation, equipment ability Ping monitoring frontend is stored.In this way relative to timing Ping monitoring frontend, reduce to storage
The consumption of equipment performance reduces the data packet in network.
In order to successfully send the data packet that Ping order constructs to monitoring frontend, need to know the front monitoring front-end
The IP address of equipment.A kind of simple and effective method are as follows: pre-establish the Universally Unique Identifier UUID of storage resource
With the corresponding relationship of monitoring frontend IP address.Specifically, storage equipment can pass through the management server of monitoring system
Know the IP address of monitoring frontend.Such as management server issues storage plan, notice storage monitoring of tools front end is set
Standby a needs to store video monitoring data, includes the IP address of monitoring frontend a in the storage plan;Store the logic of equipment
Resource 1 is given to monitoring frontend a, IP of the storage equipment in the UUID and monitoring frontend a of local record storage resource 1
The corresponding relationship of address.When the write performance of logical resource 1 occurs abnormal, searching the logical resource 1, (UUID is the logical resource
1 unique identification) corresponding monitoring frontend IP address, the data packet of Ping order building is sent to the IP address.
In addition to this it is possible to storage equipment obtains its IP address when being mounted to storage equipment by monitoring frontend,
And then the IP address of the logical resource and monitoring frontend of giving the monitoring frontend is established into corresponding relationship, it is recorded in this
Ground.
It should be noted that when sending the data packet that Ping order constructs to monitoring frontend, if do not had for the first time
There is the response data packet for receiving monitoring frontend, the number that a Ping order constructs can be sent to the monitoring frontend again
According to packet, if again without back message is received, then it is assumed that monitoring frontend is offline.
Based on same design, the present invention also provides a kind of devices that judgement monitoring frontend is offline.It please join Fig. 3, it should
The logical construction of device includes: performance statistic module, Ping command module, offline judgment module.
The performance statistic module, for carrying out performance statistics to logical resource;
The Ping command module, if the write performance on the logical resource is less than setting threshold within a preset time
Value then sends the data packet of Ping order building to the corresponding monitoring frontend of the logical resource;
The offline judgment module, if the response data packet for not receiving the monitoring frontend, judgement should
Monitoring frontend is offline, otherwise judges that the monitoring frontend is online.
The offline device of the judgement monitoring frontend further include: list item establishes module, which deposits for pre-establishing
Store up the Universally Unique Identifier UUID of resource and the corresponding relationship of monitoring frontend IP address;The Ping command module is to this
The data packet that the corresponding monitoring frontend of logical resource sends Ping order building includes: to inquire the UUID of the logical resource
Corresponding IP address;The data packet that Ping order constructs is sent to the IP address.
The list item establishes that module pre-establishes storage resource UUID and the corresponding relationship of monitoring frontend IP address includes:
After the IP address of the monitoring frontend carried in the storage plan that the management server of acquisition monitoring system issues, distribution is corresponded to
Storage resource give the monitoring frontend, and in the UUID and monitoring frontend IP address for locally recording the storage resource
Corresponding relationship.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.
Claims (8)
1. a kind of method that judgement monitoring frontend is offline, this method are applied to storage equipment, which is characterized in that this method packet
It includes:
Performance statistics are carried out for a certain logical resource;Wherein, it is monitoring frontend point that the logical resource, which is storage equipment,
The storage resource matched;
If the write performance on the logical resource is less than given threshold within a preset time, prison corresponding to the logical resource
Control the data packet that headend equipment sends Ping order building;
If not receiving the response data packet of the monitoring frontend, judges that the monitoring frontend is offline, otherwise sentence
The monitoring frontend that breaks is online.
2. the method as described in claim 1, which is characterized in that the write performance on the logical resource includes bandwidth or per second writes
The number of IO.
3. the method as described in claim 1, which is characterized in that the method also includes:
Pre-establish the Universally Unique Identifier UUID of storage resource and the corresponding relationship of monitoring frontend IP address;
The corresponding monitoring frontend of the described pair of logical resource sends the data packet that Ping order constructs
Inquire the corresponding IP address of UUID of the logical resource;
The data packet that Ping order constructs is sent to the IP address.
4. method as claimed in claim 3, which is characterized in that with pre-establishing storage resource UUID and monitoring frontend IP
The corresponding relationship of location includes:
After the IP address of the monitoring frontend carried in the storage plan that the management server of acquisition monitoring system issues, distribution
Corresponding storage resource gives the monitoring frontend, and with locally recording the UUID and monitoring frontend IP of the storage resource
The corresponding relationship of location.
5. a kind of device that judgement monitoring frontend is offline, the device are applied to storage equipment, which is characterized in that the device packet
It includes:
Performance statistic module, for carrying out performance statistics to logical resource;Wherein, it is monitoring that the logical resource, which is storage equipment,
The storage resource of headend equipment distribution;
Ping command module, it is right if the write performance on the logical resource is less than given threshold within a preset time
The corresponding monitoring frontend of the logical resource sends the data packet of Ping order building;
Offline judgment module, if the response data packet for not receiving the monitoring frontend, before judging the monitoring
End equipment is offline, otherwise judges that the monitoring frontend is online.
6. device as claimed in claim 5, which is characterized in that the write performance on the logical resource includes bandwidth or per second writes
The number of IO.
7. device as claimed in claim 5, which is characterized in that described device further include:
List item establishes module, for pre-establishing the Universally Unique Identifier UUID and monitoring frontend IP address of storage resource
Corresponding relationship;
The Ping command module sends the data packet packet of Ping order building to the corresponding monitoring frontend of the logical resource
It includes:
Inquire the corresponding IP address of UUID of the logical resource;
The data packet that Ping order constructs is sent to the IP address.
8. device as claimed in claim 7, which is characterized in that list item establishes module and pre-establishes storage resource UUID and monitoring
The corresponding relationship of headend equipment IP address includes:
After the IP address of the monitoring frontend carried in the storage plan that the management server of acquisition monitoring system issues, distribution
Corresponding storage resource gives the monitoring frontend, and with locally recording the UUID and monitoring frontend IP of the storage resource
The corresponding relationship of location.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535754.1A CN105072418B (en) | 2015-08-27 | 2015-08-27 | A kind of method and apparatus that judgement monitoring frontend is offline |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535754.1A CN105072418B (en) | 2015-08-27 | 2015-08-27 | A kind of method and apparatus that judgement monitoring frontend is offline |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105072418A CN105072418A (en) | 2015-11-18 |
CN105072418B true CN105072418B (en) | 2019-01-15 |
Family
ID=54501687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510535754.1A Active CN105072418B (en) | 2015-08-27 | 2015-08-27 | A kind of method and apparatus that judgement monitoring frontend is offline |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105072418B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105635271A (en) * | 2015-12-28 | 2016-06-01 | 中国民航信息网络股份有限公司 | Application on-line state monitor method and system |
CN109981806B (en) * | 2017-12-28 | 2022-07-05 | 北京京东尚科信息技术有限公司 | Domain name processing and registering method and system, and computer system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102811344A (en) * | 2011-12-08 | 2012-12-05 | 苏州科达科技有限公司 | Control method and device for improving storage stability in video monitoring system |
CN103312715A (en) * | 2013-06-14 | 2013-09-18 | 西安交通大学 | Web service oriented home network system architecture |
CN103347179A (en) * | 2013-07-17 | 2013-10-09 | 浙江宇视科技有限公司 | Device and method for achieving monitor front-end equipment networking |
CN103731758A (en) * | 2013-12-20 | 2014-04-16 | 北京欧迈特数字技术有限责任公司 | Video stream transmission method and device |
CN104317696A (en) * | 2014-10-27 | 2015-01-28 | 浙江省烟草公司金华市公司 | Information-based equipment and service running state failure alarming system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483547B (en) * | 2009-02-12 | 2011-05-11 | 中国人民解放军信息工程大学 | Evaluation method and system for network burst affair |
-
2015
- 2015-08-27 CN CN201510535754.1A patent/CN105072418B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102811344A (en) * | 2011-12-08 | 2012-12-05 | 苏州科达科技有限公司 | Control method and device for improving storage stability in video monitoring system |
CN103312715A (en) * | 2013-06-14 | 2013-09-18 | 西安交通大学 | Web service oriented home network system architecture |
CN103347179A (en) * | 2013-07-17 | 2013-10-09 | 浙江宇视科技有限公司 | Device and method for achieving monitor front-end equipment networking |
CN103731758A (en) * | 2013-12-20 | 2014-04-16 | 北京欧迈特数字技术有限责任公司 | Video stream transmission method and device |
CN104317696A (en) * | 2014-10-27 | 2015-01-28 | 浙江省烟草公司金华市公司 | Information-based equipment and service running state failure alarming system |
Also Published As
Publication number | Publication date |
---|---|
CN105072418A (en) | 2015-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101123492B (en) | Method and device for detecting scanning attack | |
CN1949774B (en) | Method and apparatus for managing web application program conversation | |
CN103001809A (en) | Service node state monitoring method for cloud storage system | |
CN105429905A (en) | Method, device and system for monitoring advertisement putting terminal | |
CN102811344A (en) | Control method and device for improving storage stability in video monitoring system | |
CN101340567B (en) | Reliability guarantee method of network video monitoring frontend | |
US10862813B2 (en) | Microburst visibility system | |
CN111698127A (en) | System, method and device for monitoring state of equipment in network | |
CN102014012B (en) | Synchronous alarming method and device | |
CN103532943A (en) | Web application firewall device and asynchronous security protection log processing method | |
CN105072418B (en) | A kind of method and apparatus that judgement monitoring frontend is offline | |
CN103973424A (en) | Method and device for removing faults in cache system | |
CN110858813A (en) | Network camera safety detection method and device | |
CN105912422A (en) | Data backup method, backup client and data backup system | |
CN101577646A (en) | Alarm synchronizing method based on SNMP | |
US8862939B2 (en) | Network system and management server | |
CN102006195B (en) | Network management equipment and network management method | |
CN111083176A (en) | Cloud self-adaptive online method and device for monitoring camera | |
CN111787256B (en) | Management method, device, medium and electronic equipment for pre-alarm video | |
CN103634166A (en) | Equipment survival detection method and equipment survival detection device | |
CN102752146A (en) | Cluster topological graph generation method and server | |
CN111064957B (en) | Equipment state monitoring method and device | |
US20140115112A1 (en) | Server system and message processing method thereof | |
CN106230658B (en) | A kind of method and apparatus monitoring the network equipment | |
CN102710643A (en) | Portal server and user keeping alive method thereof |
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 |