TWI778771B - Monitoring method, monitoring system and monitoring device of virtual machine operation - Google Patents

Monitoring method, monitoring system and monitoring device of virtual machine operation Download PDF

Info

Publication number
TWI778771B
TWI778771B TW110132132A TW110132132A TWI778771B TW I778771 B TWI778771 B TW I778771B TW 110132132 A TW110132132 A TW 110132132A TW 110132132 A TW110132132 A TW 110132132A TW I778771 B TWI778771 B TW I778771B
Authority
TW
Taiwan
Prior art keywords
virtual machine
virtual
cloud platform
virtual switch
monitoring system
Prior art date
Application number
TW110132132A
Other languages
Chinese (zh)
Other versions
TW202309745A (en
Inventor
陳冠儒
余俊男
Original Assignee
新加坡商鴻運科股份有限公司
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 新加坡商鴻運科股份有限公司 filed Critical 新加坡商鴻運科股份有限公司
Priority to TW110132132A priority Critical patent/TWI778771B/en
Application granted granted Critical
Publication of TWI778771B publication Critical patent/TWI778771B/en
Publication of TW202309745A publication Critical patent/TW202309745A/en

Links

Images

Abstract

The application discloses a monitoring method, monitoring system and monitoring device of virtual machine operation. Monitoring system of virtual machine operation including central monitoring system, cloud platform, virtual switch and virtual machine. The central monitoring system is connected to the cloud platform, the cloud platform is connect to the virtual switch, and the virtual switch is connected to the virtual machine. The central monitoring system is configured for sending acquisition instructions to the cloud platform. The cloud platform is configured for transmitting the command to the virtual switch. The virtual switch is configured for sending the command to the virtual machine. The virtual machine can further inquire the running information based on the command and send the running information to the virtual switch. The virtual switch can transmit the running information to the cloud platform . The cloud platform can further transmit the operation information to the central monitoring system. The central monitoring system is configured for monitoring and managing the running information. This application can realize the network isolation function and improve the security of signal transmission, based on the connecting of the virtual machine and the virtual switch.

Description

虛擬機器運行監控方法、監控系統及監控設備 Virtual machine operation monitoring method, monitoring system and monitoring device

本申請涉及雲監控技術領域,具體涉及一種虛擬機器運行監控方法、監控系統及監控設備。 The present application relates to the technical field of cloud monitoring, and in particular, to a method for monitoring the operation of a virtual machine, a monitoring system and a monitoring device.

目前,以虛擬化技術為基礎的雲計算的廣泛應用,提高了伺服器CPU與網路資源的利用率,惟係對於虛擬機器的監控亦提出了新的要求。 At present, the widespread application of cloud computing based on virtualization technology improves the utilization rate of server CPU and network resources, but also puts forward new requirements for the monitoring of virtual machines.

傳統的監控架構下,監控端與受監控端必須網路相通,目前採用的中央監控系統網路介面直接與虛擬機器連接,於資訊傳輸時可能造成使用者資訊外泄,資訊傳輸安全性低,並且整合性低。 Under the traditional monitoring structure, the monitoring terminal and the monitored terminal must be connected to the network. The network interface of the central monitoring system currently used is directly connected to the virtual machine, which may cause user information leakage during information transmission, and the security of information transmission is low. and low integration.

鑒於上述狀況,有必要提出一種虛擬機器運行監控方法、監控系統及監控設備,以解決目前採用的中央監控系統網路介面直接與虛擬機器連接,資訊傳輸安全性低以及整合性低的技術問題。 In view of the above situation, it is necessary to propose a virtual machine operation monitoring method, monitoring system and monitoring equipment to solve the technical problems of the currently adopted central monitoring system network interface directly connecting with the virtual machine, low security of information transmission and low integration.

本申請的一實施例提供了一種虛擬機器運行監控系統,包括:中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;所述中央監控系統用於向所述雲平臺發送獲取指令; 所述雲平臺用於將所述獲取指令轉發至所述虛擬交換機;所述虛擬交換機用於將所述獲取指令發送至虛擬機器;所述虛擬機器用於基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機;所述虛擬交換機還用於將所述運行資訊轉發至所述雲平臺;所述雲平臺還用於將所述運行資訊轉發至所述中央監控系統;所述中央監控系統還用於對所述運行資訊進行監控管理。 An embodiment of the present application provides a virtual machine operation monitoring system, including: a central monitoring system, a cloud platform, a virtual switch and a virtual machine, the central monitoring system is connected to the cloud platform, and the cloud platform is connected to the virtual machine a switch is connected, and the virtual switch is connected to the virtual machine; the central monitoring system is configured to send an acquisition instruction to the cloud platform; The cloud platform is used to forward the acquisition instruction to the virtual switch; the virtual switch is used to send the acquisition instruction to the virtual machine; the virtual machine is used to query the operation information based on the acquisition instruction and send the information to the virtual machine. The operation information is sent to the virtual switch; the virtual switch is further configured to forward the operation information to the cloud platform; the cloud platform is further configured to forward the operation information to the central monitoring system; The central monitoring system is also used to monitor and manage the operation information.

於一些實施例中,所述中央監控系統內設置有Zabbix伺服器,所述虛擬機器內設置有Zabbix用戶端,所述Zabbix用戶端用於接收Zabbix伺服器發送的所述獲取指令,並基於所述獲取指令完成對所述虛擬機器的運行資訊的收集。 In some embodiments, the central monitoring system is provided with a Zabbix server, the virtual machine is provided with a Zabbix client, the Zabbix client is used to receive the acquisition instruction sent by the Zabbix server, and based on the The obtaining instruction completes the collection of the running information of the virtual machine.

於一些實施例中,所述雲平臺包括代理伺服器,所述代理伺服器與所述Zabbix伺服器、所述虛擬交換機連接,用於轉發Zabbix伺服器發送的所述獲取指令至所述虛擬交換機。 In some embodiments, the cloud platform includes a proxy server, the proxy server is connected to the Zabbix server and the virtual switch, and is used for forwarding the acquisition instruction sent by the Zabbix server to the virtual switch .

本申請的一實施例提供了一種虛擬機器運行監控方法,應用於一種虛擬機器運行監控系統,所述系統包括中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;所述方法包括:所述中央監控系統向所述雲平臺發送獲取指令,所述獲取指令至少包括虛擬網路識別字與虛擬機器IP;所述雲平臺將所述獲取指令轉發至所述虛擬交換機;所述虛擬交換機將所述獲取指令中的所述虛擬機器IP發送至與所述虛擬機器IP對應的虛擬機器;所述虛擬機器基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機; 所述虛擬交換機將所述運行資訊轉發至所述雲平臺;所述雲平臺將所述運行資訊轉發至所述中央監控系統;所述中央監控系統對所述運行資訊進行監控管理。 An embodiment of the present application provides a method for monitoring the operation of a virtual machine, which is applied to a system for monitoring the operation of a virtual machine. The system includes a central monitoring system, a cloud platform, a virtual switch, and a virtual machine. The central monitoring system and the cloud The platform is connected, the cloud platform is connected to the virtual switch, and the virtual switch is connected to the virtual machine; the method includes: the central monitoring system sends an acquisition instruction to the cloud platform, and the acquisition instruction at least includes The virtual network identifier and the virtual machine IP; the cloud platform forwards the acquisition instruction to the virtual switch; the virtual switch sends the virtual machine IP in the acquisition instruction to the virtual machine IP a corresponding virtual machine; the virtual machine queries operation information based on the acquisition instruction and sends the operation information to the virtual switch; The virtual switch forwards the operation information to the cloud platform; the cloud platform forwards the operation information to the central monitoring system; the central monitoring system monitors and manages the operation information.

於一些實施例中,所述中央監控系統內設置有Zabbix伺服器,所述虛擬機器內設置有Zabbix用戶端,所述方法還包括如下步驟:所述Zabbix伺服器向所述雲平臺發送獲取指令;所述雲平臺藉由虛擬交換機將所述獲取指令發送至所述虛擬機器;所述虛擬上的Zabbix用戶端基於所述獲取指令獲取所述虛擬機器的運行資訊。 In some embodiments, a Zabbix server is set in the central monitoring system, and a Zabbix client is set in the virtual machine, and the method further includes the following steps: the Zabbix server sends an acquisition instruction to the cloud platform. ; the cloud platform sends the acquisition instruction to the virtual machine through a virtual switch; the Zabbix client on the virtual acquires the running information of the virtual machine based on the acquisition instruction.

於一些實施例中,所述雲平臺內的網路節點上設置代理伺服器,所述方法還包括以下步驟;所述代理伺服器接收所述Zabbix伺服器發送的獲取指令;所述代理伺服器藉由網路命名空間與所述虛擬交換機建立連接,將所述獲取指令發送至虛擬交換機;所述代理伺服器獲取所述虛擬交換機接收的所述虛擬機器發送的運行資訊並將所述運行資訊發送至所述Zabbix伺服器。 In some embodiments, a proxy server is set on a network node in the cloud platform, and the method further includes the following steps; the proxy server receives an acquisition instruction sent by the Zabbix server; the proxy server Establish a connection with the virtual switch through the network namespace, and send the acquisition instruction to the virtual switch; the proxy server acquires the operation information sent by the virtual machine received by the virtual switch and sends the operation information to the virtual switch. sent to the Zabbix server.

於一些實施例中,所述網路命名空間包括虛擬網路識別字、虛擬機器IP以及測項識別碼,所述代理伺服器藉由網路識別字、虛擬機器IP以及測項識別碼建立的網路命名空間指定虛擬交換機。 In some embodiments, the network namespace includes a virtual network identifier, a virtual machine IP, and an item identifier, and the proxy server is created by the network identifier, the virtual machine IP, and the item identifier. The network namespace specifies the virtual switch.

於一些實施例中,所述網路命名空間的建立方法,包括如下步驟:查看當前網路命名空間,並添加新的網路命名空間;添加虛擬網路識別字、虛擬機器IP以及測項識別碼;將虛擬網路識別字、虛擬機器IP以及測項識別碼添加到新的網路命名空間。 In some embodiments, the method for establishing a network namespace includes the following steps: viewing the current network namespace, and adding a new network namespace; adding a virtual network identifier, a virtual machine IP, and an item identification code; add the virtual network identifier, virtual machine IP, and item identifier to the new network namespace.

於一些實施例中,所述虛擬交換機為使用OpenVSwitch建立的虛擬交換機,所述虛擬交換機用於網路隔離保護,所述中央監控系統內設置有普羅米修士伺服器,所述虛擬機器內設置有exporter,所述普羅米修士伺服器向所述雲平臺發送採集指令;所述雲平臺藉由虛擬交換機將所述採集指令發送至虛擬機器;所述虛擬機器內的exporter接收所述普羅米修士伺服器的採集指令,並基於所述採集指令採集所述虛擬上的運行資訊。 In some embodiments, the virtual switch is a virtual switch established by using OpenVSwitch, the virtual switch is used for network isolation protection, the central monitoring system is provided with a Prometheus server, and the virtual machine is provided with exporter, the Prometheus server sends a collection instruction to the cloud platform; the cloud platform sends the collection instruction to the virtual machine through a virtual switch; the exporter in the virtual machine receives the Prometheus server and collects the operation information on the virtual machine based on the collection instruction.

本申請的一實施例提供了一種虛擬機器運行監控設備,包括:處理器、記憶體及存儲於所述記憶體上並可於所述處理器上運行的虛擬機器監控的標定程式,所述虛擬機器監控的標定程式配置為實現上述虛擬機器運行監控方法的步驟。 An embodiment of the present application provides a virtual machine operation monitoring device, including: a processor, a memory, and a calibration program for virtual machine monitoring stored on the memory and running on the processor, the virtual machine The machine monitoring calibration program is configured to implement the steps of the above-mentioned virtual machine operation monitoring method.

本申請中的中央監控系統將獲取指令發送至雲平臺,雲平臺藉由虛擬交換機獲取虛擬機器上的運行資訊再將所述運行資訊轉發至雲平臺,虛擬交換機能夠實現網路隔離功能,提高了信號傳輸的安全性。 The central monitoring system in this application sends the acquisition instruction to the cloud platform, and the cloud platform acquires the operation information on the virtual machine through the virtual switch and then forwards the operation information to the cloud platform. The virtual switch can realize the network isolation function, which improves the Security of signal transmission.

10:中央監控系統 10: Central monitoring system

101:Zabbix伺服器 101: Zabbix Server

20:雲平臺 20: Cloud Platform

201:代理伺服器 201: Proxy server

30:虛擬交換機 30: Virtual Switch

40:虛擬機器 40: Virtual Machine

圖1係本申請第一實施例的監控系統的架構示意圖。 FIG. 1 is a schematic structural diagram of a monitoring system according to a first embodiment of the present application.

圖2係本申請第一實施例的監控系統的Zabbix架構示意圖。 FIG. 2 is a schematic diagram of the Zabbix architecture of the monitoring system according to the first embodiment of the present application.

圖3係本申請第一實施例的虛擬機器運行監控方法的流程圖。 FIG. 3 is a flowchart of a method for monitoring the operation of a virtual machine according to the first embodiment of the present application.

為了使本發明的目的、技術方案及優點更加清楚明白,以下結合附圖及實施例,對本發明進行進一步詳細說明。應當理解,此處所描述的具體實施 例僅用以解釋本發明,並不用於限定本發明。基於本發明中的實施例,本領域普通技術人員於沒有做出創造性勞動前提下所獲得的所有其他實施例,均屬於本發明保護的範圍。 In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific implementations described herein Examples are only used to explain the present invention, and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

本申請實施例提供一種虛擬機器運行監控系統,包括:中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;所述中央監控系統用於向所述雲平臺發送獲取指令;所述雲平臺用於將所述獲取指令轉發至所述虛擬交換機;所述虛擬交換機用於將所述獲取指令發送至虛擬機器;所述虛擬機器用於基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機;所述虛擬交換機還用於將所述運行資訊轉發至所述雲平臺;所述雲平臺還用於將所述運行資訊轉發至所述中央監控系統;所述中央監控系統還用於對所述運行資訊進行監控管理。 An embodiment of the present application provides a virtual machine operation monitoring system, including: a central monitoring system, a cloud platform, a virtual switch, and a virtual machine, the central monitoring system is connected to the cloud platform, and the cloud platform is connected to the virtual switch, The virtual switch is connected to the virtual machine; the central monitoring system is used to send an acquisition instruction to the cloud platform; the cloud platform is used to forward the acquisition instruction to the virtual switch; the virtual switch uses sending the acquisition instruction to a virtual machine; the virtual machine is configured to query operation information based on the acquisition instruction and send the operation information to the virtual switch; the virtual switch is further configured to send the operation information forwarded to the cloud platform; the cloud platform is further configured to forward the operation information to the central monitoring system; the central monitoring system is further configured to monitor and manage the operation information.

本申請實施例還提供一種虛擬機器運行監控方法,應用於一種虛擬機器運行監控系統,所述系統包括中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;所述方法包括:所述中央監控系統向所述雲平臺發送獲取指令,所述獲取指令至少包括虛擬網路識別字與虛擬機器IP;所述雲平臺將所述獲取指令轉發至所述虛擬交換機;所述虛擬交換機將所述獲取指令中的所述虛擬機器IP發送至與所述虛擬機器IP對應的虛擬機器; 所述虛擬機器基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機;所述虛擬交換機將所述運行資訊轉發至所述雲平臺;所述雲平臺將所述運行資訊轉發至所述中央監控系統;所述中央監控系統對所述運行資訊進行監控管理。 Embodiments of the present application further provide a method for monitoring the operation of a virtual machine, which is applied to a system for monitoring the operation of a virtual machine. The system includes a central monitoring system, a cloud platform, a virtual switch and a virtual machine, and the central monitoring system is connected to the cloud platform. , the cloud platform is connected to the virtual switch, and the virtual switch is connected to the virtual machine; the method includes: the central monitoring system sends an acquisition instruction to the cloud platform, and the acquisition instruction at least includes a virtual network The cloud platform forwards the acquisition instruction to the virtual switch; the virtual switch sends the virtual machine IP in the acquisition instruction to the virtual machine IP corresponding to the virtual machine IP virtual machine; The virtual machine queries the operation information based on the acquisition instruction and sends the operation information to the virtual switch; the virtual switch forwards the operation information to the cloud platform; the cloud platform sends the operation information It is forwarded to the central monitoring system; the central monitoring system monitors and manages the operation information.

本申請中的中央監控系統將獲取指令發送至雲平臺,雲平臺藉由虛擬交換機獲取虛擬機器上的運行資訊再將所述運行資訊轉發至雲平臺,虛擬交換機能夠實現網路隔離功能,提高了信號傳輸的安全性。 The central monitoring system in this application sends the acquisition instruction to the cloud platform, and the cloud platform acquires the operation information on the virtual machine through the virtual switch and then forwards the operation information to the cloud platform. The virtual switch can realize the network isolation function, which improves the Security of signal transmission.

以下將結合附圖對本發明的一些實施方式進行詳細說明。 Some embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

如圖1所示,本申請實施例提供一種虛擬機器運行監控系統,包括:中央監控系統10、雲平臺20、虛擬交換機30與虛擬機器40,所述中央監控系統10與所述雲平臺20連接,所述雲平臺20與所述虛擬交換機30連接,所述虛擬交換機30與所述虛擬機器40連接;中央監控系統10向雲平臺20發送獲取指令;雲平臺20將所述獲取指令轉發至所述虛擬交換機30;虛擬交換機30將所述獲取指令發送至虛擬機器40;虛擬機器40基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機30;虛擬交換機30將所述運行資訊轉發至所述雲平臺20;所述雲平臺20將所述運行資訊轉發至所述中央監控系統10;中央監控系統10對所述運行資訊進行監控管理。 As shown in FIG. 1 , an embodiment of the present application provides a virtual machine operation monitoring system, including: a central monitoring system 10 , a cloud platform 20 , a virtual switch 30 and a virtual machine 40 , and the central monitoring system 10 is connected to the cloud platform 20 , the cloud platform 20 is connected to the virtual switch 30, and the virtual switch 30 is connected to the virtual machine 40; the central monitoring system 10 sends an acquisition instruction to the cloud platform 20; the cloud platform 20 forwards the acquisition instruction to the The virtual switch 30; the virtual switch 30 sends the acquisition instruction to the virtual machine 40; the virtual machine 40 queries the operation information based on the acquisition instruction and sends the operation information to the virtual switch 30; the virtual switch 30 sends the The operation information is forwarded to the cloud platform 20; the cloud platform 20 forwards the operation information to the central monitoring system 10; the central monitoring system 10 monitors and manages the operation information.

需要說明的係,中央監控系統10需要獲取某個虛擬機器40的運行資訊時,中央監控系統10向雲平臺20發送獲取指令,獲取指令包括虛擬機器40的IP位址、虛擬區域網路標識vlanID。 It should be noted that when the central monitoring system 10 needs to obtain the operation information of a certain virtual machine 40, the central monitoring system 10 sends an obtaining instruction to the cloud platform 20, and the obtaining instruction includes the IP address of the virtual machine 40 and the virtual local area network identification vlanID. .

雲平臺20內存儲有所有的虛擬機器40相關的資訊,例如每臺虛擬機器40的網路資訊(如IP位址、虛擬區域網路標識vlanID以及其所對應的網路埠資訊、虛擬機器40與虛擬交換機30的埠映射關係及諸如此類的資訊)。 The cloud platform 20 stores all the information related to the virtual machines 40 , such as network information of each virtual machine 40 (such as IP address, virtual local area network identification vlanID and its corresponding network port information, virtual machine 40 port mapping with virtual switch 30 and the like).

雲平臺20基於獲取指令中的虛擬機器40的IP位址、虛擬區域網路標識vlanID,於虛擬機器40與虛擬交換機30的埠映射關係中匹配與該虛擬機器40對應的虛擬交換機30,將獲取指令發送到該虛擬交換機30。 The cloud platform 20 matches the virtual switch 30 corresponding to the virtual machine 40 in the port mapping relationship between the virtual machine 40 and the virtual switch 30 based on the IP address of the virtual machine 40 and the virtual local area network identifier vlanID in the acquisition instruction, and obtains the Instructions are sent to the virtual switch 30 .

虛擬交換機30可係諸如OpenSwitch那樣的運行於虛擬化平臺上的多層虛擬交換機30,為與其連接的虛擬機器40提供了與其他物理交換機一樣的功能,如網路隔離、QoS配置、流量監控、資料包分析等。可藉由對這樣的虛擬交換機30進行程式設計擴展,從而實現大規模網路的自動化配置、管理、維護,並且支援現有標準管理介面與協定。 The virtual switch 30 can be a multi-layer virtual switch 30 running on a virtualization platform such as OpenSwitch, and provides the same functions as other physical switches for the virtual machines 40 connected to it, such as network isolation, QoS configuration, traffic monitoring, data packet analysis, etc. Such virtual switch 30 can be extended by programming, so as to realize automatic configuration, management, and maintenance of large-scale networks, and support existing standard management interfaces and protocols.

虛擬交換機30基於獲取指令中虛擬機器40的IP位址、虛擬區域網路標識vlanID,將所述獲取指令發送至對應的虛擬機器40。 The virtual switch 30 sends the acquisition instruction to the corresponding virtual machine 40 based on the IP address of the virtual machine 40 and the virtual local area network identifier vlanID in the acquisition instruction.

虛擬機器40內均安裝有監控代理外掛程式(agent),於虛擬機器40接收到獲取指令後,虛擬機器40內的監控代理外掛程式開始運行,採集虛擬機器40的運行資訊,運行資訊可包括虛擬機器40的CPU的利用率、記憶體的佔用率、硬碟的使用率、虛擬機器作業系統的運行情況以及虛擬機器於各個時間段的資訊流量統計。 A monitoring agent plug-in program (agent) is installed in the virtual machine 40. After the virtual machine 40 receives the acquisition instruction, the monitoring agent plug-in program in the virtual machine 40 starts to run, and collects the operation information of the virtual machine 40. The operation information may include virtual machines. The utilization rate of the CPU of the machine 40 , the utilization rate of the memory, the utilization rate of the hard disk, the operation status of the virtual machine operating system, and the information traffic statistics of the virtual machine in various time periods.

監控代理外掛程式將虛擬機器40的運行資訊匯總發送到與其連接的虛擬交換機30,虛擬交換機30將運行資訊發送至雲平臺20,雲平臺20將運行資訊轉發至所述中央監控系統10;中央監控系統10對運行資訊進行監控管理。 The monitoring agent plug-in program collectively sends the operation information of the virtual machine 40 to the virtual switch 30 connected to it, the virtual switch 30 sends the operation information to the cloud platform 20, and the cloud platform 20 forwards the operation information to the central monitoring system 10; the central monitoring The system 10 monitors and manages the operation information.

如圖2所示,於一些實施例中,所述中央監控系統10內設置有Zabbix伺服器101,所述虛擬機器40內部的監控代理外掛程式為Zabbix用戶端,所述Zabbix用戶端用於接收Zabbix伺服器101發送的所述獲取指令,並基於所述獲取指令完成對所述虛擬機器40的運行資訊的收集。 As shown in FIG. 2, in some embodiments, the central monitoring system 10 is provided with a Zabbix server 101, and the monitoring agent plug-in program inside the virtual machine 40 is a Zabbix client, and the Zabbix client is used to receive The acquisition instruction sent by the Zabbix server 101, and based on the acquisition instruction, the collection of the operation information of the virtual machine 40 is completed.

所述雲平臺20包括代理伺服器201,所述代理伺服器201與所述Zabbix伺服器101、所述虛擬交換機30連接,用於轉發Zabbix伺服器101發送的所述獲取指令至所述虛擬交換機30。 The cloud platform 20 includes a proxy server 201, the proxy server 201 is connected to the Zabbix server 101 and the virtual switch 30, and is used to forward the acquisition instruction sent by the Zabbix server 101 to the virtual switch 30.

其中,所述代理伺服器201與所述虛擬交換機30藉由網路命名空間連接。 The proxy server 201 and the virtual switch 30 are connected through a network namespace.

網路命名空間包括虛擬網路識別字、虛擬機器40的IP以及測項識別碼,所述代理伺服器201藉由網路識別字、虛擬機器40的IP以及測項識別碼建立的網路命名空間指定虛擬交換機30。 The network namespace includes the virtual network identifier, the IP of the virtual machine 40 and the item identifier. The proxy server 201 uses the network identifier, the IP of the virtual machine 40 and the item identifier to establish a network name. The space specifies the virtual switch 30 .

例如Openstack雲平臺的代理伺服器201係藉由固定首碼加上虛擬機器網路埠的ID截取資訊來對該虛擬交換機的網路埠進行命名。如虛擬機器40的port ID為f467189c-341f-42fc-8056-065255e14530,那麼該虛擬機器40對應的OpenVSwitch虛擬交換機30埠的命名就係qvo-f467189c-34。 For example, the proxy server 201 of the Openstack cloud platform names the network port of the virtual switch by extracting the information by adding a fixed prefix and an ID of the network port of the virtual machine. If the port ID of the virtual machine 40 is f467189c-341f-42fc-8056-065255e14530, then the name of the port 30 of the OpenVSwitch virtual switch corresponding to the virtual machine 40 is qvo-f467189c-34.

如圖3所示,本申請實施例還提供一種虛擬機器運行監控方法,應用於一種虛擬機器運行監控系統,所述系統包括中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;所述方法包括:S101,中央監控系統向雲平臺發送獲取指令,獲取指令至少包括虛擬網路識別字與虛擬機器IP;S102,雲平臺將獲取指令轉發至虛擬交換機;S103,虛擬交換機將獲取指令中的虛擬機器IP發送至與虛擬機器IP對應的虛擬機器;S104,虛擬機器基於獲取指令查詢運行資訊並將運行資訊發送到虛擬交換機;S105,虛擬交換機將運行資訊轉發至雲平臺;S106,雲平臺將運行資訊轉發至中央監控系統;S107,中央監控系統對運行資訊進行監控管理。 As shown in FIG. 3 , an embodiment of the present application further provides a method for monitoring the operation of a virtual machine, which is applied to a system for monitoring the operation of a virtual machine. The system includes a central monitoring system, a cloud platform, a virtual switch, and a virtual machine. The central monitoring system is connected to the cloud platform, the cloud platform is connected to the virtual switch, and the virtual switch is connected to the virtual machine; the method includes: S101, the central monitoring system sends an acquisition instruction to the cloud platform, and the acquisition instruction at least includes The virtual network identifier and the virtual machine IP; S102, the cloud platform forwards the acquisition instruction to the virtual switch; S103, the virtual switch sends the virtual machine IP in the acquisition instruction to the virtual machine corresponding to the virtual machine IP; S104, the virtual machine is based on Obtain an instruction to query the operation information and send the operation information to the virtual switch; S105, the virtual switch forwards the operation information to the cloud platform; S106, the cloud platform forwards the operation information to the central monitoring system; S107, the central monitoring system monitors and manages the operation information .

於一些實施例中,所述方法還包括如下內容:所述中央監控系統內設置有Zabbix伺服器,所述虛擬機器上設置有Zabbix用戶端;所述Zabbix伺服器向所述雲平臺發送獲取指令;所述雲平臺藉由虛擬交換機將所述獲取指令發送至所述虛擬機器;所述虛擬上的Zabbix用戶端基於所述獲取指令獲取所述虛擬機器的運行資訊。 In some embodiments, the method further includes the following content: a Zabbix server is set in the central monitoring system, and a Zabbix client is set on the virtual machine; the Zabbix server sends an acquisition instruction to the cloud platform ; the cloud platform sends the acquisition instruction to the virtual machine through a virtual switch; the Zabbix client on the virtual acquires the running information of the virtual machine based on the acquisition instruction.

於一些實施例中,所述雲平臺內的網路節點上設置代理伺服器;所述方法還包括以下內容;所述代理伺服器接收所述Zabbix伺服器發送的獲取指令,所述代理伺服器藉由網路命名空間與所述虛擬交換機建立連接,將所述獲取指令發送至虛擬交換機;所述代理伺服器獲取所述虛擬交換機接收的所述虛擬機器發送的運行資訊並將所述運行資訊發送至所述Zabbix伺服器。 In some embodiments, a proxy server is set on a network node in the cloud platform; the method further includes the following content; the proxy server receives an acquisition instruction sent by the Zabbix server, the proxy server Establish a connection with the virtual switch through the network namespace, and send the acquisition instruction to the virtual switch; the proxy server acquires the operation information sent by the virtual machine received by the virtual switch and sends the operation information to the virtual switch. sent to the Zabbix server.

於一些實施例中,所述網路命名空間包括虛擬網路識別字、虛擬機器的IP以及測項識別碼,所述代理伺服器藉由網路識別字、虛擬機器的IP以及測項識別碼建立的網路命名空間指定虛擬交換機。 In some embodiments, the network namespace includes the virtual network identifier, the IP of the virtual machine, and the item identifier, and the proxy server uses the network identifier, the IP of the virtual machine, and the item identifier. The established network namespace specifies the virtual switch.

於一些實施例中,所述虛擬交換機為使用OpenVSwitch建立的虛擬交換機,所述虛擬交換機用於網路隔離保護,所述網路命名空間的建立方法,包括如下步驟:查看當前網路命名空間,並添加新的網路命名空間;添加虛擬網路識別字、虛擬機器的IP以及測項識別碼;將虛擬網路識別字、虛擬機器的IP以及測項識別碼添加到新的網路命名空間。 In some embodiments, the virtual switch is a virtual switch established by using OpenVSwitch, and the virtual switch is used for network isolation protection, and the method for establishing a network namespace includes the following steps: viewing the current network namespace, And add a new network namespace; add virtual network identifier, virtual machine IP and item identifier; add virtual network identifier, virtual machine IP, and item identifier to the new network namespace .

於一些實施例中,所述中央監控系統內設置有普羅米修士伺服器(Prometheus server),所述虛擬機器內設置有exporter,所述普羅米修士伺服器向所述雲平臺發送採集指令;所述雲平臺藉由虛擬交換機將所述採集指令發送 至虛擬機器;所述虛擬機器內的exporter接收所述普羅米修士伺服器的採集指令,並基於所述採集指令採集所述虛擬上的運行資訊。 In some embodiments, the central monitoring system is provided with a Prometheus server, the virtual machine is provided with an exporter, and the Prometheus server sends a collection instruction to the cloud platform; The cloud platform sends the collection instruction through the virtual switch to the virtual machine; the exporter in the virtual machine receives the collection instruction of the Prometheus server, and collects the running information on the virtual machine based on the collection instruction.

一種虛擬機器運行監控設備,包括:處理器、記憶體及存儲於所述記憶體上並可於所述處理器上運行的虛擬機器監控的標定程式,所述虛擬機器監控的標定程式配置為實現上述虛擬機器運行監控方法的步驟。 A virtual machine operation monitoring device, comprising: a processor, a memory, and a calibration program for virtual machine monitoring stored on the memory and running on the processor, the calibration program for the virtual machine monitoring being configured to achieve The steps of the above virtual machine operation monitoring method.

處理器可係中央處理單元(Central Processing Unit,CPU),還可包括其他通用處理器、數位訊號處理器(Digital Signal Processor,DSP)、專用積體電路(Application Specific Integrated Circuit,ASIC)、現成可程式設計閘陣列(Field-Programmable Gate Array,FPGA)或者其他可程式設計邏輯器件、分立門或者電晶體邏輯器件、分立硬體元件等。通用處理器可係微處理器或者所述處理器亦可係任何常規的處理器等,處理器係控制中心,利用各種介面與線路連接各個部分。 The processor can be a central processing unit (CPU), and can also include other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), ready-made Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or the processor can also be any conventional processor, etc. The processor is a control center, and uses various interfaces and circuits to connect various parts.

記憶體可用於存儲電腦程式與/或模塊/單元,處理器藉由運行或執行存儲於記憶體內的電腦程式與/或模塊/單元,以及調用存儲於記憶體內的資料,實現的各種功能。記憶體可包括外部存儲介質,亦可包括記憶體。此外,記憶體可包括高速隨機存取記憶體,還可包括非易失性記憶體,例如硬碟、記憶體、插接式硬碟,智慧存儲卡(Smart Media Card,SMC),安全數位(Secure Digital,SD)卡,快閃記憶體卡(Flash Card)、至少一個磁碟記憶體件、快閃記憶體器件、或其他易失性固態記憶體件。 The memory can be used to store computer programs and/or modules/units, and the processor implements various functions by running or executing the computer programs and/or modules/units stored in the memory and calling the data stored in the memory. The memory may include an external storage medium, and may also include a memory. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory such as hard disk, memory, plug-in hard disk, Smart Media Card (SMC), Secure Digital ( Secure Digital, SD) card, flash memory card (Flash Card), at least one disk memory device, flash memory device, or other volatile solid state memory device.

模塊/單元如果以軟體功能單元的形式實現並作為獨立的產品銷售或使用時,可存儲於一個電腦可讀取存儲介質中。基於這樣的理解,本申請實現所述實施例方法中的全部或部分流程,亦可藉由電腦可讀程式指令相關的硬體來完成,所述的電腦可讀程式指令可存儲於一電腦可讀存儲介質中,所述電腦可讀程式指令於被處理器執行時,可實現所述各個方法實施例的步驟。需要說明 的係,所述電腦可讀介質包含的內容可根據司法管轄區內立法與專利實踐的要求進行適當的增減,例如於某些司法管轄區,根據立法與專利實踐,電腦可讀介質不包括電載波信號與電信信號。 Modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the method of the embodiments can also be implemented by computer-readable program instructions related to hardware, and the computer-readable program instructions can be stored in a computer In the read storage medium, when the computer-readable program instructions are executed by the processor, the steps of the various method embodiments can be implemented. need to explain However, the content contained in the computer-readable medium may be appropriately increased or decreased as required by the legislation and patent practice in the jurisdiction, for example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium does not include Electric carrier signal and telecommunication signal.

此處描述的電腦可讀程式指令可從電腦可讀存儲介質下載到相應的計算處理設備,或者藉由網路(例如,互聯網,局域網,廣域網路與網路)下載到外部電腦或外部存放裝置或無線網路。該網路可包括銅傳輸電纜、光傳輸纖維、無線傳輸、路由器、防火牆、交換機、閘道電腦與/或邊緣伺服器,每個計算處理設備中的網路介面卡卡或網路介面從網路接收電腦可讀程式指令,並轉發該電腦可讀程式指令以存儲於各個計算處理設備內的電腦可讀存儲介質中。 The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a corresponding computing processing device, or downloaded over a network (eg, the Internet, a local area network, a wide area network, and a network) to an external computer or external storage device or wireless network. The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers, network interface cards or network interface slaves in each computing processing device The circuit receives the computer-readable program instructions, and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing processing device.

用於執行本發明的操作的電腦可讀程式指令可係組合語言程式指令,指令集架構(ISA)指令,機器指令,機器相關指令,微碼,固件指令,狀態設置資料,積體電路的配置資料,或以一種或多種程式設計語言(包括物件導向的程式設計語言,例如Smalltalk,C++等)與過程程式設計語言(例如“C”程式設計語言或類似程式設計)的任意組合編寫的原始程式碼或目標代碼語言。電腦可讀程式指令可完全於使用者電腦上,部分於使用者電腦上,作為獨立套裝軟體執行,部分於使用者電腦上並且部分於遠端電腦上或完全於遠端電腦或伺服器上執行。於後一種情況下,遠端電腦可藉由任何類型的網路(包括局域網(LAN)或廣域網路(WAN))連接到使用者電腦,或者可與外部電腦建立連接(用於例如,藉由使用Internet服務提供者的Internet)。於一些實施例中,包括例如可程式設計邏輯電路,現場可程式設計閘陣列(FPGA)或可程式設計邏輯陣列(PLA)的電子電路可藉由利用電腦可讀程式指令的狀態資訊來個性化電腦可讀程式指令。 Computer readable program instructions for carrying out operations of the present invention may be assembled language program instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration of integrated circuits Data, or original programming written in any combination of one or more programming languages (including object-oriented programming languages, such as Smalltalk, C++, etc.) and procedural programming languages (such as the "C" programming language or similar programming language) code or object code language. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on a remote computer or server . In the latter case, the remote computer can be connected to the user computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or a connection can be established with an external computer (for example, by Internet using an Internet service provider). In some embodiments, electronic circuits including, for example, Programmable Logic Circuits, Field Programmable Gate Arrays (FPGA) or Programmable Logic Arrays (PLA) can be personalized by utilizing state information from computer readable program instructions Computer readable program instructions.

於此參考根據本發明的實施例的方法,裝置與電腦程式產品的流程圖與/或框圖描述了本發明的各方面。可理解的係,流程圖與/或框圖的每個框以及流程圖與/或框圖中的框的組合可藉由電腦可讀程式指令來實現。 Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.

可將這些電腦可讀程式指令提供給通用電腦,專用電腦或其他可程式設計資料處理設備的處理器以產生機器,從而使得該指令經由電腦的處理器或其他可程式設計資料處理來執行。於該裝置中,創建用於實現流程圖與/或框圖方框中指定的功能/動作的裝置。這些電腦可讀程式指令還可存儲於電腦可讀存儲介質中,該電腦可讀存儲介質可指導電腦,可程式設計資料處理裝置與/或其他設備以特定方式起作用,從而使得其中存儲有指令的電腦可讀存儲介質。亦可將電腦可讀程式指令載入到電腦,其他可程式設計資料處理設備或其他設備上,以使一系列操作步驟於電腦,其他可程式設計設備或其他設備上執行以產生電腦實現的過程,例如於電腦,其他可程式設計裝置或其他設備上執行的指令實現了流程圖與/或框圖中指定的功能/動作。 These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer or other programmable data processing apparatus to produce a machine such that the instructions are executed by the processor of the computer or other programmable data processing apparatus. In the apparatus, means are created for implementing the functions/acts specified in the flowchart and/or block diagram blocks. These computer readable program instructions may also be stored in a computer readable storage medium which instructs a computer, data processing apparatus and/or other equipment to function in a particular manner such that instructions are stored therein computer-readable storage medium. Computer readable program instructions can also be loaded into a computer, other programmable data processing device or other device to cause a series of operational steps to be executed on the computer, other programmable device or other device to produce a computer-implemented process , for example, instructions executed on a computer, other programmable device, or other device implement the functions/acts specified in the flowcharts and/or block diagrams.

附圖中的流程圖與框圖示出了根據本發明的各種實施例的裝置,方法與電腦程式產品的可能實現的體系結構,功能與操作。就這一點而言,流程圖或框圖中的每個方框可代表指令的模塊,片段或部分,其包括用於實現指定的邏輯功能的一個或複數可執行指令。於一些替代實施方式中,方框中指出的功能可不按圖中指出的順序發生。例如,取決於所涉及的功能,實際上可基本上一併執行連續示出的兩個框,或者有時可以相反的循序執行這些框。還應注意,框圖與/或流程圖的每個方框以及框圖與/或流程圖的方框的組合可由執行指定功能或動作或基於特定目的的基於硬體的專用系統來實現。 The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowcharts, and combinations of blocks of the block diagrams and/or flowcharts, can be implemented by special purpose hardware-based systems that perform the specified functions or actions or for a particular purpose.

已經出於說明的目的給出了本發明的各種實施例的描述,惟並不意圖係窮舉的或將本發明限制為所公開的形式。於不脫離本發明的範圍與精神的情況下,許多修改與變化對於本領域普通技術人員將係顯而易見的。選擇與描述 實施例係為了最好地解釋本發明的原理與實際應用,並使本領域的其他普通技術人員能夠理解本發明的各種實施例,這些實施例具有各種符合預期的特定用途的修改。 The description of various embodiments of the present invention has been presented for purposes of illustration, and is not intended to be exhaustive or to limit the invention to the form disclosed. Numerous modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of this invention. selection and description The embodiments are presented in order to best explain the principles of the invention and the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.

10:中央監控系統 10: Central monitoring system

20:雲平臺 20: Cloud Platform

30:虛擬交換機 30: Virtual Switch

40:虛擬機器 40: Virtual Machine

Claims (10)

一種虛擬機器運行監控系統,其中,包括:中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;所述中央監控系統用於向所述雲平臺發送獲取指令;所述雲平臺用於將所述獲取指令轉發至所述虛擬交換機;其中,所述將所述獲取指令轉發至所述虛擬交換機,包括:所述雲平臺基於所述獲取指令中的所述虛擬機器的IP位址、虛擬區域網路標識vlanID,於所述虛擬機器與所述虛擬交換機的埠映射關係中匹配與所述虛擬機器對應的所述虛擬交換機,將所述獲取指令發送到所述虛擬交換機;所述虛擬交換機用於基於所述獲取指令中的所述虛擬機器的IP位址、虛擬區域網路標識vlanID,將所述獲取指令發送至虛擬機器;所述虛擬機器用於基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機;所述虛擬交換機還用於將所述運行資訊轉發至所述雲平臺;所述雲平臺還用於將所述運行資訊轉發至所述中央監控系統;所述中央監控系統還用於對所述運行資訊進行監控管理。 A virtual machine operation monitoring system, comprising: a central monitoring system, a cloud platform, a virtual switch and a virtual machine, the central monitoring system is connected to the cloud platform, the cloud platform is connected to the virtual switch, the virtual a switch is connected to the virtual machine; the central monitoring system is used for sending an acquisition instruction to the cloud platform; the cloud platform is used for forwarding the acquisition instruction to the virtual switch; wherein, the acquiring Forwarding the instruction to the virtual switch includes: the cloud platform maps the virtual machine to the port of the virtual switch based on the IP address of the virtual machine and the virtual local area network identifier vlanID in the obtaining instruction match the virtual switch corresponding to the virtual machine in the relationship, and send the acquisition instruction to the virtual switch; the virtual switch is configured to use the IP address, virtual The local area network identifier vlanID sends the acquisition instruction to the virtual machine; the virtual machine is used to query the operation information based on the acquisition instruction and send the operation information to the virtual switch; the virtual switch is also used for The operation information is forwarded to the cloud platform; the cloud platform is further configured to forward the operation information to the central monitoring system; the central monitoring system is further configured to monitor and manage the operation information. 如請求項1所述之虛擬機器運行監控系統,其中,所述中央監控系統內設置有Zabbix伺服器,所述虛擬機器內設置有Zabbix用戶端,所述Zabbix用戶端用於接收Zabbix伺服器發送的所述獲取指令,並基於所述獲取指令完成對所述虛擬機器的運行資訊的收集。 The virtual machine operation monitoring system according to claim 1, wherein a Zabbix server is set in the central monitoring system, a Zabbix client is set in the virtual machine, and the Zabbix client is used to receive the data sent by the Zabbix server. the acquisition instruction, and the collection of the running information of the virtual machine is completed based on the acquisition instruction. 如請求項2所述之虛擬機器運行監控系統,其中,所述雲平臺包括代理伺服器,所述代理伺服器與所述Zabbix伺服器、所述虛擬交換機連接,用於轉發Zabbix伺服器發送的所述獲取指令至所述虛擬交換機。 The virtual machine operation monitoring system according to claim 2, wherein the cloud platform includes a proxy server, and the proxy server is connected to the Zabbix server and the virtual switch for forwarding the data sent by the Zabbix server. The obtaining instruction is sent to the virtual switch. 一種虛擬機器運行監控方法,應用於一種虛擬機器運行監控系統,所述系統包括中央監控系統、雲平臺、虛擬交換機與虛擬機器,所述中央監控 系統與所述雲平臺連接,所述雲平臺與所述虛擬交換機連接,所述虛擬交換機與所述虛擬機器連接;其中,所述方法包括:所述中央監控系統向所述雲平臺發送獲取指令,所述獲取指令至少包括虛擬網路識別字與虛擬機器IP;所述雲平臺將所述獲取指令轉發至所述虛擬交換機;其中,所述將所述獲取指令轉發至所述虛擬交換機,包括:所述雲平臺基於所述獲取指令中的所述虛擬機器的IP位址、虛擬區域網路標識vlanID,於所述虛擬機器與所述虛擬交換機的埠映射關係中匹配與所述虛擬機器對應的所述虛擬交換機,將所述獲取指令發送到所述虛擬交換機;所述虛擬交換機基於所述獲取指令中的所述虛擬機器的IP位址、虛擬區域網路標識vlanID,將所述獲取指令中的所述虛擬機器IP發送至與所述虛擬機器IP對應的虛擬機器;所述虛擬機器基於所述獲取指令查詢運行資訊並將所述運行資訊發送到所述虛擬交換機;所述虛擬交換機將所述運行資訊轉發至所述雲平臺;所述雲平臺將所述運行資訊轉發至所述中央監控系統;所述中央監控系統對所述運行資訊進行監控管理。 A virtual machine operation monitoring method, applied to a virtual machine operation monitoring system, the system includes a central monitoring system, a cloud platform, a virtual switch and a virtual machine, the central monitoring The system is connected to the cloud platform, the cloud platform is connected to the virtual switch, and the virtual switch is connected to the virtual machine; wherein the method includes: the central monitoring system sends an acquisition instruction to the cloud platform , the acquisition instruction includes at least a virtual network identifier and a virtual machine IP; the cloud platform forwards the acquisition instruction to the virtual switch; wherein the forwarding of the acquisition instruction to the virtual switch includes: : The cloud platform matches and corresponds to the virtual machine in the port mapping relationship between the virtual machine and the virtual switch based on the IP address of the virtual machine and the virtual local area network identifier vlanID in the acquisition instruction the virtual switch, sends the acquisition instruction to the virtual switch; the virtual switch sends the acquisition instruction based on the IP address of the virtual machine and the virtual area network identifier vlanID in the acquisition instruction The virtual machine IP in is sent to the virtual machine corresponding to the virtual machine IP; the virtual machine queries the operation information based on the acquisition instruction and sends the operation information to the virtual switch; the virtual switch will The operation information is forwarded to the cloud platform; the cloud platform forwards the operation information to the central monitoring system; the central monitoring system monitors and manages the operation information. 如請求項4所述之虛擬機器運行監控方法,其中,所述中央監控系統內設置有Zabbix伺服器,所述虛擬機器內設置有Zabbix用戶端,所述方法還包括如下步驟:所述Zabbix伺服器向所述雲平臺發送獲取指令;所述雲平臺藉由虛擬交換機將所述獲取指令發送至所述虛擬機器;所述虛擬上的Zabbix用戶端基於所述獲取指令獲取所述虛擬機器的運行資訊。 The method for monitoring the operation of a virtual machine according to claim 4, wherein a Zabbix server is set in the central monitoring system, a Zabbix client is set in the virtual machine, and the method further comprises the following steps: the Zabbix server The cloud platform sends the acquisition instruction to the cloud platform; the cloud platform sends the acquisition instruction to the virtual machine through the virtual switch; the Zabbix client on the virtual acquires the operation of the virtual machine based on the acquisition instruction News. 如請求項5所述之虛擬機器運行監控方法,其中,所述雲平臺內的網路節點上設置代理伺服器,所述方法還包括以下步驟;所述代理伺服器接收所述Zabbix伺服器發送的獲取指令; 所述代理伺服器藉由網路命名空間與所述虛擬交換機建立連接,將所述獲取指令發送至虛擬交換機;所述代理伺服器獲取所述虛擬交換機接收的所述虛擬機器發送的運行資訊並將所述運行資訊發送至所述Zabbix伺服器。 The method for monitoring the operation of a virtual machine according to claim 5, wherein a proxy server is set on a network node in the cloud platform, and the method further includes the following steps; the proxy server receives the data sent by the Zabbix server. fetch instruction; The proxy server establishes a connection with the virtual switch through a network namespace, and sends the acquisition instruction to the virtual switch; the proxy server acquires the running information sent by the virtual machine received by the virtual switch, and sends the operation information to the virtual switch. Send the operational information to the Zabbix server. 如請求項6所述之虛擬機器運行監控方法,其中,所述網路命名空間包括虛擬網路識別字、虛擬機器IP以及測項識別碼,所述代理伺服器藉由網路識別字、虛擬機器IP以及測項識別碼建立的網路命名空間指定虛擬交換機。 The method for monitoring operation of a virtual machine according to claim 6, wherein the network namespace includes a virtual network identifier, a virtual machine IP, and an item identifier, and the proxy server uses the network identifier, virtual The network namespace created by the machine IP and the item identifier specifies the virtual switch. 如請求項7所述之虛擬機器運行監控方法,其中,所述網路命名空間的建立方法,包括如下步驟:查看當前網路命名空間,並添加新的網路命名空間;添加虛擬網路識別字、虛擬機器IP以及測項識別碼;將虛擬網路識別字、虛擬機器IP以及測項識別碼添加到新的網路命名空間。 The method for monitoring the operation of a virtual machine according to claim 7, wherein the method for establishing a network namespace includes the following steps: viewing the current network namespace, and adding a new network namespace; adding a virtual network identification name, virtual machine IP, and item ID; add virtual network ID, virtual machine IP, and item ID to a new network namespace. 如請求項8所述之虛擬機器運行監控方法,其中,所述虛擬交換機為使用OpenVSwitch建立的虛擬交換機,所述虛擬交換機用於網路隔離保護,所述中央監控系統內設置有普羅米修士伺服器,所述虛擬機器內設置有exporter,所述普羅米修士伺服器向所述雲平臺發送採集指令;所述雲平臺藉由虛擬交換機將所述採集指令發送至虛擬機器;所述虛擬機器內的exporter接收所述普羅米修士伺服器的採集指令,並基於所述採集指令採集所述虛擬上的運行資訊。 The method for monitoring operation of a virtual machine according to claim 8, wherein the virtual switch is a virtual switch established by using OpenVSwitch, the virtual switch is used for network isolation protection, and the central monitoring system is provided with a Prometheus server The virtual machine is provided with an exporter, and the Prometheus server sends a collection instruction to the cloud platform; the cloud platform sends the collection instruction to the virtual machine through a virtual switch; the virtual machine The exporter receives the collection instruction of the Prometheus server, and collects the running information on the virtual machine based on the collection instruction. 一種虛擬機器運行監控設備,其中,包括:處理器、記憶體及存儲於所述記憶體上並可於所述處理器上運行的虛擬機器監控的標定程式,所述虛擬機器監控的標定程式配置為實現如請求項4-9中任一項所述的虛擬機器運行監控方法的步驟。 A virtual machine operation monitoring device, comprising: a processor, a memory, and a calibration program for virtual machine monitoring stored on the memory and running on the processor, and the calibration program for the virtual machine monitoring is configured Steps for implementing the method for monitoring the operation of a virtual machine according to any one of claim 4-9.
TW110132132A 2021-08-30 2021-08-30 Monitoring method, monitoring system and monitoring device of virtual machine operation TWI778771B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110132132A TWI778771B (en) 2021-08-30 2021-08-30 Monitoring method, monitoring system and monitoring device of virtual machine operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110132132A TWI778771B (en) 2021-08-30 2021-08-30 Monitoring method, monitoring system and monitoring device of virtual machine operation

Publications (2)

Publication Number Publication Date
TWI778771B true TWI778771B (en) 2022-09-21
TW202309745A TW202309745A (en) 2023-03-01

Family

ID=84958228

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110132132A TWI778771B (en) 2021-08-30 2021-08-30 Monitoring method, monitoring system and monitoring device of virtual machine operation

Country Status (1)

Country Link
TW (1) TWI778771B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160127180A1 (en) * 2014-10-30 2016-05-05 Splunk Inc. Streamlining configuration of protocol-based network data capture by remote capture agents
TWI649657B (en) * 2017-12-20 2019-02-01 雙子星雲端運算股份有限公司 Cloud service management method
CN110572439A (en) * 2019-08-14 2019-12-13 中国电子科技集团公司第二十八研究所 cloud monitoring method based on metadata service and virtual forwarding network bridge
CN112559296A (en) * 2020-12-23 2021-03-26 南方电网深圳数字电网研究院有限公司 Prometheus-based virtual machine monitoring method and tool, electronic device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160127180A1 (en) * 2014-10-30 2016-05-05 Splunk Inc. Streamlining configuration of protocol-based network data capture by remote capture agents
TWI649657B (en) * 2017-12-20 2019-02-01 雙子星雲端運算股份有限公司 Cloud service management method
TW201928699A (en) * 2017-12-20 2019-07-16 雙子星雲端運算股份有限公司 Method for cloud services management
CN110572439A (en) * 2019-08-14 2019-12-13 中国电子科技集团公司第二十八研究所 cloud monitoring method based on metadata service and virtual forwarding network bridge
CN112559296A (en) * 2020-12-23 2021-03-26 南方电网深圳数字电网研究院有限公司 Prometheus-based virtual machine monitoring method and tool, electronic device and storage medium

