CN111314099B - Network resource monitoring method, device, equipment and medium - Google Patents

Network resource monitoring method, device, equipment and medium Download PDF

Info

Publication number
CN111314099B
CN111314099B CN201811510421.3A CN201811510421A CN111314099B CN 111314099 B CN111314099 B CN 111314099B CN 201811510421 A CN201811510421 A CN 201811510421A CN 111314099 B CN111314099 B CN 111314099B
Authority
CN
China
Prior art keywords
agent
server
target
adjacent
deployed
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
CN201811510421.3A
Other languages
Chinese (zh)
Other versions
CN111314099A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing 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 China Mobile Communications Group Co Ltd, China Mobile Group Chongqing Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811510421.3A priority Critical patent/CN111314099B/en
Publication of CN111314099A publication Critical patent/CN111314099A/en
Application granted granted Critical
Publication of CN111314099B publication Critical patent/CN111314099B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • 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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a network resource monitoring method, a device, equipment and a medium. The method comprises the following steps: the method comprises the steps of pre-starting a target Agent, and positioning adjacent network elements of a target server deployed by the Agent; if the adjacent network element is a server, the target Agent performs self-replication; the target Agent transfers the copy Agent to the adjacent server of the target server, and starts the copy Agent; and aiming at the started copy Agent, executing the adjacent network element of the target server deployed by the network element until all the servers in the monitored network deploy the target Agent so as to realize the monitoring of the monitored network. According to the network resource monitoring method, device, equipment and medium provided by the embodiment of the invention, the automation of network resources is realized.

Description

