CN109117341A - A kind of monitoring method of virtual machine, device, equipment and medium - Google Patents
A kind of monitoring method of virtual machine, device, equipment and medium Download PDFInfo
- Publication number
- CN109117341A CN109117341A CN201810921406.1A CN201810921406A CN109117341A CN 109117341 A CN109117341 A CN 109117341A CN 201810921406 A CN201810921406 A CN 201810921406A CN 109117341 A CN109117341 A CN 109117341A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- cluster
- monitoring
- libvirt
- tool
- 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.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 69
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000012806 monitoring device Methods 0.000 claims abstract description 14
- 238000004590 computer program Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 claims description 5
- 230000000116 mitigating effect Effects 0.000 abstract description 9
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013497 data interchange Methods 0.000 description 1
- 238000005206 flow analysis Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 239000011800 void material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/301—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is a virtual computing platform, e.g. logically partitioned systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of monitoring method of virtual machine, device, equipment and medium, the step of this method includes: the deployment Libvirt tool in physical server;Wherein operation has cluster virtual machine in physical server;The corresponding virtual machine manager address of setting cluster virtual machine in the virConnect interface that Libvirt tool provides, to establish the correspondence of Libvirt tool and cluster virtual machine;The target virtual machine in cluster virtual machine, and the monitoring resource interface for calling Libvirt tool to provide as parameter the characteristic information of target virtual machine are chosen, to obtain the running state information of target virtual machine.This method is not necessarily to arrange monitoring agent program or plug-in unit on monitored virtual machine, therefore the opposite load for mitigating virtual machine, and then ensure that the service quality of virtual machine.In addition, the present invention also provides a kind of monitoring device of virtual machine, equipment and medium, beneficial effect is same as above.
Description
Technical field
The present invention relates to computer communication fields, more particularly to a kind of monitoring method of virtual machine, device, equipment and Jie
Matter.
Background technique
Cloud computing has been increasingly becoming the data processing means universal in one of big data era, a mature cloud meter
The bottom of service is calculated, often by hundreds of physical server and huge Cloud Server group as support, and each
Often operation has a certain number of virtual machines to carry out data processing all in the form of cluster in physical server, therefore in cloud meter
It calculates under service, generated communication flows is very large between virtual machine.
In order to guarantee the safe and reliable of cloud computing, it usually needs carry out phase to the operating status of virtual machine in physical server
The monitoring answered.Currently employed method is usually the monitoring for being directed to physical server operating status, for the money of virtualization
Source monitoring mainly utilizes the monitoring software being used on physical server in the past there is no a mature solution is formed
Adaptability configuration is carried out on a virtual machine, but is required to arrange monitoring agent on monitored virtual machine, such as make instantly
With very extensive nagios monitoring system, can complete to the Host Status and interchanger of the systems such as windows, linux, road
By the monitoring of the network configurations such as device, but operation is required in each monitored object corresponding client-side program, is monitored
Object needs to install nsclient++ client-side program when being windows system, then needs to install nagios when being Linux system
Nrpe plug-in unit, therefore using virtual machine as when monitored object, needing to configure corresponding program or plug-in unit in virtual machine, undoubtedly
The load of virtual machine will be increased, reduces the service quality of virtual machine.
It can be seen that providing a kind of monitoring method of virtual machine, with the load of opposite mitigation virtual machine, and then guarantee virtual
The service quality of machine is those skilled in the art's urgent problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of monitoring method of virtual machine, device, equipment and media, virtual with opposite mitigation
The load of machine, and then guarantee the service quality of virtual machine.
In order to solve the above technical problems, the present invention provides a kind of monitoring method of virtual machine characterized by comprising
Libvirt tool is disposed in physical server;Wherein, operation has cluster virtual machine in physical server;
The corresponding virtual machine manager of cluster virtual machine is set in the virConnect interface that Libvirt tool provides
Location, to establish the correspondence of Libvirt tool and cluster virtual machine;
The target virtual machine in cluster virtual machine is chosen, and is called the characteristic information of target virtual machine as parameter
The monitoring resource interface that Libvirt tool provides, to obtain the running state information of target virtual machine.
Preferably, the corresponding virtual machine of setting cluster virtual machine in the virConnect interface that Libvirt tool provides
Manager address, after establishing the correspondence of Libvirt tool and cluster virtual machine, this method further comprises:
SFlow agreement is run under correspondence using Libvirt tool, to obtain the network state letter of cluster virtual machine
Breath.
Preferably, this method further comprises:
Running state information and network state information are recorded with JSON format to Redis database respectively.
Preferably, monitoring resource interface includes virNetwork interface, virDomain interface and virStorageVol
Interface.
Preferably, cluster virtual machine is specially the cluster virtual machine set up based on SDN network.
In addition, the present invention also provides a kind of monitoring devices of virtual machine, comprising:
Tool deployment module, for disposing Libvirt tool in physical server;Wherein there is operation in physical server
Cluster virtual machine;
Communication building block, for cluster virtual machine pair to be arranged in the virConnect interface that Libvirt tool provides
The virtual machine manager address answered, to establish the correspondence of Libvirt tool and cluster virtual machine;
Operating status obtains module, for choosing the target virtual machine in cluster virtual machine, and by the spy of target virtual machine
The monitoring resource interface that reference breath calls Libvirt tool to provide as parameter, to obtain the operating status letter of target virtual machine
Breath.
Preferably, which further comprises:
Network state obtains module, for running sFlow agreement under correspondence using Libvirt tool, to obtain
The network state information of cluster virtual machine.
In addition, the present invention also provides a kind of monitoring devices of virtual machine, comprising:
Memory, for storing computer program;
Processor, when for executing computer program the step of the realization such as monitoring method of above-mentioned virtual machine.
In addition, being stored with meter on computer readable storage medium the present invention also provides a kind of computer readable storage medium
Calculation machine program, when computer program is executed by processor the step of the realization such as monitoring method of above-mentioned virtual machine.
The monitoring method of virtual machine provided by the present invention, in advance in the middle part of the physical server that operation has cluster virtual machine
Libvirt tool is affixed one's name to, and then right by the way that cluster virtual machine institute is arranged in the virConnect interface that Libvirt tool provides
Correspondence between Libvirt tool and cluster virtual machine is established with this in the address for the virtual machine manager answered, and then virtual
The target virtual machine for needing to monitor is chosen in machine cluster, and using the characteristic information of the target virtual machine as input parameter to call
The monitoring resource interface of Libvirt tool, the final acquisition realized to the running state information of target virtual machine.This method passes through
Libvirt tool is disposed in physical server, and then on the basis for establishing Libvirt tool Yu cluster virtual machine correspondence
On, the monitoring to virtual machine in cluster virtual machine can be realized by the monitoring resource interface for calling Libvirt tool to provide, by
In being not necessarily to arrangement monitoring agent program or plug-in unit on monitored virtual machine, therefore the opposite load for mitigating virtual machine, in turn
It ensure that the service quality of virtual machine.In addition, the present invention also provides a kind of monitoring device of virtual machine, equipment and medium, it is beneficial
Effect is same as above.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the monitoring method of virtual machine provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the monitoring method of another virtual machine provided in an embodiment of the present invention;
Fig. 3 is a kind of structure chart of the monitoring device of virtual machine provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other
Embodiment belongs to the scope of the present invention.
Core of the invention is to provide a kind of monitoring method of virtual machine, with the load of opposite mitigation virtual machine, Jin Erbao
Demonstrate,prove the service quality of virtual machine.Another core of the invention is to provide monitoring device, equipment and the medium of a kind of virtual machine.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Embodiment one
Fig. 1 is a kind of flow chart of the monitoring method of virtual machine provided in an embodiment of the present invention.Referring to FIG. 1, virtual machine
The specific steps of monitoring method include:
Step S10: Libvirt tool is disposed in physical server.
Wherein, operation has cluster virtual machine in physical server.
It should be noted that the physical server in this step is to run and carry the property server of virtual machine to set
It is standby, in addition, Libvirt tool provides the mode of relatively convenient management virtual machine and the software with virtualization.
In Libvirt tool include an API library, a finger daemon (Libvirtd) and a command line utility (virsh),
Wherein, multiple monitoring resource interfaces are stored in API library, for the operation shape according to different needs to virtual machine different aspect
State is monitored accordingly.Since Libvirt tool is the monitoring realized by way of calling interface to virtual machine, and connect
Mouth itself has the characteristics that coupling is lower, therefore will not be to physical server own resources when using Libvirt tool
Excessive occupancy is caused, and then the available resources in physical server can more distribute to the Virtual Service run thereon
Device, this has also further ensured that the service quality of virtual machine.
Step S11: the corresponding virtual machine of setting cluster virtual machine in the virConnect interface that Libvirt tool provides
Manager address, to establish the correspondence of Libvirt tool and cluster virtual machine.
It should be noted that could be managed virtual machine manager after only establishing connection with virtual machine manager
Virtual machine be monitored operation, so the virConnect interface of connecting virtual machine manager is that other all monitoring resources connect
The precondition that mouth can be used normally.In addition, including a series of relevant to connection is established in virConnect interface
Function passes through since the calling to virConnect interface is content well-known to those skilled in the art
VirConnect interface is established the function that correspondence specifically uses between Libvirt tool and cluster virtual machine and is not done herein
It repeats.
Step S12: the target virtual machine in cluster virtual machine is chosen, and using the characteristic information of target virtual machine as parameter
The monitoring resource interface for calling Libvirt tool to provide, to obtain the running state information of target virtual machine.
Monitoring resource interface in Libvirt tool generally can be divided into five parts, i.e. virtual machine monitor connects
API, domain API, network AP I, storage volume API and storage pool API.Characteristic information in this step is can uniquely to correspond to characterization
The mark of target virtual machine needs to provide it the characteristic information of target virtual machine, feature letter when using monitoring resource interface
The type of breath may include the path of target virtual machine, ID etc., and user can set the specific of characteristic information according to actual needs
Type, but it is necessary to ensure that monitoring resource interface can find target virtual machine that is unique and determining according to characteristic information, and then right
Target virtual machine carries out the acquisition of running state information, and as monitored results.
The monitoring method of virtual machine provided by the present invention, in advance in the middle part of the physical server that operation has cluster virtual machine
Libvirt tool is affixed one's name to, and then right by the way that cluster virtual machine institute is arranged in the virConnect interface that Libvirt tool provides
Correspondence between Libvirt tool and cluster virtual machine is established with this in the address for the virtual machine manager answered, and then virtual
The target virtual machine for needing to monitor is chosen in machine cluster, and using the characteristic information of the target virtual machine as input parameter to call
The monitoring resource interface of Libvirt tool, the final acquisition realized to the running state information of target virtual machine.This method passes through
Libvirt tool is disposed in physical server, and then on the basis for establishing Libvirt tool Yu cluster virtual machine correspondence
On, the monitoring to virtual machine in cluster virtual machine can be realized by the monitoring resource interface for calling Libvirt tool to provide, by
In being not necessarily to arrangement monitoring agent program or plug-in unit on monitored virtual machine, therefore the opposite load for mitigating virtual machine, in turn
It ensure that the service quality of virtual machine.
Embodiment two
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
Fig. 2 is the flow chart of the monitoring method of another virtual machine provided in an embodiment of the present invention.Step S10- in Fig. 2
S12 is identical as Fig. 1, and details are not described herein.
As shown in Fig. 2, as a preferred embodiment, in the virConnect interface that Libvirt tool provides
The corresponding virtual machine manager address of cluster virtual machine is set, to establish the correspondence of Libvirt tool and cluster virtual machine
Afterwards, this method further comprises:
Step S20: sFlow agreement is run under correspondence using Libvirt tool, to obtain the net of cluster virtual machine
Network status information.
It should be noted that sFlow agreement is a kind of Network Monitoring Protocol, essence is using data flow stochastical sampling skill
Art, provides the second layer in complete ICP/IP protocol model to the flow information within the scope of the 4th layer or even whole network, can be with
The flow analysis under large network traffic environment is adapted to, be able to use family in further detail and analyzes the property of network transmission stream in real time
Can, trend and there are the problem of.And present embodiment is based on the Libvirt tool established in step before and virtual machine
The correspondence of cluster runs sFlow agreement, and then can be by Libvirt tool further to virtual in physical server
The network state information of machine cluster is obtained, and it is comprehensive to further increase the content being monitored to virtual machine with this,
And then user can in conjunction with each virtual machine in cluster virtual machine running state information and cluster virtual machine it is network-like
State information carries out the resource allocation of adaptability to cluster virtual machine, so as to improve the service reliability of entire cluster virtual machine.
On the basis of the above embodiment, as a preferred embodiment, this method further comprises:
Running state information and network state information are recorded with JSON format to Redis database respectively.
It should be noted that in view of JSON (JavaScript Object Notation, JS object numbered musical notation) format is
A kind of data interchange format of lightweight stores using the text formatting for being totally independent of programming language and indicates data, and
And the data of JSON format have succinct and clearly hierarchical structure, therefore are readily able to the reading of user and write, while
It is easy to machine parsing and generates, can effectively promotes network transmission efficiency and service efficiency.In addition, Redis database is
The memory database of Key-Value type, therefore match with the data structure of JSON format, and " Value " can be
The data structure of the types such as String, List, Set, Sorted Set or Hash, it is ensured that using for Redis database is more
Sample, and since Redis database is the data read-write operation realized by memory, the performance phase of Redis database
To outstanding, it can be ensured that the subsequent whole efficiency for obtaining running state information and network state information of user.
In addition, as a preferred embodiment, monitoring resource interface includes virNetwork interface, virDomain
Interface and virStorageVol interface.
In view of the network information, cpu resource information and the storage resource information by virtual machine can be relatively accurate
Reflect integrality of the virtual machine when providing cloud computing service, therefore the network information, cpu resource information and storage resource letter
Breath is the content that emphasis required for being monitored to virtual machine obtains, and then in the present embodiment, is connect by virNetwork
The related letter that mouth is managed virtual machine network relevant information, is used by the available virtual machine CPU of virDomain interface
Breath by virStorageVol interface is monitored storage condition, with this can according to the network information, cpu resource information with
And the virtual machine state determined in cluster virtual machine that storage resource information is relatively accurate.
In addition, as a preferred embodiment, cluster virtual machine is specially the virtual machine collection set up based on SDN network
Group.
Due to consideration that the network characteristics of SDN type are that control plane separates with data plane, therefore in the cluster of SDN
Under network foundation, for that can ensure that the acquisition to data information is more flexible, therefore in the virtual machine set up based on SDN network
In cluster, the data information transfer between virtual machine more quickly and efficiently, and then in cluster virtual machine work, can have more
High data interaction efficiency;And when the monitoring of cluster virtual machine response Libvirt tool is to provide corresponding data information, it can
With higher data acquisition efficiency.
Embodiment three
Hereinbefore the embodiment of the monitoring method of virtual machine is described in detail, the present invention also provides one kind
The monitoring device of virtual machine corresponding with this method, since the embodiment of device part and the embodiment of method part are mutually right
It answers, therefore the embodiment of device part refers to the description of the embodiment of method part, wouldn't repeat here.
Fig. 3 is a kind of structure chart of the monitoring device of virtual machine provided in an embodiment of the present invention.The embodiment of the present invention provides
Virtual machine monitoring device, comprising:
Tool deployment module 10, for disposing Libvirt tool in physical server;Wherein run in physical server
There is cluster virtual machine.
Communication building block 11, for cluster virtual machine to be arranged in the virConnect interface that Libvirt tool provides
Corresponding virtual machine manager address, to establish the correspondence of Libvirt tool and cluster virtual machine.
Operating status obtains module 12, for choosing the target virtual machine in cluster virtual machine, and by target virtual machine
The monitoring resource interface that characteristic information calls Libvirt tool to provide as parameter, to obtain the operating status of target virtual machine
Information.
The monitoring device of virtual machine provided by the present invention, in advance in the middle part of the physical server that operation has cluster virtual machine
Libvirt tool is affixed one's name to, and then right by the way that cluster virtual machine institute is arranged in the virConnect interface that Libvirt tool provides
Correspondence between Libvirt tool and cluster virtual machine is established with this in the address for the virtual machine manager answered, and then virtual
The target virtual machine for needing to monitor is chosen in machine cluster, and using the characteristic information of the target virtual machine as input parameter to call
The monitoring resource interface of Libvirt tool, the final acquisition realized to the running state information of target virtual machine.The present apparatus passes through
Libvirt tool is disposed in physical server, and then on the basis for establishing Libvirt tool Yu cluster virtual machine correspondence
On, the monitoring to virtual machine in cluster virtual machine can be realized by the monitoring resource interface for calling Libvirt tool to provide, by
In being not necessarily to arrangement monitoring agent program or plug-in unit on monitored virtual machine, therefore the opposite load for mitigating virtual machine, in turn
It ensure that the service quality of virtual machine.
On the basis of embodiment three, the device further include:
Network state obtains module, for running sFlow agreement under correspondence using Libvirt tool, to obtain
The network state information of cluster virtual machine.
Example IV
The present invention also provides a kind of monitoring devices of virtual machine, comprising:
Memory, for storing computer program;
Processor, when for executing computer program the step of the realization such as monitoring method of above-mentioned virtual machine.
The monitoring device of virtual machine provided by the present invention, in advance in the middle part of the physical server that operation has cluster virtual machine
Libvirt tool is affixed one's name to, and then right by the way that cluster virtual machine institute is arranged in the virConnect interface that Libvirt tool provides
Correspondence between Libvirt tool and cluster virtual machine is established with this in the address for the virtual machine manager answered, and then virtual
The target virtual machine for needing to monitor is chosen in machine cluster, and using the characteristic information of the target virtual machine as input parameter to call
The monitoring resource interface of Libvirt tool, the final acquisition realized to the running state information of target virtual machine.This equipment passes through
Libvirt tool is disposed in physical server, and then on the basis for establishing Libvirt tool Yu cluster virtual machine correspondence
On, the monitoring to virtual machine in cluster virtual machine can be realized by the monitoring resource interface for calling Libvirt tool to provide, by
In being not necessarily to arrangement monitoring agent program or plug-in unit on monitored virtual machine, therefore the opposite load for mitigating virtual machine, in turn
It ensure that the service quality of virtual machine.
In addition, being stored with meter on computer readable storage medium the present invention also provides a kind of computer readable storage medium
Calculation machine program, when computer program is executed by processor the step of the realization such as monitoring method of above-mentioned virtual machine.
Computer readable storage medium provided by the present invention, in advance in the physical server that operation has cluster virtual machine
Libvirt tool is disposed, and then by the way that the cluster virtual machine institute is arranged in the virConnect interface that Libvirt tool provides
Correspondence between Libvirt tool and cluster virtual machine is established with this in the address of corresponding virtual machine manager, and then in void
The target virtual machine for needing to monitor is chosen in quasi- machine cluster, and using the characteristic information of the target virtual machine as input parameter to adjust
With the monitoring resource interface of Libvirt tool, the final acquisition realized to the running state information of target virtual machine.This computer
Readable storage medium storing program for executing is establishing Libvirt tool and cluster virtual machine by disposing Libvirt tool in physical server
On the basis of correspondence, it can be realized by the monitoring resource interface for calling Libvirt tool to provide in cluster virtual machine
The monitoring of virtual machine, since without arranging monitoring agent program or plug-in unit on monitored virtual machine, opposite mitigation is empty
The load of quasi- machine, and then ensure that the service quality of virtual machine.
Detailed Jie has been carried out to a kind of monitoring method of virtual machine provided by the present invention, device, equipment and medium above
It continues.Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other embodiments
Difference, the same or similar parts in each embodiment may refer to each other.For device, equipment disclosed in embodiment and
For medium, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method portion
It defends oneself bright.It should be pointed out that for those skilled in the art, in the premise for not departing from the principle of the invention
Under, it can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the protection of the claims in the present invention
In range.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (9)
1. a kind of monitoring method of virtual machine characterized by comprising
Libvirt tool is disposed in physical server;Wherein, operation has cluster virtual machine in the physical server;
The corresponding Virtual Machine Manager of the cluster virtual machine is set in the virConnect interface that the Libvirt tool provides
Device address, to establish the correspondence of the Libvirt tool and the cluster virtual machine;
The target virtual machine in the cluster virtual machine is chosen, and is called the characteristic information of the target virtual machine as parameter
The monitoring resource interface that the Libvirt tool provides, to obtain the running state information of the target virtual machine.
2. the method according to claim 1, wherein being connect in the virConnect that the Libvirt tool provides
The corresponding virtual machine manager address of the cluster virtual machine is set in mouthful, to establish the Libvirt tool and described virtual
After the correspondence of machine cluster, this method further comprises:
SFlow agreement is run under the correspondence using the Libvirt tool, to obtain the net of the cluster virtual machine
Network status information.
3. according to the method described in claim 2, it is characterized in that, this method further comprises:
The running state information and the network state information are recorded with JSON format to Redis database respectively.
4. the method according to claim 1, wherein the monitoring resource interface include virNetwork interface,
VirDomain interface and virStorageVol interface.
5. method according to any of claims 1-4, which is characterized in that the cluster virtual machine is specially to be based on
The cluster virtual machine that SDN network is set up.
6. a kind of monitoring device of virtual machine characterized by comprising
Tool deployment module, for disposing Libvirt tool in physical server;Wherein running in the physical server has
Cluster virtual machine;
Communication building block, for the virtual machine collection to be arranged in the virConnect interface that the Libvirt tool provides
The corresponding virtual machine manager address of group, to establish the correspondence of the Libvirt tool and the cluster virtual machine;
Operating status obtains module, for choosing the target virtual machine in the cluster virtual machine, and by the target virtual machine
The characteristic information monitoring resource interface that calls the Libvirt tool to provide as parameter, to obtain the target virtual machine
Running state information.
7. device according to claim 6, which is characterized in that the device further comprises:
Network state obtains module, for running sFlow agreement under the correspondence using the Libvirt tool, with
Obtain the network state information of the cluster virtual machine.
8. a kind of monitoring device of virtual machine characterized by comprising
Memory, for storing computer program;
Processor realizes the monitoring such as virtual machine described in any one of claim 1 to 5 when for executing the computer program
The step of method.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program realizes the monitoring side such as virtual machine described in any one of claim 1 to 5 when the computer program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810921406.1A CN109117341A (en) | 2018-08-14 | 2018-08-14 | A kind of monitoring method of virtual machine, device, equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810921406.1A CN109117341A (en) | 2018-08-14 | 2018-08-14 | A kind of monitoring method of virtual machine, device, equipment and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109117341A true CN109117341A (en) | 2019-01-01 |
Family
ID=64852263
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810921406.1A Pending CN109117341A (en) | 2018-08-14 | 2018-08-14 | A kind of monitoring method of virtual machine, device, equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109117341A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365539A (en) * | 2019-07-19 | 2019-10-22 | 浪潮电子信息产业股份有限公司 | A kind of virtualization resource monitoring method, system and electronic equipment and storage medium |
CN110413488A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Server utilization rate method for early warning and device |
CN110489305A (en) * | 2019-08-23 | 2019-11-22 | 北京首都在线科技股份有限公司 | A kind of server management method and device |
CN110493253A (en) * | 2019-09-02 | 2019-11-22 | 四川长虹电器股份有限公司 | A kind of Botnet analysis method of the home router based on raspberry pie design |
CN110730205A (en) * | 2019-09-06 | 2020-01-24 | 深圳平安通信科技有限公司 | Cluster system deployment method and device, computer equipment and storage medium |
CN111104665A (en) * | 2019-12-04 | 2020-05-05 | 紫光云(南京)数字技术有限公司 | Security monitoring method based on license authentication of cluster virtual machine |
CN112395152A (en) * | 2019-08-19 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Server resource monitoring method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150120962A1 (en) * | 2013-10-25 | 2015-04-30 | International Business Machines Corporation | Sharing a java virtual machine |
CN104657250A (en) * | 2014-12-16 | 2015-05-27 | 无锡华云数据技术服务有限公司 | Monitoring method for monitoring performance of cloud host |
CN105243008A (en) * | 2015-11-02 | 2016-01-13 | 上海新炬网络信息技术有限公司 | Host machine-based virtual machine performance monitoring method |
US9251481B2 (en) * | 2011-06-13 | 2016-02-02 | Accenture Global Services Limited | Distributed metering and monitoring system |
CN105354127A (en) * | 2015-10-27 | 2016-02-24 | 北京天华星航科技有限公司 | Cloud management platform based monitoring method |
CN107423110A (en) * | 2017-05-31 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of virtual machine method of real-time and its device based on libvirt |
CN108139925A (en) * | 2016-05-31 | 2018-06-08 | 博科通讯***有限公司 | The high availability of virtual machine |
-
2018
- 2018-08-14 CN CN201810921406.1A patent/CN109117341A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9251481B2 (en) * | 2011-06-13 | 2016-02-02 | Accenture Global Services Limited | Distributed metering and monitoring system |
US20150120962A1 (en) * | 2013-10-25 | 2015-04-30 | International Business Machines Corporation | Sharing a java virtual machine |
CN104657250A (en) * | 2014-12-16 | 2015-05-27 | 无锡华云数据技术服务有限公司 | Monitoring method for monitoring performance of cloud host |
CN105354127A (en) * | 2015-10-27 | 2016-02-24 | 北京天华星航科技有限公司 | Cloud management platform based monitoring method |
CN105243008A (en) * | 2015-11-02 | 2016-01-13 | 上海新炬网络信息技术有限公司 | Host machine-based virtual machine performance monitoring method |
CN108139925A (en) * | 2016-05-31 | 2018-06-08 | 博科通讯***有限公司 | The high availability of virtual machine |
CN107423110A (en) * | 2017-05-31 | 2017-12-01 | 郑州云海信息技术有限公司 | A kind of virtual machine method of real-time and its device based on libvirt |
Non-Patent Citations (2)
Title |
---|
ITEYE_4516: "使用libvirt技术监控虚拟机(一)", 《HTTPS://BLOG.CSDN.NET/ITEYE_4516/ARTICLE/DETAILS/82312489》 * |
WANGYUAN0916: "libvirt API简介(一)", 《HTTPS://BLOG.CSDN.NET/WANGYUAN0916/ARTICLE/DETAILS/8930701》 * |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110365539A (en) * | 2019-07-19 | 2019-10-22 | 浪潮电子信息产业股份有限公司 | A kind of virtualization resource monitoring method, system and electronic equipment and storage medium |
CN110413488A (en) * | 2019-07-31 | 2019-11-05 | 中国工商银行股份有限公司 | Server utilization rate method for early warning and device |
CN110413488B (en) * | 2019-07-31 | 2022-12-23 | 中国工商银行股份有限公司 | Server utilization rate early warning method and device |
CN112395152A (en) * | 2019-08-19 | 2021-02-23 | 阿里巴巴集团控股有限公司 | Server resource monitoring method and device |
CN112395152B (en) * | 2019-08-19 | 2022-04-12 | 阿里巴巴集团控股有限公司 | Server resource acquisition method and acquisition system |
CN110489305A (en) * | 2019-08-23 | 2019-11-22 | 北京首都在线科技股份有限公司 | A kind of server management method and device |
CN110493253A (en) * | 2019-09-02 | 2019-11-22 | 四川长虹电器股份有限公司 | A kind of Botnet analysis method of the home router based on raspberry pie design |
CN110730205A (en) * | 2019-09-06 | 2020-01-24 | 深圳平安通信科技有限公司 | Cluster system deployment method and device, computer equipment and storage medium |
CN110730205B (en) * | 2019-09-06 | 2023-06-20 | 深圳平安通信科技有限公司 | Cluster system deployment method, device, computer equipment and storage medium |
CN111104665A (en) * | 2019-12-04 | 2020-05-05 | 紫光云(南京)数字技术有限公司 | Security monitoring method based on license authentication of cluster virtual machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109117341A (en) | A kind of monitoring method of virtual machine, device, equipment and medium | |
US8570903B1 (en) | System and method for managing a virtual domain environment to enable root cause and impact analysis | |
CN106489251B (en) | The methods, devices and systems of applied topology relationship discovery | |
US9727439B2 (en) | Tracking application deployment errors via cloud logs | |
US11177999B2 (en) | Correlating computing network events | |
US10430257B2 (en) | Alarms with stack trace spanning logical and physical architecture | |
US8041683B1 (en) | Methods and apparatus for locating network logs | |
CN107404417A (en) | A kind of processing method of monitoring data, processing unit and processing system | |
US11675682B2 (en) | Agent profiler to monitor activities and performance of software agents | |
CN108845865A (en) | A kind of monitoring service dispositions method, system and storage medium | |
CN113037545A (en) | Network simulation method, device, equipment and storage medium | |
US11153183B2 (en) | Compacted messaging for application performance management system | |
US20240070123A1 (en) | Using Machine Learning to Provide a Single User Interface for Streamlined Deployment and Management of Multiple Types of Databases | |
CN109189652A (en) | A kind of acquisition method and system of close network terminal behavior data | |
US10848371B2 (en) | User interface for an application performance management system | |
CN112448833B (en) | Multi-management-domain communication method and device | |
CN102713860B (en) | User experience index monitoring method and monitoring virtual machine | |
CN103078764A (en) | Operational monitoring system and method based on virtual computing task | |
KR20130137878A (en) | Method for total managing open-source systems and total management server thereof | |
CN106933718B (en) | Method for monitoring performance and device | |
Svorobej et al. | Towards automated data-driven model creation for cloud computing simulation | |
CN111708677A (en) | Cloud hard disk usage amount acquisition method in cloud computing environment | |
Eyers et al. | Towards a middleware for configuring large-scale storage infrastructures | |
CN108848005A (en) | A kind of method and system of the test network in cloud computing system | |
CN109688002A (en) | One kind is based on WEB visualization virtual machine and Container Management method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190101 |
|
RJ01 | Rejection of invention patent application after publication |