CN-121979735-A - Operation and maintenance monitoring method and system based on operation and maintenance model and automatic script drive
Abstract
The invention discloses an operation and maintenance monitoring method and system based on an operation and maintenance model and an automatic script drive. The method comprises the steps of firstly constructing a configuration attribute and performance attribute custom operation and maintenance model, further generating different operation and maintenance examples according to different configuration attributes, secondly compiling a custom script, selecting a issuing server, a custom execution period, execution parameters and binding operation and maintenance examples to issue the script, enabling a script executor to execute the script according to information such as the script execution period, the parameters and the like, injecting an execution result into performance attributes corresponding to the operation and maintenance examples, further playing a role of periodically collecting operation and maintenance example indexes, enabling the script issuing execution and the execution result injection processes to be independent, enabling the script execution and operation and maintenance example maintenance to be decoupled, and avoiding the problems of index collection method change and frequent modification of a monitoring program caused by common operation and maintenance example configuration attribute and performance attribute change.
Inventors
- Xiao Gongbing
- SUN WENJUN
Assignees
- 中国电子科技集团公司第二十八研究所
Dates
- Publication Date
- 20260505
- Application Date
- 20251202
Claims (10)
- 1. An operation and maintenance monitoring method based on an operation and maintenance model and an automatic script driver is characterized by comprising the following steps: defining an operation and maintenance model, wherein the operation and maintenance model comprises configuration attributes and performance attributes, the configuration attributes are used for describing configuration information of a monitoring object, and the performance attributes are used for defining information of performance indexes including identification, coding and index types; Creating operation and maintenance examples, namely creating monitoring examples based on the operation and maintenance model, wherein each monitoring example relays performance attributes in the operation and maintenance model and simultaneously fills specific configuration attributes, so that an independent monitoring object is formed; Writing a script, namely writing and maintaining an automatic script, supporting parameterized configuration and being capable of binding with an operation and maintenance model; A script is issued, namely a monitoring instance and a target machine are selected, the script execution period, parameters and timeout time are configured, and the script is issued after starting; The script execution engine dispatches the script and executes the issued script according to the starting state, the execution period and the parameter configuration; And analyzing the result, namely analyzing the running result after script execution, judging in real time through a preset threshold rule, and triggering an alarm and generating an alarm record if the threshold is exceeded.
- 2. An operation and maintenance monitoring method based on operation and maintenance model and automation script driving according to claim 1, wherein the monitoring instance is created by operation and maintenance system interface or interface call.
- 3. The operation and maintenance monitoring method based on the operation and maintenance model and the automation script driver according to claim 2, wherein the automation script is written and maintained in a script warehouse, and the script warehouse is internally provided with reference scripts and writing descriptions, and can be directly reused or modified in the process of writing the scripts.
- 4. The operation and maintenance monitoring method based on the operation and maintenance model and the automation script drive according to claim 3, wherein the script issuing process and the script executing process can also select unbound monitoring examples, the script executing process and the result analyzing process are mutually independent, and operation and maintenance personnel can manually execute the script at any time to acquire the result in real time.
- 5. The operation and maintenance monitoring method based on operation and maintenance model and automation script driving according to claim 4, wherein the running result of the script is returned in JSON format, and each field in the result corresponds to the performance attribute field of the monitoring instance one by one.
- 6. The method for monitoring operation and maintenance based on operation and maintenance model and automation script driving according to claim 5, wherein the configuration information comprises host IP and port information, and the operation and maintenance monitoring object comprises a server, a CPU, a memory, a hard disk, a service and a process.
- 7. An operation and maintenance monitoring system based on operation and maintenance model and automatic script drive is characterized by comprising an operation and maintenance model, an operation and maintenance instance creation module, a script warehouse, a script issuing module, a script execution engine and a result analysis module, The operation and maintenance model is used for defining configuration attributes and monitoring performance index information of the monitoring object; The operation and maintenance instance creation module is used for creating monitoring instances based on the operation and maintenance model, wherein each monitoring instance relays performance attributes in the operation and maintenance model and simultaneously fills specific configuration attributes, so that an independent monitoring object is formed; the script warehouse is used for compiling and maintaining an automatic script, supporting parameterized configuration and being capable of being bound with the operation and maintenance model; The script issuing module is used for selecting a monitoring instance and a target machine, configuring script execution period, parameters and timeout time, and issuing a script after starting; the script execution engine is used for executing the issued script according to the starting state, the execution period and the parameter configuration; the result analysis module is used for analyzing the running result after script execution, judging in real time through a preset threshold rule, and triggering an alarm and generating an alarm record if the threshold rule is exceeded.
- 8. The operation and maintenance monitoring system based on the operation and maintenance model and the automation script drive according to claim 7, wherein a reference script and a writing description are built in the script warehouse, and can be directly reused or modified in the script writing process.
- 9. The operation and maintenance monitoring system based on the operation and maintenance model and the automation script drive according to claim 8, wherein the script issuing module and the script execution engine can also select unbound monitoring examples in the script issuing process and the script execution process respectively, the script execution process and the result analysis process are mutually independent, and an operation and maintenance person can manually execute the script at any time to obtain the result in real time.
- 10. The operation and maintenance monitoring system based on the operation and maintenance model and the automation script driving according to claim 9, wherein the result analysis module comprises a performance index storage unit, and the performance index storage unit is used for storing the operation result after the script is executed before the real-time judgment is performed through a preset threshold rule.
Description
Operation and maintenance monitoring method and system based on operation and maintenance model and automatic script drive Technical Field The invention belongs to the technical field of operation and maintenance management of computer systems, and particularly relates to an operation and maintenance monitoring method and system based on an operation and maintenance model and an automatic script driver. Background In conventional operation and maintenance monitoring systems, the monitored objects are typically present in a static, fixed configuration. For example, to monitor a service or device, a user needs to manually specify an address and port, etc., which is typically done through an interface form or profile. The method lacks of unified abstraction, has poor expansibility, and once the monitoring requirement changes, such as adding new indexes, adjusting parameter structures and the like, configuration points and monitoring programs need to be modified one by one, so that the flexibility is poor. In addition, due to the automatic execution capability, the automatic script is generally used in the aspects of fault detection and automatic handling, and in the aspect of system state acquisition, the output result of the script is often processed in isolation due to lack of uniform description of a data acquisition mode, and cannot be automatically injected into a monitoring index system. Therefore, there is a need for an operation and maintenance monitoring method based on an operation and maintenance model and an automation script driver Disclosure of Invention The invention aims to solve the technical problems that the configuration of a monitoring object is inflexible, unified modeling is lacking, an automatic script cannot be integrated efficiently and the like in the prior art, and provides an operation and maintenance monitoring method and system based on an operation and maintenance model and an automatic script driver, which aim to flexibly generate an operation and maintenance monitoring instance through an abstract operation and maintenance model and realize the effects of decoupling injection of performance indexes and real-time monitoring by combining the script driver. In order to solve the technical problem, a first aspect discloses an operation and maintenance monitoring method based on an operation and maintenance model and an automation script driver, which comprises the following steps: an operation and maintenance model is defined, wherein the operation and maintenance model comprises configuration attributes and performance attributes, the configuration attributes are used for describing configuration information of a monitoring object, such as host IP, port information and the like, and the performance attributes define information of performance index names, codes, index types and the like. And creating an operation and maintenance instance, and creating monitoring instances based on different configuration attributes, so as to form specific monitoring objects, wherein each monitoring instance object inherits the performance attributes defined by the model at the same time, and an independent monitoring object is formed. And (3) automatic script writing, supporting and binding various operation and maintenance models, and supporting parameterized configuration. And (3) issuing the script, namely selecting a target issuing machine to issue, selecting a specific monitoring instance to bind a monitoring object, configuring the script execution period, parameters and timeout time, and issuing the script after starting. And the script execution engine controls script execution according to whether the issuing script is started, the acquisition period, the execution parameters, the script execution timeout time and the like, and returns an operation result. And analyzing the result, analyzing the running result after script execution, judging in real time through a preset threshold rule, and triggering an alarm and generating an alarm record if the threshold is exceeded. Further, the monitoring instance is created through an operation and maintenance system interface or interface call. Further, the automation scripts are written and maintained in a script warehouse, reference scripts and writing descriptions are built in the script warehouse, and the scripts can be directly multiplexed or modified in the writing process of the scripts, so that the development cost of the scripts is reduced. Meanwhile, the script warehouse provides default values, necessary item filling identification and annotation description for parameters of the script, so that a user can quickly multiplex the script, friendly description and prompt are carried out on parameters, return values and the like written by the script, and the writing burden of operation and maintenance personnel is reduced. Furthermore, the script issuing process and the script executing process can also select unbound monitoring examples, t