Equipment repairing method and device based on monitoring system
The monitoring system receives equipment data and generates repair scripts to realize self-repair of the equipment, solving the problem of low maintenance efficiency in the existing technology and improving the maintenance efficiency and reliability of the equipment.
Patent Information
- Application Number
- CN202310769227.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-27
- Publication Date
- 2024-12-27
AI Technical Summary
In the prior art, the maintenance of industrial equipment relies on human intervention, resulting in long maintenance time and low efficiency, and the inability to deal with equipment failures in a timely and effective manner.
The monitoring system receives device data, calculates indicators, determines whether the conditions are met, generates repair scripts and automatically sends them to the device to achieve self-repair of the device.
It improves the maintenance efficiency of the equipment, reduces the time of human intervention, and improves the operating reliability and maintenance efficiency of the equipment.
Smart Images

Figure CN119205062A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a method and device for repairing equipment based on a monitoring system. Background Art
[0002] With the development of science and technology, industrial interconnection has become one of the mainstream industries. However, in practice, in order to determine whether the interconnected devices are operating normally, a monitoring system is often set up to monitor various monitoring objects in each device.
[0003] In the related art, the monitoring system collects data of each monitored object in each device and determines whether each device is operating normally based on the data. If a device is not operating normally, the relevant personnel responsible for the device are notified so that the relevant personnel can repair the device.
[0004] However, this manual maintenance method takes a long time and has low maintenance efficiency, and there is an urgent need for an equipment repair method based on a monitoring system. Summary of the invention
[0005] In view of this, the present application provides a device repair method and apparatus based on a monitoring system. In the present application, when the monitoring system detects that a problem occurs in the monitored device, it instructs the monitored device to search for a repair script, and then automatically repairs the monitored device, thereby improving the maintenance efficiency of the equipment.
[0006] In order to achieve the above objectives, this application mainly provides the following technical solutions:
[0007] In a first aspect, the present application provides a device repair method based on a monitoring system, the method comprising:
[0008] Receive data of various monitoring objects in the monitored equipment;
[0009] According to the data of various monitoring objects, calculate the indicators corresponding to various monitoring objects;
[0010] For each type of monitoring object, determine whether the indicator corresponding to the monitoring object meets the condition corresponding to the monitoring object;
[0011] If yes, generate repair script information according to the target monitoring object whose corresponding indicator meets the conditions;
[0012] The repair script information is sent to the monitored device, so that the monitored device determines a repair script for repairing the monitored device based on the repair script information.
[0013] In a second aspect, the present application provides an equipment repair device based on a monitoring system, the device comprising:
[0014] A receiving unit, used to receive data of various monitoring objects in the monitored device;
[0015] A calculation unit, used to calculate indicators corresponding to various monitoring objects according to the data of various monitoring objects;
[0016] A judging unit, configured to judge, for each type of monitored object, whether an indicator corresponding to the monitored object satisfies a condition corresponding to the monitored object;
[0017] A generating unit, for generating repair script information according to the target monitoring object whose corresponding indicator meets the condition if yes;
[0018] The sending unit is used to send the repair script information to the monitored device, so that the monitored device determines the repair script used to repair the monitored device based on the repair script information.
[0019] In the third aspect, the present application also provides an electronic device, comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; and the processor is used to call program instructions in the memory to execute the equipment repair method based on the monitoring system of the first aspect mentioned above.
[0020] In a fourth aspect, the present application provides a storage medium for storing a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the device repair method based on the monitoring system described in the first aspect.
[0021] By means of the above technical scheme, the present application provides a device repair method and device based on a monitoring system, which receives data of various monitoring objects in the monitored device; calculates the indicators corresponding to the various monitoring objects according to the data of the various monitoring objects; for each type of monitoring object, determines whether the indicators corresponding to the monitoring object meet the conditions corresponding to the monitoring object; if so, generates repair script information according to the target monitoring object whose corresponding indicators meet the conditions; sends the repair script information to the monitored device, so that the monitored device determines the repair script used to repair the monitored device based on the repair script information. In the present application, when the monitoring system detects that a problem has occurred in the monitored device, it instructs the monitored device to search for the repair script, and then automatically repairs the monitored device, thereby improving the maintenance efficiency of the equipment.
[0022] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0024] Figure 1 A schematic diagram of a flow chart of a device repair method based on a monitoring system disclosed in this application;
[0025] Figure 2 A schematic diagram of a device repair method based on a monitoring system disclosed in the present application;
[0026] Figure 3 A schematic diagram of the structure of a device repairing device based on a monitoring system disclosed in this application;
[0027] Figure 4 This is a structural schematic diagram of another equipment repair device based on a monitoring system disclosed in this application;
[0028] Figure 5 A block diagram of a device disclosed in this application. DETAILED DESCRIPTION
[0029] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0030] With the development of science and technology, industrial interconnection has become one of the mainstream industries. However, in practice, in order to determine whether the interconnected devices are operating normally, a monitoring system is often set up to monitor various monitoring objects in each device.
[0031] In the related art, the monitoring system collects data of each monitored object in each device and determines whether each device is operating normally based on the data. If a device is not operating normally, the relevant personnel responsible for the device are notified so that the relevant personnel can repair the device.
[0032] However, this manual maintenance method takes a long time and has low maintenance efficiency.
[0033] In order to solve the above problems, the embodiment of the present application provides a device repair method based on a monitoring system, the execution subject of which is the monitoring system. When the monitoring system detects that a problem occurs in the monitored device, it instructs the monitored device to search for a repair script, and then automatically repairs the monitored device, thereby improving the maintenance efficiency of the device. The specific execution steps are as follows: Figure 1 As shown, including:
[0034] Step 101, receiving data of various monitoring objects in the monitored device.
[0035] Among them, the monitoring object is the monitored object in the monitored device. For example, objects such as disks, memory, containers, etc. The data of the monitoring object is data related to the monitoring object. For example, when the monitoring object is a disk in the monitored device, the data of the monitoring object can be all files stored in the disk and the total of the disk. When the monitoring object is the memory in the monitored device, the data of the monitoring object can be the space occupied by all programs in the memory. When the monitoring object is a container in the monitored device, the data of the monitoring object can be the running status of the container. The monitoring object can also be other monitoring objects, which are not limited here.
[0036] In a specific implementation of this step, the monitored device will periodically collect data of various monitored objects of itself, and periodically send the data to the monitoring system, so that the monitoring system can collect data of various monitored objects in the monitored device.
[0037] Step 102, calculating the indicators corresponding to each type of monitored object based on the data of each type of monitored object.
[0038] In the specific implementation of this step, for each type of monitoring object, the corresponding indicators of each type of monitoring object are calculated based on the data of each type of monitoring object. For example, when the monitoring object is a disk in the monitored device, the proportion of the files in the disk is calculated based on the space occupied by all files in the disk and the storage space of the disk, and the corresponding indicators of the monitoring object are obtained; when the monitoring object is the memory in the monitored device, the space occupied by all programs in the memory and the running space of the memory are obtained, and the proportion of the application in the memory is calculated to obtain the corresponding indicators of the monitoring object; when the monitoring object is a container in the monitored device, the running status of the container is obtained to obtain the corresponding indicators of the monitoring object.
[0039] In implementation, when the monitored object is a disk in the monitored device, the data of the monitored object is all the files in the disk and the storage space of the disk, so that the space occupied by all the files in the disk can be determined, and then the proportion of the files in the disk to the disk can be calculated based on the space occupied by all the files in the disk and the storage space of the disk, and the index corresponding to the monitored object can be obtained. Alternatively, the data of the monitored object is the space occupied by all the files in the disk and the storage space of the disk, so the proportion of the files in the disk to the disk can be calculated based on the space occupied by all the files in the disk and the storage space of the disk, and the index corresponding to the monitored object can be obtained. Alternatively, the data of the monitored object is the proportion of the files in the disk to the disk, and the proportion is determined as the index corresponding to the monitored object.
[0040] When the monitoring object is the memory in the monitored device, the data of the monitoring object is all running programs and the running space of the memory. In this way, the space occupied by all programs in the memory can be determined based on all running programs. Then, based on the space occupied by all programs in the memory and the running space of the memory, the proportion of the application in the memory is calculated to obtain the indicator corresponding to the monitoring object. Alternatively, the data of the monitoring object is the space occupied by all programs in the memory and the running space of the memory. In this way, the space occupied by all programs in the memory and the running space of the memory can be obtained, the proportion of the application in the memory can be calculated, and the indicator corresponding to the monitoring object can be obtained. Alternatively, the data of the monitoring object is the proportion of the application in the memory. In this way, the proportion of the application in the memory can be obtained and used as the indicator corresponding to the monitoring object.
[0041] When the monitoring object is a container in the monitored device, the data of the monitoring object is the running status of the container. In this way, the running status of the container can be directly obtained and determined as the indicator corresponding to the monitoring object.
[0042] Step 103: for each type of monitoring object, determine whether the indicator corresponding to the monitoring object meets the condition corresponding to the monitoring object.
[0043] In the specific implementation of this step, for each type of monitored object, it is determined whether the indicator corresponding to the monitored object meets the condition corresponding to the monitored object. If yes, it means that the monitored device is about to have a problem and needs to be repaired. If no, it means that the monitored device will not have a problem and does not need to be repaired.
[0044] Furthermore, the method for determining whether a problem is about to occur in the monitored device is as follows: when the monitored object is a file in the disk of the monitored device, the condition corresponding to the monitored object is that the indicator is greater than a first preset value; when the monitored object is a program in the memory of the monitored device, the condition corresponding to the monitored object is that the indicator is greater than a second preset value; when the monitored object is a container in the monitored device, the condition corresponding to the monitored object is that the indicator is in a preset state.
[0045] Among them, the first preset value and the second preset value are set by technicians based on experience. For example, if the proportion of space occupied by files in the disk is greater than 80%, the monitored device is prone to problems such as freezing, and 80% can be determined as the first preset value. If the proportion of space occupied by programs in the memory is greater than 85%, the monitored device is prone to problems such as freezing, and 85% can be determined as the second preset value. The preset state is a non-operating state, which is used to indicate that the corresponding container is not in an operating state.
[0046] Step 104: If yes, generate repair script information according to the target monitoring object whose corresponding indicator meets the conditions.
[0047] Among them, in order to reduce the data stored in the monitored device, the repair script information can carry the repair script to be used, and then after the monitored device receives the repair script information, it can obtain the repair script in the repair script information, and then the monitored device performs repairs based on the repair script. Alternatively, in order to reduce the amount of data required for communication, the repair script information can only carry the target monitoring object, so that after the monitored device receives the repair script information, it can search for the required repair script according to the target monitoring object in the repair script information and the pre-set corresponding relationship between the monitoring object and the repair script, and then the monitored device performs repairs based on the repair script.
[0048] In the specific implementation of this step, if yes, it means that the target monitoring object in the monitored device is about to have a problem, and the target monitoring object needs to be repaired using the repair script corresponding to the target monitoring object, so it is necessary to determine the repair script information according to the target monitoring object. For example, if the repair script information includes a repair script, the repair script to be used is determined according to the target monitoring object and the correspondence between the monitoring object and the repair script stored in advance, and the repair script information is generated according to the repair script. If the repair script information only includes the monitoring object, the repair script information is generated based on the target monitoring object.
[0049] Step 105: Send repair script information to the monitored device.
[0050] The monitored device determines a repair script for repairing the monitored device based on the repair script information.
[0051] In a specific implementation of this step, if the repair script information includes a repair script, after the monitored device receives the repair script information, the repair script is extracted from the information, and the monitored device is repaired based on the repair script. If the repair script information only includes a monitoring object, the monitoring object in the repair script information is obtained, and the repair script to be used is determined based on the pre-stored correspondence between the monitoring object and the repair script, and the monitored device is repaired based on the repair script.
[0052] In an embodiment of the present application, data of various monitoring objects in the monitored device are received; indicators corresponding to various monitoring objects are calculated based on the data of various monitoring objects; for each type of monitoring object, it is determined whether the indicators corresponding to the monitoring object meet the conditions corresponding to the monitoring object; if so, repair script information is generated based on the target monitoring object whose corresponding indicators meet the conditions; the repair script information is sent to the monitored device so that the monitored device searches for a repair script for repairing the monitored device based on the repair script information. In the present application, when the monitoring system detects that a problem has occurred in the monitored device, it instructs the monitored device to search for a repair script, and then automatically repairs the monitored device, thereby improving the maintenance efficiency of the device.
[0053] exist Figure 1 Based on the embodiment shown, the monitoring system involved in the present application can also send alarm information to relevant personnel. Therefore, the present application also provides an alarm method based on the monitoring system, as shown in FIG. Figure 2 As shown, including:
[0054] Step 201: Find the alarm template to be used according to the target monitoring object and the pre-stored correspondence between the monitoring object and the alarm template.
[0055] The alarm template includes at least the monitored object with a problem and the problem. For example, when the monitored object is a disk in the monitored device, the alarm template includes at least that the space ratio occupied by files in the disk in the monitored device exceeds a first preset value.
[0056] In a specific implementation of this step, the monitoring system stores an alarm template corresponding to each monitored object, so that the alarm template to be used can be found according to the target monitored object and the pre-stored correspondence between the monitored object and the alarm template.
[0057] Step 202: Generate alarm information according to the alarm template.
[0058] In the specific implementation of this step, some more detailed information can also be filled in the alarm template to generate alarm information. For example, when the monitored object is a disk in the monitored device, the file name of the file whose size exceeds the first preset value and the file name of the log file whose size exceeds the second preset value are obtained from the data of the monitored object, and the file name is added to the alarm template to obtain the alarm information; when the monitored object is the memory in the monitored device, the name of the preset application that occupies the largest memory is obtained from the data of the monitored object, and the name is added to the alarm template to obtain the alarm information; when the monitored object is a container in the monitored device, the container information of the container is obtained, and the container information is added to the alarm template to obtain the alarm information.
[0059] Step 203: Determine the alarm level to be used according to the target monitoring object and the correspondence between the monitoring object and the alarm level.
[0060] In a specific implementation of this step, the alarm level corresponding to the target monitoring object is determined according to the target monitoring object and the corresponding relationship between the monitoring object and the alarm level, as the alarm level to be used.
[0061] Step 204: Determine the corresponding alarm information sending method according to the alarm level to be used.
[0062] Among them, the alarm levels in this step include level one alarm and level two alarm. The alarm information sending method corresponding to the level one alarm is enterprise WeChat notification, and the alarm information sending method corresponding to the level two alarm is email notification. In this way, the alarm information sending method to be used can be determined according to the alarm level to be used. Specifically, when the alarm level to be used is level one alarm, the alarm information sending method determined is enterprise WeChat notification. When the alarm level to be used is level two alarm, the alarm information sending method determined is email notification.
[0063] Step 205: Send the alarm information to the user associated with the target monitored object through the alarm information sending method.
[0064] In the specific implementation of this step, the user responsible for the target monitoring object can be determined based on the target monitoring object and the pre-established correspondence between the monitoring object and the user responsible for the monitoring object, and the user can be determined as the user associated with the target monitoring object. Then, the alarm information can be sent to the user associated with the target monitoring object through the alarm information sending method determined in step 204.
[0065] Furthermore, as a response to the above Figure 1-2The implementation of the method embodiment shown in the figure, the embodiment of the present application provides an equipment repair device based on a monitoring system. When the monitoring system detects that a problem occurs in the monitored equipment, the device instructs the monitored equipment to search for a repair script, and then automatically repairs the monitored equipment, thereby improving the equipment maintenance efficiency. The embodiment of the device corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will no longer repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Specifically, Figure 3 As shown, the device comprises:
[0066] The receiving unit 301 is used to receive data of various monitoring objects in the monitored device;
[0067] A calculation unit 302, used to calculate indicators corresponding to various types of monitoring objects according to data of various types of monitoring objects;
[0068] A judging unit 303 is used to judge, for each type of monitored object, whether an indicator corresponding to the monitored object satisfies a condition corresponding to the monitored object;
[0069] A generating unit 304 is used to generate repair script information according to the target monitoring object whose corresponding indicator meets the condition if yes;
[0070] The sending unit 305 is configured to send the repair script information to the monitored device, so that the monitored device determines a repair script for repairing the monitored device based on the repair script information.
[0071] Optional, such as Figure 4 As shown, the device further includes an alarm unit 306, including:
[0072] A search module 3061 is used to find the alarm template to be used according to the target monitoring object and the correspondence between the monitoring object and the pre-stored alarm template;
[0073] A generating module 3062, configured to generate alarm information according to the alarm template;
[0074] The sending module 3063 is used to send the alarm information to the user associated with the target monitoring object.
[0075] Optional, such as Figure 4 As shown, the generating module 3062 is further used for:
[0076] When the monitored object is a disk in the monitored device, the file names of files whose sizes exceed a first preset value and the file names of log files whose sizes exceed a second preset value are obtained from the data of the monitored object, and the file names are added to the alarm template to obtain alarm information;
[0077] When the monitoring object is the memory in the monitored device, the names of the preset applications that occupy the largest memory are obtained from the data of the monitoring object, and the names are added to the alarm template to obtain alarm information;
[0078] When the monitored object is a container in a monitored device, container information of the container is acquired, and the container information is added to the alarm template to obtain alarm information.
[0079] Optional, such as Figure 4 As shown, the device further includes a sending unit 307, including:
[0080] A first determination module 3071 is used to determine the alarm level to be used according to the target monitoring object and the correspondence between the monitoring object and the alarm level;
[0081] A second determination module 3072 is used to determine a corresponding alarm information sending method according to the alarm level to be used;
[0082] The sending module 3063 is further configured to send the alarm information to a user associated with the target monitored object through the alarm information sending method.
[0083] Optional, such as Figure 4 As shown, the calculation unit 302 includes:
[0084] The first calculation module 3021 is used for calculating the proportion of the files in the disk to the disk according to the space occupied by all files in the disk and the storage space of the disk when the monitored object is a disk in the monitored device, so as to obtain the index corresponding to the monitored object;
[0085] The second calculation module 3022 is used for obtaining the space occupied by all programs in the memory and the running space of the memory when the monitoring object is the memory in the monitored device, calculating the proportion of the application program in the memory, and obtaining the index corresponding to the monitoring object;
[0086] The acquisition module 3023 is used to acquire the operating status of the container and obtain the indicator corresponding to the monitored object when the monitored object is a container in the monitored device.
[0087] Optional, such as Figure 4 As shown,
[0088] When the monitoring object is a disk in the monitored device, the condition corresponding to the monitoring object is that the indicator is greater than a first preset value;
[0089] When the monitoring object is a memory in a monitored device, the condition corresponding to the monitoring object is that the indicator is greater than a second preset value;
[0090] When the monitored object is a container in a monitored device, the condition corresponding to the monitored object is that the indicator is in a preset state.
[0091] Furthermore, an embodiment of the present application also provides an electronic device, the electronic device comprising at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call program instructions in the memory to execute the above Figure 1-2 The equipment repair method based on the monitoring system described in.
[0092] Furthermore, the embodiment of the present application also provides a storage medium, the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 Equipment repair method based on monitoring system.
[0093] Figure 5 It is a block diagram of a device 50 provided in an embodiment of the present application. The device 50 includes at least one processor 501, and at least one memory 502 and a bus 503 connected to the processor 501; wherein the processor 501 and the memory 502 communicate with each other through the bus 503. The processor 501 is used to call the program instructions in the memory 502 to execute the above-mentioned device repair method based on the monitoring system. The device in this article can be a server (for example: a local server or a cloud server), a smart phone, a tablet computer, a PDA, a portable computer, or a fixed terminal such as a desktop computer.
[0094] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0095] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0096] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0097] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings herein. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the application is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the application described herein, and the description of the specific language above is for the purpose of disclosing the best mode of implementation of the application.
[0098] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0099] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0100] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0101] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0102] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0103] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0104] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0105] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0106] Those skilled in the art will appreciate that the embodiments of the present application may be provided in the form of methods, systems or computer software and hardware embodiments. Furthermore, the present application may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0107] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A device repair method based on a monitoring system, characterized in that: The method comprises: Receive data of various monitoring objects in the monitored equipment; According to the data of various monitoring objects, calculate the indicators corresponding to various monitoring objects; For each type of monitoring object, determine whether the indicator corresponding to the monitoring object meets the condition corresponding to the monitoring object; If yes, generate repair script information according to the target monitoring object whose corresponding indicator meets the conditions; The repair script information is sent to the monitored device, so that the monitored device determines a repair script for repairing the monitored device based on the repair script information.
2. The method according to claim 1, characterized in that: The method further comprises: Finding the alarm template to be used according to the target monitoring object and the correspondence between the monitoring object and the alarm template stored in advance; Generate alarm information according to the alarm template; The alarm information is sent to a user associated with the target monitoring object.
3. The method according to claim 2, characterized in that The generating of alarm information according to the alarm template includes: When the monitored object is a file in the disk of the monitored device, the file name of the file whose size exceeds the first preset value and the file name of the log file whose size exceeds the second preset value are obtained from the data of the monitored object, and the file name is added to the alarm template to obtain the alarm information; When the monitoring object is a program in the memory of the monitored device, the names of the preset applications that occupy the largest memory are obtained from the data of the monitoring object, and the names are added to the alarm template to obtain alarm information; When the monitored object is a container in a monitored device, container information of the container is acquired, and the container information is added to the alarm template to obtain alarm information.
4. The method according to claim 2, characterized in that: The method further comprises: Determine the alarm level to be used according to the target monitoring object and the corresponding relationship between the monitoring object and the alarm level; Determine the corresponding alarm information sending method according to the alarm level to be used; The step of sending the alarm information to a user associated with the target monitoring object comprises: The alarm information is sent to the user associated with the target monitoring object through the alarm information sending method.
5. The method according to claim 1, characterized in that The calculation of indicators corresponding to various monitoring objects includes: When the monitored object is a disk of a monitored device, the proportion of the files in the disk to the disk is calculated according to the space occupied by all files in the disk and the storage space of the disk, so as to obtain the index corresponding to the monitored object; When the monitoring object is the memory in the monitored device, the space occupied by all programs in the memory and the running space of the memory are obtained, the proportion of the application program in the memory is calculated, and the index corresponding to the monitoring object is obtained; When the monitored object is a container in a monitored device, the operating status of the container is acquired to obtain an indicator corresponding to the monitored object.
6. The method according to claim 1, characterized in that When the monitoring object is a disk in the monitored device, the condition corresponding to the monitoring object is that the indicator is greater than a first preset value; When the monitoring object is a memory in a monitored device, the condition corresponding to the monitoring object is that the indicator is greater than a second preset value; When the monitored object is a container in a monitored device, the condition corresponding to the monitored object is that the indicator is in a preset state.
7. An equipment repair device based on a monitoring system, characterized in that: The device comprises: A receiving unit, used to receive data of various monitoring objects in the monitored device; A calculation unit, used to calculate indicators corresponding to various monitoring objects according to the data of various monitoring objects; A judging unit, configured to judge, for each type of monitored object, whether an indicator corresponding to the monitored object satisfies a condition corresponding to the monitored object; A generating unit, for generating repair script information according to the target monitoring object whose corresponding indicator meets the condition if yes; The sending unit is used to send the repair script information to the monitored device, so that the monitored device determines the repair script used to repair the monitored device based on the repair script information.
8. The device according to claim 7, characterized in that The device also includes an alarm unit, including: A search module, used to find the alarm template to be used according to the target monitoring object and the correspondence between the monitoring object and the pre-stored alarm template; A generating module, used for generating alarm information according to the alarm template; The sending module is used to send the alarm information to the user associated with the target monitoring object.
9. An electronic device, characterized in that: The electronic device includes at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other through the bus; the processor is used to call the program instructions in the memory to execute the equipment repair method based on the monitoring system described in any one of claims 1-6.
10. A readable storage medium, characterized in that: The storage medium is used to store a computer program, wherein when the computer program is running, it controls the device where the storage medium is located to execute the device repair method based on the monitoring system according to any one of claims 1 to 6.
