IT operation and maintenance self-depth inspection method and system
The IT operation and maintenance self-deep inspection method and system address performance and configuration issues in monitoring systems by using inspection scripts and multi-dimensional indices to ensure timely detection and correction, enhancing operational efficiency and maintenance responsiveness.
Patent Information
- Application Number
- CN202411237909.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-27
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional IT operation and maintenance monitoring systems face issues such as performance bottlenecks, inaccurate data, excessive or insufficient alarms, and improper system configuration, leading to operational inefficiencies and untimely handling of abnormal situations.
An IT operation and maintenance self-deep inspection method and system that utilizes an application program in a Java environment on a Linux system, employing inspection script libraries, multi-dimensional indices, and threshold comparisons to ensure timely detection and correction of monitoring system deficiencies.
Ensures normal operation of IT equipment, assists in prompt identification and resolution of deployment issues, and provides comprehensive inspection reports for proactive maintenance.
Smart Images

Figure CN119201606A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information operation and maintenance and business system detection technology, and in particular to an IT operation and maintenance self-in-depth inspection method and system. Background Art
[0002] Traditional IT operation and maintenance monitoring systems may encounter problems such as performance bottlenecks, inaccurate data, excessive or insufficient alarms, and insufficient support for new technologies during operation. In addition, improper system configuration, unreasonable monitoring strategies, and untimely handling of abnormal situations may also lead to operational problems of the operation and maintenance monitoring system, so it is necessary to conduct in-depth self-inspections of the system and summarize reports.
[0003] However, the existing IT operation and maintenance monitoring system capable of realizing system self-checking has the following technical defects:
[0004] (1) The monitoring system cannot detect and handle performance deficiencies in a timely manner due to too many monitoring indicators and too much data;
[0005] (2) The monitoring system is not configured correctly and cannot receive monitoring information properly;
[0006] (3) An unreasonable monitoring strategy may lead to failure to monitor or incorrect monitoring alarm thresholds, which in turn may result in failure to issue normal alarms.
[0007] Therefore, it is necessary to develop a new IT operation and maintenance self-deep inspection method and system to solve the problems existing in the existing technology. Summary of the invention
[0008] In order to solve the problems existing in the prior art, the present invention provides an IT operation and maintenance self-deep inspection method and system, which is implemented by an application program for self-deep inspection of an operation and maintenance monitoring system running in a Java environment based on a Linux system, thereby solving the problem of timely discovery when the monitoring system has insufficient performance due to too many monitoring indicators and too much data, solving the deployment problem that the monitoring system cannot receive monitoring information normally due to incorrect configuration, and solving the problem that unreasonable monitoring strategy leads to failure to monitor or incorrect monitoring alarm threshold leads to failure to alarm normally.
[0009] On one hand, the present invention provides an IT operation and maintenance self-deep inspection method, which is based on the operation and maintenance monitoring system running in the Java environment of the Linux system and performs self-deep inspection by an application program, including:
[0010] S1, determining the system version of the current Linux system, thereby determining the inspection corresponding to the system version;
[0011] S2, calling the inspection script library of the Linux system corresponding to the system version;
[0012] S3, configuring a corresponding inspection script loader based on the retrieved inspection script library to run the script in the inspection script library;
[0013] S4, establishing a multi-dimensional index, using the multi-dimensional index as a monitoring index, and establishing an inspection index manager based on the monitoring index;
[0014] S5, obtaining the return value after the script in the inspection script library is run, and verifying, judging and comparing the return value with the corresponding threshold value, judging whether the return value exceeds the range of the corresponding threshold value, and determining the risk result of the IT operation and maintenance self-inspection based on the judgment.
[0015] Preferably, S2 includes obtaining a corresponding inspection script library for Linux systems of different system versions based on the naming rules and version numbers of the inspection script library, and verifying the inspection script library according to the inspection indicator use case.
[0016] Preferably, the scripts include shell scripts, python scripts and ansible scripts; the corresponding inspection script loaders are distinguished based on the running environment of the scripts.
[0017] Preferably, S4 includes:
[0018] S41, establishing a multi-dimensional index, wherein the multi-dimensional index includes a judgment basis corresponding to the performance and configuration of the IT monitoring and operation system;
[0019] S42, using the multidimensional indicator as a monitoring indicator, and configuring a corresponding threshold for each indicator in the multidimensional indicator according to environmental performance;
[0020] S43, forming a threshold information set with the configured thresholds, and a plurality of the threshold information sets form an inspection indicator manager.
[0021] Preferably, S5 includes:
[0022] S51, obtaining the return value after the script in the inspection script library is executed;
[0023] S52, verify, judge and compare the return value with the corresponding threshold value to determine whether the return value exceeds the range of the corresponding threshold value. If the return value exceeds the range of the corresponding threshold value, form an inspection information report and make a corresponding alarm description in the inspection information report; if the return value does not exceed the range of the corresponding threshold value, form an inspection information report and end the self-deep inspection.
[0024] Preferably, the S52 further includes:
[0025] The inspection information report is archived and summarized in the system to form an inspection report library; wherein the inspection information report includes all inspection information of the monitoring and operation and maintenance system itself; the inspection report library supports operation and maintenance personnel to retrieve and view it at any time.
[0026] Preferably, making a corresponding alarm description in the inspection information report also includes: forming inspection threshold alarm information and pushing the inspection threshold alarm information to relevant parties of the IT operation and maintenance system.
[0027] A second aspect of the present invention is to provide an IT operation and maintenance self-deep inspection system for implementing the method of the first aspect, including:
[0028] A system version determination unit (101) is used to determine the system version of the current Linux system, thereby determining an inspection script library corresponding to the system version;
[0029] An inspection script library retrieving unit (102) is configured to retrieve the inspection script library of the Linux system corresponding to the system version;
[0030] An inspection script loader (103), configured to configure a corresponding inspection script loader based on the retrieved inspection script library to run the script in the inspection script library;
[0031] An inspection index manager (104) is used to establish a multi-dimensional index, use the multi-dimensional index as a monitoring index, and establish an inspection index manager based on the monitoring index;
[0032] The self-deep inspection unit (105) is used to obtain the return value of the script in the inspection script library after running, and verify, judge and compare the return value with the corresponding threshold value to determine whether the return value exceeds the range of the corresponding threshold value, and determine the risk result of the IT operation and maintenance self-deep inspection based on the judgment.
[0033] A third aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is configured to read the instructions and execute the method described in the first aspect.
[0034] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor and execute the method described in the first aspect.
[0035] The method, system and electronic device provided by the present invention have the following beneficial effects:
[0036] (1) The monitoring system itself is to ensure the normal operation of all equipment in the IT environment. If there is a problem with the monitoring system itself, the entire IT environment will be affected and cannot be monitored normally. Therefore, the present invention is to double ensure that all equipment in the IT environment is operating normally and that the monitoring system itself is operating normally.
[0037] (2) Assist implementation engineers to promptly identify problems during the deployment process and resolve them quickly, saving manpower deployment costs and troubleshooting deployment failures. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 This is a flow chart of the IT operation and maintenance self-in-depth inspection method described in the present invention;
[0039] Figure 2 This is the IT operation and maintenance self-deep inspection system architecture diagram of the present invention;
[0040] Figure 3 The figure is a schematic diagram of the structure of the electronic device described in the present invention. DETAILED DESCRIPTION
[0041] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0042] Embodiment 1
[0043] like Figure 1 As shown, this embodiment provides an IT operation and maintenance self-deep inspection method, which is based on the operation and maintenance monitoring system running in the Java environment of the Linux system to perform self-deep inspection application, including:
[0044] S1, determining the system version of the current Linux system, thereby determining the inspection script library corresponding to the system version;
[0045] There are many versions of Linux, such as centos, ubuntu, Red Hat, USO, KyLin, etc. There are differences in the scripts between different versions, because you must determine the corresponding Linux version to find the corresponding script.
[0046] S2, calling the inspection script library of the Linux system corresponding to the system version;
[0047] Inspection script library refers to running scripts related to each system, classifying and archiving them in the corresponding folder environment, and naming them according to relevant rules. Multiple scripts are stored in the location to form a library. The scripts in the library are classified by system version, with unified naming rules and version numbers, and corresponding inspection indicator use cases.
[0048] As a preferred implementation, S2 includes obtaining a corresponding inspection script library based on the naming rule and version number of the inspection script library for Linux systems with different system versions, and verifying the inspection script library according to the inspection indicator use case.
[0049] S3, configuring a corresponding inspection script loader based on the retrieved inspection script library to run the script in the inspection script library;
[0050] The corresponding scripts include shell scripts, python scripts, and ansible scripts. Each script has a related running environment and is used in a unified manner. Therefore, when the corresponding script type is running, the Java program must load the corresponding script running environment into the corresponding container before the script can be run to obtain the indicator value.
[0051] As a preferred implementation, the scripts include shell scripts, python scripts and ansible scripts; the corresponding inspection script loaders are differentiated based on the running environment of the scripts.
[0052] S4, establishing a multi-dimensional index, using the multi-dimensional index as a monitoring index, and establishing an inspection index manager based on the monitoring index;
[0053] The performance and configuration of the IT monitoring and operation system have corresponding judgment bases, namely monitoring indicators. Such monitoring indicators can be configured with corresponding thresholds according to the performance of the environment, so the configured threshold information collection forms the inspection indicator manager.
[0054] As a preferred implementation, S4 includes:
[0055] S41, establishing a multi-dimensional index, wherein the multi-dimensional index includes a judgment basis corresponding to the performance and configuration of the IT monitoring and operation system;
[0056] S42, using the multidimensional indicator as a monitoring indicator, and configuring a corresponding threshold for each indicator in the multidimensional indicator according to environmental performance;
[0057] S43, forming a threshold information set with the configured thresholds, and a plurality of the threshold information sets form an inspection indicator manager.
[0058] S5, obtaining the return value after the script in the inspection script library is run, and verifying, judging and comparing the return value with the corresponding threshold value, judging whether the return value exceeds the range of the corresponding threshold value, and determining the risk result of the IT operation and maintenance self-inspection based on the judgment.
[0059] Example:
[0060] The risk pre-set thresholds are as follows:
[0061] Memory usage configuration: Memory = 70%
[0062] CPU usage configuration: CPU = 80%
[0063] Disk usage: Used = 80%
[0064] The script obtains the hardware performance configuration value as follows:
[0065] Linux
[0066] CPU: cat / proc / cpuinfo filter to obtain CPU number cpuQuery and CPU frequency cpuHz
[0067] Memory: cat / proc / meminfo to obtain the memory capacity memoryValue value
[0068] Disk: df –h Get the disk size diskValue value
[0069] Window Server
[0070] CPU: Get-WmiObject-classWin32_Processor|Select-Object-Property*
[0071] Memory: wmic MEMORYCHIP get banklabel,capacity,speed
[0072] Disk: wmic diskdrive get model,name,size
[0073] The script obtains the real-time value of hardware usage as follows:
[0074] Linux
[0075] CPU: top-bn1
[0076] Memory: free-m
[0077] Disk: df –h /
[0078] Window
[0079] CPU:Get-WmiObject-class Win32_PerfFormattedData_PerfOS_Processor|Select-Object-Property Name,PercentProcessorTime
[0080] Memory: wmic MEMORYCHIP get banklabel,capacity,speed
[0081] Disk: wmic logicaldisk get size,freespace,caption
[0082] The verification algorithm formula is as follows:
[0083] Alarm risk judgment value (True|False) = (Memory<(memory usage memoryValue / total memory capacity memoryTotal*100%))||(cpu<(CPU core number*CPU current frequency / CPU core number*CPU frequency))||(disk<(disk usage size / disk size))
[0084] The final value obtained by the algorithm is:
[0085] Current time: CurrentTime
[0086] Alarm risk judgment value: True|Fales
[0087] Alarm risk judgment based on data: memory% | cpu% | disk%
[0088] Trigger alarm sending value: Alarm risk judgment value = True
[0089] Trigger alarm message push method: AlarmServiceImpl.alarmSend
[0090] Final result:
[0091] Users can obtain the current risk assessment message: performance usage risk exists warning.
[0092] As a preferred implementation, S5 includes:
[0093] S51, obtaining the return value after the script in the inspection script library is executed;
[0094] S52, verify, judge and compare the return value with the corresponding threshold value to determine whether the return value exceeds the range of the corresponding threshold value. If the return value exceeds the range of the corresponding threshold value, form an inspection information report and make a corresponding alarm description in the inspection information report; if the return value does not exceed the range of the corresponding threshold value, form an inspection information report and end the self-deep inspection.
[0095] As a preferred implementation, the S52 further includes:
[0096] The inspection information report is archived and summarized in the system to form an inspection report library; wherein the inspection information report includes all inspection information of the monitoring and operation and maintenance system itself; the inspection report library supports operation and maintenance personnel to retrieve and view it at any time.
[0097] As a preferred implementation, the making of a corresponding alarm description in the inspection information report further includes: forming inspection threshold alarm information and pushing the inspection threshold alarm information to parties related to the IT operation and maintenance system.
[0098] In order to ensure the normal operation of the monitoring and operation system, the alarm messages found during the inspection will also be immediately pushed to the engineers of the monitoring and operation system manufacturer, so that the engineers can view and handle them in time.
[0099] Embodiment 2
[0100] like Figure 2 As shown, this embodiment provides an IT operation and maintenance self-deep inspection system, which is used to implement the method of embodiment 1, including:
[0101] The system version determination unit 101 is used to determine the system version of the current Linux system, thereby determining the inspection script library corresponding to the system version;
[0102] The inspection script library calling unit 102 calls the inspection script library of the Linux system corresponding to the system version;
[0103] The inspection script loader 103 is used to configure the corresponding inspection script loader based on the retrieved inspection script library to run the script in the inspection script library;
[0104] The inspection index manager 104 is used to establish multi-dimensional indicators, use the multi-dimensional indicators as monitoring indicators, and establish an inspection index manager based on the monitoring indicators;
[0105] The self-deep inspection unit 105 is used to obtain the return value of the script in the inspection script library after running, and verify, judge and compare the return value with the corresponding threshold value to determine whether the return value exceeds the range of the corresponding threshold value, and determine the risk result of the IT operation and maintenance self-deep inspection based on the judgment.
[0106] The present invention also provides a memory storing a plurality of instructions, wherein the instructions are used to implement the method as in the first embodiment.
[0107] like Figure 3As shown, the present invention also provides an electronic device, including a processor 301 and a memory 302 connected to the processor 301, the memory 302 stores a plurality of instructions, and the instructions can be loaded and executed by the processor so that the processor can execute the method as in the first embodiment.
[0108] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for IT operation and maintenance self-inspection, characterized in that: The application implementation of the operation and maintenance monitoring system based on Linux system running in Java environment for self-deep inspection includes: S1, determining the system version of the current Linux system, thereby determining the inspection corresponding to the system version; S2, calling the inspection script library of the Linux system corresponding to the system version; S3, configuring a corresponding inspection script loader based on the retrieved inspection script library to run the script in the inspection script library; S4, establishing a multi-dimensional index, using the multi-dimensional index as a monitoring index, and establishing an inspection index manager based on the monitoring index; S5, obtaining the return value after the script in the inspection script library is run, and verifying, judging and comparing the return value with the corresponding threshold value, judging whether the return value exceeds the range of the corresponding threshold value, and determining the risk result of the IT operation and maintenance self-inspection based on the judgment.
2. According to claim 1, an IT operation and maintenance self-deep inspection method is characterized in that: The S2 includes obtaining a corresponding inspection script library based on the naming rule and version number of the inspection script library for Linux systems with different system versions, and verifying the inspection script library according to the inspection indicator use case.
3. The IT operation and maintenance self-deep inspection method according to claim 2 is characterized in that: The scripts include shell scripts, python scripts and ansible scripts; the corresponding inspection script loaders are differentiated based on the running environment of the scripts.
4. The IT operation and maintenance self-deep inspection method according to claim 3 is characterized in that: The S4 includes: S41, establishing a multi-dimensional index, wherein the multi-dimensional index includes a judgment basis corresponding to the performance and configuration of the IT monitoring and operation system; S42, using the multidimensional indicator as a monitoring indicator, and configuring a corresponding threshold for each indicator in the multidimensional indicator according to environmental performance; S43, forming a threshold information set with the configured thresholds, and a plurality of the threshold information sets form an inspection indicator manager.
5. The IT operation and maintenance self-deep inspection method according to claim 4 is characterized in that: The S5 includes: S51, obtaining the return value after the script in the inspection script library is executed; S52, verify, judge and compare the return value with the corresponding threshold value to determine whether the return value exceeds the range of the corresponding threshold value. If the return value exceeds the range of the corresponding threshold value, form an inspection information report and make a corresponding alarm description in the inspection information report; if the return value does not exceed the range of the corresponding threshold value, form an inspection information report and end the self-deep inspection.
6. The IT operation and maintenance self-deep inspection method according to claim 5 is characterized in that: The S52 further includes: The inspection information report is archived and summarized in the system to form an inspection report library; wherein the inspection information report includes all inspection information of the monitoring and operation and maintenance system itself; the inspection report library supports operation and maintenance personnel to retrieve and view it at any time.
7. The IT operation and maintenance self-inspection method according to claim 6 is characterized in that: The making a corresponding alarm description in the inspection information report also includes: forming inspection threshold alarm information and pushing the inspection threshold alarm information to relevant parties of the IT operation and maintenance system.
8. An IT operation and maintenance self-deep inspection system, used to implement the method described in any one of claims 1 to 7, characterized in that: include: A system version determination unit (101) is used to determine the system version of the current Linux system, thereby determining an inspection script library corresponding to the system version; An inspection script library retrieving unit (102) is configured to retrieve the inspection script library of the Linux system corresponding to the system version; An inspection script loader (103), configured to configure a corresponding inspection script loader based on the retrieved inspection script library to run the script in the inspection script library; An inspection index manager (104) is used to establish a multi-dimensional index, use the multi-dimensional index as a monitoring index, and establish an inspection index manager based on the monitoring index; The self-deep inspection unit (105) is used to obtain the return value of the script in the inspection script library after running, and verify, judge and compare the return value with the corresponding threshold value to determine whether the return value exceeds the range of the corresponding threshold value, and determine the risk result of the IT operation and maintenance self-deep inspection based on the judgment.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is used to read the instructions and execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and system for realizing IT resource inspection automation through modular construction
CN112286754A
Inspection method, device, electronic equipment and medium
CN112463612A
Automatic inspection method and system for cloud platform cluster monitoring index data
CN116340110A
System inspection method, device and equipment and storage medium
CN116645082A