Network resource monitoring method, device, equipment and medium
Technical Field
The present invention relates to the field of data traffic, and in particular, to a method, an apparatus, a device, and a medium for monitoring network resources.
Background
The existing network resource monitoring basically consists of two parts, namely a monitoring server (server) and a component Agent (Agent). servers may provide monitoring of remote server/network status, data collection, etc. by simple network management protocol (Simple Network Management Protocol, SNMP), agents, network diagnostic tools (Packet Internet Groper, ping), port monitoring, etc. It can be run on computer operating systems such as Linux, solaris, HP-UX, AIX, free BSD, open BSD, OSX, etc.
The Agent needs to be installed on the monitored target server, and mainly collects hardware information or information about an operating system, such as a memory, a central processing unit (Central Processing Unit, CPU) and the like. Defining resource network discovery rules, periodically scanning IP range defined in the network discovery rules, and independently configuring checked frequency for each rule to automatically discover network element equipment of the monitored network.
At present, agents distributed on a target server are managed and controlled by a server, and drive to execute acquisition tasks. In practical application, the number of monitored network element devices is often thousands, and a large amount of agents are controlled by a plurality of server nodes. Moreover, the existing monitoring technology method needs to excessively depend on operation and maintenance personnel, and needs to execute a large number of configuration management actions. When a problem occurs in any link of some distributed nodes, central nodes or operation and maintenance personnel, monitoring is not available. For large or complex information technology (Information Technology, IT) networks, IT is difficult to achieve efficient and comprehensive automated monitoring.
Disclosure of Invention
The method, the device, the equipment and the medium for monitoring the network resources provided by the embodiment of the invention realize the automatic monitoring of the network resources.
According to an aspect of the embodiment of the present invention, there is provided a network resource monitoring method, including:
the method comprises the steps of pre-starting a target Agent, and positioning adjacent network elements of a target server deployed by the Agent;
if the adjacent network element is a server, the target Agent performs self-replication;
the target Agent transfers the copy Agent to the adjacent server of the target server, and starts the copy Agent;
and aiming at the started copy Agent, executing the adjacent network element of the target server deployed by the network element until all the servers in the monitored network deploy the target Agent so as to realize the monitoring of the monitored network.
In one embodiment, if the neighboring network element is a server, the target Agent performs self-replication, including:
the target Agent requests the management information of the adjacent server from the monitoring data center and logs in the adjacent server based on the management information;
the target Agent judges whether an Agent is deployed on the adjacent server or not;
and if the adjacent server is not deployed with the Agent, the target Agent performs self-replication.
In one embodiment, the method further comprises:
if the adjacent server is deployed with the Agent, the target Agent judges whether the version of the target Agent is higher than the version of the Agent deployed by the adjacent server;
if yes, the target Agent performs self-replication;
if not, the target Agent sends a deleting request to the Agent deployed in the adjacent server;
based on the deletion request, the adjacent server disposes the Agent to delete the target Agent, and performs self-copy;
the Agent deployed by the adjacent server migrates the replicated self Agent to the target server.
In one embodiment, if the target Agent itself has a higher version than the neighboring server deployed Agent, the target Agent migrates a replication Agent to the neighboring server of the target server and initiates the replication Agent, including:
the target Agent deletes the Agent deployed by the adjacent server;
the target Agent transfers the replication Agent to the adjacent server and starts the replication Agent.
In one embodiment, if the neighboring network element is a server, before the target Agent performs self-replication, the method further includes:
the target Agent determines that the neighboring server is not offline.
In one embodiment, the method further comprises:
and if the adjacent server is offline, the target Agent sends the offline information of the adjacent server to the monitoring data center.
In one embodiment, the method further comprises:
if the adjacent server is deployed with the Agent, the target Agent judges whether the Agent deployed by the adjacent server operates normally or not;
if the target Agent determines that the Agent deployed by the adjacent server is abnormal in operation, the target Agent logs in the adjacent server and restarts the Agent deployed by the adjacent server.
In one embodiment, the method further comprises:
if the adjacent network element is not a server, the target Agent logs in the adjacent network element and acquires configuration information and performance information of the adjacent network element;
and the target Agent reports the configuration information and the performance information of the network element to a monitoring data center so as to monitor the adjacent network element.
In one embodiment, after the target Agent initiates the replication Agent, the method further comprises:
the replication Agent selects a monitoring strategy according to the running environment of the adjacent server.
In one embodiment, communications can be enabled between agents deployed by any two adjacent network elements.
According to another aspect of an embodiment of the present invention, there is provided a network resource monitoring apparatus, including:
the positioning module is used for positioning adjacent network elements of the target server deployed by the positioning module per se by the target Agent started in advance;
the replication module is used for performing self replication on the target Agent if the adjacent network element is a server;
the migration starting module is used for the target Agent to migrate the copy Agent to the adjacent server of the target server and starting the copy Agent;
the positioning module is also used for positioning adjacent network elements of the target servers deployed by the positioning module until all the servers in the monitored network deploy the target agents so as to realize the monitoring of the monitored network.
According to still another aspect of the embodiment of the present invention, there is provided a network resource monitoring apparatus, including: a processor and a memory storing computer program instructions;
the processor executes the computer program instructions to implement the network resource monitoring method provided by the embodiment of the invention.
According to still another aspect of the embodiments of the present invention, there is provided a computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement a network resource monitoring method as provided by the embodiments of the present invention.
According to the network resource monitoring method, device, equipment and medium in the embodiment of the invention, the target Agent is deployed by selecting one server in the monitored network, and the target Agent is discovered and self-copied and deployed in all networks in extremely short time, so that the monitoring of the whole network resource is realized.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a network resource monitoring method according to some embodiments of the present invention;
FIG. 2 is a schematic diagram of Agent self-replication and upgrade provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of an Agent discovery and reporting offline server according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an Agent identifying neighboring servers according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a whole network deployment Agent according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an Agent monitoring network resource according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network resource monitoring device according to an embodiment of the present invention;
fig. 8 is a block diagram of an exemplary hardware architecture of a network resource monitoring device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that 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. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
For a better understanding of the present invention, a method, apparatus, device and medium for monitoring network resources according to embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be noted that these embodiments are not intended to limit the scope of the present disclosure.
Fig. 1 shows a flow diagram of a network resource monitoring method 100 according to an embodiment of the invention. As shown in fig. 1, the method for monitoring network resources provided by the embodiment of the invention includes the following steps:
s110, the target Agent started in advance locates the adjacent network element of the target server deployed by the target Agent.
And S120, if the adjacent network element is a server, the target Agent performs self-replication.
S130, the target Agent transfers the copy Agent to the adjacent server of the target server, and starts the copy Agent.
And S140, aiming at the started copy Agent, positioning adjacent network elements of the self-deployed target server until all servers in the monitored network deploy the target Agent so as to realize the monitoring of the monitored network.
According to the network resource monitoring method provided by the embodiment of the invention, the bee colony thinking is introduced, the centralized management server is removed, the centerless monitoring acquisition Agent is established, only one server is selected in the original IT network to deploy the target Agent, and the target Agent is discovered and self-copied and deployed in all networks in a very short time, so that the monitoring of the whole network resource is realized.
In some embodiments of the present invention, as shown in fig. 2, the monitored network includes a first subnet and a second subnet. The target Agent is deployed in a target server A in the first subnet. The target Agent deployed and pre-started in the target server locates adjacent network elements of the target server according to the adjacent network resource contact strategy. Taking a server as an example, a neighboring network resource contact strategy is defined by an IP protocol, and the neighboring server is judged by ascertaining subnet information and self IP information. The logic and standard of different resource type contact strategies are different, and the network resource contact strategy can be set according to the type of the resource.
Each server Agent has a self movable range, similar to the movable ring of bees. An Agent may contact other neighboring network elements within the active range. The activity range of the Agent can be adjusted according to the sparse adjustment range of the network element capacity, so that the whole network resources are ensured to be contactable in the network.
When the target Agent locates adjacent network elements, the target Agent obtains the metadata of the adjacent network elements through a namp, ping, snmp port scanning tool, and determines the type, state and other information of the adjacent network elements according to the metadata of the adjacent network elements. Wherein, the network element data refers to a logic information group capable of judging the uniqueness of the network element. Taking a physical server as an example: the metadata includes a serial number and an IP address of the service.
Case one:
if the target Agent identifies the neighboring network element as a server, management information of the server is requested to the monitoring data center in fig. 2. Then the target Agent logs in the server adjacent to the target server through the management information. As an example, as shown in fig. 2, the servers adjacent to the target server a are servers B.
Then, the target Agent judges whether the server B installs the Agent, i.e., whether the Agent is deployed. If the server B does not install the Agent, whether the current server B has an Agent installation environment is identified. If the server B does not have the Agent installation environment, the target Agent requests to the monitoring data center to acquire the management authority again, and an Agent installation environment is created for the server B.
Meanwhile, the target Agent copies itself, the copy Agent is transplanted to the server B, and the copy Agent is started. As an example, the target Agent may transfer the duplicate Agent based on file transfer protocol (File Transfer Protocol, FTP) or secure file transfer protocol (Secure File Transfer Protocol, SFTP) by ascertaining available port selection migration.
Then, the copying agents in the adjacent servers repeat the steps of the target agents, and the target agents are deployed by the network elements of the whole network step by step.
In the embodiment of the invention, after the copied Agent is transplanted to the adjacent server, the copied Agent can select a monitoring strategy according to the running environment of the adjacent server. The Agent may support a plurality of operating system versions such as linux, unix, windows.
In the embodiment of the invention, each Agent is internally provided with all the capabilities of the monitoring acquisition detection identification network element, and the Agent actively applies for the capabilities from the own capability pool according to the decision result, can judge the monitoring strategy according to the environment and execute monitoring. And the Agent detects and monitors the network equipment to determine the optimal monitoring mode by endowing the Agent with collective cooperation decision-making capability.
According to the network resource monitoring method, a large number of manual participation control links are omitted, so that the phenomena of untimely monitoring and inaccurate monitoring caused by human factors are avoided, and the quality of resource monitoring is improved.
After the Agent in each server is started, the Agent collects the information of the server and reports the information to the monitoring data center so as to realize the monitoring of the whole network.
And a second case:
if the target Agent identifies that the adjacent network element is a non-server network element, the target Agent requests management information (such as a login account password of the network element) to the honeycomb, logs in the adjacent network element of the target server, and acquires configuration information and performance information of the network element. And then, reporting the configuration information and the performance information of the adjacent network element to a monitoring data center by the target Agent so as to monitor the adjacent network element.
The configuration information of the network element refers to information such as name, IP, CPU number, memory size and capacity of the network element. The performance information of the network element refers to data such as CPU utilization rate and memory utilization rate.
In some embodiments of the present invention, if an Agent needs to be upgraded in version, only one target Agent needs to be selected for upgrade. And locating the updated target Agent in the target server according to the adjacent network resource contact strategy to find the adjacent server, requesting management information from the monitoring data center, and logging in the adjacent server.
The updated target Agent first judges whether the adjacent server has deployed an Agent. If the adjacent server is not deployed with the Agent, the target Agent performs self-replication, and the replicated Agent is transplanted to the adjacent server.
If the adjacent server has deployed an Agent, the target Agent determines whether the version of the target Agent is higher than the version of the Agent deployed by the adjacent server. As shown in fig. 2, assuming that the server D is a target server, an Agent deployed in the server D is an updated Agent, and an Agent version thereof is v1.2. Server C is the neighboring server to server D and server C has deployed agents.
If the Agent in the server D recognizes that the self-version is higher than the Agent version in the server C, locking itself with the Agent deployed by the server C, and then deleting the Agent with the low version, namely the Agent with the version v1.1 in the server C. Then, the Agent in server D will replicate itself and migrate the replicated Agent to server C.
In the embodiment of the invention, by selecting one Agent for upgrading, the Agent can perform self-checking copy in extremely short time, automatically complete virus type upgrading and greatly reduce the maintenance cost of the monitoring version.
If the Agent in server D recognizes that the self-version is lower than the version of the Agent in server C, then the Agent is locked on itself and sends a delete request to the Agent deployed by server C. Based on the deletion request, the server C deploys an Agent to delete the target Agent in the server D and performs self-copy. The server C deploys an Agent to migrate the replicated self Agent to the server D.
In some embodiments of the present invention, before step S120, further comprising:
the target Agent determines that the neighboring server is not offline.
In the embodiment of the invention, when the target Agent determines that the adjacent server of the target server is in an online state, the self-replication is performed again.
If the target server Agent discovers that the adjacent server is offline (down), the down information is reported to the monitoring data center. As shown in fig. 3, if the target server is an H server in the first subnet, the adjacent server of the H server is an E server. And judging that the E server is down by the Agent in the H server. The Agent in the H server will report the offline information of the E server to the monitoring data center.
In the embodiment of the invention, the agents deployed by any two adjacent network elements can communicate with each other. Therefore, when the target server is the K server in the second subnet, the neighboring servers of the K server are F servers. And judging that the F server is down by the Agent in the K server. The Agent in the K server will report the offline information of the F server to the monitoring data center.
And when the target server is a G server, the adjacent servers of the G server are an F server and an E server. And judging that the E server and the F server are down by the Agent in the K server. The Agent in the K server will report the offline information of the E server and the F server to the monitoring data center.
That is, other server agents adjacent to the down server also report the state information of the server, and the neighbor monitoring and multiparty reporting mode replaces the traditional mode of detecting the state of the host by the central node, so that the timeliness and the accuracy of monitoring the state of the host are improved, and meanwhile, false alarms caused by packet loss caused by network flashover and network blockage are avoided.
In the embodiment of the invention, the resources in the network are mutually and alternately monitored by the adjacent resources, and the timeliness and the accuracy of the whole network monitoring are realized by mutually monitoring the adjacent and inner sides of the small circle, so that the monitoring alarm quality is effectively improved. And establishing a nonlinear relation through interconnection communication between secondary nodes (namely agents in adjacent network elements), and establishing a healthy and stable monitoring network method through group capacity.
In some embodiments of the present invention, if the target Agent determines that the neighboring server has deployed an Agent, the target Agent needs to determine whether the Agent deployed by the neighboring server is operating normally. And if the target Agent determines that the Agent which discovers the adjacent server stops or the daily running occurs. The target Agent logs in the adjacent server by using the cached neighbor key, and checks the running environment of the adjacent server. The target Agent resets the operating environment by the control information and restarts the Agent. If the target Agent finds that the Agent of the adjacent server occupies too high resources, the Agent of the adjacent server is immediately killed, reset is checked, and the Agent of the adjacent server is restarted.
After ascertaining the adjacent server, the target Agent requests the adjacent key from the server and stores the adjacent key in the cache area. If the key fails, the server will again request the latest key.
According to the network resource monitoring method provided by the embodiment of the invention, the Agent can identify the running condition of the server Agent in the contact range, discover and process abnormal conditions in time, maintain the Agent in the adjacent server, and greatly reduce the running maintenance cost of the Agent.
As shown in fig. 4, the monitored network includes a plurality of subnets, and the target Agent identifies and discovers the adjacent network elements and servers according to the adjacent network resource contact policy, and transfers the target Agent to the adjacent server of the target server. The adjacent servers with the agents started are deployed to continue to spread according to the adjacent strategies, a certain Agent in the current subnet contacts the adjacent subnet network elements according to the contact strategies, and finally self-copies and spreads to the whole IT network, so that the discovery and identification of the whole network resources are realized. Fig. 5 shows a schematic of an Agent deployment to a whole network, similar to a bee colony.
In the embodiment of the invention, if other subnets cannot be ascertained because of the network authority problem, the Agent performs authority inquiry, acquires the resources with the operation authority, executes the related authorities, and opens the monitoring network.
In the embodiment of the invention, only one server is selected from the monitored network to deploy the Agent, and part of key management information is ensured to be accurate, and the Agent can be found in extremely short time and self-duplicated to be deployed in all networks. The key management information includes server user information, server Secure Shell (SSH), FTP or SFTP, and other service ports are normal.
After the agents are deployed to the whole network, as shown in fig. 6, each Agent collects information of its own server and reports the information to the monitoring data center. The Agent identifies adjacent network elements according to the adjacent network resource contact strategy, and reports the network element information to the server to realize the monitoring of the whole network.
According to the network resource monitoring method provided by the embodiment of the invention, the problem that the monitoring system is unavailable due to the problem of certain distributed nodes or central nodes is solved by establishing the non-central and autonomous monitoring network, so that the automation of network resource monitoring is improved.
In addition, the network resource monitoring method provided by the embodiment of the invention reduces links requiring manual processing operations such as monitoring operation maintenance cost, monitoring node deployment work, monitoring configuration, version maintenance, operation maintenance and the like, and changes the self-processing decision of the system to maintain a large quantity of IT networks with few personnel, thereby reducing the monitoring maintenance cost.
Fig. 7 is a schematic structural diagram of a network resource monitoring device according to an embodiment of the present invention. As shown in fig. 7, the network resource monitoring apparatus 700 includes:
the positioning module 710 is configured to locate an adjacent network element of a target server deployed by the target Agent that is started in advance;
the replication module 720 is configured to perform self replication on the target Agent if the neighboring network element is a server;
a migration module 730, configured to migrate a replication Agent to a neighboring server of the target server and start the replication Agent;
the positioning module 710 is further configured to locate adjacent network elements of the target server deployed by itself until all servers in the monitored network deploy the target Agent, so as to implement monitoring of the monitored network.
The network resource monitoring device provided by the embodiment of the invention realizes the automatic monitoring of the network.
Other details of the network resource monitoring device according to the embodiment of the present invention are similar to the methods according to the embodiments of the present invention described above in connection with fig. 1 to 6, and are not repeated here.
The network resource monitoring method and apparatus according to the embodiments of the present invention described in connection with fig. 1 to 7 may be implemented by a network resource monitoring device. Fig. 8 is a schematic diagram showing a hardware structure 800 of a network resource monitoring device according to an embodiment of the invention.
As shown in fig. 8, the network resource monitoring device 800 in the present embodiment includes: a processor 801, a memory 802, a communication interface 803, and a bus 810, wherein the processor 801, the memory 802, and the communication interface 803 are connected and complete communication with each other through the bus 810.
In particular, the processor 801 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more integrated circuits that implement embodiments of the present invention.
Memory 802 may include mass storage for data or instructions. By way of example, and not limitation, memory 802 may comprise an HDD, floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Memory 802 may include removable or non-removable (or fixed) media, where appropriate. The memory 802 may be internal or external to the network resource monitoring device 800, where appropriate. In a particular embodiment, the memory 802 is a non-volatile solid-state memory. In a particular embodiment, the memory 802 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
Communication interface 803 is primarily used to implement communication between modules, devices, units, and/or apparatuses in an embodiment of the present invention.
Bus 810 includes hardware, software, or both, coupling the components of network resource monitoring device 800 to one another. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a peripheral interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 810 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
That is, the network resource monitoring device 800 shown in fig. 8 may be implemented to include: a processor 801, memory 802, a communication interface 803, and a bus 810. The processor 801, the memory 802, and the communication interface 803 are connected and perform communication with each other through a bus 810. The memory 802 is used for storing program codes; the processor 801 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 802 for performing the network resource monitoring method in any of the embodiments of the present invention, thereby implementing the network resource monitoring method and apparatus described in connection with fig. 1 to 7.
The embodiment of the invention also provides a computer storage medium, and the computer storage medium is stored with computer program instructions; the computer program instructions, when executed by the processor, implement the network resource monitoring method provided by the embodiment of the invention.
The functional blocks shown in the above block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (11)

1. A method for monitoring network resources, the method comprising:
the method comprises the steps of pre-starting a target Agent, and positioning adjacent network elements of a target server deployed by the Agent;
if the adjacent network element is a server, the target Agent performs self-replication;
the target Agent transfers the copy Agent to the adjacent server of the target server, and starts the copy Agent;
for the started copy Agent, executing the adjacent network element of the target server deployed by the positioning self until all servers in the monitored network deploy the target Agent so as to realize the monitoring of the monitored network;
if the adjacent network element is a server, the target Agent performs self-replication, including:
the target Agent requests the management information of the adjacent server from the monitoring data center and logs in the adjacent server based on the management information;
the target Agent judges whether the adjacent server is deployed with an Agent or not;
if the adjacent server is not deployed with the Agent, the target Agent performs self-replication;
the agents deployed by any two adjacent network elements can communicate with each other;
wherein, each Agent is internally provided with a capability of monitoring, collecting, detecting and identifying network elements.
2. The method according to claim 1, wherein the method further comprises:
if the adjacent server is deployed with the Agent, the target Agent judges whether the version of the target Agent is higher than the version of the Agent deployed by the adjacent server;
if yes, the target Agent performs self-replication;
if not, the target Agent sends a deletion request to the Agent deployed by the adjacent server;
based on the deletion request, the Agent deployed by the adjacent server deletes the target Agent and performs self-copy;
and the Agent deployed by the adjacent server transfers the copied self Agent to the target server.
3. The method of claim 2, wherein if the target Agent itself has a higher version than the neighboring server to which the target Agent is deployed, the target Agent migration replication Agent to the neighboring server of the target server and the replication Agent activation comprises:
the target Agent deletes the Agent deployed by the adjacent server;
and the target Agent transfers the replication Agent to the adjacent server and starts the replication Agent.
4. The method of claim 1, wherein if the neighboring network element is a server, the method further comprises, prior to the target Agent self-replicating:
and the target Agent determines that the adjacent server is not offline.
5. The method according to claim 4, wherein the method further comprises:
and if the adjacent server is offline, the target Agent sends the offline information of the adjacent server to a monitoring data center.
6. The method according to claim 1, wherein the method further comprises:
if the adjacent server is deployed with the Agent, the target Agent judges whether the Agent deployed by the adjacent server operates normally or not;
and if the target Agent determines that the operation of the Agent deployed by the adjacent server is abnormal, the target Agent logs in the adjacent server and restarts the Agent deployed by the adjacent server.
7. The method according to claim 1, wherein the method further comprises:
if the adjacent network element is not a server, the target Agent logs in the adjacent network element and acquires configuration information and performance information of the adjacent network element;
and the target Agent reports the configuration information and the performance information of the network element to a monitoring data center so as to monitor the adjacent network element.
8. The method of claim 1, wherein after the target Agent initiates the replication Agent, the method further comprises:
and the replication Agent selects a monitoring strategy according to the running environment of the adjacent server.
9. A network resource monitoring device, the device comprising:
the positioning module is used for positioning adjacent network elements of the target server deployed by the positioning module per se by the target Agent started in advance;
the replication module is used for performing self replication on the target Agent if the adjacent network element is a server;
the migration module is used for the target Agent to migrate the copy Agent to the adjacent server of the target server and start the copy Agent;
the positioning module is further used for positioning adjacent network elements of the target servers deployed by the positioning module until all servers in the monitored network deploy the target agents to realize the monitoring of the monitored network;
the replication module is specifically configured to request management information of the adjacent server from a monitoring data center by using the target Agent, and log in the adjacent server based on the management information; the target Agent judges whether the adjacent server is deployed with an Agent or not; if the adjacent server is not deployed with the Agent, the target Agent performs self-replication;
the agents deployed by any two adjacent network elements can communicate with each other;
wherein, each Agent is internally provided with a capability of monitoring, collecting, detecting and identifying network elements.
10. A network resource monitoring device, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements a network resource monitoring method as claimed in any one of claims 1-8.
11. A computer storage medium having stored thereon computer program instructions which when executed by a processor implement the network resource monitoring method of any of claims 1-8.
CN201811510421.3A 2018-12-11 2018-12-11 Network resource monitoring method, device, equipment and medium Active CN111314099B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811510421.3A CN111314099B (en) 2018-12-11 2018-12-11 Network resource monitoring method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811510421.3A CN111314099B (en) 2018-12-11 2018-12-11 Network resource monitoring method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111314099A CN111314099A (en) 2020-06-19
CN111314099B true CN111314099B (en) 2023-04-28

