CN112579398A - Monitoring deployment method and device - Google Patents

Monitoring deployment method and device Download PDF

Info

Publication number
CN112579398A
CN112579398A CN202011580278.2A CN202011580278A CN112579398A CN 112579398 A CN112579398 A CN 112579398A CN 202011580278 A CN202011580278 A CN 202011580278A CN 112579398 A CN112579398 A CN 112579398A
Authority
CN
China
Prior art keywords
monitoring
theme
target object
template
subject
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
CN202011580278.2A
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202011580278.2A priority Critical patent/CN112579398A/en
Publication of CN112579398A publication Critical patent/CN112579398A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a monitoring deployment method and a monitoring deployment device, wherein the method comprises the following steps: when a monitoring deployment command issued by a monitoring management server is detected, determining a target object to be monitored corresponding to the monitoring deployment command; deploying a monitoring client corresponding to a target object in a monitored server, and downloading a monitoring theme template by using a monitoring theme detection script in the monitoring client; running a monitoring theme detection script of a monitoring client to acquire monitoring theme information of a target object in real time so as to obtain each monitoring theme data corresponding to the monitoring theme information; judging whether the monitoring theme template needs to be updated or not based on each current monitoring theme information acquired by the monitoring theme detection script; and if the monitoring subject template needs to be updated, updating the monitoring subject template based on each current monitoring subject data corresponding to the current monitoring subject information. By applying the method, monitoring deployment and subsequent updating can be automatically carried out without manual intervention, and the efficiency and the real-time performance of monitoring deployment and updating are improved.

Description

Monitoring deployment method and device
Technical Field
The invention relates to the technical field of computer application, in particular to a monitoring deployment method and a monitoring deployment device.
Background
With the rapid development of computer technology and the rapid increase of various applications and devices, in order to ensure the running correctness of the applications or devices, the applications or devices need to be monitored and deployed in the server, and by monitoring and deploying, the state of the applications or devices can be found immediately when the applications or devices externally perform the server.
In the monitoring deployment in the prior art, a monitoring client is generally required to be assigned to a server for installation, and when monitoring indexes, a monitoring main body or other links of the monitoring client change, the monitoring client is manually adjusted and changed. Therefore, the monitoring deployment mode in the prior art cannot meet the requirement of rapid development of services, the labor cost is high, and the efficiency of manual monitoring deployment and updating processes is low.
Disclosure of Invention
In view of this, the present invention provides a monitoring deployment method, by which monitoring deployment and subsequent update can be automatically performed without manual intervention, and efficiency and real-time performance of monitoring deployment and update are improved.
The invention also provides a monitoring deployment device for ensuring the realization and application of the method in practice.
A monitoring deployment method, comprising:
when a monitoring deployment command issued to a monitored server by a monitoring management server is detected, determining a target object to be monitored corresponding to the monitoring deployment command;
deploying a monitoring client corresponding to the target object in the monitored server, and downloading a monitoring theme template corresponding to the target object by applying a monitoring theme detection script of the monitoring client;
running a monitoring theme detection script of the monitoring client, and acquiring monitoring theme information of the target object in real time through the monitoring theme detection script based on the monitoring theme template so as to acquire each monitoring theme data corresponding to the monitoring theme information each time;
judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script;
and if the monitoring subject template needs to be updated, updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information.
Optionally, the determining of the target object to be monitored corresponding to the monitoring deployment command in the method described above includes:
acquiring an information file corresponding to the monitoring deployment command contained in the monitoring management server through a preset message middleware;
analyzing the information file to obtain an object name and IP address information corresponding to the equipment name;
and determining a target object to be monitored corresponding to the monitoring deployment command based on the IP address information corresponding to the object name and the equipment name.
Optionally, the deploying, in the monitored server, the monitoring client corresponding to the target object includes:
acquiring an installation package contained in the monitoring deployment command, wherein the installation package contains a monitoring client side initialization installation script;
and initializing an installation script based on the monitoring client in the installation package, and installing the monitoring client on the monitored server.
Optionally, the method for determining whether the monitoring topic template needs to be updated includes:
acquiring a preset monitoring subject data set, wherein the monitoring subject data set comprises all monitoring subject data acquired last time by the monitoring subject detection script;
comparing each current monitoring subject data with each monitoring subject data in the monitoring subject data set;
if each current monitoring subject data is consistent with each monitoring subject data in the monitoring subject data set, determining that the monitoring subject template does not need to be updated;
and if any current monitoring subject data is inconsistent with each monitoring subject data in the monitoring subject data set, determining that the monitoring subject template needs to be updated.
Optionally, in the foregoing method, the updating the monitoring topic template based on each current monitoring topic data corresponding to the current topic information includes:
determining a change item of the target object based on each current monitoring subject data and each monitoring subject data in the monitoring subject data set;
and downloading a new monitoring theme template corresponding to the target object based on the change item of the target object so as to acquire each monitoring theme data of the target object through the new monitoring theme template.
A monitoring deployment device comprising:
the system comprises a determining unit, a monitoring unit and a monitoring unit, wherein the determining unit is used for determining a target object to be monitored corresponding to a monitoring deployment command when the monitoring deployment command issued by a monitoring management server to a monitored server is detected;
the deployment unit is used for deploying the monitoring client corresponding to the target object in the monitored server and downloading the monitoring theme template corresponding to the target object by applying the monitoring theme detection script of the monitoring client;
the acquisition unit is used for running a monitoring theme detection script of the monitoring client, and acquiring monitoring theme information of the target object in real time on the basis of the monitoring theme template through the monitoring theme detection script so as to acquire each monitoring theme data corresponding to the monitoring theme information each time;
the judging unit is used for judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script;
and the updating unit is used for updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information if the monitoring subject template needs to be updated.
The above apparatus, optionally, the determining unit includes:
the first obtaining subunit is configured to obtain, via a preset message middleware, an information file corresponding to the monitoring deployment command included in the monitoring management server;
the analysis subunit is used for analyzing the information file to obtain an object name and IP address information corresponding to the equipment name;
and the first determining subunit is configured to determine, based on the object name and the IP address information corresponding to the device name, a target object to be monitored corresponding to the monitoring deployment command.
The above apparatus, optionally, the deployment unit, includes:
the second obtaining subunit is configured to obtain an installation package included in the monitoring deployment command, where the installation package includes an initialization installation script of the monitoring client;
and the installation subunit is used for initializing an installation script based on the monitoring client in the installation package and installing the monitoring client on the monitored server.
The above apparatus, optionally, the determining unit includes:
a third obtaining subunit, configured to obtain a preset monitoring subject data set, where the monitoring subject data set includes each monitoring subject data that is collected last time by the monitoring subject detection script;
a comparison subunit, configured to compare each current monitoring subject data with each monitoring subject data in the monitoring subject data set;
a second determining subunit, configured to determine that the monitoring topic template does not need to be updated if each piece of the current monitoring topic data is consistent with each piece of the monitoring topic data in the monitoring topic data set;
and the third determining subunit is configured to determine that the monitoring topic template needs to be updated if any current monitoring topic data is inconsistent with each monitoring topic data in the monitoring topic data set.
The above apparatus, optionally, the update unit includes:
a fourth determining subunit, configured to determine a change item of the target object based on each of the current monitoring subject data and each of the monitoring subject data in the monitoring subject data set;
and the downloading subunit is used for downloading a new monitoring theme template corresponding to the target object based on the change item of the target object so as to acquire each monitoring theme data of the target object through the new monitoring theme template.
A storage medium comprises stored instructions, wherein when the instructions are executed, the storage medium controls a device to execute the monitoring deployment method.
An electronic device comprising a memory, and one or more instructions stored in the memory and configured to be executed by one or more processors to perform the monitoring deployment method described above.
Compared with the prior art, the invention has the following advantages:
the invention provides a monitoring deployment method, which comprises the following steps: when a monitoring deployment command issued to a monitored server by a monitoring management server is detected, determining a target object to be monitored corresponding to the monitoring deployment command; deploying a monitoring client corresponding to the target object in the monitored server, and downloading a monitoring theme template corresponding to the target object by applying a monitoring theme detection script of the monitoring client; running a monitoring theme detection script of the monitoring client, and acquiring monitoring theme information of the target object in real time through the monitoring theme detection script based on the monitoring theme template so as to acquire each monitoring theme data corresponding to the monitoring theme information each time; judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script; and if the monitoring subject template needs to be updated, updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information. The method provided by the invention can automatically carry out monitoring deployment and subsequent updating without manual intervention, and improves the efficiency and the real-time performance of monitoring deployment and updating.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for monitoring deployment according to an embodiment of the present invention;
fig. 2 is a system structural diagram of a monitoring deployment system according to an embodiment of the present invention;
fig. 3 is a flowchart of another method of a monitoring deployment method according to an embodiment of the present invention;
FIG. 4 is a diagram of an apparatus structure for monitoring a deployment apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In this application, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions, and the terms "comprises", "comprising", or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The invention is operational with numerous general purpose or special purpose computing device environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multi-processor apparatus, distributed computing environments that include any of the above devices or equipment, and the like.
The embodiment of the invention provides a monitoring deployment method, which can be applied to a plurality of system platforms, wherein an execution main body of the method can be a computer terminal or a processor of various mobile devices, and a flow chart of the method is shown in fig. 1, and the method specifically comprises the following steps:
s101: when a monitoring deployment command issued to a monitored server by a monitoring management server is detected, determining a target object to be monitored corresponding to the monitoring deployment command.
In the embodiment of the present invention, the target object to be monitored may be an application, software, a system, a server, or the like. The monitoring management server is used for monitoring whether the information file of the object to be monitored is in the specified directory, and when the information file of the object to be monitored is in the specified directory, a monitoring deployment command corresponding to the object is generated and sent to the monitored server.
S102: and deploying a monitoring client corresponding to the target object in the monitored server, and downloading a monitoring theme template corresponding to the target object by applying a monitoring theme detection script of the monitoring client.
In the embodiment of the present invention, the monitoring client is configured to monitor the target object in real time, and specifically monitor whether the running state of the target object is normal, whether an external service process is normal, whether an internal application or module is updated, and the like.
Specifically, a monitoring theme detection script is arranged in the monitoring client. The monitoring subject detection script is used for detecting at least one monitoring subject contained in the target object in real time. After the monitoring client is deployed, monitoring subject information of the monitoring subject is collected through the monitoring subject detection script in the monitoring client, so that a monitoring subject template corresponding to the monitoring subject in the target object is downloaded according to the monitoring subject information. The monitoring subject template comprises a monitoring strategy of a monitoring target object, wherein the monitoring strategy comprises a monitoring subject type, a version number, a plurality of monitoring index items of the monitoring target object required by a monitoring client, a data acquisition rule of monitoring subject data required to be acquired by a monitoring subject detection script, a processing rule for processing the acquired monitoring subject data, a mode for checking the monitoring subject data and the like.
The monitoring theme module can further include at least one monitoring script, each monitoring script is used for acquiring monitoring theme data which cannot be acquired by the monitoring theme detection script in a monitoring theme corresponding to the monitoring theme template, and when complex monitoring content needing data acquisition exists in the monitoring theme, the monitoring theme template can apply the monitoring script to acquire data of the complex monitoring content.
It should be noted that, if there is one monitoring theme in the target object, the monitoring theme template corresponding to the monitoring theme is downloaded, and if there are multiple monitoring themes, each monitoring theme downloads the corresponding monitoring theme template. The monitoring subject may be a system version or a system name of each system set in the target object, or the like.
Optionally, the monitoring client may further include a message processing module, where the message processing module is configured to perform message reminding when a monitoring subject type or version number monitored by the monitoring client changes and a monitoring index item does not meet a set monitoring index, a sampling mode, or an alarm threshold.
S103: and running the monitoring theme detection script of the monitoring client, and acquiring the monitoring theme information of the target object in real time through the monitoring theme detection script based on the monitoring theme template so as to acquire each monitoring theme data corresponding to the monitoring theme information each time.
In the embodiment of the invention, the monitoring client is internally provided with the monitoring theme detection script. When the monitoring theme detection script needs to be applied to acquire each monitoring theme data corresponding to the monitoring theme information, the monitoring theme data of the target object is acquired according to the monitoring strategy in the monitoring template. The monitoring subject information includes a monitoring subject currently detected, and monitoring subject data corresponding to the monitoring subject.
It should be noted that, the monitoring theme detection script may collect the monitoring theme data according to a set time period.
S104: and judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script.
In the embodiment of the invention, based on the current monitoring subject information acquired by the monitoring subject detection script, whether the subject version, the internal application or other subject functions of the monitoring subject of the target object are changed or abnormal is determined. If the main version, the internal application or other subject functions of the monitoring subject of the target object are changed or abnormal, the monitoring subject template needs to be updated corresponding to the change or the abnormality of the target object.
For example, according to the current monitoring theme information acquired by the monitoring theme detection script, whether the monitoring theme of the currently monitored target object is changed or not is judged, so that the monitoring theme template is updated according to the changed monitoring theme.
S105: and if the monitoring subject template needs to be updated, updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information.
In the embodiment of the invention, if the theme template is monitored, the monitoring theme template is correspondingly updated according to each current monitoring theme data.
Optionally, if the monitoring theme template includes the monitoring script, the monitoring script in the monitoring theme is updated when the monitoring theme template is updated.
In the monitoring deployment method provided by the embodiment of the invention, when the monitoring management server is detected to issue the monitoring deployment command to the monitored server, the target object to be monitored corresponding to the monitoring deployment command is determined. Deploying a monitoring client corresponding to a target object in a monitored server, monitoring the target object by the monitoring client, wherein a monitoring theme detection script is arranged in the monitoring client, and the monitoring theme detection script is used for downloading a monitoring theme template corresponding to the monitoring theme according to a monitoring theme to be monitored in the target object and acquiring monitoring theme data of the target object according to the monitoring theme template; the monitoring subject template comprises a monitoring strategy, and the monitoring client monitors the target object according to the monitoring strategy so as to feed back the target object in time when the target object is abnormal or changed. After a monitoring client is deployed in a monitored server, a monitoring theme detection script in the monitoring client is operated, and the monitoring theme detection script is used for acquiring monitoring theme data of a target object in real time. When the monitoring theme detection script feeds back the current monitoring theme data, determining whether the object is abnormal or changed according to each monitoring theme data currently fed back by the monitoring theme detection script, so as to judge whether the monitoring theme template needs to be updated correspondingly. And when the monitoring theme template is determined to need to be updated, updating the monitoring theme template according to the monitoring theme data currently fed back by the monitoring theme detection script.
It should be noted that, a plurality of monitoring clients may be disposed in the monitored server, and each monitoring client is used for monitoring at least one object. When the monitoring management server issues a monitoring deployment instruction of at least one new object to be monitored, the monitored server deploys the monitoring client corresponding to the new object according to the instruction.
Further, when the monitoring management server needs to issue a monitoring deployment instruction to the monitored server, the monitoring deployment instruction may be sent through a preset message middleware, and the monitored server reads the monitoring deployment instruction from the message middleware and executes downloading and installation of the monitoring client corresponding to the target object.
Based on the method provided by the embodiment, the following specific implementation processes are provided for the monitoring deployment process:
when the monitored server needs to install the system A, the monitoring management server issues a monitoring deployment command corresponding to the system A to the monitored server. After receiving the command, the monitored server deploys a monitoring client corresponding to the system A, and a monitoring theme detection script is set in the monitoring client to download a monitoring theme template corresponding to the system A. And running a monitoring theme detection script in the monitoring client, wherein the monitoring theme detection script acquires monitoring theme data in the system A in real time according to the monitoring theme template. When the system A in the monitored server is upgraded from the 1.0 version to the 2.0 version, the monitoring subject detection script acquires the current monitoring subject data of the 2.0 version of the system A. If the application A is added to the upgraded 2.0 version of the system A, the monitoring theme template of the monitoring client is correspondingly updated according to the current monitoring theme data, so that the monitoring theme detection script in the monitoring client can increase the collection of the monitoring theme data of the application A in the system A according to the updated monitoring theme template.
By applying the method provided by the embodiment of the invention, the monitoring deployment and the subsequent updating can be automatically carried out without manual intervention, and the efficiency and the real-time performance of the monitoring deployment and the updating are improved.
In the method provided by the embodiment of the present invention, based on the content of the above S101, when a monitoring deployment instruction sent by the monitoring management server is received, a target object to be currently deployed and monitored needs to be determined. Specifically, the determining of the target object to be monitored corresponding to the monitoring deployment command may include:
acquiring an information file corresponding to the monitoring deployment command contained in the monitoring management server through a preset message middleware;
analyzing the information file to obtain an object name and IP address information corresponding to the equipment name;
and determining a target object to be monitored corresponding to the monitoring deployment command based on the IP address information corresponding to the object name and the equipment name.
In the monitoring deployment method provided in the embodiment of the present invention, referring to fig. 2, one end of a message middle 202 is connected to a monitoring management server 201, and the other end is connected to a monitored server 203. When the monitoring management server 201 monitors that a new information file of an object to be monitored exists in a specified directory, a monitoring deployment instruction corresponding to the information file is generated, and the instruction and the information file are sent to the message middleware 202. The message middleware 202 stores commands and files sent by the monitoring management server. The monitored server 203 reads the monitoring deployment instruction from the message middleware 202, and obtains the information file corresponding to the monitoring deployment instruction through the message middleware 202, and analyzes the information file to obtain the object name and the IP address information of the object to be monitored. The monitored server 203 determines the target object to be monitored and deployed according to the object name and the IP address information.
Optionally, an installation package of the target object is obtained through the IP address information, and the target object is installed through the installation package.
By applying the method provided by the embodiment of the invention, the target object to be monitored is determined through the object name and the IP address information in the information file, so that the monitoring client corresponding to the target object is deployed in the monitored server.
Optionally, in the embodiment of the present invention, after determining that a target object to be monitored needs to be deployed currently, it is determined whether a monitoring client corresponding to the target object has been deployed in the monitored server; if the monitoring client corresponding to the target object is not deployed, deploying the monitoring client corresponding to the target object in the monitored server; if the monitoring client corresponding to the target object is deployed, the monitoring client corresponding to the target object does not need to be deployed again, and monitoring theme data of the target object is collected in real time by using the monitoring theme detection script in the monitoring client according to the monitoring theme template so as to judge whether the monitoring theme template needs to be updated or not.
In the method provided in the embodiment of the present invention, based on the content of the above S102, deploying the monitoring client corresponding to the target object in the monitored server includes:
acquiring an installation package contained in the monitoring deployment command, wherein the installation package contains a monitoring client side initialization installation script;
and initializing an installation script based on the monitoring client in the installation package, and installing the monitoring client on the monitored server.
In the monitoring deployment method provided by the embodiment of the invention, when the monitoring management server issues the monitoring management server, the monitoring management server generates the corresponding installation package of the monitoring client according to the running information and the function information of the target object, and sets the initial installation script of the monitoring client for monitoring the target object. And installing the monitoring client on the server which is forbidden to be empty through the initialization installation script, and initializing the monitoring client. And a monitoring subject detection script corresponding to the monitoring subject in the target object is arranged in the initialized monitoring client. And downloading a monitoring theme template corresponding to the target through the initialized monitoring theme detection script in the monitoring client.
By applying the method provided by the embodiment of the invention, the monitoring client is deployed in the monitored server to realize the monitoring of the target object.
In the method provided in the embodiment of the present invention, based on the content of the above S104, when the monitoring topic detection script acquires each current monitoring topic data corresponding to the target object, it is determined whether the monitoring topic template needs to be updated according to each current monitoring topic data, where a process of determining whether the monitoring topic template needs to be updated is shown in fig. 3, and may specifically include:
s301: and acquiring a preset monitoring subject data set, wherein the monitoring subject data set comprises all monitoring subject data acquired last time by the monitoring subject detection script.
In the embodiment of the invention, when the monitoring theme detection script acquires each monitoring theme data each time, each monitoring theme data acquired last time by the monitoring theme detection script is stored in a preset monitoring theme data set; and when each next monitoring subject data is acquired by the monitoring subject detection script, storing each current monitoring subject data in the monitoring subject data set, and deleting each monitoring subject data acquired last time.
It can be understood that, when the monitoring subject detection script collects the monitoring subject data for the first time, the monitoring subject data set is an empty set, and when the monitoring subject data is collected each subsequent time, the monitoring subject data set only stores each monitoring subject data collected last time.
S302: and comparing each current monitoring subject data with each monitoring subject data in the monitoring subject data set.
In the embodiment of the invention, each monitoring subject data collected at present is compared with each monitoring subject data collected last time, and whether inconsistent monitoring subject data exists is determined.
S303: and if the current monitoring subject data are consistent with the monitoring subject data in the monitoring subject data set, determining that the monitoring subject template does not need to be updated.
In the embodiment of the present invention, if each monitoring subject data in the monitoring subject data set is consistent with each current monitoring subject data, the monitoring subject representing the target object may not be changed, and the monitoring subject template does not need to be updated.
It can be understood that, when the monitoring theme template includes at least one monitoring script, if the monitoring theme template does not need to be updated, the monitoring script does not need to be updated either.
S304: and if any current monitoring subject data is inconsistent with each monitoring subject data in the monitoring subject data set, determining that the monitoring subject template needs to be updated.
In the embodiment of the present invention, if there is any inconsistency between the current monitoring subject data and each monitoring subject data in the monitoring subject data set, the monitoring subject representing the target object may be changed, and the monitoring subject template needs to be updated correspondingly according to the change of the target object.
It can be understood that, when the monitoring topic template includes at least one monitoring script, after the monitoring topic template is updated, each monitoring script in the monitoring topic template needs to be updated correspondingly.
It should be noted that the monitoring subject detection script in the monitoring client may simultaneously acquire the monitoring subject data of a plurality of objects, and when the monitoring subject detection script simultaneously acquires the monitoring subject data of a plurality of objects, each of the monitoring subject data corresponding to each of the acquired objects is compared with the monitoring subject data acquired last time. For example, the monitoring theme detection script may simultaneously collect the monitoring theme data of the Windows server and the Linux server in the target object, and compare each current monitoring theme data of the Windows server and the Linux server with all data in the monitoring theme data set after the current monitoring theme data of the Windows server and the Linux server are collected by the monitoring theme detection script.
In the monitoring deployment method of the provider provided by the embodiment of the invention, when it is required to determine whether the monitoring theme template needs to be updated, a preset monitoring theme data set is obtained, wherein the monitoring theme data set comprises each monitoring theme data acquired last time by the monitoring theme detection script. And comparing each current monitoring subject data with each monitoring subject data collected last time. If each current monitoring subject data set is consistent with each monitoring subject data acquired last time, the monitoring subject template does not need to be updated; if any current monitoring subject data is inconsistent with each monitoring subject data acquired last time, the monitoring subject template needs to be updated.
For example, if the system version of the operating system currently acquired by the monitoring theme detection script is 2.0, and the system version of the operating system acquired by the monitoring theme detection script last time is 1.0, the monitoring theme template corresponding to the operating system needs to be updated for the operating system of the 2.0 version, so that the monitoring theme detection script acquires the monitoring theme data of the operating system of the 2.0 version according to the updated new monitoring theme template.
By applying the method provided by the embodiment of the invention, the monitoring theme template corresponding to the monitoring theme is updated in time when the monitoring theme of the target object is found to be changed by comparing the monitoring theme data.
In the method provided by the embodiment of the present invention, based on the contents of the foregoing implementations S301 to S304, when the monitoring topic detection script acquires the monitoring topic data each time, the monitoring topic data needs to be compared with each monitoring topic data acquired last time, so as to determine whether the monitoring topic template needs to be updated. If the monitoring topic template needs to be updated, the process of updating the monitoring topic template based on the current monitoring topic data may specifically include:
determining a change item of the target object based on each current monitoring subject data and each monitoring subject data in the monitoring subject data set;
and downloading a new monitoring theme template corresponding to the target object based on the change item of the target object so as to acquire each monitoring theme data of the target object through the new monitoring theme template.
In the monitoring deployment method provided by the embodiment of the invention, after comparing each piece of current monitoring subject data with each piece of monitoring subject data acquired last time, a change item of the target object between each piece of current monitoring subject data and each piece of monitoring subject data acquired last time is determined, wherein the change item refers to a monitoring subject, an application function, an operation state or other newly added equipment and the like changed by the target object, a new monitoring subject template is downloaded through the change item, and the new monitoring subject template is updated to the monitored server or the target object to replace the monitoring subject template originally deployed in the monitored server or the target object.
Optionally, if the original monitoring theme template includes the monitoring script, the monitoring script is updated according to the new monitoring theme template.
For example, if a function a is newly added to the target object, the change items of the current monitoring theme data and the monitoring theme data acquired last time by the monitoring theme detection script are the monitoring theme data corresponding to the function a, and a new monitoring theme template is downloaded according to the change items corresponding to the function a, where the new monitoring theme template includes all the monitoring policies in the original monitoring theme template and is added with the monitoring policies for monitoring the function a. After downloading the new monitoring theme template, updating the new monitoring theme template to the monitored server or the target object, and replacing the original monitoring theme template with the new monitoring theme template.
In the method provided by the embodiment of the invention, when the target object is changed, such as abnormal or updated version, the monitoring subject detection script correspondingly acquires the inconsistent monitoring subject data acquired last time, determines the difference of each monitoring subject data acquired twice according to the comparison of the monitoring subject data acquired twice, and updates the monitoring subject template according to the change of the data difference.
The specific implementation procedures and derivatives thereof of the above embodiments are within the scope of the present invention.
Corresponding to the method described in fig. 1, an embodiment of the present invention further provides a monitoring deployment apparatus, which is used for implementing the method in fig. 1 specifically, and the monitoring deployment apparatus provided in the embodiment of the present invention may be applied to a computer terminal or various mobile devices, and a schematic structural diagram of the monitoring deployment apparatus is shown in fig. 4, and specifically includes:
a determining unit 401, configured to determine, when a monitoring deployment command issued by a monitoring management server to a monitored server is detected, a target object to be monitored corresponding to the monitoring deployment command;
a deployment unit 402, configured to deploy a monitoring client corresponding to the target object in the monitored server, and download a monitoring theme template corresponding to the target object by applying a monitoring theme detection script of the monitoring client;
an acquisition unit 403, configured to run a monitoring theme detection script of the monitoring client, and acquire monitoring theme information of the target object in real time based on the monitoring theme template via the monitoring theme detection script, so as to obtain each monitoring theme data corresponding to the monitoring theme information acquired each time;
a judging unit 404, configured to judge whether the monitoring topic template needs to be updated based on current monitoring topic information acquired by the monitoring topic detection script;
an updating unit 405, configured to update the monitoring topic template based on each current monitoring topic data corresponding to the current topic information if the monitoring topic template needs to be updated.
In the monitoring deployment device provided by the embodiment of the invention, when the monitoring management server is detected to issue the monitoring deployment command to the monitored server, the target object to be monitored corresponding to the monitoring deployment command is determined. Deploying a monitoring client corresponding to a target object in a monitored server, monitoring the target object by the monitoring client, wherein a monitoring theme detection script is arranged in the monitoring client, and the monitoring theme detection script is used for downloading a monitoring theme template corresponding to the monitoring theme according to a monitoring theme to be monitored in the target object and acquiring monitoring theme data of the target object according to the monitoring theme template; the monitoring subject template comprises a monitoring strategy, and the monitoring client monitors the target object according to the monitoring strategy so as to feed back the target object in time when the target object is abnormal or changed. After a monitoring client is deployed in a monitored server, a monitoring theme detection script in the monitoring client is operated, and the monitoring theme detection script is used for acquiring monitoring theme data of a target object in real time. When the monitoring theme detection script feeds back the current monitoring theme data, determining whether the object is abnormal or changed according to each monitoring theme data currently fed back by the monitoring theme detection script, so as to judge whether the monitoring theme template needs to be updated correspondingly. And when the monitoring theme template is determined to need to be updated, updating the monitoring theme template according to the monitoring theme data currently fed back by the monitoring theme detection script.
The device provided by the embodiment of the invention can automatically carry out monitoring deployment and subsequent updating without manual intervention, thereby improving the efficiency and the real-time performance of monitoring deployment and updating.
In the apparatus provided in the embodiment of the present invention, the determining unit 401 includes:
the first obtaining subunit is configured to obtain, via a preset message middleware, an information file corresponding to the monitoring deployment command included in the monitoring management server;
the analysis subunit is used for analyzing the information file to obtain an object name and IP address information corresponding to the equipment name;
and the first determining subunit is configured to determine, based on the object name and the IP address information corresponding to the device name, a target object to be monitored corresponding to the monitoring deployment command.
In the apparatus provided in the embodiment of the present invention, the deployment unit 402 includes:
the second obtaining subunit is configured to obtain an installation package included in the monitoring deployment command, where the installation package includes an initialization installation script of the monitoring client;
and the installation subunit is used for initializing an installation script based on the monitoring client in the installation package and installing the monitoring client on the monitored server.
In the apparatus provided in the embodiment of the present invention, the determining unit 404 includes:
a third obtaining subunit, configured to obtain a preset monitoring subject data set, where the monitoring subject data set includes each monitoring subject data that is collected last time by the monitoring subject detection script;
a comparison subunit, configured to compare each current monitoring subject data with each monitoring subject data in the monitoring subject data set;
a second determining subunit, configured to determine that the monitoring topic template does not need to be updated if each piece of the current monitoring topic data is consistent with each piece of the monitoring topic data in the monitoring topic data set;
and the third determining subunit is configured to determine that the monitoring topic template needs to be updated if any current monitoring topic data is inconsistent with each monitoring topic data in the monitoring topic data set.
In the apparatus provided in the embodiment of the present invention, the updating unit 405 includes:
a fourth determining subunit, configured to determine a change item of the target object based on each of the current monitoring subject data and each of the monitoring subject data in the monitoring subject data set;
and the downloading subunit is used for downloading a new monitoring theme template corresponding to the target object based on the change item of the target object so as to acquire each monitoring theme data of the target object through the new monitoring theme template.
The specific working processes of each unit and sub-unit in the monitoring deployment apparatus disclosed in the above embodiment of the present invention may refer to corresponding contents in the monitoring deployment method disclosed in the above embodiment of the present invention, and are not described herein again.
The embodiment of the invention also provides a storage medium, which comprises a stored instruction, wherein when the instruction runs, the equipment where the storage medium is located is controlled to execute the monitoring deployment method.
An electronic device is provided in an embodiment of the present invention, and the structural diagram of the electronic device is shown in fig. 5, which specifically includes a memory 501 and one or more instructions 502, where the one or more instructions 502 are stored in the memory 501, and are configured to be executed by one or more processors 503 to perform the following operations according to the one or more instructions 502:
when a monitoring deployment command issued to a monitored server by a monitoring management server is detected, determining a target object to be monitored corresponding to the monitoring deployment command;
deploying a monitoring client corresponding to the target object in the monitored server, and downloading a monitoring theme template corresponding to the target object by applying a monitoring theme detection script of the monitoring client;
running a monitoring theme detection script of the monitoring client, and acquiring monitoring theme information of the target object in real time through the monitoring theme detection script based on the monitoring theme template so as to acquire each monitoring theme data corresponding to the monitoring theme information each time;
judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script;
and if the monitoring subject template needs to be updated, updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, the system or system embodiments are substantially similar to the method embodiments and therefore are described in a relatively simple manner, and reference may be made to some of the descriptions of the method embodiments for related points. The above-described system and system embodiments are only illustrative, wherein the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both.
To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A monitoring deployment method, comprising:
when a monitoring deployment command issued to a monitored server by a monitoring management server is detected, determining a target object to be monitored corresponding to the monitoring deployment command;
deploying a monitoring client corresponding to the target object in the monitored server, and downloading a monitoring theme template corresponding to the target object by applying a monitoring theme detection script of the monitoring client;
running a monitoring theme detection script of the monitoring client, and acquiring monitoring theme information of the target object in real time through the monitoring theme detection script based on the monitoring theme template so as to acquire each monitoring theme data corresponding to the monitoring theme information each time;
judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script;
and if the monitoring subject template needs to be updated, updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information.
2. The method according to claim 1, wherein the determining the target object to be monitored corresponding to the monitoring deployment command includes:
acquiring an information file corresponding to the monitoring deployment command contained in the monitoring management server through a preset message middleware;
analyzing the information file to obtain an object name and IP address information corresponding to the equipment name;
and determining a target object to be monitored corresponding to the monitoring deployment command based on the IP address information corresponding to the object name and the equipment name.
3. The method according to claim 1, wherein deploying a monitoring client corresponding to the target object in the monitored server comprises:
acquiring an installation package contained in the monitoring deployment command, wherein the installation package contains a monitoring client side initialization installation script;
and initializing an installation script based on the monitoring client in the installation package, and installing the monitoring client on the monitored server.
4. The method of claim 1, wherein the determining whether the monitoring topic template needs to be updated comprises:
acquiring a preset monitoring subject data set, wherein the monitoring subject data set comprises all monitoring subject data acquired last time by the monitoring subject detection script;
comparing each current monitoring subject data with each monitoring subject data in the monitoring subject data set;
if each current monitoring subject data is consistent with each monitoring subject data in the monitoring subject data set, determining that the monitoring subject template does not need to be updated;
and if any current monitoring subject data is inconsistent with each monitoring subject data in the monitoring subject data set, determining that the monitoring subject template needs to be updated.
5. The method of claim 4, wherein updating the monitoring topic template based on each current monitoring topic data corresponding to the current topic information comprises:
determining a change item of the target object based on each current monitoring subject data and each monitoring subject data in the monitoring subject data set;
and downloading a new monitoring theme template corresponding to the target object based on the change item of the target object so as to acquire each monitoring theme data of the target object through the new monitoring theme template.
6. A monitoring deployment device, comprising:
the system comprises a determining unit, a monitoring unit and a monitoring unit, wherein the determining unit is used for determining a target object to be monitored corresponding to a monitoring deployment command when the monitoring deployment command issued by a monitoring management server to a monitored server is detected;
the deployment unit is used for deploying the monitoring client corresponding to the target object in the monitored server and downloading the monitoring theme template corresponding to the target object by applying the monitoring theme detection script of the monitoring client;
the acquisition unit is used for running a monitoring theme detection script of the monitoring client, and acquiring monitoring theme information of the target object in real time on the basis of the monitoring theme template through the monitoring theme detection script so as to acquire each monitoring theme data corresponding to the monitoring theme information each time;
the judging unit is used for judging whether the monitoring theme template needs to be updated or not based on the current monitoring theme information acquired by the monitoring theme detection script;
and the updating unit is used for updating the monitoring subject template based on each current monitoring subject data corresponding to the current subject information if the monitoring subject template needs to be updated.
7. The apparatus of claim 6, wherein the determining unit comprises:
the first obtaining subunit is configured to obtain, via a preset message middleware, an information file corresponding to the monitoring deployment command included in the monitoring management server;
the analysis subunit is used for analyzing the information file to obtain an object name and IP address information corresponding to the equipment name;
and the first determining subunit is configured to determine, based on the object name and the IP address information corresponding to the device name, a target object to be monitored corresponding to the monitoring deployment command.
8. The apparatus of claim 6, wherein the deployment unit comprises:
the second obtaining subunit is configured to obtain an installation package included in the monitoring deployment command, where the installation package includes an initialization installation script of the monitoring client;
and the installation subunit is used for initializing an installation script based on the monitoring client in the installation package and installing the monitoring client on the monitored server.
9. The apparatus according to claim 6, wherein the determining unit comprises:
a third obtaining subunit, configured to obtain a preset monitoring subject data set, where the monitoring subject data set includes each monitoring subject data that is collected last time by the monitoring subject detection script;
a comparison subunit, configured to compare each current monitoring subject data with each monitoring subject data in the monitoring subject data set;
a second determining subunit, configured to determine that the monitoring topic template does not need to be updated if each piece of the current monitoring topic data is consistent with each piece of the monitoring topic data in the monitoring topic data set;
and the third determining subunit is configured to determine that the monitoring topic template needs to be updated if any current monitoring topic data is inconsistent with each monitoring topic data in the monitoring topic data set.
10. The apparatus of claim 9, wherein the updating unit comprises:
a fourth determining subunit, configured to determine a change item of the target object based on each of the current monitoring subject data and each of the monitoring subject data in the monitoring subject data set;
and the downloading subunit is used for downloading a new monitoring theme template corresponding to the target object based on the change item of the target object so as to acquire each monitoring theme data of the target object through the new monitoring theme template.
CN202011580278.2A 2020-12-28 2020-12-28 Monitoring deployment method and device Pending CN112579398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011580278.2A CN112579398A (en) 2020-12-28 2020-12-28 Monitoring deployment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011580278.2A CN112579398A (en) 2020-12-28 2020-12-28 Monitoring deployment method and device

Publications (1)

Publication Number Publication Date
CN112579398A true CN112579398A (en) 2021-03-30

Family

ID=75140380

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011580278.2A Pending CN112579398A (en) 2020-12-28 2020-12-28 Monitoring deployment method and device

Country Status (1)

Country Link
CN (1) CN112579398A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608750A (en) * 2021-08-04 2021-11-05 北京元年科技股份有限公司 Deployment method and device of monitoring component, computer equipment and storage medium
CN115499336A (en) * 2022-08-19 2022-12-20 恒丰银行股份有限公司 Method, equipment and medium for monitoring full life cycle of application system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103490937A (en) * 2013-10-12 2014-01-01 北京奇虎科技有限公司 Method and device for filtering monitoring data
US9418222B1 (en) * 2013-09-27 2016-08-16 Symantec Corporation Techniques for detecting advanced security threats
CN106998265A (en) * 2017-03-14 2017-08-01 中国银联股份有限公司 A kind of monitoring method and its device
CN107491371A (en) * 2016-06-13 2017-12-19 阿里巴巴集团控股有限公司 A kind of method and device for monitoring deployment
CN107943665A (en) * 2017-12-14 2018-04-20 中盈优创资讯科技有限公司 A kind of system host monitoring method and device
CN108845865A (en) * 2018-06-28 2018-11-20 郑州云海信息技术有限公司 A kind of monitoring service dispositions method, system and storage medium
CN110321359A (en) * 2019-07-05 2019-10-11 浪潮软件集团有限公司 A kind of spatial data increment updating method based on CMSP
WO2019232832A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Data monitoring method and device, computer device, and storage medium
US20200072707A1 (en) * 2017-04-25 2020-03-05 Mitsubishi Heavy Industries, Ltd. Management monitoring system
CN111581219A (en) * 2020-05-14 2020-08-25 中国银行股份有限公司 Monitoring data acquisition method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9418222B1 (en) * 2013-09-27 2016-08-16 Symantec Corporation Techniques for detecting advanced security threats
CN103490937A (en) * 2013-10-12 2014-01-01 北京奇虎科技有限公司 Method and device for filtering monitoring data
CN107491371A (en) * 2016-06-13 2017-12-19 阿里巴巴集团控股有限公司 A kind of method and device for monitoring deployment
CN106998265A (en) * 2017-03-14 2017-08-01 中国银联股份有限公司 A kind of monitoring method and its device
US20200072707A1 (en) * 2017-04-25 2020-03-05 Mitsubishi Heavy Industries, Ltd. Management monitoring system
CN107943665A (en) * 2017-12-14 2018-04-20 中盈优创资讯科技有限公司 A kind of system host monitoring method and device
WO2019232832A1 (en) * 2018-06-06 2019-12-12 平安科技(深圳)有限公司 Data monitoring method and device, computer device, and storage medium
CN108845865A (en) * 2018-06-28 2018-11-20 郑州云海信息技术有限公司 A kind of monitoring service dispositions method, system and storage medium
CN110321359A (en) * 2019-07-05 2019-10-11 浪潮软件集团有限公司 A kind of spatial data increment updating method based on CMSP
CN111581219A (en) * 2020-05-14 2020-08-25 中国银行股份有限公司 Monitoring data acquisition method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113608750A (en) * 2021-08-04 2021-11-05 北京元年科技股份有限公司 Deployment method and device of monitoring component, computer equipment and storage medium
CN115499336A (en) * 2022-08-19 2022-12-20 恒丰银行股份有限公司 Method, equipment and medium for monitoring full life cycle of application system

Similar Documents

Publication Publication Date Title
CN106844137B (en) Server monitoring method and device
US8464240B2 (en) Method and system for controlling software version updates
CN110309476B (en) Method and device for calling local application program by webpage browser
CN106325847B (en) Method and device for acquiring application program function based on iOS platform
CN112579398A (en) Monitoring deployment method and device
NO312269B1 (en) Software Upgrade Automation Procedure
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN107291481B (en) Component updating method, device and system
CN114090033A (en) OTA (over the air) upgrading method and device, electronic equipment and readable medium
CN114185734B (en) Method and device for monitoring clusters and electronic equipment
CN109791485B (en) Mesh network based over-the-air modem firmware upgrade
CN113434180B (en) Data processing method and device for application, server and storage medium
CN111752577A (en) System version upgrading method and device
CN112115056B (en) Project deployment method and device, server and storage medium
JP5359835B2 (en) Information processing apparatus, distribution system, and reception method
WO2019038399A1 (en) Smart provisioning software applications on edge devices in an internet-of-things environment
US10073689B2 (en) Managing application lifecycles within a federation of distributed software applications
CN116069367A (en) Method, terminal, computer equipment and storage medium for updating application programs in batches
CN109032641B (en) Application version updating method and device
CN111722850A (en) Method, device and system for processing application among multiple systems
US7895267B2 (en) Extensible method and system for performing management operations on known and unknown targets
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN114443065A (en) Platform deployment method, platform deployment device, electronic equipment and storage medium
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
US20090187880A1 (en) Customized networked-based commerce system packages

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