CN110868317B - Equipment monitoring method and device, electronic equipment and storage medium - Google Patents

Equipment monitoring method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110868317B
CN110868317B CN201910944748.XA CN201910944748A CN110868317B CN 110868317 B CN110868317 B CN 110868317B CN 201910944748 A CN201910944748 A CN 201910944748A CN 110868317 B CN110868317 B CN 110868317B
Authority
CN
China
Prior art keywords
video networking
video
equipment
management platform
configuring
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
Application number
CN201910944748.XA
Other languages
Chinese (zh)
Other versions
CN110868317A (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201910944748.XA priority Critical patent/CN110868317B/en
Publication of CN110868317A publication Critical patent/CN110868317A/en
Application granted granted Critical
Publication of CN110868317B publication Critical patent/CN110868317B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses

Abstract

The invention provides a device monitoring method and device, electronic equipment and a storage medium. The method comprises the following steps: when the video networking equipment is online, a heartbeat message is packaged based on a video networking SNMP protocol, a field for configuring an IP address is modified into a configuration video networking number, and a field for configuring a port number is modified into a configuration video networking sub-number; the video networking equipment sends the heartbeat message to the monitoring management platform through a video networking server based on a video networking transparent transmission protocol; the heartbeat message is used as a basis for the monitoring management platform to monitor the state of the video network equipment. On one hand, the monitoring management platform can timely acquire the state of the equipment, timely update the equipment information recorded by the monitoring management platform, and ensure the accuracy of the equipment information; on the other hand, the monitoring of the monitoring management platform on the video networking equipment can be more simply and conveniently realized.

Description

Equipment monitoring method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of video networking technologies, and in particular, to a device monitoring method and apparatus, an electronic device, and a storage medium.
Background
The video networking is an important milestone for network development, is a real-time network, can realize high-definition video real-time transmission, and pushes a plurality of internet applications to high-definition video, and high-definition faces each other. The video networking adopts a real-time high-definition video exchange technology, can integrate required services such as dozens of services of video, voice, pictures, characters, communication, data and the like, such as high-definition video conference, video monitoring, intelligent monitoring analysis, emergency command, digital broadcast television, delayed television, network teaching, live broadcast, on-demand broadcast, television mail, personalized recording, intranet (self-office) channels, intelligent video broadcast control, information distribution and the like, on a system platform, and realizes high-definition quality video broadcast through a television or a computer.
There may be many devices in the video network, such as routers, hubs, etc. The network devices can be managed through a unified management platform, and the states of the devices are recorded so as to be inquired by a user. However, the status of these network devices may change, such as going from online to offline, going from offline to online, and so on.
In view of the above situation, it is common today in video networking for a management platform to periodically query the status of devices. However, the method cannot find the state change condition of the device in time, and the real-time performance is poor, so that the device information of the management platform is inaccurate, and the processing process is complex.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a device monitoring method, apparatus, electronic device and storage medium that overcome or at least partially solve the above problems.
In a first aspect, an embodiment of the present invention discloses an apparatus monitoring method, which configures a monitoring management platform, where the monitoring management platform is used to monitor a plurality of video networking apparatuses; the method comprises the following steps:
when the video networking equipment is online, a heartbeat message is packaged based on a video networking SNMP protocol, a field for configuring an IP address is modified into a configuration video networking number, and a field for configuring a port number is modified into a configuration video networking sub-number;
the video networking equipment sends the heartbeat message to the monitoring management platform through a video networking server based on a video networking transparent transmission protocol;
the heartbeat message is used as a basis for the monitoring management platform to monitor the state of the video networking equipment.
Optionally, the step of encapsulating a heartbeat message based on the video networking SNMP protocol, modifying a field for configuring an IP address to a configured video networking number, and modifying a field for configuring a port number to a configured video networking sub-number, includes: acquiring the information of the video networking equipment from a private information management library of the SNMP agent through the pre-installed SNMP agent; through the SNMP agent encapsulates the information of the video networking equipment based on a video networking SNMP protocol, a field for configuring a source IP address is modified into configuration of a video networking number of the video networking equipment, a field for configuring a destination IP address is modified into configuration of a video networking number of the monitoring management platform, a field for configuring a source port number is modified into configuration of a video networking sub-number of the video networking equipment, a field for configuring a destination port number is modified into configuration of a video networking sub-number of the monitoring management platform, and the heartbeat message is obtained.
In a second aspect, an embodiment of the present invention discloses an apparatus monitoring method, which configures a monitoring management platform, where the monitoring management platform is used to monitor a plurality of video networking apparatuses; the method comprises the following steps:
the monitoring management platform receives a heartbeat message sent by a video networking server based on a video networking transparent transmission protocol when the video networking equipment monitored by the monitoring management platform is online; the heartbeat message is packaged based on an SNMP (simple network management protocol), the SNMP modifies a field for configuring an IP (Internet protocol) address into a configured SNMP number and modifies a field for configuring a port number into a configured SNMP subnumber;
after receiving the heartbeat message sent by the video network equipment, the monitoring management platform performs protocol conversion on the heartbeat message, analyzes the heartbeat message and records the state of the video network equipment as online;
and after the monitoring management platform does not receive the heartbeat message sent by the video networking equipment for the continuously set times, recording the state of the video networking equipment as an off-line state.
Optionally, before the step of performing protocol conversion on the heartbeat message, analyzing the heartbeat message, and recording the state of the video networking device as online, the method further includes: storing the heartbeat messages into a preset message queue, and recording the storing time; the step of performing protocol conversion on the heartbeat message, analyzing the heartbeat message, and recording the state of the video networking equipment as online comprises the following steps: and according to the sequence of the storage time, sequentially extracting heartbeat messages from the message queue, carrying out protocol conversion on the extracted heartbeat messages, analyzing the extracted heartbeat messages, and recording the state of the video network equipment corresponding to the extracted heartbeat messages as online.
In a third aspect, an embodiment of the present invention discloses an apparatus monitoring apparatus, which is configured with a monitoring management platform, wherein the monitoring management platform is used for monitoring a plurality of video network apparatuses, and the apparatus is applied to the video network apparatuses; the device comprises:
the encapsulation module is used for encapsulating the heartbeat message based on an SNMP (simple network management protocol) of the video network when the heartbeat message is online, modifying a field for configuring an IP (Internet protocol) address into a configuration video network number, and modifying a field for configuring a port number into a configuration video network sub-number;
the sending module is used for sending the heartbeat message to the monitoring management platform through a video network server based on a video network transparent transmission protocol;
the heartbeat message is used as a basis for the monitoring management platform to monitor the state of the video network equipment.
Optionally, the encapsulation module includes: the information acquisition unit is used for acquiring the information of the video networking equipment from a private information management library of the information acquisition unit through a pre-installed SNMP agent; and the information packaging unit is used for packaging the information of the video network equipment based on a video network SNMP protocol through the SNMP agent, modifying a field for configuring a source IP address into configuration of a video network number of the video network equipment, modifying a field for configuring a destination IP address into configuration of the video network number of the monitoring management platform, modifying a field for configuring a source port number into configuration of a video network sub-number of the video network equipment, and modifying a field for configuring a destination port number into configuration of the video network sub-number of the monitoring management platform to obtain the heartbeat message.
In a fourth aspect, an embodiment of the present invention discloses an apparatus monitoring device, which is configured with a monitoring management platform, where the monitoring management platform is used to monitor a plurality of pieces of video networking equipment, and the apparatus is applied to the monitoring management platform; the device comprises:
the receiving module is used for receiving heartbeat messages sent by the video network server based on the video network transparent transmission protocol when the video network equipment monitored by the receiving module is online; the heartbeat message is packaged based on an SNMP (simple network management protocol), the SNMP modifies a field for configuring an IP (Internet protocol) address into a configured SNMP number and modifies a field for configuring a port number into a configured SNMP subnumber;
the first processing module is used for carrying out protocol conversion on the heartbeat message after receiving the heartbeat message sent by the video networking equipment, analyzing the heartbeat message and recording the state of the video networking equipment as online;
and the second processing module is used for recording the state of the video network equipment as off-line after the heartbeat message sent by the video network equipment is not received for the continuous set times.
Optionally, the apparatus further comprises: the cache module is used for storing the heartbeat message into a preset message queue and recording the storage time before the first processing module carries out protocol conversion on the heartbeat message, analyzes the heartbeat message, and records the state of the video networking equipment as online; the first processing module is specifically configured to sequentially extract heartbeat messages from the message queue according to a sequence of storage time, perform protocol conversion on the extracted heartbeat messages, analyze the extracted heartbeat messages, and record that a state of the video network device corresponding to the extracted heartbeat messages is online.
In a fifth aspect, an embodiment of the present invention discloses an electronic device, including: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the processors to perform a device monitoring method as performed by any of the above described video networking devices.
In a sixth aspect, an embodiment of the present invention discloses an electronic device, including: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the processors to perform a device monitoring method as performed by the monitoring management platform of any of the above.
In a seventh aspect, an embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program for causing a processor to execute the device monitoring method performed by the video networking device according to any one of the above.
In an eighth aspect, an embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program for causing a processor to execute the device monitoring method performed by the monitoring management platform as described in any one of the above.
In the embodiment of the invention, a plurality of video Network devices are monitored through a monitoring Management platform, when the video Network devices are online, heartbeat messages are packaged based on a Simple Network Management Protocol (SNMP), a field for configuring an Internet Protocol (IP) address is modified into a configuration video Network number, and a field for configuring a port number is modified into a configuration video Network subnumber; the video networking equipment sends the heartbeat message to the monitoring management platform through a video networking server based on a video networking transparent transmission protocol; the monitoring management platform can monitor the state of the video networking equipment according to the heartbeat message sent by the video networking equipment. Therefore, on one hand, in the embodiment of the invention, the monitoring management platform can timely acquire the state of the equipment and timely update the equipment information recorded by the monitoring management platform in a manner of sending the heartbeat message to the monitoring management platform by the video networking equipment, so that the accuracy of the equipment information is ensured; on the other hand, the video networking equipment sends heartbeat messages to the monitoring management platform based on a video networking SNMP protocol, the video networking SNMP protocol is obtained by modifying an SNMP protocol in the Internet, and the processing process of the SNMP protocol is simpler and more convenient, so that the monitoring of the video networking equipment by the monitoring management platform can be more simply and conveniently realized.
Drawings
Fig. 1 is a schematic diagram of device interaction according to a first embodiment of the present invention.
Fig. 2 is a flowchart illustrating steps of a device monitoring method according to a first embodiment of the present invention.
Fig. 3 is a schematic diagram of device interaction according to a second embodiment of the present invention.
Fig. 4 is a flowchart illustrating steps of a device monitoring method according to a second embodiment of the present invention.
Fig. 5 is a block diagram of a device monitoring apparatus according to a third embodiment of the present invention.
Fig. 6 is a block diagram of a device monitoring apparatus according to a fourth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof.
The invention monitors the video networking equipment through the monitoring management platform, and the video networking equipment is convenient for the monitoring management platform to know the state of the video networking equipment in time by periodically sending heartbeat messages to the monitoring management platform. The SNMP protocol is modified to adapt to the video networking environment, and the video networking equipment can send heartbeat messages based on the SNMP protocol, so that the processing process is simpler and more convenient.
Example one
Referring to fig. 1, a schematic diagram of device interaction according to a first embodiment of the present invention is shown.
As shown in FIG. 1, the video network equipment sends information to the video network server, and the video network server sends information to the monitoring management platform. The video network server is used as a bridge for forwarding data between the monitoring management platform and the video network equipment. The video network devices are multiple, and one monitoring management platform can monitor the multiple video network devices.
Referring to fig. 2, a flowchart illustrating steps of a device monitoring method according to a first embodiment of the present invention is shown. The first embodiment of the present invention is described in terms of a processing procedure at the video networking device side.
The equipment monitoring method of the embodiment of the invention can comprise the following steps:
step 201, when the video network device is on line, based on the SNMP protocol, the heartbeat message is packaged, the field for configuring the IP address is modified to configure the video network number, and the field for configuring the port number is modified to configure the video network sub-number.
In the embodiment of the present invention, the video networking device may be various devices such as a routing device, a line concentration device, a monitoring device, a video networking terminal, and the like.
When the state of the video networking equipment is on-line, the video networking equipment can regularly package heartbeat messages and send the heartbeat messages to the corresponding monitoring management platform. For the time interval of sending the heartbeat message, a person skilled in the art may set any applicable data according to practical experience, and the embodiment of the present invention is not limited thereto.
In the embodiment of the invention, the original SNMP protocol in the Internet is referred for the convenience of processing. The SNMP protocol enables a network administrator to manage network performance, discover and solve network problems and plan network growth, and receive random messages (and event reports) via SNMP the network management system learns of network problems. However, because the heartbeat message is transmitted in the video network, the video network device cannot directly use the SNMP protocol, and the SNMP protocol is modified to the SNMP protocol adapted to the video network environment.
In video networking, devices communicate through a video networking number (emulating an IP address in the internet) and a video networking sub-number (emulating a port in the internet). Wherein, the video network number and the video network subnumber can be obtained after registering in the video network. Therefore, in the implementation, compared with the original SNMP protocol in the Internet, the SNMP protocol modifies the field used for configuring the IP address in the original SNMP protocol into the configuration video networking number and modifies the field used for configuring the port number into the configuration video networking sub-number. And after the monitoring management platform and the video networking equipment define the modified video networking SNMP protocol, the video networking equipment encapsulates the heartbeat message based on the video networking SNMP protocol.
In an optional embodiment, encapsulating the heartbeat message based on the internet of things SNMP protocol, modifying a field for configuring an IP address to a configured internet of things number, and modifying a field for configuring a port number to a configured internet of things sub-number may include steps A1 to A2:
step A1, the video network equipment acquires the information of the video network equipment from a private information management library of the video network equipment through a pre-installed SNMP agent.
An SNMP managed network consists of three key components: a Network Management System (NMS), a managed device, and an agent. The network management system runs an application with which to monitor and control the managed devices. The managed device is a network node that contains an SNMP agent that resides in the managed network, collects and stores Management Information via a Management Information Base (MIB) and enables the network Management system to retrieve this Information via the SNMP agent. An agent is a network management software module that resides in the managed device and controls the management information of the local machine, which is delivered in a format compatible with SNMP. The SNMP management center has a kind of SNMP trap, which is an entry that is reached to cause an SNMP managed device to actively notify the SNMP network management system instead of waiting for polling of the SNMP network management system.
Therefore, in the embodiment of the present invention, an SNMP agent (agent) is installed in advance in the video networking device, and the video networking device further has its own private information management library, and the information management library stores device information of the video networking device. The device information may include, among other things, the video networking number, video networking sub-number, name, type, version number, etc. of the video networking device. When the video network equipment needs to send heartbeat messages, the video network equipment starts a trapd (trap) service, and the information of the video network equipment is acquired from a private information management library of the video network equipment through an SNMP (simple network management protocol) agent installed on the video network equipment.
Step A2, the video network equipment encapsulates the information of the video network equipment through the SNMP agent based on a video network SNMP protocol, a field for configuring a source IP address is modified into a video network number for configuring the video network equipment, a field for configuring a destination IP address is modified into a video network number for configuring the monitoring management platform, a field for configuring a source port number is modified into a video network sub-number for configuring the video network equipment, a field for configuring a destination port number is modified into a video network sub-number for configuring the monitoring management platform, and the heartbeat message is obtained.
Step 202, the video networking equipment sends the heartbeat message to the monitoring management platform through a video networking server based on a video networking transparent transmission protocol.
The video networking equipment and the monitoring management platform can communicate based on a video networking transparent transmission protocol. The video network equipment and the monitoring management platform transmit information to the video network server based on the first video network protocol, and the video network server transmits information to the video network equipment and the monitoring management platform based on the second video network protocol. The first video networking protocol and the second video networking protocol form a video networking transparent transmission protocol.
If the video networking device and the monitoring management platform need to communicate based on a video networking transparent transmission protocol, the video networking device and the monitoring management platform need to exchange respective video networking MAC (Media Access Control) addresses. Wherein the view network MAC address is available after registration in the view network. In the process of exchanging the view network MAC address, the view network MAC address is forwarded through the view network server. Therefore, the video network equipment transmits the video network MAC address of the video network equipment to the video network server based on the first video network protocol, and the video network server forwards the video network MAC address of the video network equipment to the monitoring management platform based on the second video network protocol. The monitoring management platform transmits the own video networking MAC address to the video networking server based on the first video networking protocol, and the video networking server forwards the video networking MAC address of the monitoring management platform to the video networking equipment based on the second video networking protocol.
When the video network device encapsulates the heartbeat message, the video network MAC address (source MAC address) of the video network device and the MAC address (destination MAC address) of the monitoring management platform are also added to the heartbeat message. The video networking equipment sends the heartbeat message to the video networking server based on the first video networking protocol, the video networking server can determine the monitoring management platform according to the destination MAC address, and then the video networking server sends the heartbeat message to the monitoring management platform based on the second video networking protocol.
The monitoring management platform can monitor the state of the video networking equipment according to the heartbeat message sent by the video networking equipment. The process for monitoring the management platform will be described in the second embodiment below.
Example two
Referring to fig. 3, a schematic diagram of device interaction in a second embodiment of the present invention is shown.
As shown in fig. 3, the video network device sends information to the video network server, and the video network server sends information to the monitoring management platform. The monitoring management platform may specifically include a JNI (Java Native Interface) -SDK (Software Development Kit) transparent transmission module, an analysis module, and a heartbeat monitoring module.
Referring to fig. 4, a flowchart illustrating steps of a device monitoring method according to a second embodiment of the present invention is shown. The second embodiment of the present invention is described from the processing procedure of the video networking device side.
The equipment monitoring method of the embodiment of the invention can comprise the following steps:
step 401, the monitoring management platform receives a heartbeat message sent by the video networking server based on the video networking transparent transmission protocol when the video networking device monitored by the monitoring management platform is online.
In the embodiment of the present invention, the heartbeat message is a heartbeat message sent by the video networking device according to the method in the first embodiment.
In the implementation, the monitoring management platform receives the heartbeat message sent by the video networking equipment through the JNI-SDK transparent transmission module.
Step 402, after receiving the heartbeat message sent by the video network device, the monitoring management platform performs protocol conversion on the heartbeat message, analyzes the heartbeat message, and records that the state of the video network device is online.
Since the heartbeat message is a message processed at the application layer of the Web (Web page) side of the monitoring management platform, the Web side processes information based on the internet protocol. Therefore, the JNI-SDK transparent transmission module receives the heartbeat messages sent by the video networking equipment, carries out protocol conversion on the heartbeat messages and converts the heartbeat messages into messages which can be identified by a Web end of the monitoring management platform.
In one implementation mode, the information of the video networking device in the heartbeat message sent by the video networking device is hexadecimal, and in the conversion process, the JNI-SDK transparent transmission module decapsulates the heartbeat message, removes the relevant part of the video networking protocol in the heartbeat message, and converts the information of the video networking device from the hexadecimal into the binary.
After the JNI-SDK transparent transmission module carries out protocol conversion on the heartbeat messages, the heartbeat messages are sent to the analysis module, the analysis module analyzes the heartbeat messages, and information of the video networking equipment is extracted from the heartbeat messages.
The analysis module sends the extracted information of the video networking equipment to the heartbeat monitoring module, and the heartbeat monitoring module can determine which video networking equipment sends the heartbeat message according to the information of the video networking equipment, so that the state of the video networking equipment sending the heartbeat message is recorded as online.
In an optional implementation manner, in consideration of a large number of video networking devices, the number of heartbeat messages received by the monitoring management platform is also large, and in order to avoid loss of the heartbeat messages due to excessive heartbeat messages, the heartbeat messages may be buffered in a message queue manner. Therefore, after receiving the heartbeat message and before performing protocol conversion on the heartbeat message, the monitoring management platform stores the heartbeat message into a preset message queue and records the storage time. For example, a Message Queue of a type such as a rabbitmq (Message Queue) may be used, where the rabbitmq is open source Message agent software (also called Message oriented middleware) that implements Advanced Message Queuing Protocol (AMQP).
Correspondingly, the step of performing protocol conversion on the heartbeat message, analyzing the heartbeat message, and recording the state of the video networking device as online may include: and according to the sequence of the storage time, sequentially extracting heartbeat messages from the message queue, carrying out protocol conversion on the extracted heartbeat messages, analyzing the extracted heartbeat messages, and recording the state of the video network equipment corresponding to the extracted heartbeat messages as online.
Step 403, after the monitoring management platform does not receive the heartbeat message sent by the video networking device for the continuously set number of times, recording the state of the video networking device as offline.
The video network equipment sends heartbeat messages to the monitoring management platform periodically, if the monitoring management platform does not receive the heartbeat messages sent by certain video network equipment for a continuously set number of times, the video network equipment can be considered to be offline, and therefore the state of the video network equipment is recorded to be offline.
For the specific value of the set number, a person skilled in the art may select any suitable value according to practical experience, and the embodiment of the present invention is not limited thereto. For example, the set number of times may be 2, 3, 4, etc.
The execution order of step 402 and step 403 is not limited by the embodiments of the present invention.
It should be noted that, when the monitoring management platform records the state of the video networking device, the monitoring management platform may also record information such as a video networking number and a video networking sub-number of the video networking device. The user can select the video network equipment to be inquired through the Web end, the state of the video network equipment to be inquired is inquired from the monitoring management platform, information such as a video network number and a video network sub-number of the video network equipment can be obtained during inquiry, and subsequent users can dial the video network equipment according to the information.
On one hand, in the embodiment of the invention, the monitoring management platform can timely acquire the state of the equipment and timely update the equipment information recorded by the monitoring management platform in a mode of sending the heartbeat message to the monitoring management platform by the video networking equipment, so that the accuracy of the equipment information is ensured; on the other hand, the video networking equipment sends heartbeat messages to the monitoring management platform based on a video networking SNMP protocol, the video networking SNMP protocol is obtained by modifying an SNMP protocol in the Internet, and the processing process of the SNMP protocol is simpler and more convenient, so that the monitoring of the video networking equipment by the monitoring management platform can be more simply and conveniently realized.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
EXAMPLE III
Referring to fig. 5, a block diagram of a device monitoring apparatus according to a third embodiment of the present invention is shown. The device of the third embodiment of the invention is applied to video networking equipment.
The device monitoring apparatus of the embodiment of the present invention may include the following modules:
an encapsulation module 501, configured to encapsulate a heartbeat message based on an SNMP protocol of a video network, modify a field for configuring an IP address into a configured video network number, and modify a field for configuring a port number into a configured video network sub-number when the heartbeat message is online;
a sending module 502, configured to send the heartbeat message to the monitoring management platform via a video networking server based on a video networking transparent transmission protocol;
the heartbeat message is used as a basis for the monitoring management platform to monitor the state of the video networking equipment.
Optionally, the encapsulation module 501 includes: the information acquisition unit is used for acquiring the information of the video networking equipment from a private information management library of the information acquisition unit through a pre-installed SNMP agent; and the information packaging unit is used for packaging the information of the video network equipment based on a video network SNMP protocol through the SNMP agent, modifying a field for configuring a source IP address into configuration of a video network number of the video network equipment, modifying a field for configuring a destination IP address into configuration of the video network number of the monitoring management platform, modifying a field for configuring a source port number into configuration of a video network sub-number of the video network equipment, and modifying a field for configuring a destination port number into configuration of the video network sub-number of the monitoring management platform to obtain the heartbeat message.
Example four
Referring to fig. 6, a block diagram of a device monitoring apparatus according to a fourth embodiment of the present invention is shown. The device of the third embodiment of the invention is applied to a monitoring management platform.
The device monitoring apparatus of the embodiment of the present invention may include the following modules:
the receiving module 601 is configured to receive a heartbeat message sent by a video networking server based on a video networking transparent transmission protocol when a video networking device monitored by the receiving module is online; the heartbeat message is packaged based on an SNMP (simple network management protocol), the SNMP modifies a field for configuring an IP (Internet protocol) address into a configured SNMP number and modifies a field for configuring a port number into a configured SNMP subnumber;
the first processing module 602 is configured to, after receiving a heartbeat message sent by the video networking device, perform protocol conversion on the heartbeat message, analyze the heartbeat message, and record that the state of the video networking device is online;
the second processing module 603 is configured to record that the state of the video networking device is offline after the heartbeat message sent by the video networking device is not received for the continuously set number of times.
Optionally, the apparatus further comprises: the cache module is used for storing the heartbeat message into a preset message queue and recording the storing time before the first processing module carries out protocol conversion on the heartbeat message, analyzes the heartbeat message, and records the state of the video networking equipment as online; the first processing module is specifically configured to sequentially extract heartbeat messages from the message queue according to the sequence of the storage time, perform protocol conversion on the extracted heartbeat messages, analyze the extracted heartbeat messages, and record that the state of the video networking device corresponding to the extracted heartbeat messages is online.
On one hand, in the embodiment of the invention, the monitoring management platform can timely acquire the state of the equipment and timely update the equipment information recorded by the monitoring management platform in a mode of sending the heartbeat message to the monitoring management platform by the video networking equipment, so that the accuracy of the equipment information is ensured; on the other hand, the video networking equipment sends heartbeat messages to the monitoring management platform based on the video networking SNMP protocol, the video networking SNMP protocol is obtained by modifying the SNMP protocol in the Internet, and the processing process of the SNMP protocol is simpler and more convenient, so that the monitoring of the video networking equipment by the monitoring management platform can be more simply and conveniently realized.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
In an embodiment of the invention, an electronic device is also provided. The electronic device may include one or more processors and one or more machine-readable media having instructions, such as an application program, stored thereon. When executed by the one or more processors, cause the apparatus to perform the device monitoring method described above.
In an embodiment of the invention, there is also provided a non-transitory computer-readable storage medium, such as a memory, including instructions executable by a processor of an electronic device to perform the above-described device monitoring method. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
The embodiments in the present specification are all described in a progressive manner, and each embodiment focuses on differences from other embodiments, and portions that are the same and similar between the embodiments may be referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The above detailed description is provided for the device monitoring method, apparatus, electronic device and storage medium provided by the present invention, and a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. The equipment monitoring method is characterized in that a monitoring management platform is configured, and the monitoring management platform is used for monitoring a plurality of video network equipment; the method comprises the following steps:
when the video networking equipment is online, a heartbeat message is packaged based on a video networking SNMP protocol, a field for configuring an IP address is modified into a configuration video networking number, and a field for configuring a port number is modified into a configuration video networking sub-number;
the video networking equipment transmits the heartbeat message to the monitoring management platform through a video networking server based on a video networking transparent transmission protocol;
the heartbeat message is used as a basis for the monitoring management platform to monitor the state of the video network equipment;
the step of encapsulating the heartbeat message based on the SNMP protocol of the video network, modifying a field for configuring an IP address into a video network number and modifying a field for configuring a port number into a video network subnumber comprises the following steps:
acquiring the information of the video networking equipment from a private information management library of the SNMP agent through the pre-installed SNMP agent;
through the SNMP agent encapsulates the information of the video networking equipment based on a video networking SNMP protocol, a field for configuring a source IP address is modified into configuration of a video networking number of the video networking equipment, a field for configuring a destination IP address is modified into configuration of a video networking number of the monitoring management platform, a field for configuring a source port number is modified into configuration of a video networking sub-number of the video networking equipment, a field for configuring a destination port number is modified into configuration of a video networking sub-number of the monitoring management platform, and the heartbeat message is obtained.
2. The equipment monitoring method is characterized in that a monitoring management platform is configured, and the monitoring management platform is used for monitoring a plurality of video networking equipment; the method comprises the following steps:
the monitoring management platform receives heartbeat messages sent by a video network server based on a video network transparent transmission protocol when video network equipment monitored by the monitoring management platform is online; the heartbeat message is packaged based on an SNMP (simple network management protocol), the SNMP modifies a field for configuring an IP (Internet protocol) address into a configured SNMP number and modifies a field for configuring a port number into a configured SNMP subnumber; the video networking equipment is used for acquiring the information of the video networking equipment from a private information management library of the video networking equipment through a pre-installed SNMP agent; the SNMP agent encapsulates the information of the video networking equipment based on a video networking SNMP protocol, a field for configuring a source IP address is modified to configure the video networking number of the video networking equipment, a field for configuring a destination IP address is modified to configure the video networking number of the monitoring management platform, a field for configuring a source port number is modified to configure the video networking sub-number of the video networking equipment, and a field for configuring a destination port number is modified to configure the video networking sub-number of the monitoring management platform;
after receiving the heartbeat message sent by the video networking equipment, the monitoring management platform performs protocol conversion on the heartbeat message, analyzes the heartbeat message and records that the state of the video networking equipment is online;
and after the monitoring management platform does not receive the heartbeat message sent by the video networking equipment for the continuously set times, recording the state of the video networking equipment as an off-line state.
3. The method of claim 2,
before the steps of performing protocol conversion on the heartbeat message, analyzing the heartbeat message, and recording the state of the video networking device as online, the method further comprises:
storing the heartbeat messages into a preset message queue, and recording the storing time;
the step of performing protocol conversion on the heartbeat message, analyzing the heartbeat message, and recording the state of the video networking equipment as online comprises the following steps:
and according to the sequence of the storage time, sequentially extracting heartbeat messages from the message queue, carrying out protocol conversion on the extracted heartbeat messages, analyzing the extracted heartbeat messages, and recording the state of the video network equipment corresponding to the extracted heartbeat messages as online.
4. An equipment monitoring device is characterized in that a monitoring management platform is configured, the monitoring management platform is used for monitoring a plurality of video network equipment, and the device is applied to the video network equipment; the device comprises:
the encapsulation module is used for encapsulating the heartbeat message based on an SNMP (simple network management protocol) of the video network when the heartbeat message is online, modifying a field for configuring an IP (Internet protocol) address into a configuration video network number, and modifying a field for configuring a port number into a configuration video network sub-number;
the sending module is used for sending the heartbeat message to the monitoring management platform through a video network server based on a video network transparent transmission protocol;
the heartbeat message is used as a basis for the monitoring management platform to monitor the state of the video networking equipment;
the package module includes:
the information acquisition unit is used for acquiring the information of the video networking equipment from a private information management library of the information acquisition unit through a pre-installed SNMP agent;
and the information packaging unit is used for packaging the information of the video network equipment based on a video network SNMP protocol through the SNMP agent, modifying a field for configuring a source IP address into configuration of a video network number of the video network equipment, modifying a field for configuring a destination IP address into configuration of the video network number of the monitoring management platform, modifying a field for configuring a source port number into configuration of a video network sub-number of the video network equipment, and modifying a field for configuring a destination port number into configuration of the video network sub-number of the monitoring management platform to obtain the heartbeat message.
5. The device monitoring device is characterized in that a monitoring management platform is configured, the monitoring management platform is used for monitoring a plurality of video networking devices, and the device is applied to the monitoring management platform; the device comprises:
the receiving module is used for receiving heartbeat messages sent by the video networking server based on the video networking transparent transmission protocol when the video networking equipment monitored by the receiving module is online; the heartbeat message is packaged based on an SNMP (simple network management protocol), the SNMP modifies a field for configuring an IP (Internet protocol) address into a configured video network number and modifies a field for configuring a port number into a configured video network subnumber; the video networking equipment is used for acquiring the information of the video networking equipment from a private information management library of the video networking equipment through a pre-installed SNMP agent; the SNMP agent encapsulates the information of the video networking equipment based on a video networking SNMP protocol, a field for configuring a source IP address is modified to configure the video networking number of the video networking equipment, a field for configuring a destination IP address is modified to configure the video networking number of the monitoring management platform, a field for configuring a source port number is modified to configure the video networking sub-number of the video networking equipment, and a field for configuring a destination port number is modified to configure the video networking sub-number of the monitoring management platform;
the first processing module is used for carrying out protocol conversion on the heartbeat message after receiving the heartbeat message sent by the video networking equipment, analyzing the heartbeat message and recording the state of the video networking equipment as online;
and the second processing module is used for recording the state of the video network equipment as off-line after the heartbeat message sent by the video network equipment is not received for the continuous set times.
6. The apparatus of claim 5, further comprising:
the cache module is used for storing the heartbeat message into a preset message queue and recording the storing time before the first processing module carries out protocol conversion on the heartbeat message, analyzes the heartbeat message, and records the state of the video networking equipment as online;
the first processing module is specifically configured to sequentially extract heartbeat messages from the message queue according to the sequence of the storage time, perform protocol conversion on the extracted heartbeat messages, analyze the extracted heartbeat messages, and record that the state of the video networking device corresponding to the extracted heartbeat messages is online.
7. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the processors to perform the device monitoring method of claim 1.
8. An electronic device, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the processors to perform the device monitoring method of any of claims 2 to 3.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the device monitoring method according to claim 1.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a device monitoring method according to any one of claims 2 to 3.
CN201910944748.XA 2019-09-30 2019-09-30 Equipment monitoring method and device, electronic equipment and storage medium Active CN110868317B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910944748.XA CN110868317B (en) 2019-09-30 2019-09-30 Equipment monitoring method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910944748.XA CN110868317B (en) 2019-09-30 2019-09-30 Equipment monitoring method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110868317A CN110868317A (en) 2020-03-06
CN110868317B true CN110868317B (en) 2023-04-07

Family

ID=69652103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910944748.XA Active CN110868317B (en) 2019-09-30 2019-09-30 Equipment monitoring method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110868317B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506358A (en) * 2014-12-19 2015-04-08 上海斐讯数据通信技术有限公司 SNMP (simple network management protocol) based network management system and network management method
CN109167962A (en) * 2018-09-26 2019-01-08 视联动力信息技术股份有限公司 It is a kind of to turn server depending on networked resources method for releasing and monitoring association
CN109525460A (en) * 2018-11-26 2019-03-26 视联动力信息技术股份有限公司 A kind of method and apparatus of view networking number resource monitoring
CN109698818A (en) * 2018-11-13 2019-04-30 视联动力信息技术股份有限公司 A kind of acquisition online user and the method and apparatus across streaming media communication
CN109756705A (en) * 2018-12-14 2019-05-14 视联动力信息技术股份有限公司 A kind of method that terminal alerts offline and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9747183B2 (en) * 2013-12-31 2017-08-29 Ciena Corporation Method and system for intelligent distributed health monitoring in switching system equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104506358A (en) * 2014-12-19 2015-04-08 上海斐讯数据通信技术有限公司 SNMP (simple network management protocol) based network management system and network management method
CN109167962A (en) * 2018-09-26 2019-01-08 视联动力信息技术股份有限公司 It is a kind of to turn server depending on networked resources method for releasing and monitoring association
CN109698818A (en) * 2018-11-13 2019-04-30 视联动力信息技术股份有限公司 A kind of acquisition online user and the method and apparatus across streaming media communication
CN109525460A (en) * 2018-11-26 2019-03-26 视联动力信息技术股份有限公司 A kind of method and apparatus of view networking number resource monitoring
CN109756705A (en) * 2018-12-14 2019-05-14 视联动力信息技术股份有限公司 A kind of method that terminal alerts offline and device

Also Published As

Publication number Publication date
CN110868317A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
CN110247784B (en) Method and device for determining network topology structure
US11218382B2 (en) Quality of service monitoring method, device, and system
US11497077B2 (en) Method and apparatus for port management of ethernet bridges
CN108965912B (en) A kind of method, client and the server of video data processing
CN102164078B (en) Policy routing method, device and system
CN108964962B (en) Method and system for controlling video network terminal
CN108141387B (en) Length control for packet header samples
CN110809026B (en) File processing method and device, electronic equipment and storage medium
CN108965223A (en) It is a kind of based on view networking web page processing method, proxy server and view networked terminals
CN109379209B (en) Method and device for upgrading storage service of video network
CN110740355A (en) Equipment monitoring method and device, electronic equipment and storage medium
JP6169662B2 (en) API conversion adapter, API conversion system, and API conversion program
CN108696398B (en) Communication loopback fault detection method and device in a kind of communication network
CN110868317B (en) Equipment monitoring method and device, electronic equipment and storage medium
CN102780584B (en) Method and device for quickly accessing network management system of Ethernet equipment
CN114422160A (en) Method and device for setting virtual firewall, electronic equipment and storage medium
CN109857419B (en) Method and device for automatically upgrading scheduling system
EP3002910B1 (en) Connecting computer management systems via cellular digital telecommunication networks
CN108574637B (en) Address self-learning method and device and switch
CN110753071B (en) Information acquisition method and device
CN105577433A (en) ACS cluster management method, apparatus and system
US10313254B1 (en) Network management interface for a network element with network-wide information
CN109859826A (en) A kind of pathological image loading method and device
CN117014636B (en) Data stream scheduling method of audio and video network, storage medium and electronic device
CN114024895B (en) TR 069-based network route optimization method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant