CN112383502A - Method and system for uniformly monitoring physical machine and virtual machine and electronic device - Google Patents

Method and system for uniformly monitoring physical machine and virtual machine and electronic device Download PDF

Info

Publication number
CN112383502A
CN112383502A CN202010955154.1A CN202010955154A CN112383502A CN 112383502 A CN112383502 A CN 112383502A CN 202010955154 A CN202010955154 A CN 202010955154A CN 112383502 A CN112383502 A CN 112383502A
Authority
CN
China
Prior art keywords
monitoring
virtual machine
server
machine
physical machine
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.)
Granted
Application number
CN202010955154.1A
Other languages
Chinese (zh)
Other versions
CN112383502B (en
Inventor
唐卓
刘玲星
尹旦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhengtong Cloud Computing Co ltd
Original Assignee
Shenzhen Zhengtong Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhengtong Electronics Co Ltd filed Critical Shenzhen Zhengtong Electronics Co Ltd
Priority to CN202010955154.1A priority Critical patent/CN112383502B/en
Publication of CN112383502A publication Critical patent/CN112383502A/en
Application granted granted Critical
Publication of CN112383502B publication Critical patent/CN112383502B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0272Virtual private networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • H04L63/0281Proxies
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Abstract

The application relates to a method, a system and an electronic device for uniformly monitoring a physical machine and a virtual machine, wherein the method for uniformly monitoring the physical machine and the virtual machine comprises the following steps: the cloud server creates a virtual machine and a physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server, and installs a monitoring agent client on the virtual machine and the physical machine; collecting monitoring information by monitoring agent clients on the physical machine and the virtual machine; the monitoring agent client sends the monitoring information to the monitoring server; the cloud server acquires monitoring information from the monitoring server, and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine. Through the application, the problem that under the condition that a physical machine and a virtual machine are monitored in a unified mode, automatic deployment of a monitoring agent client side and customization of a monitoring template high in usability are achieved simultaneously is solved, manual participation is reduced, the cost is reduced, the operation threshold of operation and maintenance personnel is lowered, and the monitoring efficiency is improved.

Description

Method and system for uniformly monitoring physical machine and virtual machine and electronic device
Technical Field
The application relates to the technical field of cloud computing, in particular to a method, a system and an electronic device for uniformly monitoring a physical machine and a virtual machine.
Background
With the increasing development of cloud computing technology, various public clouds, private clouds and mixed cloud products appear in disputes. Based on the application and management requirements of the actual Cloud server, a tenant and a Virtual Private Cloud (VPC for short) are derived from the Cloud platform, and the Cloud server is completely isolated under different tenants and Virtual Private clouds, so that the security of the Cloud server is guaranteed. The physical machine is used as the basis for computing, network and storage resource virtualization on the cloud server, and has the responsibility of ensuring the normal operation of various services on the server and ensuring the data integrity.
Because the virtual machines under different tenants and virtual private clouds are established on the private network and isolated from the external network where the monitoring server is located, great difficulty is brought to the monitoring of the virtual machines on the clouds. In addition, part of related technical schemes realize integrated monitoring of the same or different virtual private cloud networks, but cannot monitor the physical machines simultaneously, and even cannot customize a monitoring template with high usability.
At present, no effective solution is provided for the problem that in the related art, under the condition of unified monitoring of a physical machine and a virtual machine, automatic deployment and customization of a monitoring template with high usability of a monitoring agent client are realized at the same time.
Disclosure of Invention
The embodiment of the application provides a method, a system and an electronic device for unified monitoring of a physical machine and a virtual machine, and at least solves the problems of automatic deployment and customization of a monitoring template with high usability of a monitoring agent client under the condition of unified monitoring of the physical machine and the virtual machine.
In a first aspect, an embodiment of the present application provides a method for uniformly monitoring a physical machine and a virtual machine, where the method includes:
the cloud server creates a virtual machine and a physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server, and installs the monitoring agent client on the virtual machine and the physical machine;
the physical machine and the monitoring agent client on the virtual machine collect monitoring information;
the monitoring agent client sends the monitoring information to the monitoring server;
and the cloud server acquires the monitoring information from the monitoring server and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine.
In some embodiments, the network communication between the virtual machine and the physical machine and the monitoring server includes:
the virtual machine binds a floating IP communicated with an external network to carry out network communication with the monitoring server, and the physical machine is communicated with the monitoring server by connecting a network where the monitoring server is located.
In some of these embodiments, the collecting of the monitoring information by the monitoring agent client comprises:
a Transmission Control Protocol (TCP) connection is established between the monitoring agent client and the monitoring server;
and the monitoring agent client transmits the monitoring information to the monitoring server through the Transmission Control Protocol (TCP).
In some embodiments, configuring, by the cloud server, the different monitoring templates to monitor the physical machine and the virtual machine includes:
the cloud server sets different alarm rules for different physical machines and different virtual machines;
and the cloud server alarms the physical machine and the virtual machine according to the alarm rule and sends an alarm notice in an interface display state and mail short message mode.
In a second aspect, an embodiment of the present application provides a system for uniformly monitoring a physical machine and a virtual machine, where the system includes: the system comprises a cloud server, a monitoring agent client and a monitoring server;
the cloud server creates a virtual machine and a physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server, and installs the monitoring agent client on the virtual machine and the physical machine;
the physical machine and the monitoring agent client on the virtual machine collect monitoring information;
the monitoring agent client sends the monitoring information to the monitoring server;
and the cloud server acquires the monitoring information from the monitoring server and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine.
In some embodiments, the network communication between the virtual machine and the physical machine and the monitoring server includes:
the virtual machine binds a floating IP communicated with an external network to carry out network communication with the monitoring server, and the physical machine is communicated with the monitoring server by connecting a network where the monitoring server is located.
In some of these embodiments, the collecting of the monitoring information by the monitoring agent client comprises:
a Transmission Control Protocol (TCP) connection is established between the monitoring agent client and the monitoring server;
and the monitoring agent client transmits the monitoring information to the monitoring server through the Transmission Control Protocol (TCP).
In some embodiments, configuring, by the cloud server, the different monitoring templates to monitor the physical machine and the virtual machine includes:
the cloud server sets different alarm rules for different physical machines and different virtual machines;
and the cloud server alarms the physical machine and the virtual machine according to the alarm rule and sends an alarm notice in an interface display state and mail short message mode.
In a third aspect, an embodiment of the present application provides an electronic apparatus, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform the method for unified monitoring of a physical machine and a virtual machine described in any one of the foregoing.
In a fourth aspect, an embodiment of the present application provides a storage medium, where a computer program is stored in the storage medium, where the computer program is configured to execute, when running, any one of the methods for unified monitoring of a physical machine and a virtual machine described above.
Compared with the related technology, in the method for uniformly monitoring the physical machine and the virtual machine, the cloud server creates the virtual machine and the physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server, and installs the monitoring agent client on the created virtual machine and the physical machine; monitoring agent clients on the physical machine and the virtual machine collect monitoring information; the monitoring agent client sends the collected monitoring information to a monitoring server; the cloud server acquires the collected monitoring information from the monitoring server, and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine, so that the problems of automatic deployment of a monitoring agent client and customization of a monitoring template with high usability under the condition of unified monitoring of the physical machine and the virtual machine are solved, manual participation is reduced, the operation threshold of operation and maintenance personnel is lowered, the cost is reduced, the monitoring efficiency is improved, and a manager can comprehensively know the operation states of the physical machine and the virtual machine at the same time.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic application environment diagram of a method for unified monitoring of a physical machine and a virtual machine according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for unified monitoring of physical machines and virtual machines according to an embodiment of the present application;
FIG. 3 is a block diagram of a unified monitoring system for physical machines and virtual machines according to an embodiment of the present application;
fig. 4 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The method for uniformly monitoring physical machines and virtual machines provided by the present application can be applied to an application environment shown in fig. 1, fig. 1 is an application environment schematic diagram of a method for uniformly monitoring physical machines and virtual machines according to an embodiment of the present application, as shown in fig. 1, wherein a system of the application environment includes a cloud server 10, a monitoring Agent client 11(Agent), and a monitoring server 12, wherein the cloud server 10 creates virtual machines and physical machines under different tenants and virtual private clouds, performs network communication with the monitoring server 12, installs the monitoring Agent client 11 on the created virtual machines and physical machines, the monitoring Agent clients 11 on the physical machines and virtual machines collect monitoring information and send the collected monitoring information to the monitoring server 12, the cloud server 10 obtains the collected monitoring information from the monitoring server 12, processes the monitoring data according to business requirements, and configuring different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine, wherein the physical machine and the monitoring server 12 are connected to an external network segment 100, the virtual machines established under different tenants and virtual private clouds are connected to a private network segment 200 and bound with a floating IP communicated with an external network, the physical machine and the virtual machine realize monitoring data collection through a monitoring agent client 11 automatically installed on the physical machine and the virtual machine, and transmit monitoring information to the monitoring server 12, so that the virtual machine and the physical machine are uniformly monitored. The problem of under the unified control of physical machine and virtual machine, realize simultaneously that control agent client 11 automation is disposed and the high control template of customization ease for use is solved, not only reduce artifical the participation, reduce fortune dimension personnel's operation threshold moreover, the cost is reduced has improved monitoring efficiency, makes the administrator can comprehensively know physical machine and virtual machine running state simultaneously.
The embodiment provides a method for uniformly monitoring a physical machine and a virtual machine, and fig. 2 is a flowchart of a method for uniformly monitoring a physical machine and a virtual machine according to an embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S201, the cloud server 10 creates a virtual machine and a physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server 12, and installs the monitoring agent client 11 on the virtual machine and the physical machine, where the cloud server 10 is also called a cloud host, which is a part of a plurality of similar independent hosts divided from a group of cluster servers, has independent broadband and IP, and a user can independently install various operating systems and configure corresponding operating environments as required, purchase as required, and upgrade flexibly, and the cloud server 10 adopts distributed storage and multiple backup, and even if one server has a problem, it will not affect other applications, and can prevent attacks, and has high security and stability. The virtual machine is a complete computer system which is simulated by software and has the function of a complete hardware system and runs in a completely isolated environment, common virtual machines comprise a Java virtual machine, a Linux virtual machine and a windows virtual machine, the function of the virtual machine comprises a demonstration environment, the rapid running of a host computer is ensured, application is tested, different operating systems are used and the like, a physical machine is a name for a physical computer relative to the virtual machine, and the physical machine provides a hardware environment for the virtual machine. In this embodiment, a physical machine is created in a network where a monitoring server 12 is located by using a cloud server 10, a virtual machine is created under different tenants and virtual private clouds through a private network, network communication is performed with the monitoring server 12, and automatic installation of a monitoring agent client 11 is completed on the created virtual machine and physical machine through ansable automatic deployment, where ansable is an automatic operation and maintenance tool, and is developed based on Python, and advantages of numerous operation and maintenance tools are integrated, so that functions of automatic system configuration, automatic program deployment, batch operation commands and the like are realized, and the method mainly includes: the connecting plug-in is responsible for realizing communication with the monitored end, executing a command module, a self-defining module and the like, and completing log mail recording and the like by means of the plug-in. In addition, the monitoring agent client 11 can be automatically deployed through the infrastructure to monitor linux and windows physical machines and virtual machines simultaneously, wherein the linux physical machines and the virtual machines need to be installed with python and ssh, the ssh allows root login and password and private key connection, the windows physical machines and the virtual machines need to open the wind service and 5985 ports, and the security group of the virtual machines needs to release the protocol and ports installed by the monitoring agent client 11 and used for data transmission outwards by default. And the ansible automatic deployment monitoring agent client 11 is adopted, so that the manual participation can be reduced, and the cost is reduced.
Step S202, collecting monitoring information by the monitoring agent client 11 automatically installed on each physical machine and each virtual machine, wherein the monitoring information mainly comprises the health condition of the monitored object, the utilization rate of the CPU of the physical machines of the cluster and virtual machine, the utilization rate of a disk, the average load of 5 minutes, the service conditions of the disk and the network, and the like.
Step S203, the monitoring agent client 11 sends the collected monitoring information to the monitoring server 12, where the monitoring server 12 is also called a network hard disk recorder, collects data via the monitoring camera and transmits the data to the server, and the server codes the data to generate an image. The monitoring server 12 records the required images according to different requirements, stores the recorded images, and facilitates the user to manage, check and playback the images. The monitoring server 12 mainly has four functions, namely a compression processing function, a local processing function, a network function and development support.
In step S204, the cloud server 10 acquires the collected monitoring information from the monitoring server 12, and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine. Optionally, the preset monitoring index includes a monitoring index that is commonly used by windows and linux or is prone to problems, in addition, because a physical machine and a virtual machine need to be monitored simultaneously, and a windows system and a linux system need to be considered, a monitoring template is reset on the basis of zabbix, for example, an alarm with a network packet loss rate larger than 2% is modified, cluster health status display is increased, process number monitoring is removed, and the like, wherein zabbix is an open source solution providing distributed system monitoring and network monitoring functions based on a WEB interface, various network parameters can be monitored, the safe operation of a server system is ensured, and a flexible notification mechanism is provided to enable a system administrator to quickly position and solve various existing problems. In the embodiment, different monitoring templates with high usability are customized, so that unified acquisition of various indexes of the virtual machine, unified collection of logs and unified reporting of event data are realized, integrated monitoring of the same or different virtual private cloud networks is realized, monitoring efficiency is improved, operation thresholds of operation and maintenance personnel are reduced, and an administrator can comprehensively know running states of physical machines and virtual machines under different tenants and virtual private clouds.
Through the steps S201 to S204, compared to the prior art, although the unified monitoring of the physical machine and the virtual machine is realized, the realization process is complex, the virtual machine to be monitored cannot be freely selected, each monitoring agent plug-in cannot be automatically deployed, and the monitoring template with high usability cannot be customized. In this embodiment, the cloud server 10 is adopted to create virtual machines and physical machines under different tenants and virtual private clouds, perform network communication with the monitoring server 12, and install the monitoring agent client 11 on the created virtual machines and physical machines; the monitoring agent client 11 on the physical machine and the virtual machine collects monitoring information; the monitoring agent client 11 sends the collected monitoring information to the monitoring server 12; the cloud server 10 acquires the collected monitoring information from the monitoring server 12, and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine, so that the problems of automatic deployment and customization of the monitoring templates with high usability of the monitoring agent client 11 under the condition of unified monitoring of the physical machine and the virtual machine are solved, not only is manual participation reduced, but also the operation threshold of operation and maintenance personnel is reduced, the cost is reduced, the monitoring efficiency is improved, and the administrator can comprehensively know the running states of the physical machine and the virtual machine at the same time.
In some of these embodiments, the creating of the virtual machine, the physical machine and the monitoring server 12 in network communication includes: the virtual machine performs network communication with the monitoring server 12 by binding a floating IP communicating with an external network, and the physical machine performs network communication with the monitoring server 12 by connecting a network in which the monitoring server 12 is located. The floating IP is an open IP address which can be routed to and is not automatically allocated to the entity device, and the main functions are to avoid IP address conflict, save IP addresses and the like. In this embodiment, the cloud server 10 creates a virtual machine under different tenants and virtual private clouds through a private network, and since the private network is a logic network inside the cloud server 10, is isolated from an external network, and is provided with a firewall therebetween, and the firewall only allows a monitoring data port for the virtual machine to transmit data to the monitoring server 12, the virtual machine performs network communication with the monitoring server 12 by binding a floating IP communicated with the external network; the physical machine is directly connected to an external network, that is, the network where the monitoring server 12 is located, and performs network communication with the monitoring server 12, so that network communication among the virtual machine, the physical machine, and the monitoring server 12 is realized.
In some of these embodiments, the collecting of the monitoring information by the monitoring agent client 11 includes: a transmission control protocol TCP connection is established between the monitoring agent client 11 and the monitoring server 12, and the monitoring agent client 11 transmits monitoring information to the monitoring server 12 through the transmission control protocol TCP.
In some embodiments, configuring different monitoring templates by the cloud server 10 to monitor the physical machine and the virtual machine includes: the cloud server 10 sets different alarm rules for different physical machines and different virtual machines, alarms the physical machines and the virtual machines according to the alarm rules, and sends an alarm notification in an interface display state and mail short message mode, and optionally, the alarm rules send alarm notifications of different levels in a mail short message mode for events meeting alarm conditions according to preset alarm items and threshold values.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The present embodiment further provides a system for uniformly monitoring a physical machine and a virtual machine, where the system is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated after the description is given. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 3 is a block diagram of a structure of a system for uniformly monitoring physical machines and virtual machines according to an embodiment of the present application, and as shown in fig. 3, the system includes an automatic installation module 31, a data acquisition module 32, a data transmission module 33, and a data processing module 34:
the automatic installation module 31 is used for establishing a virtual machine and a physical machine by the cloud server under different tenants and virtual private clouds, carrying out network communication with the monitoring server, and installing a monitoring agent client on the established virtual machine and physical machine; a data acquisition module 32 for collecting monitoring information; a data sending module 33, configured to send the monitoring information collected by the monitoring agent client to the monitoring server; and the data processing module 34 is configured to obtain the collected monitoring information from the monitoring server by the cloud server, process the monitoring data according to the service requirement, and configure different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine.
Through the system, the automatic installation module 31 automatically installs the monitoring agent client on the virtual machines and the physical machines under different tenants and virtual private clouds, so that the manual participation is reduced, and the cost is reduced; the data acquisition module 32 collects monitoring information by the monitoring agent clients automatically installed on the physical machines and the virtual machines, so that the physical machines and the virtual machines are uniformly monitored, and the monitoring efficiency is improved; the data sending module 33 sends the monitoring information collected by the monitoring agent client to the monitoring server, the cloud server in the data processing module 34 acquires the monitoring data from the monitoring server, processes the monitoring data according to the service requirements, and formulates a monitoring template according to the specific service requirements, so that the operation threshold of the operation and maintenance personnel is reduced, and the operation and maintenance personnel can comprehensively master the states of the physical machine and the virtual machine. The whole system solves the problems of automatic deployment of the monitoring agent client and customization of a monitoring template with high usability under the condition of unified monitoring of the physical machine and the virtual machine, reduces manual participation, lowers the operation threshold of operation and maintenance personnel, reduces the cost, improves the monitoring efficiency, and enables an administrator to comprehensively know the running states of the physical machine and the virtual machine at the same time.
In some embodiments, the network communication between the virtual machine and the physical machine created in the automatic installation module 31 and the monitoring server includes: the virtual machine is in network communication with the monitoring server through binding a floating IP communicated with an external network, and the physical machine is in network communication with the monitoring server through connecting a network where the monitoring server is located. The floating IP is an open IP address which can be routed to and is not automatically allocated to the entity device, and the main functions are to avoid IP address conflict, save IP addresses and the like. In the embodiment, the cloud server creates the virtual machine under different tenants and virtual private clouds through a private network, because the private network is a logic network inside the cloud server, is isolated from an external network, and is provided with a firewall, and the firewall only allows a monitoring data port for the virtual machine to transmit data to the monitoring server, the virtual machine performs network communication with the monitoring server through binding a floating IP (Internet protocol) communicated with the external network; the physical machine is directly connected with an external network, namely the network where the monitoring server is located, and carries out network communication with the monitoring server, so that the network communication among the virtual machine, the physical machine and the monitoring server is realized.
In some embodiments, the collecting of the monitoring information by the monitoring agent client in the data collection module 32 includes: and a Transmission Control Protocol (TCP) connection is established between the monitoring agent client and the monitoring server, and the monitoring agent client transmits the monitoring information to the monitoring server through the TCP.
In some embodiments, the configuring, by the cloud server in the data processing module 34, different monitoring templates for monitoring the physical machine and the virtual machine includes: the cloud server sets different alarm rules for different physical machines and different virtual machines, alarms the physical machines and the virtual machines according to the alarm rules, and sends alarm notifications in an interface display state and mail short message mode.
The present invention will be described in detail with reference to the following application scenarios.
The invention aims to provide a system for uniformly monitoring a physical machine and a virtual machine in a cloud platform multi-tenant environment, and the flow steps of the technical scheme for uniformly monitoring the physical machine and the virtual machine in the embodiment comprise:
s1, automatically installing the monitoring agent client, wherein the method automatically installs the monitoring agent client on virtual machines and physical machines under different tenants and virtual private clouds;
firstly, a cloud server provider creates a plurality of physical machines on an external network, and generates a floating IP which can be communicated with the external network on the external network, wherein the external network is not necessarily communicated with the Internet and refers to a network where a monitoring server is located. The cloud server establishes the virtual machine under different tenants and virtual private clouds through a private network, the private network is a logic network inside the cloud server, is isolated from the external network, is provided with a firewall, and only allows a port for transmitting monitoring data of the virtual machine to transmit data to the monitoring server through the firewall.
Secondly, by binding a floating IP communicated with an external network on a virtual machine on a private network, the network communication of a monitoring server, a physical machine and the virtual machine can be realized, and meanwhile, the automatic deployment of a monitoring agent client can be realized through an ansable. The method can monitor the linux physical machine and the windows physical machine and the virtual machine at the same time, wherein the linux physical machine and the virtual machine are required to be installed with python and ssh, the ssh allows root login and password and private key connection, and the windows physical machine and the virtual machine are required to open the winter service and the 5985 port. The security group of the virtual machine defaults to the protocol and port that lets go of the monitoring agent client and the outgoing data.
S2: and a monitoring data collection step, wherein the monitoring information collection is realized by monitoring agent clients on each physical machine and each virtual machine.
The monitoring agent client installed on the physical machine and the virtual machine realizes the collection of monitoring information on the machine, the monitoring data is transmitted to the monitoring server through the transmission control protocol TCP connection established with the monitoring server in advance, and the monitoring cloud server obtains the monitoring data from the monitoring server and realizes the information processing and display. The monitoring information mainly comprises the health condition of the monitored object, the utilization rate of the CPU of the cluster and virtual machine physical machine, the utilization rate of a disk, the average load of 5 minutes, the service condition of the disk and a network and the like.
S3; and monitoring information processing and displaying, wherein the monitoring agent client sends the monitoring information to the monitoring server, and the monitoring cloud server acquires the monitoring data from the monitoring server and realizes information processing and displaying.
And the monitoring cloud server acquires the monitoring data from the monitoring server and processes the monitoring data according to the service requirement. Because the physical machine and the virtual machine need to be monitored simultaneously, and a windows system and a linux system need to be considered, the monitoring method resets a monitoring template on the basis of zabbix, for example, an alarm with a network packet loss rate larger than 2% is modified, the cluster health condition display is increased, the process number monitoring is removed, and the like.
The present embodiment also provides an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
In addition, in combination with the method for uniformly monitoring the physical machine and the virtual machine in the foregoing embodiment, the embodiment of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; when executed by a processor, the computer program implements the method for unified monitoring of the physical machine and the virtual machine in any one of the above embodiments.
In one embodiment, fig. 4 is a schematic diagram of an internal structure of an electronic device according to an embodiment of the present application, and as shown in fig. 4, there is provided an electronic device, which may be a server, and its internal structure diagram may be as shown in fig. 4. The electronic device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the electronic device is used for storing data. The network interface of the electronic device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method for unified monitoring of physical and virtual machines.
Those skilled in the art will appreciate that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the electronic device to which the present application is applied, and a particular electronic device may include more or less components than those shown in the drawings, or combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be understood by those skilled in the art that various features of the above-described embodiments can be combined in any combination, and for the sake of brevity, all possible combinations of features in the above-described embodiments are not described in detail, but rather, all combinations of features which are not inconsistent with each other should be construed as being within the scope of the present disclosure.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for uniformly monitoring a physical machine and a virtual machine is applied to a system for uniformly monitoring the physical machine and the virtual machine under a cloud platform multi-tenant environment, and is characterized in that the system comprises: the method comprises the following steps of:
the cloud server creates a virtual machine and a physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server, and installs the monitoring agent client on the virtual machine and the physical machine;
the physical machine and the monitoring agent client on the virtual machine collect monitoring information;
the monitoring agent client sends the monitoring information to the monitoring server;
and the cloud server acquires the monitoring information from the monitoring server and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine.
2. The method of claim 1, wherein the virtual machine, physical machine, and the monitoring server in network communication comprises:
the virtual machine binds a floating IP communicated with an external network to carry out network communication with the monitoring server, and the physical machine is communicated with the monitoring server by connecting a network where the monitoring server is located.
3. The method of claim 1, wherein the collecting of the monitoring information by the monitoring agent client comprises:
a Transmission Control Protocol (TCP) connection is established between the monitoring agent client and the monitoring server;
and the monitoring agent client transmits the monitoring information to the monitoring server through the Transmission Control Protocol (TCP).
4. The method of claim 1, wherein the cloud server configuring the different monitoring templates to monitor the physical machine and the virtual machine comprises:
the cloud server sets different alarm rules for different physical machines and different virtual machines;
and the cloud server alarms the physical machine and the virtual machine according to the alarm rule and sends an alarm notice in an interface display state and mail short message mode.
5. A system for unified monitoring of a physical machine and a virtual machine is characterized in that the system comprises: the system comprises a cloud server, a monitoring agent client and a monitoring server;
the cloud server creates a virtual machine and a physical machine under different tenants and virtual private clouds, performs network communication with the monitoring server, and installs the monitoring agent client on the virtual machine and the physical machine;
the physical machine and the monitoring agent client on the virtual machine collect monitoring information;
the monitoring agent client sends the monitoring information to the monitoring server;
and the cloud server acquires the monitoring information from the monitoring server and configures different monitoring templates according to preset monitoring indexes to monitor the physical machine and the virtual machine.
6. The system of claim 5, wherein the virtual machine, physical machine, and the monitoring server in network communication comprises:
the virtual machine binds a floating IP communicated with an external network to carry out network communication with the monitoring server, and the physical machine is communicated with the monitoring server by connecting a network where the monitoring server is located.
7. The system of claim 5, wherein the monitoring agent client collecting the monitoring information comprises:
a Transmission Control Protocol (TCP) connection is established between the monitoring agent client and the monitoring server;
and the monitoring agent client transmits the monitoring information to the monitoring server through the Transmission Control Protocol (TCP).
8. The system of claim 5, wherein the cloud server configuring the different monitoring templates to monitor the physical machine and the virtual machine comprises:
the cloud server sets different alarm rules for different physical machines and different virtual machines;
and the cloud server alarms the physical machine and the virtual machine according to the alarm rule and sends an alarm notice in an interface display state and mail short message mode.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform a method for unified monitoring of physical machines and virtual machines according to any of claims 1 to 4.
10. A storage medium having a computer program stored thereon, wherein the computer program is configured to execute a method for unified monitoring of physical machines and virtual machines according to any of claims 1 to 4 when running.
CN202010955154.1A 2020-09-11 2020-09-11 Method and system for uniformly monitoring physical machine and virtual machine and electronic device Active CN112383502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010955154.1A CN112383502B (en) 2020-09-11 2020-09-11 Method and system for uniformly monitoring physical machine and virtual machine and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010955154.1A CN112383502B (en) 2020-09-11 2020-09-11 Method and system for uniformly monitoring physical machine and virtual machine and electronic device

Publications (2)

Publication Number Publication Date
CN112383502A true CN112383502A (en) 2021-02-19
CN112383502B CN112383502B (en) 2022-08-26

Family

ID=74586494

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010955154.1A Active CN112383502B (en) 2020-09-11 2020-09-11 Method and system for uniformly monitoring physical machine and virtual machine and electronic device

Country Status (1)

Country Link
CN (1) CN112383502B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113438136A (en) * 2021-08-27 2021-09-24 苏州浪潮智能科技有限公司 Application service monitoring method and device, electronic equipment and readable storage medium
CN113608750A (en) * 2021-08-04 2021-11-05 北京元年科技股份有限公司 Deployment method and device of monitoring component, computer equipment and storage medium
CN113722051A (en) * 2021-11-03 2021-11-30 阿里巴巴(中国)有限公司 Hardware performance acquisition method, equipment, system and storage medium
CN114143048A (en) * 2021-11-18 2022-03-04 绿盟科技集团股份有限公司 Method, device and storage medium for managing security resources
CN114531441A (en) * 2022-01-11 2022-05-24 南京博联智能科技有限公司 Multifunctional intelligent panel form conversion method and system based on dynamic configuration
CN115102840A (en) * 2022-06-21 2022-09-23 杭州悦数科技有限公司 Cloud service operation and maintenance management method and system
CN115174669A (en) * 2022-05-25 2022-10-11 南京赛宁信息技术有限公司 Virtual machine distributed agent access method and system in shooting range environment
CN117149665A (en) * 2023-10-31 2023-12-01 芯瞳半导体技术(山东)有限公司 Continuous integration method, control device, continuous integration system, and storage medium
WO2023241351A1 (en) * 2022-06-14 2023-12-21 中兴通讯股份有限公司 Virtual machine monitoring method and apparatus, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113596A (en) * 2014-07-15 2014-10-22 华侨大学 Cloud monitoring system and method for private cloud
CN105634998A (en) * 2016-03-30 2016-06-01 中国联合网络通信集团有限公司 Physical machine and virtual machine unified monitoring method and system for multi-tenant environment
CN105991361A (en) * 2015-02-12 2016-10-05 苏宁云商集团股份有限公司 Monitoring method and monitoring system for cloud servers in cloud computing platform
CN107544832A (en) * 2016-06-29 2018-01-05 阿里巴巴集团控股有限公司 A kind of monitoring method, the device and system of virtual machine process
CN108628716A (en) * 2017-03-21 2018-10-09 腾讯科技(深圳)有限公司 Information receives guard system, method and device
CN109714192A (en) * 2018-11-29 2019-05-03 深圳供电局有限公司 A kind of monitoring method and system monitoring cloud platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104113596A (en) * 2014-07-15 2014-10-22 华侨大学 Cloud monitoring system and method for private cloud
CN105991361A (en) * 2015-02-12 2016-10-05 苏宁云商集团股份有限公司 Monitoring method and monitoring system for cloud servers in cloud computing platform
CN105634998A (en) * 2016-03-30 2016-06-01 中国联合网络通信集团有限公司 Physical machine and virtual machine unified monitoring method and system for multi-tenant environment
CN107544832A (en) * 2016-06-29 2018-01-05 阿里巴巴集团控股有限公司 A kind of monitoring method, the device and system of virtual machine process
CN108628716A (en) * 2017-03-21 2018-10-09 腾讯科技(深圳)有限公司 Information receives guard system, method and device
CN109714192A (en) * 2018-11-29 2019-05-03 深圳供电局有限公司 A kind of monitoring method and system monitoring cloud platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘智超: "基于OpenStack的虚拟机集群监控系统的设计与实现", 《中国优秀硕士学位论文全文数据库》 *
陈燕: "云计算平台下资源监控系统的设计与开发", 《现代电子技术》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312064B (en) * 2021-06-01 2024-03-26 中国民航信息网络股份有限公司 Method and device for installing and configuring physical machine and computer readable medium
CN113312064A (en) * 2021-06-01 2021-08-27 中国民航信息网络股份有限公司 Installation configuration method and device of physical machine and computer readable medium
CN113608750A (en) * 2021-08-04 2021-11-05 北京元年科技股份有限公司 Deployment method and device of monitoring component, computer equipment and storage medium
CN113438136A (en) * 2021-08-27 2021-09-24 苏州浪潮智能科技有限公司 Application service monitoring method and device, electronic equipment and readable storage medium
CN113722051A (en) * 2021-11-03 2021-11-30 阿里巴巴(中国)有限公司 Hardware performance acquisition method, equipment, system and storage medium
CN113722051B (en) * 2021-11-03 2022-04-15 阿里巴巴(中国)有限公司 Hardware performance acquisition method, equipment, system and storage medium
CN114143048A (en) * 2021-11-18 2022-03-04 绿盟科技集团股份有限公司 Method, device and storage medium for managing security resources
CN114143048B (en) * 2021-11-18 2023-09-26 绿盟科技集团股份有限公司 Method, device and storage medium for managing safety resources
CN114531441B (en) * 2022-01-11 2024-03-12 南京博联智能科技有限公司 Method and system for converting form of multifunctional intelligent panel based on dynamic configuration
CN114531441A (en) * 2022-01-11 2022-05-24 南京博联智能科技有限公司 Multifunctional intelligent panel form conversion method and system based on dynamic configuration
CN115174669A (en) * 2022-05-25 2022-10-11 南京赛宁信息技术有限公司 Virtual machine distributed agent access method and system in shooting range environment
WO2023241351A1 (en) * 2022-06-14 2023-12-21 中兴通讯股份有限公司 Virtual machine monitoring method and apparatus, and storage medium
CN115102840A (en) * 2022-06-21 2022-09-23 杭州悦数科技有限公司 Cloud service operation and maintenance management method and system
CN115102840B (en) * 2022-06-21 2024-03-29 杭州悦数科技有限公司 Cloud service operation and maintenance management method and system
CN117149665B (en) * 2023-10-31 2024-02-20 芯瞳半导体技术(山东)有限公司 Continuous integration method, control device, continuous integration system, and storage medium
CN117149665A (en) * 2023-10-31 2023-12-01 芯瞳半导体技术(山东)有限公司 Continuous integration method, control device, continuous integration system, and storage medium

Also Published As

Publication number Publication date
CN112383502B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
CN112383502B (en) Method and system for uniformly monitoring physical machine and virtual machine and electronic device
CA3000767C (en) Network-based resource configuration discovery service
US11057438B1 (en) Configurable investigative tool
US11706102B2 (en) Dynamically deployable self configuring distributed network management system
CN106844137B (en) Server monitoring method and device
US20120209983A1 (en) Configurable forensic investigative tool
US7689675B2 (en) System and method for communicating with console ports
US20070061460A1 (en) Remote access
US20220058042A1 (en) Intent-based telemetry collection service
US11281476B2 (en) Plugin framework to support zero touch management of heterogeneous infrastructure elements across distributed data centers
KR101408037B1 (en) Virtual Machine Integration Monitoring Apparatus and method for Cloud system
US20190342374A1 (en) Distributed network diagnostics of enterprise devices utilizing device management
CN109960634B (en) Application program monitoring method, device and system
US20150081878A1 (en) Describing datacenter rack information in management system
US20060242271A1 (en) System and method for accessing devices with a console server
WO2021057802A1 (en) Das system management method and device, electronic device, and storage medium
CN111669293B (en) SD-WAN system and remote management method and device of network terminal equipment
CN106533716B (en) A kind of management method and system of northbound interface
CN114268938A (en) Method, device, equipment and storage medium for managing user front equipment
US11677830B2 (en) Setting device operational parameters using manufacturer usage description files
US20230325478A1 (en) Instrumenting applications to prevent abuse by privileged users
CN116980180A (en) Data transmission method, device and system
Ogawa et al. Agent-based remote monitoring system using the internet
FAIZAL Optimization of virtual network quality through protocol analysis

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20220519

Address after: 518107 801, phase II, Zhengtong Electronic Industrial Park, No. 3 Tongguan Avenue, Tianliao community, Yutang street, Guangming District, Shenzhen, Guangdong

Applicant after: Shenzhen Zhengtong cloud computing Co.,Ltd.

Address before: 518107 phase ii-101, Zhengtong Electronic Industrial Park, 3 Tongguan Avenue, Tianliao community, Yutang street, Guangming District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN ZHENGTONG ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Methods, systems and electronic devices for unified monitoring of physical machines and virtual machines

Effective date of registration: 20221125

Granted publication date: 20220826

Pledgee: Shenzhen hi tech investment small loan Co.,Ltd.

Pledgor: Shenzhen Zhengtong cloud computing Co.,Ltd.

Registration number: Y2022980023622

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Granted publication date: 20220826

Pledgee: Shenzhen hi tech investment small loan Co.,Ltd.

Pledgor: Shenzhen Zhengtong cloud computing Co.,Ltd.

Registration number: Y2022980023622