Operation and maintenance monitoring method and system based on operation and maintenance model and automatic script driving
By using an operation and maintenance model and automated script-driven approach, monitoring objects are abstracted into configuration and performance attributes, which solves the problems of inflexible configuration of monitoring objects and isolated script processing, and realizes efficient expansion and flexible monitoring of monitoring objects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
- Filing Date
- 2025-12-02
- Publication Date
- 2026-05-05
AI Technical Summary
Existing technologies suffer from inflexible configuration of monitored objects, lack of unified modeling, and inability to efficiently integrate automated scripts, resulting in poor monitoring scalability and isolated processing of script output.
By defining an operation and maintenance model and an automated script-driven approach, the monitoring objects are abstracted into configuration attributes and performance attributes, supporting parameterized configuration and script decoupling, and enabling decoupled injection of performance metrics and real-time monitoring.
It improves the reusability and scalability of monitored objects, supports independent script execution and real-time result viewing, meets diverse operation and maintenance needs, and takes into account development, testing and monitoring scenarios.
Smart Images

Figure CN121979735A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of computer system operation and maintenance management technology, and in particular relates to an operation and maintenance monitoring method and system based on operation and maintenance model and automated script-driven operation and maintenance. Background Technology
[0002] In traditional operation and maintenance monitoring systems, monitored objects typically exist in a static, fixed configuration format. For example, to monitor a service or device, users need to manually specify the address and port, a process usually completed through a user interface form or configuration file. This approach lacks unified abstraction and has poor scalability. Once monitoring requirements change, such as adding new metrics or adjusting parameter structures, it is necessary to modify the configuration points and monitoring program one by one, resulting in poor flexibility.
[0003] In addition, automated scripts are typically used for troubleshooting and automatic handling due to their automated execution capabilities. However, in terms of system status acquisition, due to the lack of a unified description of data acquisition methods, the output of scripts is often processed in isolation and cannot be automatically injected into the monitoring indicator system.
[0004] Therefore, an operation and maintenance monitoring method based on operation and maintenance models and automated scripts is needed. Summary of the Invention
[0005] Purpose of the invention: The technical problem to be solved by the present invention is to address the problems of inflexible configuration of monitoring objects, lack of unified modeling, and inability to efficiently integrate automated scripts in the existing technology. The invention provides an operation and maintenance monitoring method and system based on operation and maintenance model and automated script-driven operation and maintenance. It aims to abstract the operation and maintenance model, flexibly generate operation and maintenance monitoring instances, and combine script-driven operation to achieve the effect of decoupled injection of performance indicators and real-time monitoring.
[0006] To address the aforementioned technical issues, the first aspect discloses an operation and maintenance monitoring method based on an operation and maintenance model and automated scripts, the method comprising:
[0007] Define the operation and maintenance model, which includes configuration attributes and performance attributes. Configuration attributes are used to describe the configuration information of the monitored objects, such as host IP, port information, etc.; performance attributes define the performance metric name, code, and metric type, etc.
[0008] Create operation and maintenance instances, and then create monitoring instances based on different configuration attributes, which in turn form specific monitoring objects. Each monitoring instance object also inherits the performance attributes defined in the model, forming an independent monitoring object.
[0009] Automated script writing, supports binding to multiple operation and maintenance models, and supports parameterized configuration.
[0010] To distribute the script, select the target machine, choose the specific monitoring instance to bind the monitored object, configure the script execution cycle, parameters, and timeout, and then distribute the script after enabling it.
[0011] The script execution engine controls the script execution according to factors such as whether the issued script is enabled, the collection cycle, execution parameters, and the script execution timeout, and returns the running results.
[0012] Results analysis involves parsing the execution results of the script and making real-time judgments based on preset threshold rules. If the threshold is exceeded, an alarm is triggered and an alarm record is generated.
[0013] Furthermore, monitoring instances can be created through the operations and maintenance system interface or API calls.
[0014] Furthermore, automated scripts are written and maintained in a script repository. This repository includes built-in reference scripts and writing instructions, allowing for direct reuse or modification during script writing, thereby reducing script development costs. Simultaneously, the script repository provides default values, required field identifiers, and comments for script parameters to facilitate quick reuse by users. It also provides user-friendly explanations and prompts regarding script parameters and return values, reducing the writing burden on operations and maintenance personnel.
[0015] Furthermore, the script distribution and execution processes can be chosen not to be bound to monitoring instances. The script execution process and the result parsing process are independent of each other, and operations and maintenance personnel can manually execute the script at any time and obtain the results in real time.
[0016] The script and monitoring decoupling mechanism ensures that the script execution and result analysis processes are independent of each other. The script supports not being bound to a monitoring instance object, meaning that the script can be created and run independently of a specific monitoring object, providing it for operation and maintenance personnel to debug or execute manually for analysis and troubleshooting.
[0017] For any script distribution record, operations and maintenance personnel can manually execute it at any time and receive the execution record and results in real time.
[0018] Furthermore, the script's execution results are returned in JSON format, with each field in the results corresponding one-to-one with the performance attribute fields of the monitored instance.
[0019] Furthermore, the configuration information includes host IP and port information, and the operation and maintenance monitoring objects include servers, CPUs, memory, hard disks, services, and processes.
[0020] Secondly, a maintenance monitoring system based on an operation and maintenance model and automated scripts is disclosed, including: an operation and maintenance model, an operation and maintenance instance creation module, a script repository, a script distribution module, a script execution engine, and a result parsing module.
[0021] The operation and maintenance model is used to define the configuration attributes and monitoring performance indicators of the monitored objects;
[0022] The operation and maintenance instance creation module is used to create monitoring instances based on the operation and maintenance model. Each monitoring instance inherits the performance attributes in the operation and maintenance model and fills in specific configuration attributes, thereby forming an independent monitoring object.
[0023] The script repository is used to write and maintain automation scripts, supports parameterized configuration, and can be bound to the operation and maintenance model;
[0024] The script delivery module is used to select monitoring instances and target machines, configure script execution cycles, parameters and timeouts, and deliver scripts after being enabled.
[0025] The script execution engine is used to execute the issued scripts according to the enabled status, execution cycle, and parameter configuration.
[0026] The result parsing module is used to parse the running results after the script is executed, and to make real-time judgments based on preset threshold rules. If the threshold is exceeded, an alarm is triggered and an alarm record is generated.
[0027] Furthermore, the script repository includes built-in reference scripts and writing instructions, which can be directly reused or modified during the script writing process.
[0028] Furthermore, the script operation module can also choose not to bind to a monitoring instance during the script distribution and execution processes. The script execution process and the result parsing process are independent of each other, and maintenance personnel can manually execute the script at any time and obtain the results in real time.
[0029] Furthermore, the result parsing module includes a performance index storage unit, which is used to store the execution results of the script before real-time judgment is performed through preset threshold rules.
[0030] The beneficial technical effects of this invention are:
[0031] This invention defines an operation and maintenance model, abstracting the monitored objects into a structured model composed of configuration attributes and performance attributes, which significantly improves the reusability and scalability of the monitored objects.
[0032] This invention adopts an automated script-driven performance metric collection method, supports standardized parameter injection and dynamic parsing of structured JSON return results, avoids strong coupling between scripts and monitoring logic, and improves the flexibility and maintainability of script execution.
[0033] This invention supports the decoupling of script execution results from monitoring objects, allowing scripts to run independently, be debugged, and have their results viewed in real time. It also supports whether or not to inject the results into monitoring metrics, meeting diverse operational and maintenance needs and taking into account three usage scenarios: development, testing, and monitoring. Attached Figure Description
[0034] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments, and the advantages of the present invention in the above and / or other aspects will become clearer.
[0035] Figure 1 This is a flowchart illustrating the present invention. Detailed Implementation
[0036] The embodiments of the present invention will now be described with reference to the accompanying drawings.
[0037] like Figure 1 As shown, the first embodiment of this application discloses an operation and maintenance monitoring method based on an operation and maintenance model and automated scripts, including the following steps:
[0038] Step 1: Define the operation and maintenance model. The operation and maintenance model includes configuration attributes and performance attributes. The configuration attributes are used to describe the configuration information of the monitored objects, and the performance attributes are used to define the identification, encoding, and type of performance indicators. The configuration information includes host IP and port information. The operation and maintenance monitored objects include servers, CPUs, memory, hard disks, services, and processes.
[0039] Step 2: Based on the aforementioned operation and maintenance model, create monitoring instances through the operation and maintenance system interface or API call. Each monitoring instance inherits the performance attributes from the operation and maintenance model and populates specific configuration attributes, thereby forming an independent monitoring object; the operation and maintenance system is existing technology, and this embodiment of the invention is not limited thereto.
[0040] Step 3: Write and maintain automation scripts in the script repository. The scripts support both Shell and Python languages, support parameterized configuration, and can be bound to the operation and maintenance model. The script repository includes built-in reference scripts and writing instructions, allowing for direct reuse or modification during script writing. The script repository provides default values, required field identifiers, and comments for script parameters to facilitate quick reuse by users.
[0041] Step 4: Select the monitoring instance and target machine, configure the script execution cycle, parameters and timeout, and then send out the script after enabling it;
[0042] Step 5: The script execution engine schedules the scripts and executes them according to their activation status, execution cycle, and parameter configuration. The script execution results are returned in JSON format, with each field in the results corresponding one-to-one with the performance attribute fields of the monitored instance.
[0043] Step 6: Parse the JSON return result and inject the result into the performance metric storage module. Make real-time judgments according to the threshold rules. If the threshold is exceeded, trigger an alarm and generate an alarm record.
[0044] The second embodiment of this application discloses an operation and maintenance monitoring system based on an operation and maintenance model and automated scripts, including: an operation and maintenance model, an operation and maintenance instance creation module, a script repository, a script distribution module, a script execution engine, and a result parsing module.
[0045] The operation and maintenance model is used to define the configuration attributes and monitoring performance indicators of the monitored objects;
[0046] The operation and maintenance instance creation module is used to create monitoring instances based on the operation and maintenance model. Each monitoring instance inherits the performance attributes in the operation and maintenance model and fills in specific configuration attributes, thereby forming an independent monitoring object.
[0047] The script repository is used to write and maintain automation scripts, supports parameterized configuration, and can be bound to the operation and maintenance model. The script repository has built-in reference scripts and writing instructions, which can be directly reused or modified during the script writing process.
[0048] The script delivery module is used to select monitoring instances and target machines, configure script execution cycles, parameters and timeouts, and deliver scripts after being enabled.
[0049] The script execution engine is used to execute the issued scripts according to the enabled status, execution cycle, and parameter configuration.
[0050] The result parsing module is used to parse the running results after the script is executed, and to make real-time judgments based on preset threshold rules. If the threshold is exceeded, an alarm is triggered and an alarm record is generated.
[0051] The script distribution module and script execution engine can also choose not to be bound to monitoring instances during the script distribution process and the script execution process, respectively. The script execution process and the result parsing process are independent of each other, and the operation and maintenance personnel can manually execute the script at any time and obtain the results in real time.
[0052] The result parsing module includes a performance index storage unit, which is used to store the running results after the script is executed before real-time judgment is made through preset threshold rules.
[0053] In its specific implementation, this application provides a computer storage medium and a corresponding data processing unit. The computer storage medium is capable of storing a computer program, which, when executed by the data processing unit, can run the invention's content regarding an operation and maintenance monitoring method based on an operation and maintenance model and automated scripts, as well as some or all of the steps in various embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0054] Those skilled in the art will clearly understand that the technical solutions in the embodiments of the present invention can be implemented using computer programs and their corresponding general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of computer programs, i.e., software products. These computer program software products can be stored in a storage medium and include several instructions to cause a device containing a data processing unit (which may be a personal computer, server, microcontroller, MUU, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.
[0055] This invention provides an operation and maintenance monitoring method and system based on an operation and maintenance model and automated script-driven approach. Many methods and approaches exist for implementing this technical solution; the above description is merely a preferred embodiment of the invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this invention, and these improvements and modifications should also be considered within the scope of protection of this invention. All components not explicitly stated in this embodiment can be implemented using existing technologies.
Claims
1. A method for operation and maintenance monitoring based on an operation and maintenance model and automated script-driven operation and maintenance, characterized in that, The steps are as follows: Operation and maintenance model definition: Define an operation and maintenance model, which includes configuration attributes and performance attributes. The configuration attributes are used to describe the configuration information of the monitored objects, and the performance attributes are used to define performance indicators, including information such as identifier, code and indicator type. Create operation and maintenance instances: Based on the operation and maintenance model, create monitoring instances. Each monitoring instance inherits the performance attributes in the operation and maintenance model and populates specific configuration attributes, thus forming an independent monitoring object. Script writing: Write and maintain automation scripts, support parameterized configuration, and be able to bind them to the operation and maintenance model; Script distribution: Select the monitoring instance and target machine, configure the script execution cycle, parameters and timeout, and distribute the script after enabling. Script execution: The script execution engine schedules scripts and executes the issued scripts according to their activation status, execution cycle, and parameter configuration. Result Analysis: The execution result of the script is analyzed and judged in real time according to the preset threshold rules. If the threshold is exceeded, an alarm is triggered and an alarm record is generated.
2. The operation and maintenance monitoring method based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 1, characterized in that, Create monitoring instances through the operation and maintenance system interface or API call.
3. The operation and maintenance monitoring method based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 2, characterized in that, Automated scripts are written and maintained in a script repository, which includes built-in reference scripts and writing instructions. During the script writing process, the scripts can be directly reused or modified.
4. The operation and maintenance monitoring method based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 3, characterized in that, The script distribution and execution processes can also be chosen not to be bound to monitoring instances. The script execution process and the result parsing process are independent of each other, and operations and maintenance personnel can manually execute the script at any time and obtain the results in real time.
5. The operation and maintenance monitoring method based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 4, characterized in that, The script returns results in JSON format, with each field in the result corresponding to a performance attribute field of the monitored instance.
6. The operation and maintenance monitoring method based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 5, characterized in that, The configuration information includes host IP and port information, and the operation and maintenance monitoring objects include servers, CPUs, memory, hard disks, services, and processes.
7. An operation and maintenance monitoring system based on an operation and maintenance model and automated script-driven operation and maintenance, characterized in that, include: The system includes an operations and maintenance model, an operations and maintenance instance creation module, a script repository, a script distribution module, a script execution engine, and a result parsing module. The operation and maintenance model is used to define the configuration attributes and monitoring performance indicators of the monitored objects; The operation and maintenance instance creation module is used to create monitoring instances based on the operation and maintenance model. Each monitoring instance inherits the performance attributes in the operation and maintenance model and fills in specific configuration attributes, thereby forming an independent monitoring object. The script repository is used to write and maintain automation scripts, supports parameterized configuration, and can be bound to the operation and maintenance model; The script delivery module is used to select monitoring instances and target machines, configure script execution cycles, parameters and timeouts, and deliver scripts after being enabled. The script execution engine is used to execute the issued scripts according to the enabled status, execution cycle, and parameter configuration. The result parsing module is used to parse the running results after the script is executed, and to make real-time judgments based on preset threshold rules. If the threshold is exceeded, an alarm is triggered and an alarm record is generated.
8. The operation and maintenance monitoring system based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 7, characterized in that, The script repository contains built-in reference scripts and writing instructions, which can be directly reused or modified during the script writing process.
9. The operation and maintenance monitoring system based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 8, characterized in that, The script distribution module and script execution engine can also choose not to be bound to monitoring instances during the script distribution process and the script execution process, respectively. The script execution process and the result parsing process are independent of each other, and the operation and maintenance personnel can manually execute the script at any time and obtain the results in real time.
10. The operation and maintenance monitoring system based on an operation and maintenance model and automated script-driven operation and maintenance according to claim 9, characterized in that, The result parsing module includes a performance index storage unit, which is used to store the running results after the script is executed before real-time judgment is made through preset threshold rules.