Family

ID=71146506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811510421.3A Active CN111314099B (en) 2018-12-11 2018-12-11 Network resource monitoring method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111314099B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1819531A (en) * 2006-03-21 2006-08-16 南京邮电大学 Tribal large-scale network fault managment based on mobile agent
MY133241A (en) * 1999-07-22 2007-10-31 Ericsson Telefon Ab L M Mobile agent-based service architecture for internet telephony and method of controlling service mobility
CN101365014A (en) * 2008-04-30 2009-02-11 华中科技大学 Distributed adaptive listening system, generation and monitor control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
MY133241A (en) * 1999-07-22 2007-10-31 Ericsson Telefon Ab L M Mobile agent-based service architecture for internet telephony and method of controlling service mobility
CN1819531A (en) * 2006-03-21 2006-08-16 南京邮电大学 Tribal large-scale network fault managment based on mobile agent
CN101365014A (en) * 2008-04-30 2009-02-11 华中科技大学 Distributed adaptive listening system, generation and monitor control method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于移动代理的网管研究;王建新等;《计算机工程与设计》;20060328(第03期);全文 *
基于移动代理的网络管理综述;梅轲等;《中国新通信》;20090405(第07期);第19、20页 *

Also Published As

Publication number Publication date
CN111314099A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
US10382283B2 (en) Network topology estimation based on event correlation
CN112075055B (en) Using self-operating use cases to identify and resolve problems causing network slice reselection
US8086729B1 (en) Distributed statistical detection of network problems and causes
US7290164B1 (en) Method of reverting to a recovery configuration in response to device faults
CN1672362A (en) Method and apparatus for outage measurement
CN109428740B (en) Method and device for recovering equipment failure
CN111625841B (en) Virus processing method, device and equipment
US20140162660A1 (en) Neighbour Relations Management
CN114598735B (en) Data processing method and system
CN111193664A (en) Link backup method and device for computer network
US20220239748A1 (en) Control method and device
CN109151075B (en) Log processing method and device and electronic equipment
CN111381835A (en) Method, device, equipment and medium for registering and discovering technical service component
US9049129B2 (en) Node monitoring apparatus, node monitoring method, and computer readable medium
CN110275793B (en) Detection method and equipment for MongoDB data fragment cluster
US10015089B1 (en) Enhanced node B (eNB) backhaul network topology mapping
CN111314099B (en) Network resource monitoring method, device, equipment and medium
CN113055203B (en) Method and device for recovering exception of SDN control plane
JP2016066303A (en) Server device, redundant configuration server system, information taking-over program and information taking-over method
CN113824595B (en) Link switching control method and device and gateway equipment
WO2016101474A1 (en) Method and apparatus for monitoring configuration data and system therefor
CN111338573B (en) Terminal data management method and system, server and communication terminal
CN110635927B (en) Node switching method, network node and network system
CN112416385A (en) Acquisition component management method and system
US20130205013A1 (en) Network management in a communications network

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