Also Published As

Publication number Publication date
TW202309745A (en) 2023-03-01

Similar Documents

Publication Publication Date Title
CN110247784B (en) Method and device for determining network topology structure
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
WO2019029320A1 (en) Configuration management method, apparatus and device
WO2017101265A1 (en) Message processing method, processing server, terminal and storage medium
US9565635B2 (en) Activating a mobile terminal from mobile network side
CN112217771B (en) Data forwarding method and data forwarding device based on tenant information
WO2017185719A1 (en) Udp protocol acceleration method and system
WO2020135574A1 (en) Message processing method and apparatus, control plane device, and computer storage medium
TW201541919A (en) Scalable address resolution
EP4084415A1 (en) Data management method and system, associated subsystem and computer readable medium
WO2023103318A1 (en) Media streaming method and system
US20220029917A1 (en) Executing workloads across multiple cloud service providers
CN107623752B (en) Network management method and device based on link layer
CN114025009B (en) Method, system, proxy server and device for forwarding request
WO2015024373A1 (en) Virtual machine communication method and device
CN105323128B (en) method, device and system for accessing front-end equipment to server
CN110661673B (en) Heartbeat detection method and device
CN111405018B (en) File transmission method and device, electronic equipment and storage medium
US9277014B2 (en) Handling of auxiliary NAS
TWI778771B (en) Monitoring method, monitoring system and monitoring device of virtual machine operation
TWI740210B (en) Method for terminal device management and server
CN115242882B (en) Method and device for accessing k8s container environment based on transport layer route
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN113965571A (en) Management method, device, equipment and medium for distributed embedded equipment
US11863520B2 (en) Data access methods and systems

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent