CN114637524A - Host monitoring data acquisition method, device, equipment and computer readable medium - Google Patents

Host monitoring data acquisition method, device, equipment and computer readable medium Download PDF

Info

Publication number
CN114637524A
CN114637524A CN202210164469.3A CN202210164469A CN114637524A CN 114637524 A CN114637524 A CN 114637524A CN 202210164469 A CN202210164469 A CN 202210164469A CN 114637524 A CN114637524 A CN 114637524A
Authority
CN
China
Prior art keywords
monitoring data
plug
host monitoring
data acquisition
host
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
Application number
CN202210164469.3A
Other languages
Chinese (zh)
Inventor
高建生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202210164469.3A priority Critical patent/CN114637524A/en
Publication of CN114637524A publication Critical patent/CN114637524A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Abstract

The embodiment of the disclosure discloses a host monitoring data acquisition method, a host monitoring data acquisition device, a host monitoring data acquisition equipment and a computer readable medium. One embodiment of the method comprises: receiving host monitoring data acquisition plug-in update information; responding to that second verification information included by the first verification information and host monitoring data acquisition plug-in updating information meets a preset updating verification condition, and acquiring a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as a host monitoring data acquisition updating plug-in, wherein the first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the locally installed host monitoring data acquisition plug-in updating information; updating the target host monitoring data acquisition plug-in to a host monitoring data acquisition update plug-in; and acquiring host monitoring data through the updated host monitoring data acquisition plug-in. The embodiment is related to cloud computing, the monitoring items can be flexibly changed, and the stability of the host is improved.

Description

Host monitoring data acquisition method, device, equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a method, a device, equipment and a computer readable medium for collecting host monitoring data.
Background
And the host monitoring is to monitor the performance of the host by acquiring index values of the host under each monitoring item. At present, when collecting host monitoring data, the mode that usually adopts is: and independently collecting all host monitoring data or basic host monitoring data by the agent installed on the host.
However, when the host monitoring data is collected in the above manner, the following technical problems often exist: when part of monitoring items are changed, the agent needs to be on-line frequently, and when the monitoring items are applied to a production environment, the change of the monitoring items is not flexible, and the stability of a host is poor.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure provide a host monitoring data acquisition method, apparatus, electronic device and computer readable medium to solve the technical problems mentioned in the above background.
In a first aspect, some embodiments of the present disclosure provide a host monitoring data acquisition method, including: receiving host monitoring data acquisition plug-in updating information; responding to that first verification information and second verification information included by the host monitoring data acquisition plug-in updating information meet a preset updating verification condition, and acquiring a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as a host monitoring data acquisition updating plug-in, wherein the first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information which is installed locally; updating the target host monitoring data acquisition plug-in to the host monitoring data acquisition update plug-in; and acquiring host monitoring data through the updated host monitoring data acquisition plug-in.
Optionally, before the host monitoring data is collected by the updated host monitoring data collection plug-in, the method further includes: responding to the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information which is not installed locally, and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as a host monitoring data acquisition updating plug-in; and installing the acquired host monitoring data acquisition updating plug-in.
Optionally, the host monitoring data acquisition plug-in update information includes a plug-in download directory; and the above-mentioned host computer monitoring data acquisition plug-in components that obtain the corresponding host computer monitoring data acquisition plug-in components update information are regarded as the host computer monitoring data acquisition update plug-in components, include: and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in according to the plug-in downloading directory included in the host monitoring data acquisition plug-in updating information.
Optionally, the host monitors data acquisition plug-in update information including a plug-in scheduling period; and the above-mentioned host computer monitoring data acquisition plug-in through the renewal, gather host computer monitoring data, include: and collecting host monitoring data through the plug-in scheduling period and the updated host monitoring data collection plug-in.
Optionally, the method further comprises: the collected host monitoring data is sent to an associated database.
Optionally, the update information of the host monitoring data acquisition plug-in includes message type information; and the sending of the collected host monitoring data to the associated database includes: and sending the collected host monitoring data and the information type information to the database, so that the database stores the received host monitoring data according to the information type information.
In a second aspect, some embodiments of the present disclosure provide a host monitoring data acquisition device, the device comprising: a receiving unit configured to receive host monitoring data acquisition plug-in update information; the acquisition unit is configured to acquire a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information as a host monitoring data acquisition update plug-in response to that first check information and second check information included in the host monitoring data acquisition plug-in update information meet a preset update check condition, wherein the first check information corresponds to a target host monitoring data acquisition plug-in corresponding to the locally installed host monitoring data acquisition plug-in update information; an updating unit configured to update the target host monitoring data acquisition plug-in to the host monitoring data acquisition update plug-in; a collection unit configured to collect the host monitoring data through the updated host monitoring data collection plug-in.
Optionally, before the collecting unit, the apparatus further includes: a plug-in obtaining unit and an installing unit. The plug-in obtaining unit is configured to respond to a host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in which is not installed locally, and obtain the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in as the host monitoring data acquisition update plug-in. And the installation unit is configured to install the acquired host monitoring data acquisition and update plug-in.
Optionally, the update information of the host monitoring data acquisition plug-in includes a plug-in download directory.
Optionally, the obtaining unit is further configured to: and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in according to the plug-in downloading directory included in the host monitoring data acquisition plug-in updating information.
Optionally, the host monitors data collection plug-in update information including a plug-in scheduling period.
Optionally, the acquisition unit of the apparatus is further configured to: and acquiring the host monitoring data through the plug-in scheduling period and the updated host monitoring data acquisition plug-in.
Optionally, the apparatus further comprises: a sending unit configured to send the collected host monitoring data to an associated database.
Optionally, the update information of the host monitoring data collection plug-in includes message type information.
Optionally, the sending unit is further configured to: and sending the collected host monitoring data and the information type information to the database, so that the database stores the received host monitoring data according to the information type information.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device, on which one or more programs are stored, which when executed by one or more processors cause the one or more processors to implement the method described in any implementation of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: through the host monitoring data acquisition method of some embodiments of the present disclosure, monitoring items can be flexibly changed, and the host stability is improved to some extent. Specifically, the reasons for inflexibility of changing the monitoring items and poor stability of the host are: when part of monitoring items are changed, the agent needs to be on-line frequently, and when the monitoring items are applied to a production environment, the change of the monitoring items is not flexible, and the stability of a host is poor. Based on this, the host monitoring data acquisition method of some embodiments of the present disclosure first receives host monitoring data acquisition plug-in update information. Therefore, the received host monitoring data acquisition plug-in updating information can represent that the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information needs to be updated. And then, in response to that the first verification information and the second verification information included by the host monitoring data acquisition plug-in updating information meet a preset updating verification condition, acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in. The first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in installed locally. Therefore, when the first check information is different from the second check information, the target host monitoring data acquisition plug-in unit needs to be updated. And then updating the target host monitoring data acquisition plug-in to the host monitoring data acquisition update plug-in. Therefore, the installed target host computer monitoring data acquisition plug-in can be updated to the newly acquired host computer monitoring data acquisition update plug-in. And finally, acquiring host monitoring data through the updated host monitoring data acquisition plug-in. Therefore, the host monitoring data can be acquired through the automatically updated host monitoring data acquisition plug-in. And the host monitoring data is acquired through the host monitoring data acquisition plug-in, so that the host monitoring data can be prevented from being acquired independently by the agent installed on the host, and the agent can be prevented from being on line frequently when part of monitoring items are changed. And furthermore, monitoring items can be flexibly changed by updating the host monitoring data acquisition plug-in. And the stability of the host is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a host monitoring data collection method according to some embodiments of the present disclosure;
FIG. 2 is a flow diagram of some embodiments of a host monitoring data collection method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a host monitoring data collection method according to the present disclosure;
FIG. 4 is a flow chart of still further embodiments of a host monitoring data collection method according to the present disclosure;
FIG. 5 is a schematic block diagram view of some embodiments of a host monitoring data acquisition device according to the present disclosure;
FIG. 6 is a schematic block diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 is a schematic diagram of one application scenario of a host monitoring data collection method according to some embodiments of the present disclosure.
In the application scenario of fig. 1, first, the computing device 101 may receive host monitoring data collection plug-in update information 102. Then, in response to that the first verification information 103 and the second verification information 1021 included in the host monitoring data collection plug-in update information 102 satisfy the preset update verification condition, the computing device 101 may obtain the host monitoring data collection plug-in 104 corresponding to the host monitoring data collection plug-in update information 102 as the host monitoring data collection update plug-in. The first verification information 103 corresponds to a target host monitoring data acquisition plug-in 105 corresponding to the locally installed host monitoring data acquisition plug-in update information 102. Thereafter, the computing device 101 may update the target host monitoring data collection plug-in 105 to the host monitoring data collection update plug-in. Finally, the computing device 101 may collect the host monitoring data 106 via the updated host monitoring data collection plug-in.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow 200 of some embodiments of a host monitoring data collection method according to the present disclosure is shown. The host monitoring data acquisition method comprises the following steps:
step 201, receiving host monitoring data acquisition plug-in update information.
In some embodiments, the executing entity of the host monitoring data collection method (e.g., the computing device 101 shown in fig. 1) may receive the host monitoring data collection plug-in update information from the terminal with which the user configures the host monitoring data collection plug-in through a wired connection or a wireless connection. The update information of the host monitoring data acquisition plug-in may be information indicating that the configured host monitoring data acquisition plug-in needs to be updated, which is sent by the terminal. In practice, a user may configure each configuration item of the host monitoring data acquisition plug-in of a host at the terminal, and upload an installation package of the host monitoring data acquisition plug-in. Wherein, the above configuration items may include but are not limited to: plug-in identification information, plug-in version number and running host identification. It can be understood that, after the user configures the host monitoring data acquisition plug-in, the terminal may send the host monitoring data acquisition plug-in update information to the host (e.g., the execution main body) corresponding to the running host identifier through the running host identifier configured by the user. The host monitoring data acquisition plug-in may be a plug-in for acquiring host monitoring data of a specified category. For example, the host monitoring data acquisition plug-in may be a plug-in for acquiring host monitoring data of a memory class, and may be configured to acquire memory occupancy rate, memory occupation size, and remaining memory size of a host running thereon. The plug-in identification information may include, but is not limited to: plug-in name, plug-in identification. The host monitoring data acquisition plug-in update information may include, but is not limited to: plug-in name, plug-in identification and plug-in version number. It should be noted that the wireless connection means may include, but is not limited to, a 3G/4G connection, a WiFi connection, a bluetooth connection, a WiMAX connection, a Zigbee connection, a uwb (ultra wideband) connection, and other wireless connection means now known or developed in the future. Therefore, the received host monitoring data acquisition plug-in updating information can represent that the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information needs to be updated.
Step 202, in response to that the first verification information and the second verification information included in the update information of the host monitoring data acquisition plug-in meet a preset update verification condition, acquiring the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in as the host monitoring data acquisition update plug-in.
In some embodiments, the execution main body may acquire, in response to that the first verification information and the second verification information included in the update information of the host monitoring data collection plug-in satisfy a preset update verification condition, the host monitoring data collection plug-in corresponding to the update information of the host monitoring data collection plug-in as the host monitoring data collection update plug-in. The first verification information corresponds to a target host computer monitoring data acquisition plug-in corresponding to the host computer monitoring data acquisition plug-in updating information installed locally. The target host monitoring data acquisition plug-in may be a host monitoring data acquisition plug-in having a locally installed identifier that is the same as the plug-in identifier included in the host monitoring data acquisition plug-in update information and having the latest plug-in version number. The first verification information may be an MD5(Message-Digest Algorithm, MD5 information Digest Algorithm) hash value, i.e., an MD5 value, of the target host monitoring data collection plug-in. The second check-up information may be an MD5 value included in the currently received update information of the host monitoring data collection plug-in. The preset update checking condition may be "the MD5 value of the target host monitoring data collecting plug-in is different from the MD5 value included in the update information of the host monitoring data collecting plug-in". In practice, in response to that the first verification information and the second verification information included in the update information of the host monitoring data acquisition plug-in meet a preset update verification condition, the execution main body may obtain, according to a plug-in identifier included in the update information of the host monitoring data acquisition plug-in, a host monitoring data acquisition plug-in having an identifier identical to the plug-in identifier and a plug-in version number identical to a plug-in version number included in the update information of the host monitoring data acquisition plug-in from a storage terminal storing the host monitoring data acquisition plug-in corresponding to the plug-in identifier as the host monitoring data acquisition update plug-in. Therefore, when the first check information is different from the second check information, the target host monitoring data acquisition plug-in is determined to need to be updated.
And step 203, updating the target host monitoring data acquisition plug-in to a host monitoring data acquisition update plug-in.
In some embodiments, the execution subject may update the target host monitoring data collection plug-in to the host monitoring data collection update plug-in. Therefore, the installed target host computer monitoring data acquisition plug-in can be updated to the newly acquired host computer monitoring data acquisition update plug-in.
And step 204, acquiring host monitoring data through the updated host monitoring data acquisition plug-in.
In some embodiments, the execution subject may collect the host monitoring data through the updated host monitoring data collection plug-in. The host monitoring data may be monitoring data of relevant indexes when the host runs. The host monitoring data may include, but is not limited to, at least one of: host basic monitoring data, host hardware monitoring data and host application monitoring data. The host basic monitoring data may correspond to but is not limited to at least one of the following indicators: cpu, memory, load, disk space. The host hardware monitoring data may correspond to, but is not limited to, at least one of the following indicators: RAID (Redundant Arrays of Independent Disks), power supply. The host application monitoring data may correspond to, but is not limited to, at least one of the following: process, port. It will be appreciated that the particular type of host monitoring data is determined by the data that can be collected by the updated host monitoring data collection plug-in. In practice, the execution main body can perform inter-process communication with the host monitoring data acquisition updating plug-in through the unix domain socket monitored by the installed agent, and the host monitoring data acquisition updating plug-in sends acquired monitoring data to the agent through the unix domain socket after executing. Therefore, the host monitoring data can be acquired through the automatically updated host monitoring data acquisition plug-in.
Optionally, the executing entity may send the collected host monitoring data to an associated database. The database can be used for storing host monitoring data of each host. Therefore, the host monitoring data of each host stored in the database can be used as a data source for host monitoring data display and alarm of the host monitoring terminal.
In some optional implementations of some embodiments, the host monitoring data collecting plug-in update information includes message category information. The message type information may be type information when the message is reported for the host monitoring data collected by the host monitoring data collection plug-in. For example, the message category information may be topic of Kafka to which the host monitoring data belongs. The execution main body can send the collected host monitoring data and the message type information to the database, so that the database stores the received host monitoring data according to the message type information.
The above embodiments of the present disclosure have the following advantages: through the host monitoring data acquisition method of some embodiments of the present disclosure, monitoring items can be changed flexibly, and the host stability is improved to some extent. Specifically, the reasons for inflexibility of changing the monitoring items and poor stability of the host are: when part of monitoring items are changed, the agent needs to be on line frequently, and when the monitoring items are applied to a production environment, the change of the monitoring items is inflexible, and the stability of the host is poor. Based on this, the host monitoring data acquisition method of some embodiments of the present disclosure first receives host monitoring data acquisition plug-in update information. Therefore, the received host monitoring data acquisition plug-in updating information can represent that the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information needs to be updated. And then, in response to that the first verification information and the second verification information included by the host monitoring data acquisition plug-in updating information meet a preset updating verification condition, acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in. The first verification information corresponds to a target host computer monitoring data acquisition plug-in corresponding to the host computer monitoring data acquisition plug-in updating information installed locally. Therefore, when the first check information is different from the second check information, the target host monitoring data acquisition plug-in is determined to need to be updated. And then updating the target host monitoring data acquisition plug-in to the host monitoring data acquisition update plug-in. Therefore, the installed target host computer monitoring data acquisition plug-in can be updated to the newly acquired host computer monitoring data acquisition update plug-in. And finally, acquiring host monitoring data through the updated host monitoring data acquisition plug-in. Therefore, the host monitoring data can be acquired through the automatically updated host monitoring data acquisition plug-in. And the host monitoring data is acquired through the host monitoring data acquisition plug-in, so that the host monitoring data can be prevented from being acquired independently by the agent installed on the host, and the agent can be prevented from being on line frequently when part of monitoring items are changed. And furthermore, monitoring items can be flexibly changed by updating the host monitoring data acquisition plug-in. And the stability of the host is improved.
With further reference to FIG. 3, a flow 300 of further embodiments of a host monitoring data collection method is shown. The process 300 of the host monitoring data acquisition method includes the following steps:
step 301, receiving host monitoring data acquisition plug-in update information.
Step 302, in response to that the first verification information and the second verification information included in the update information of the host monitoring data acquisition plug-in satisfy the preset update verification condition, acquiring the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in as the host monitoring data acquisition update plug-in.
Step 303, updating the target host monitoring data acquisition plug-in to a host monitoring data acquisition update plug-in.
In some embodiments, the specific implementation and technical effects of steps 301 and 303 can refer to steps 201 and 203 in the embodiments corresponding to fig. 2, which are not described herein again.
And 304, in response to the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in not installed locally, acquiring the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in as the host monitoring data acquisition update plug-in.
In some embodiments, an executing entity (e.g., the computing device 101 shown in fig. 1) of the host monitoring data collection method may, in response to that a host monitoring data collection plug-in corresponding to the update information of the host monitoring data collection plug-in is not installed locally, obtain the host monitoring data collection plug-in corresponding to the update information of the host monitoring data collection plug-in as the host monitoring data collection update plug-in.
And 305, installing the acquired host monitoring data acquisition updating plug-in.
In some embodiments, the execution subject may install the obtained host monitoring data collection update plug-in. Therefore, when the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information is not installed locally, the host monitoring data acquisition update plug-in can be directly obtained for installation.
Optionally, the host monitoring data acquisition plug-in update information may further include a plug-in download directory. The plug-in download directory may be a storage directory for linking to the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information to download the directory of the host monitoring data acquisition plug-in.
In some optional implementation manners of some embodiments, the executing body may obtain, as the host monitoring data acquisition update plug-in, the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information by: and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in according to the plug-in download directory included by the host monitoring data acquisition plug-in updating information. In practice, the execution main body may obtain, from a storage terminal in which the host monitoring data acquisition plug-in is stored, a host monitoring data acquisition plug-in having a directory identical to the plug-in download directory as a host monitoring data acquisition update plug-in. Therefore, the host computer monitoring data acquisition updating plug-in can be obtained through the plug-in downloading directory included in the received host computer monitoring data acquisition plug-in updating information.
Step 306, collecting the host monitoring data through the updated host monitoring data collection plug-in.
In some embodiments, the specific implementation of step 306 and the technical effect brought by the implementation may refer to step 204 in those embodiments corresponding to fig. 2, which are not described herein again.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the process 300 of the host monitoring data collection method in some embodiments corresponding to fig. 3 represents a step of extending the installation of the host monitoring data collection update plug-in. Therefore, the solutions described in the embodiments can directly obtain the host monitoring data acquisition update plug-in for installation when the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information is not installed locally.
With further reference to FIG. 4, a flow 400 of further embodiments of a host monitoring data collection method is shown. The process 400 of the host monitoring data collection method includes the following steps:
step 401, receiving host monitoring data acquisition plug-in update information.
In some embodiments, the executing entity of the host monitoring data collection method (e.g., the computing device 101 shown in fig. 1) may receive the host monitoring data collection plug-in update information from the terminal with which the user configures the host monitoring data collection plug-in through a wired connection or a wireless connection. The host monitoring data acquisition plug-in update information may further include a plug-in scheduling period. The plug-in scheduling period may be an execution period of the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information. For example, the above-mentioned plug-in scheduling period may be "10 seconds", and may characterize that the host monitoring data collection plug-in is executed once every "10 seconds".
Step 402, in response to that the first verification information and the second verification information included in the update information of the host monitoring data acquisition plug-in meet a preset update verification condition, acquiring the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in as the host monitoring data acquisition update plug-in.
And step 403, updating the target host monitoring data acquisition plug-in to a host monitoring data acquisition update plug-in.
In some embodiments, the specific implementation and technical effects of steps 402-403 may refer to steps 202-203 in those embodiments corresponding to fig. 2, which are not described herein again.
Step 404, collecting host monitoring data through the plug-in scheduling period and the updated host monitoring data collection plug-in.
In some embodiments, the executing agent of the host monitoring data collection method (e.g., computing device 101 shown in fig. 1) may collect host monitoring data through the above-described plug-in scheduling period and the updated host monitoring data collection plug-in. In practice, first, the execution main body may execute the updated host monitoring data acquisition plug-in through the installed agent, so as to receive the host monitoring data acquired by the updated host monitoring data acquisition plug-in through the installed agent. The updated host monitoring data collection plugin may then be executed by the installed agent in response to a duration of an interval between a current time and a time of last execution of the updated host monitoring data collection plugin being equal to the plugin scheduling period, to receive, by the installed agent, host monitoring data collected by the updated host monitoring data collection plugin. Therefore, the host monitoring data can be regularly acquired through the plug-in scheduling period.
As can be seen from fig. 4, compared with the description of some embodiments corresponding to fig. 2, the process 400 of the host monitoring data collection method in some embodiments corresponding to fig. 4 represents a step of extending the plug-in scheduling period. Thus, the solutions described in these embodiments can collect host monitoring data periodically through the plug-in scheduling period.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a host monitoring data acquisition apparatus, which correspond to those shown in fig. 2, and which may be applied in various electronic devices.
As shown in fig. 5, the host monitoring data collection apparatus 500 of some embodiments includes: a receiving unit 501, an obtaining unit 502, an updating unit 503 and an acquiring unit 504. Wherein the receiving unit 501 is configured to receive host monitoring data acquisition plug-in update information; the obtaining unit 502 is configured to, in response to that first verification information and second verification information included in the host monitoring data acquisition plug-in update information satisfy a preset update verification condition, obtain a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information as a host monitoring data acquisition update plug-in, where the first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the locally installed host monitoring data acquisition plug-in update information; the updating unit 503 is configured to update the target host monitoring data collection plug-in to the host monitoring data collection update plug-in collecting unit 504 is configured to collect host monitoring data through the updated host monitoring data collection plug-in.
Optionally, before the collecting unit 504, the host monitoring data collecting apparatus 500 may further include: a plug-in obtaining unit and a mounting unit (not shown in the figure). The plug-in obtaining unit is configured to respond to a host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in which is not installed locally, and obtain the host monitoring data acquisition plug-in corresponding to the update information of the host monitoring data acquisition plug-in as the host monitoring data acquisition update plug-in. The installation unit is configured to install the acquired host monitoring data acquisition update plug-in.
Optionally, the update information of the host monitoring data acquisition plug-in includes a plug-in download directory.
Optionally, the obtaining unit may be further configured to: and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in according to the plug-in downloading directory included in the host monitoring data acquisition plug-in updating information.
Optionally, the host monitors data collection plug-in update information including a plug-in scheduling period.
Optionally, the acquisition unit 503 of the host monitoring data acquisition device 500 may be further configured to: and acquiring the host monitoring data through the plug-in scheduling period and the updated host monitoring data acquisition plug-in.
Optionally, the host monitoring data collecting apparatus 500 may further include: a sending unit (not shown in the figures) configured to send the collected host monitoring data to an associated database.
Optionally, the update information of the host monitoring data collection plug-in includes message type information.
Optionally, the sending unit may be further configured to: and sending the collected host monitoring data and the information type information to the database, so that the database stores the received host monitoring data according to the information type information.
It will be understood that the units described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
Referring now to FIG. 6, a block diagram of an electronic device (e.g., computing device 101 of FIG. 1)600 suitable for use in implementing some embodiments of the present disclosure is shown. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving host monitoring data acquisition plug-in updating information; responding to that first verification information and second verification information included by the host monitoring data acquisition plug-in updating information meet a preset updating verification condition, and acquiring a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as a host monitoring data acquisition updating plug-in, wherein the first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the locally installed host monitoring data acquisition plug-in updating information; updating the target host monitoring data acquisition plug-in to the host monitoring data acquisition update plug-in; and acquiring host monitoring data through the updated host monitoring data acquisition plug-in.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code 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 the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block 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 will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, which may be described as: a processor includes a receiving unit, an obtaining unit, an updating unit, and a collecting unit. The names of these units do not in some cases form a limitation on the unit itself, and for example, the receiving unit may also be described as a "unit that receives host monitoring data collection plug-in update information".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A host monitoring data acquisition method comprises the following steps:
receiving host monitoring data acquisition plug-in updating information;
in response to that first verification information and second verification information included by the host monitoring data acquisition plug-in updating information meet a preset updating verification condition, acquiring a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as a host monitoring data acquisition updating plug-in, wherein the first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information which is installed locally;
updating the target host monitoring data acquisition plug-in to the host monitoring data acquisition update plug-in;
and acquiring host monitoring data through the updated host monitoring data acquisition plug-in.
2. The method of claim 1, wherein prior to said collecting host monitoring data by said updated host monitoring data collection plug-in, said method further comprises:
responding to the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information which is not installed locally, and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as a host monitoring data acquisition updating plug-in;
and installing the acquired host monitoring data acquisition updating plug-in.
3. The method of claim 1 or 2, wherein the host monitoring data collection plug-in update information comprises a plug-in download directory; and
the obtaining of the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information as the host monitoring data acquisition update plug-in includes:
and acquiring the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in according to the plug-in download directory included by the host monitoring data acquisition plug-in updating information.
4. The method of claim 1, wherein the host monitoring data collection plug-in update information comprises a plug-in scheduling period; and
the host computer monitoring data acquisition plug-in board through the host computer monitoring data that updates gathers host computer monitoring data, includes:
and acquiring the host monitoring data through the plug-in scheduling period and the updated host monitoring data acquisition plug-in.
5. The method of claim 1, wherein the method further comprises:
and sending the collected host monitoring data to an associated database.
6. The method of claim 5, wherein the host monitoring data collection plug-in update information comprises message category information; and
the sending the collected host monitoring data to an associated database includes:
and sending the collected host monitoring data and the information category information to the database, so that the database stores the received host monitoring data according to the information category information.
7. A host monitoring data acquisition device comprising:
a receiving unit configured to receive host monitoring data acquisition plug-in update information;
an obtaining unit configured to obtain, in response to first verification information and second verification information included in the host monitoring data acquisition plug-in update information satisfying a preset update verification condition, a host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in update information as a host monitoring data acquisition update plug-in, wherein the first verification information corresponds to a target host monitoring data acquisition plug-in corresponding to the locally installed host monitoring data acquisition plug-in update information;
an update unit configured to update the target host monitoring data collection plug-in to the host monitoring data collection update plug-in;
a collection unit configured to collect the host monitoring data through the updated host monitoring data collection plug-in.
8. The apparatus of claim 7, wherein prior to the acquisition unit, the apparatus further comprises:
the plug-in acquisition unit is configured to respond to the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information which is not installed locally, and acquire the host monitoring data acquisition plug-in corresponding to the host monitoring data acquisition plug-in updating information as the host monitoring data acquisition updating plug-in;
and the installation unit is configured to install the acquired host monitoring data acquisition and update plug-in.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN202210164469.3A 2022-02-22 2022-02-22 Host monitoring data acquisition method, device, equipment and computer readable medium Pending CN114637524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210164469.3A CN114637524A (en) 2022-02-22 2022-02-22 Host monitoring data acquisition method, device, equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210164469.3A CN114637524A (en) 2022-02-22 2022-02-22 Host monitoring data acquisition method, device, equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN114637524A true CN114637524A (en) 2022-06-17

Family

ID=81946554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210164469.3A Pending CN114637524A (en) 2022-02-22 2022-02-22 Host monitoring data acquisition method, device, equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN114637524A (en)

Similar Documents

Publication Publication Date Title
CN114396705B (en) Air conditioner fault detection method and device, electronic equipment and medium
CN110532322B (en) Operation and maintenance interaction method, system, computer readable storage medium and equipment
CN114625597A (en) Monitoring operation and maintenance system, method and device, electronic equipment and storage medium
CN113360348B (en) Abnormal request processing method and device, electronic equipment and storage medium
CN114637524A (en) Host monitoring data acquisition method, device, equipment and computer readable medium
CN110990038A (en) Method, apparatus, electronic device, and medium for applying local updates
CN113553206B (en) Data event execution method and device, electronic equipment and computer readable medium
CN114035861A (en) Cluster configuration method and device, electronic equipment and computer readable medium
CN112507676B (en) Method and device for generating energy report, electronic equipment and computer readable medium
CN112307071A (en) Monitoring data acquisition method and device, electronic equipment and computer readable medium
CN112559001B (en) Method and device for updating application
CN113722315A (en) Data generation method and device, electronic equipment and computer readable medium
CN111274104B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN113760712A (en) Test evaluation method and device
CN112822247B (en) System asynchronous communication method, device, electronic equipment and computer readable medium
CN110633182A (en) System, method and apparatus for monitoring server stability
CN110221869B (en) Method and device for configuring data center operating environment
CN112965827B (en) Information scheduling method and device, electronic equipment and computer medium
CN114637648A (en) Information management method, device, electronic equipment and computer readable medium
CN113934599A (en) Information processing method, device, electronic equipment and computer readable medium
CN115617598A (en) State change monitoring method and device, terminal equipment and computer medium
CN115277362A (en) Fault diagnosis method, fault diagnosis device, electronic equipment and computer readable medium
CN113792072A (en) Data transmission method, device, electronic equipment and computer readable medium
CN117520399A (en) Data storage method, apparatus, electronic device, and computer readable medium
CN113962782A (en) Order information processing method and device, electronic equipment and computer readable medium

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