Monitoring strategy determination method and device, storage medium and electronic device

By receiving and executing monitoring strategies of third-party operation and maintenance tools on the procurement and control server, obtaining and sending monitoring indicator data to adjust the strategy, the problem of inefficient operation and maintenance in the existing technology is solved, and efficient monitoring and management of the server is achieved.

CN119862084APending Publication Date: 2025-04-22CHINA CONSTRUCTION BANK
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411822358.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-04-22

AI Technical Summary

Technical Problem

The lack of monitoring strategies for effectively monitoring the server in the prior art, resulting in low operation and maintenance efficiency.

Method used

The procurement and control server of the procurement and control server receives monitoring tasks issued by the third-party operation and maintenance tool based on the monitoring strategy of the unified procurement and control platform, performs monitoring tasks for the monitoring objects indicated by the monitoring policy, obtains monitoring indicator data, and sends the data to the unified procurement and control platform to adjust the monitoring strategy.

Benefits of technology

It realizes unified monitoring and management of business application software objects on the procurement and control server, improves monitoring efficiency, and dynamically adjusts monitoring strategies based on real-time monitoring indicator data to ensure the accuracy and timeliness of monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119862084A_ABST
    Figure CN119862084A_ABST
Patent Text Reader

Abstract

The invention discloses a monitoring strategy determination method and device, a storage medium and an electronic device, and the method comprises the steps: receiving a monitoring task issued by a third-party operation and maintenance tool based on a monitoring strategy of a unified collection and control platform through a collection and control server; executing the monitoring task for a monitoring object indicated by the monitoring strategy to obtain monitoring index data of the monitoring object; sending the monitoring index data to the unified acquisition and control platform, so that the unified acquisition and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents a business application software object supported by the acquisition and control server. By adopting the technical scheme, the technical problem of low operation and maintenance efficiency caused by lack of a monitoring strategy for effectively monitoring the server is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of acquisition and control management, and specifically, to a method and device for determining a monitoring strategy, a storage medium, and an electronic device. Background Art

[0002] In the current wave of information construction, data centers, as the nerve center of business operations of enterprises, carry a large amount of data processing and storage tasks. In order to ensure the efficient and stable operation of data centers, the acquisition and control center (the management and monitoring center of the data center) usually needs to deploy hardware resources such as servers, network equipment, and storage devices, and integrate various operation and maintenance tools to achieve comprehensive monitoring and management of these resources. Traditional operation and maintenance tools are independent of each other and lack a unified management platform and standardized monitoring strategies. The acquisition and control center often needs to manually configure monitoring rules according to the characteristics of different servers, which is not only time-consuming and labor-intensive, but also prone to monitoring omissions or false alarms due to improper monitoring strategy settings, which increases the difficulty of operation and maintenance work and leads to low operation and maintenance efficiency.

[0003] Therefore, in the related art, there is a technical problem that the operation and maintenance efficiency is low due to the lack of a monitoring strategy for effectively monitoring the server.

[0004] With regard to related technologies, there is currently no effective solution to the technical problem of low operation and maintenance efficiency due to the lack of a monitoring strategy for effectively monitoring servers.

[0005] Therefore, it is necessary to improve the related technology to overcome the above-mentioned defects in the related technology. Summary of the invention

[0006] The embodiments of the present application provide a method and device for determining a monitoring strategy, a storage medium, and an electronic device, so as to at least solve the technical problem of low operation and maintenance efficiency caused by the lack of a monitoring strategy for effectively monitoring a server.

[0007] According to one aspect of an embodiment of the present application, a method for determining a monitoring strategy is provided, which is applied to a procurement and control server, wherein the procurement and control server is provided with at least a procurement and control service end, comprising: receiving, through the procurement and control service end, a monitoring task issued by a third-party operation and maintenance tool based on a monitoring strategy of a unified procurement and control platform; executing the monitoring task for a monitoring object indicated by the monitoring strategy to obtain monitoring indicator data of the monitoring object; sending the monitoring indicator data to the unified procurement and control platform, so that the unified procurement and control platform adjusts the monitoring strategy according to the monitoring indicator data; wherein the monitoring object represents a business application software object supported by the procurement and control server.

[0008] In an exemplary embodiment, the acquisition and control server is also provided with a unified monitoring agent terminal connected to the acquisition and control server terminal, and a third-party agent plug-in, which executes the monitoring task for the monitoring object indicated by the monitoring strategy and obtains the monitoring index data of the monitoring object, including: forwarding the monitoring task to the third-party agent plug-in through the unified monitoring agent terminal; executing the monitoring task through the third-party agent plug-in, collecting the business data of the monitoring object, and determining the business data as the monitoring index data, wherein the business data includes at least one of the following: customized business data, job business data, configuration business data, port business data, and process business data.

[0009] In an exemplary embodiment, the acquisition and control server is also provided with a acquisition and control built-in module, which executes the monitoring task for the monitoring object indicated by the monitoring strategy to obtain the monitoring index data of the monitoring object, including: forwarding the monitoring task to the acquisition and control built-in module through the unified monitoring agent; executing the monitoring task through the acquisition and control built-in module, collecting the object index data of the monitoring object, and determining the object index data as the monitoring index data, wherein the object index data includes at least one of the following: basic monitoring index data and log monitoring index data.

[0010] In an exemplary embodiment, executing the monitoring task for the monitoring object indicated by the monitoring policy includes: obtaining the interface data parsing rules set for the third-party agent plug-in; parsing the monitoring task according to the interface data parsing rules to obtain the plug-in name of the monitoring task; and when it is determined that the plug-in name of the monitoring task belongs to the plug-in name of the third-party agent plug-in, calling the third-party agent plug-in to execute the monitoring task.

[0011] In an exemplary embodiment, calling the third-party agent plug-in to execute the monitoring task includes: sending the plug-in name to the agent executor corresponding to the unified monitoring agent, obtaining the instantiated plug-in object corresponding to the plug-in name provided by the agent executor; and calling the plug-in object to execute the monitoring task.

[0012] In an exemplary embodiment, after obtaining the instantiated plug-in object corresponding to the plug-in name provided by the agent executor, the method further includes: determining a configuration file of the instantiated plug-in object; adding plug-in declaration data to the configuration file in a declaration format, wherein the plug-in declaration data includes at least one of the following: plug-in name, plug-in file path.

[0013] In an exemplary embodiment, executing the monitoring task through the third-party agent plug-in includes: running a plug-in daemon built for the third-party agent plug-in to monitor the current running state of the third-party agent plug-in; and executing the monitoring task through the third-party agent plug-in when it is determined that the current running state indicates that the third-party agent plug-in is running normally.

[0014] According to another aspect of an embodiment of the present application, a device for determining a monitoring strategy is also provided, including: a receiving module, used to receive, through a procurement and control service end, a monitoring task issued by a third-party operation and maintenance tool based on a monitoring strategy of a unified procurement and control platform; an obtaining module, used to execute the monitoring task for a monitoring object indicated by the monitoring strategy, and obtain monitoring indicator data of the monitoring object; a sending module, used to send the monitoring indicator data to the unified procurement and control platform, so that the unified procurement and control platform adjusts the monitoring strategy according to the monitoring indicator data; wherein, the monitoring object represents a business application software object supported by the procurement and control server.

[0015] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned method for determining the monitoring strategy when running.

[0016] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for determining the monitoring strategy through the computer program.

[0017] According to another aspect of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0018] Through this application, the monitoring task issued by the third-party operation and maintenance tool based on the monitoring strategy of the unified acquisition and control platform can be received through the acquisition and control service end of the acquisition and control server; the monitoring task is executed for the monitoring object indicated by the monitoring strategy to obtain the monitoring index data of the monitoring object; the monitoring index data is sent to the unified acquisition and control platform, so that the unified acquisition and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the acquisition and control server. By adopting the above technical solution, the monitoring strategy of the third-party operation and maintenance tool is integrated into the unified acquisition and control platform, and the unified monitoring and management of the business application software objects on the acquisition and control server is realized. This method not only improves the monitoring efficiency, but also can dynamically adjust the monitoring strategy according to the real-time monitoring index data to ensure the accuracy and timeliness of the monitoring, and solves the technical problem of low operation and maintenance efficiency due to the lack of monitoring strategy for effective monitoring of the server. The server can be effectively monitored, thereby improving the operation and maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The exemplary embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0020] Figure 1 It is a hardware structure block diagram of a computer terminal that executes the method for determining the monitoring strategy of an embodiment of the present application;

[0021] Figure 2 is a flowchart of a method for determining a monitoring strategy according to an embodiment of the present application;

[0022] Figure 3 It is a schematic diagram of the connection relationship between the acquisition and control platform, the third-party operation and maintenance tool and the acquisition and control server according to an embodiment of the present application;

[0023] Figure 4 This is a schematic diagram of the running guard of the plug-in according to an embodiment of the present application;

[0024] Figure 5 It is a schematic diagram of a process management principle according to an embodiment of the present application;

[0025] Figure 6 It is a structural block diagram of a device for determining a monitoring strategy according to an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0027] It should be noted that the terms and "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] The method embodiments provided in the embodiments of the present application can be executed in a computer terminal or a similar computing device. Taking running on a computer terminal as an example, Figure 1 1 is a hardware structure block diagram of a computer terminal that executes the method for determining the monitoring strategy of the embodiment of the present application. Figure 1 As shown, the computer terminal may include one or more ( Figure 1 Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, MPU for short) or a programmable logic device (Programmable logic device, PLD for short) and a memory 104 configured to store data,

[0029] In an exemplary embodiment, the computer terminal may further include a transmission device 106 and an input / output device 108 configured to function as a communication device. Figure 1 The structure shown is only for illustration and does not limit the structure of the above-mentioned computer terminal. Figure 1 More or fewer components as shown, or with Figure 1 Equivalent functions or comparisons shown Figure 1 A different configuration with more features is shown.

[0030] The memory 104 may be configured to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the method for determining the monitoring strategy in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0031] The transmission device 106 is configured to receive or send data via a network. A specific example of the above network may include a wireless network provided by a communication provider of a computer terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is configured to communicate with the Internet wirelessly.

[0032] In this embodiment, a method for determining a monitoring strategy is provided. Figure 2 According to a flow chart of a method for determining a monitoring strategy according to an embodiment of the present application, the process includes the following steps:

[0033] Step S202, receiving, through the acquisition and control service end, a monitoring task issued by a third-party operation and maintenance tool based on a monitoring strategy of a unified acquisition and control platform;

[0034] Step S204, executing the monitoring task for the monitoring object indicated by the monitoring strategy to obtain monitoring indicator data of the monitoring object;

[0035] It should be noted that the monitoring tasks can be configured to achieve the monitoring purposes of statistics, alarms, audits, etc. of business application software. Monitoring tasks can include monitoring indicators, monitoring cycles, alarm policies, rules, etc. Monitoring indicators are the data basis for the monitoring system to monitor and collect business application software. Monitoring of business application software can be achieved through monitoring indicators.

[0036] Step S206, sending the monitoring indicator data to the unified acquisition and control platform, so that the unified acquisition and control platform adjusts the monitoring strategy according to the monitoring indicator data; wherein the monitoring object represents the business application software object supported by the acquisition and control server.

[0037] Optionally, for monitoring of business application software, for example, monitoring is achieved through a monitoring plug-in (or agent plug-in) of the business application software itself, and the monitoring plug-in is responsible for collecting monitoring indicator data related to the business application software.

[0038] Through the above steps, the monitoring task issued by the third-party operation and maintenance tool based on the monitoring strategy of the unified acquisition and control platform can be received through the acquisition and control service end of the acquisition and control server; the monitoring task is executed for the monitoring object indicated by the monitoring strategy to obtain the monitoring index data of the monitoring object; the monitoring index data is sent to the unified acquisition and control platform, so that the unified acquisition and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the acquisition and control server. By adopting the above technical solution, the monitoring strategy of the third-party operation and maintenance tool is integrated into the unified acquisition and control platform, and the unified monitoring and management of the business application software objects on the acquisition and control server is realized. This method not only improves the monitoring efficiency, but also can dynamically adjust the monitoring strategy according to the real-time monitoring index data to ensure the accuracy and timeliness of the monitoring, and solves the technical problem of low operation and maintenance efficiency due to the lack of monitoring strategy for effective monitoring of the server. The server can be effectively monitored, thereby improving the operation and maintenance efficiency.

[0039] For example, Figure 3 As shown in the figure, the unified procurement and control platform is the core part of the entire architecture, providing management capabilities such as deployment, upgrade, start, stop, and uninstallation of operation and maintenance tool agent adapters, realizing on-demand expansion and flexible distribution of procurement and control adaptation capabilities.

[0040] The third-party operation and maintenance tools integrate the required adapter framework, integrated scaffolding, development toolkit, and standardize the adaptation data specifications. The third-party operation and maintenance tools are divided into two parts: "application monitoring" and "hardware monitoring", representing different monitoring and operation and maintenance requirements. They can communicate with the acquisition and control platform through "strategy task structuring", parameterize the monitoring strategy and tasks, and obtain the monitoring tasks, which is convenient for the acquisition and control platform to perform unified scheduling and execution.

[0041] The acquisition and control server (corresponding to the acquisition and control server and the controlled server in the figure), as a bridge between the acquisition and control platform and third-party tools, is responsible for the specific operations of data collection and task execution.

[0042] like Figure 3 As shown, the acquisition control server (i.e. Figure 3The monitored server) builds plug-in configuration files and script codes that are hosted and controlled by the acquisition and control agent. It is easy to develop. In the three-party acquisition and control agent scenarios such as configuration collection, application monitoring indicators, and indicator collection, the expansion capability of the "plug-in" service can achieve unified management capabilities of the tool agent.

[0043] The acquisition and control server also includes two main parts: "unified monitoring agent" and "acquisition and control built-in module". Among them, the "unified monitoring agent" is responsible for maintaining a long connection with the acquisition and control platform, receiving and executing tasks. The "acquisition and control built-in module" is responsible for "basic and log monitoring indicator data collection", as well as realizing the monitoring and collection of custom classes, job classes, configuration classes, and process port classes through "third-party agent plug-ins".

[0044] It is understandable that the unified acquisition and control platform transmits the task strategy to the acquisition and control server through "monitoring strategy delivery". The "unified monitoring agent" of the acquisition and control server receives the task and completes the data collection and monitoring task through collaboration with the "acquisition and control built-in module" and "third-party agent plug-in".

[0045] By expanding the functions of the acquisition and control server through plug-ins, the platform can flexibly adapt and manage various third-party tools, while also simplifying the access process for new tools.

[0046] Combination Figure 3 It can be seen that the unified procurement and control platform can achieve effective control of third-party operation and maintenance tools and procurement and control servers, as well as automated execution of data collection and monitoring tasks through unified management and plug-in services, thereby improving operation and maintenance efficiency and system management capabilities. In actual applications, it can significantly improve the monitoring capabilities and operation and maintenance efficiency of business application software. Using the method of this application, it is possible to unify procurement and control management capabilities, complete one-to-many tool agent management capabilities, and achieve unified management of multiple resource objects, multiple tools, and multiple agents in complex heterogeneous environments. It is suitable for tool agent management in multi-cloud and hybrid cloud environments, and further improves the efficiency and quality of operation and maintenance work. It provides a strong guarantee for the stable operation of the system.

[0047] In an exemplary embodiment, the acquisition and control server is also provided with a unified monitoring agent terminal and a third-party agent plug-in connected to the acquisition and control server terminal, and the monitoring task is executed for the monitoring object indicated by the monitoring strategy, and the process of obtaining the monitoring index data of the monitoring object includes: forwarding the monitoring task to the third-party agent plug-in through the unified monitoring agent terminal; executing the monitoring task through the third-party agent plug-in, collecting the business data of the monitoring object, and determining the business data as the monitoring index data, wherein the business data includes at least one of the following: customized business data, job business data, configuration business data, port business data, and process business data. By introducing a unified monitoring agent terminal and a third-party agent plug-in, this method can flexibly expand the monitoring capability and support the collection of multiple business data, so that the monitoring system can more flexibly adapt to different business needs, especially when it is necessary to monitor specific business logic or workflow, it can provide more accurate monitoring data.

[0048] In an exemplary embodiment, the acquisition and control server is also provided with an acquisition and control built-in module, which executes the monitoring task for the monitoring object indicated by the monitoring strategy, and the implementation steps of obtaining the monitoring index data of the monitoring object include: forwarding the monitoring task to the acquisition and control built-in module through the unified monitoring agent; executing the monitoring task through the acquisition and control built-in module, collecting the object index data of the monitoring object, and determining the object index data as the monitoring index data, wherein the object index data includes at least one of the following: basic monitoring index data, log monitoring index data. The introduction of the acquisition and control built-in module can directly collect basic monitoring index data and log monitoring index data, reduce the dependence on third-party tools, improve the response speed and data security of the monitoring system, and is particularly suitable for scenarios with high requirements for real-time performance and data privacy.

[0049] In an exemplary embodiment, the process of executing the monitoring task for the monitoring object indicated by the monitoring policy includes: obtaining the interface data parsing rules set for the third-party proxy plug-in; parsing the monitoring task according to the interface data parsing rules to obtain the plug-in name of the monitoring task; and in the case of determining that the plug-in name of the monitoring task belongs to the plug-in name of the third-party proxy plug-in, calling the third-party proxy plug-in to execute the monitoring task. Through the interface data parsing rules, the correct third-party plug-in can be accurately identified and called, avoiding the incorrect execution of the monitoring task, and ensuring the accuracy of the monitoring data and the efficiency of the monitoring process.

[0050] It should be noted that after parsing the monitoring task according to the interface data parsing rules, the task number, task instruction, task type, plug-in name, plug-in version, plug-in task parameters, etc. can also be obtained.

[0051] Optionally, in one embodiment, for example, the following content is used to indicate setting interface data parsing rules during plug-in development:

[0052] {

[0053] "instr_id":123, #task ID;

[0054] "instruction":"run", #Task instruction;

[0055] "handler_type":"plugin",#Task type;

[0056] "handler":"auto.python",#plugin name;

[0057] "version":"1.0.0", #plugin version;

[0058] "timeout":120, #Execution timeout;

[0059] "priority":0, #Task priority, value is 0 or 1;

[0060] "exit_after_timeout":0, #Whether the task ends immediately when it times out, the value is 0 or 1;

[0061] "concurrent":{},#Execution type, parallel, serial, exclusive, the default is parallel;

[0062] "post_meta":{},#Related callback information when the application reports messages, generated by the application;

[0063] "args":{}#Plugin task parameters.

[0064] In an exemplary embodiment, the process of calling the third-party agent plug-in to execute the monitoring task includes: sending the plug-in name to the agent executor corresponding to the unified monitoring agent, obtaining the instantiated plug-in object corresponding to the plug-in name provided by the agent executor; and calling the plug-in object to execute the monitoring task. This method manages the instantiation and calling of third-party plug-ins through the agent executor, simplifies the management and use of plug-ins, and improves the maintainability and scalability of the system.

[0065] Optionally, in the above task information, what you need to pay attention to when implementing the plug-in is handler and args. The handler is the plug-in name that is negotiated with the application side and calls the current plug-in (the application side needs to know which plug-in to call when executing the corresponding task; args is the specific parameter information of the task. After the plug-in is instantiated, the execution framework will call the plug-in instance and pass in the task parameters to start execution. The Agent executor (representing the above agent executor) needs to know what plug-in object to instantiate.

[0066] In an exemplary embodiment, after obtaining the instantiated plug-in object corresponding to the plug-in name provided by the proxy executor, a configuration file of the instantiated plug-in object can also be determined; plug-in declaration data is added to the configuration file according to a declaration format, wherein the plug-in declaration data includes at least one of the following: plug-in name, plug-in file path. By adding plug-in declaration data to the configuration file, third-party plug-ins can be dynamically managed and updated, so that the monitoring system can quickly adapt to business changes, and the flexibility and real-time performance of monitoring are improved.

[0067] It should be noted that after the plug-in is implemented, the plug-in name and plug-in file path need to be declared in the configuration file so that the agent can accurately find the corresponding plug-in file locally and instantiate it according to the handler in the task information when executing.

[0068] The data of the plugin declaration file is stored in "framework / common / settings.py", and you only need to expand the CORE_PLUGINS dictionary.

[0069] The declaration format is as follows:

[0070] CORE_PLUGINS = {

[0071] "Plugin Name":{

[0072] "file":"plugin file path";

[0073] "main": "plugin execution class";

[0074] }

[0075] }.

[0076] The plug-in name is the same as the handler in the task information. That is, when the task is sent to the agent, the agent searches CORE_PLUGINS in settings for a declared plug-in with the same name according to the handler in the task information.

[0077] The file path specified by file is relative to the directory path of framework / plugins.

[0078] For example, if an automated plug-in is implemented and the plug-in script is named auto.py and is placed in the framework / plugins directory, then when declaring it here, the value corresponding to file is auto.py; if auto.py is placed in framework / plugins / module / auto.py, the value corresponding to file is module / file.py.

[0079] For ease of management, plugin name definitions are recommended to follow the corresponding specifications:

[0080] If it is a built-in plug-in, it is recommended to start with core, for example: core.upload_log;

[0081] If it is a product plug-in, it starts with the product name or the corresponding abbreviation, for example: auto.python.

[0082] Optionally, all implemented internal plugins need to be stored in the framework / plugins directory or its subdirectories and inherit the BasePlugin class from plugins.

[0083] Plugin implementation follows: The plugin object must inherit from BasePlugin. The start method must be implemented in the class.

[0084] In an exemplary embodiment, the process of executing the monitoring task through the third-party agent plug-in includes: running a plug-in daemon built for the third-party agent plug-in to monitor the current running state of the third-party agent plug-in; and executing the monitoring task through the third-party agent plug-in when it is determined that the current running state indicates that the third-party agent plug-in is running normally. The operation of the plug-in daemon ensures the stability and reliability of the third-party plug-in, avoids the loss of monitoring data or the failure of monitoring tasks due to plug-in failure, and improves the overall performance of the monitoring system. In addition, monitoring the running state of the third-party agent plug-in through the plug-in daemon further ensures the execution effect of the monitoring task.

[0085] Optional, such as Figure 4 As shown, in order to ensure the stable operation of the third-party proxy plug-in, a plug-in daemon is built to monitor the plug-in running status in real time and implement the running daemon of the proxy plug-in.

[0086] Among them, circlectl is the front-end controller of the Demon daemon process, which is used to help administrators control the circled daemon process (Node RPC).

[0087] circled is the main process in the Demon architecture, responsible for running all processes and maintaining connection and communication with the agent core module Core (Node RPC). Each process managed by Demon is a child process of circled.

[0088] A controller is a controller that contains a set of operations that can be performed on an arbiter.

[0089] Arbiter is responsible for managing all watcher instances and ensuring that all processes run normally.

[0090] Watcher runs one or more process instances for the same command and manages the life cycle of the process.

[0091] A process is an independent OS process instance of a program. A watcher can run one or more processes (the current agent is a process instance), which can be understood as a worker.

[0092] Obviously, the embodiments described above are only some embodiments of the present application, not all embodiments. In order to better understand the above-mentioned method for determining the monitoring strategy, the above-mentioned process is described below in conjunction with the embodiments, but it is not intended to limit the technical solutions of the embodiments of the present application, specifically:

[0093] In an optional embodiment, the following contents are combined Figure 5 For further explanation. Figure 5 As shown in the figure, the agent daemon component Demon of the unified procurement and control platform is the top-level process when the agent is running. It starts and runs and guards the operation of built-in components. Specifically, in process management, the process management level is divided according to specific business responsibilities. The upper level starts and runs the lower level to avoid cross-level management.

[0094] The corresponding components and plug-ins are clearly divided and each performs its own duties. For example, the business-related responsibilities in the original daemon process (including reporting of scheduled acquisition agent information; registering RPC service nodes, receiving acquisition control agents and other module request calls, etc.) are stripped, and only the built-in components of the acquisition control agent need to be run. Even if the subordinate process needs to be adjusted due to business needs, you can directly access your subordinate process without having to transfer the request through the centralized management process. After the acquisition control agent starts running, the upper-level process starts and guards the operation of the lower-level program. At the same time, in order to ensure that the top-level process is always healthy, the guard of the top-level process is also added to the lower-level process to ensure the stability of the entire process tree of the acquisition control agent. Among them, in the process of process control data, since the plug-in and the extended extension do not need to be guarded by the daemon process, but are controlled by the corresponding upper-level process respectively, the corresponding process control request no longer needs to be executed through the daemon process, and can directly reach the corresponding management process for direct processing.

[0095] Common process controls include: starting and stopping specified processes; modifying the resource usage and environment variables of specified processes, and taking effect in real time; if you need to start, stop or modify a specified process, you only need to notify the parent process of the corresponding process of the task.

[0096] Through the above-mentioned embodiments, unified management can be used to simplify the operation and maintenance process, reduce unnecessary tool purchase and maintenance costs, reduce duplication and waste between operation and maintenance tools, and thus reduce operation and maintenance costs.

[0097] Through centralized management, the time for operation and maintenance personnel to switch between different tools is reduced. Operation and maintenance personnel can use resources more effectively, automate operation and maintenance tasks, reduce manual operations, thereby improving the efficiency of operation and maintenance work and further accelerating the response speed of operation and maintenance.

[0098] In addition, only authorized personnel can access and operate the operation and maintenance tools, which can realize the permission control and access management of the operation and maintenance tools, thereby enhancing the security of the operation and maintenance system. And the operation and maintenance personnel can also monitor and audit the operation and maintenance process more conveniently, and timely discover and deal with potential security risks.

[0099] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0100] In the present embodiment, a device for determining a monitoring strategy is also provided, and the device is used to implement the above-mentioned embodiment and the preferred implementation mode, and the description thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the equipment described in the following embodiments is preferably implemented with software, the implementation of hardware, or a combination of software and hardware is also possible and contemplated.

[0101] Figure 6 : is a structural block diagram of a device for determining a monitoring strategy according to an embodiment of the present application, the device comprising:

[0102] The receiving module 62 is used to receive the monitoring tasks issued by the third-party operation and maintenance tool based on the monitoring strategy of the unified acquisition and control platform through the acquisition and control service end;

[0103] An obtaining module 64 is used to execute the monitoring task for the monitoring object indicated by the monitoring strategy to obtain monitoring indicator data of the monitoring object;

[0104] The sending module 66 is used to send the monitoring index data to the unified acquisition and control platform so that the unified acquisition and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the acquisition and control server.

[0105] Through the monitoring strategy determination device of the embodiment of the present application, the monitoring task issued by the third-party operation and maintenance tool based on the monitoring strategy of the unified acquisition and control platform can be received through the acquisition and control service end of the acquisition and control server; the monitoring task is executed for the monitoring object indicated by the monitoring strategy to obtain the monitoring index data of the monitoring object; the monitoring index data is sent to the unified acquisition and control platform, so that the unified acquisition and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the acquisition and control server. By adopting the above technical solution, the monitoring strategy of the third-party operation and maintenance tool is integrated into the unified acquisition and control platform, and the unified monitoring and management of the business application software objects on the acquisition and control server is realized. This method not only improves the monitoring efficiency, but also can dynamically adjust the monitoring strategy according to the real-time monitoring index data to ensure the accuracy and timeliness of the monitoring, and solves the technical problem of low operation and maintenance efficiency due to the lack of monitoring strategy for effective monitoring of the server. The server can be effectively monitored, thereby improving the operation and maintenance efficiency.

[0106] In an exemplary embodiment, the acquisition and control server is also provided with a unified monitoring agent terminal and a third-party agent plug-in connected to the acquisition and control server terminal, and the obtaining module is also used to: forward the monitoring task to the third-party agent plug-in through the unified monitoring agent terminal; execute the monitoring task through the third-party agent plug-in, collect the business data of the monitored object, and determine the business data as the monitoring indicator data, wherein the business data includes at least one of the following: customized business data, job business data, configuration business data, port business data, and process business data.

[0107] In an exemplary embodiment, the acquisition and control server is also provided with a acquisition and control built-in module, and the obtaining module is also used to: forward the monitoring task to the acquisition and control built-in module through the unified monitoring agent; execute the monitoring task through the acquisition and control built-in module, collect the object indicator data of the monitored object, and determine the object indicator data as the monitoring indicator data, wherein the object indicator data includes at least one of the following: basic monitoring indicator data, log monitoring indicator data.

[0108] In an exemplary embodiment, the obtaining module is also used to: obtain the interface data parsing rules set for the third-party agent plug-in; parse the monitoring task according to the interface data parsing rules to obtain the plug-in name of the monitoring task; and when it is determined that the plug-in name of the monitoring task belongs to the plug-in name of the third-party agent plug-in, call the third-party agent plug-in to execute the monitoring task.

[0109] In an exemplary embodiment, the obtaining module is also used to: send the plug-in name to the agent executor corresponding to the unified monitoring agent, obtain the instantiated plug-in object corresponding to the plug-in name provided by the agent executor; and call the plug-in object to execute the monitoring task.

[0110] In an exemplary embodiment, the obtaining module is also used to: after obtaining the instantiated plug-in object corresponding to the plug-in name provided by the agent executor, determine the configuration file of the instantiated plug-in object; and add plug-in declaration data to the configuration file according to the declaration format, wherein the plug-in declaration data includes at least one of the following: plug-in name, plug-in file path.

[0111] In an exemplary embodiment, the obtaining module is also used to: run a plug-in daemon built for the third-party agent plug-in to monitor the current running status of the third-party agent plug-in; and when it is determined that the current running status indicates that the third-party agent plug-in is running normally, execute the monitoring task through the third-party agent plug-in.

[0112] In summary, the monitoring strategy determination method and device provided by the present application can not only realize the unified monitoring and management of business application software objects, but also dynamically adjust the monitoring strategy according to the real-time monitoring index data to ensure the accuracy and timeliness of monitoring. By introducing a unified monitoring agent, a third-party agent plug-in, and a built-in acquisition and control module, the method and device can flexibly expand the monitoring capability, support the collection of various business data, and at the same time reduce the dependence on external tools, thereby improving the stability and security of the system. The operation of the plug-in daemon further ensures the execution effect of the monitoring task, is suitable for various business scenarios that require monitoring and management, improves the intelligence level and operation and maintenance efficiency of the equipment, and provides a strong guarantee for the stable operation of the system and business continuity.

[0113] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein any of the above embodiments is executed when the program is run.

[0114] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0115] S1, receiving, through the acquisition and control service end, a monitoring task issued by a third-party operation and maintenance tool based on a monitoring strategy of a unified acquisition and control platform;

[0116] S2, executing the monitoring task for the monitoring object indicated by the monitoring strategy to obtain monitoring indicator data of the monitoring object;

[0117] S3, sending the monitoring index data to the unified procurement and control platform, so that the unified procurement and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the procurement and control server.

[0118] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0119] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0120] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0121] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0122] S1, receiving, through the acquisition and control service end, a monitoring task issued by a third-party operation and maintenance tool based on a monitoring strategy of a unified acquisition and control platform;

[0123] S2, executing the monitoring task for the monitoring object indicated by the monitoring strategy to obtain monitoring indicator data of the monitoring object;

[0124] S3, sending the monitoring index data to the unified procurement and control platform, so that the unified procurement and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the procurement and control server.

[0125] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0126] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0127] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0128] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0129] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0130] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0131] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for determining a monitoring strategy, characterized in that: Applied to a procurement control server, the procurement control server is at least provided with a procurement control service end, including: Receiving, through the acquisition and control service end, monitoring tasks issued by a third-party operation and maintenance tool based on the monitoring strategy of the unified acquisition and control platform; Execute the monitoring task for the monitoring object indicated by the monitoring strategy to obtain monitoring indicator data of the monitoring object; The monitoring index data is sent to the unified procurement and control platform so that the unified procurement and control platform adjusts the monitoring strategy according to the monitoring index data; wherein the monitoring object represents the business application software object supported by the procurement and control server.

2. The method for determining a monitoring strategy according to claim 1, characterized in that: The acquisition and control server is also provided with a unified monitoring agent connected to the acquisition and control server, a third-party agent plug-in, which executes the monitoring task for the monitoring object indicated by the monitoring strategy and obtains the monitoring index data of the monitoring object, including: Forwarding the monitoring task to the third-party agent plug-in through the unified monitoring agent; The monitoring task is executed through the third-party agent plug-in, the business data of the monitored object is collected, and the business data is determined as the monitoring indicator data, wherein the business data includes at least one of the following: customized business data, job business data, configuration business data, port business data, and process business data.

3. The method for determining a monitoring strategy according to claim 2, characterized in that: The acquisition and control server is also provided with an acquisition and control module, which executes the monitoring task for the monitoring object indicated by the monitoring strategy and obtains the monitoring index data of the monitoring object, including: Forwarding the monitoring task to the acquisition and control module through the unified monitoring agent; The monitoring task is performed through the acquisition and control module, the object indicator data of the monitored object is collected, and the object indicator data is determined as the monitoring indicator data, wherein the object indicator data includes at least one of the following: basic monitoring indicator data, log monitoring indicator data.

4. The method for determining a monitoring strategy according to claim 2, characterized in that: Executing the monitoring task for the monitoring object indicated by the monitoring strategy includes: Obtaining the interface data parsing rules set for the third-party proxy plug-in; Parsing the monitoring task according to the interface data parsing rule to obtain the plug-in name of the monitoring task; In the case where it is determined that the plug-in name of the monitoring task belongs to the plug-in name of the third-party agent plug-in, the third-party agent plug-in is called to execute the monitoring task.

5. The method for determining a monitoring strategy according to claim 4, characterized in that: Calling the third-party agent plug-in to perform the monitoring task includes: Send the plug-in name to the agent executor corresponding to the unified monitoring agent, and obtain the instantiated plug-in object corresponding to the plug-in name provided by the agent executor; The plug-in object is called to execute the monitoring task.

6. The method for determining a monitoring strategy according to claim 5, characterized in that: After obtaining the instantiated plug-in object corresponding to the plug-in name provided by the proxy executor, the method further includes: Determine a configuration file of the instantiated plug-in object; Adding plug-in declaration data to the configuration file according to a declaration format, wherein the plug-in declaration data includes at least one of the following: a plug-in name and a plug-in file path.

7. The method for determining a monitoring strategy according to claim 2, characterized in that: Executing the monitoring task through the third-party agent plug-in includes: Running a plug-in daemon built for the third-party agent plug-in to monitor the current running status of the third-party agent plug-in; In a case where it is determined that the current running state indicates that the third-party agent plug-in is running normally, the monitoring task is performed by the third-party agent plug-in.

8. A device for determining a monitoring strategy, characterized in that: include: The receiving module is used to receive the monitoring tasks issued by the third-party operation and maintenance tools based on the monitoring strategy of the unified acquisition and control platform through the acquisition and control server; An obtaining module, used to execute the monitoring task for the monitoring object indicated by the monitoring strategy, and obtain the monitoring indicator data of the monitoring object; A sending module is used to send the monitoring indicator data to the unified procurement and control platform so that the unified procurement and control platform adjusts the monitoring strategy according to the monitoring indicator data; wherein the monitoring object represents the business application software object supported by the procurement and control server.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.

Citation Information

Cited By

  • Monitoring strategy system and method based on rule base

    CN120523691A

  • A monitoring strategy system and method based on rule base

    CN120523691B