Data monitoring method and device, storage medium and electronic device

By receiving configuration files and calling monitoring tools using target scripts to monitor the target server and generating monitoring reports, the problem of low data monitoring efficiency in the existing technology is solved, and automated data monitoring and analysis is realized.

CN119172270APending Publication Date: 2024-12-20CHINA CONSTR BANK CORP (DALIAN BRANCH)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411336169.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-24
Publication Date
2024-12-20

AI Technical Summary

Technical Problem

In the prior art, data monitoring efficiency is low and it is impossible to effectively analyze collected data.

Method used

By receiving the configuration file input from the target interface, the indicators to be monitored are determined, and the target script calls the monitoring tool to monitor the target server, and the data is added to the report template at a predetermined time interval to generate a monitoring report.

Benefits of technology

No manual monitoring and statistics are required, which improves the efficiency of data monitoring, can effectively analyze and generate monitoring reports, and solves the problem of low data monitoring efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172270A_ABST
    Figure CN119172270A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data monitoring method and device, a storage medium and an electronic device.The method comprises the steps that a configuration file which is input through a target interface and used for monitoring a plurality of servers connected with a monitoring system is received, the configuration file comprises a to-be-monitored monitoring index, and the to-be-monitored monitoring index is stored in the target interface; the configuration file is allowed to be modified through the target interface; and for any target server included in the plurality of servers, executing the following operations to monitor the target server: determining a target configuration file for monitoring the target server included in the configuration file, and calling a monitoring tool through a target script to monitor the target server based on the target configuration file, obtaining target data; and adding the target data into a report template according to a preset time interval to generate a monitoring report of the target server. Through the data monitoring method and device, the problem of low data monitoring efficiency in related technologies is solved, and the effect of improving data monitoring is further achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a data monitoring method, device, storage medium and electronic device. Background Art

[0002] In the related art, with the increasing number of servers and the increasing complexity of system application architecture, manual monitoring of different system resource data is inefficient and it is impossible to correctly analyze the collected data.

[0003] It can be seen from this that the relevant technology has the problem of low data monitoring efficiency.

[0004] Currently, no effective solution has been proposed for the above-mentioned problems existing in the related technologies. Summary of the invention

[0005] The embodiments of the present invention provide a data monitoring method, device, storage medium and electronic device to at least solve the problem of low data monitoring efficiency existing in the related art.

[0006] According to one embodiment of the present invention, a data monitoring method is provided, comprising: receiving a configuration file input through a target interface for monitoring multiple servers connected to a monitoring system, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface; for any target server included in the multiple servers, the following operations are performed to monitor the target server: determining a target configuration file for monitoring the target server included in the configuration file, monitoring the target server based on the target configuration file by calling a monitoring tool through a target script to obtain target data; and adding the target data to a report template at a predetermined time interval to generate a monitoring report for the target server.

[0007] According to another embodiment of the present invention, a data monitoring device is provided, including: a receiving module, for receiving a configuration file input through a target interface for monitoring multiple servers connected to a monitoring system, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface; a monitoring module, for performing the following operations for any target server included in the multiple servers to monitor the target server: determining a target configuration file for monitoring the target server included in the configuration file, monitoring the target server based on the target configuration file by calling a monitoring tool through a target script, and obtaining target data; a generating module, for adding the target data to a report template at a predetermined time interval to generate a monitoring report for the target server.

[0008] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when run.

[0009] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0010] According to yet another embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.

[0011] Through the present invention, a configuration file for monitoring multiple servers connected to a monitoring system input through a target interface is received, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface. When monitoring the target server, the target configuration file included in the configuration file for monitoring the target server can be determined, and the target configuration file of the target server is monitored by calling a monitoring tool using a target script to obtain target data. The target data is added to a report template at a predetermined time interval to generate a monitoring report for the target server. Since it can be known that the monitoring instructions to be monitored for the target server are determined through the target configuration file, the target server is monitored by calling a monitoring tool through a target script, and a monitoring report can be generated through a report template after monitoring, without manual monitoring and statistics, and therefore, the problem of low data monitoring efficiency existing in the related art can be solved, thereby achieving the effect of improving data monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a hardware structure block diagram of a mobile terminal according to a data monitoring method of an embodiment of the present invention;

[0013] Figure 2 is a flow chart of a method for monitoring data according to an embodiment of the present invention;

[0014] Figure 3 is a schematic diagram of monitoring indicator configuration according to an embodiment of the present invention;

[0015] Figure 4 is a schematic diagram of target data monitored by a target script according to an embodiment of the present invention;

[0016] Figure 5 is a histogram of file system usage according to an embodiment of the present invention;

[0017] Figure 6 is a line graph of system resource usage according to an embodiment of the present invention;

[0018] Figure 7 is a schematic diagram of SMS alarm information according to an embodiment of the present invention;

[0019] Figure 8 is a flow chart of a method for monitoring data according to an embodiment of the present invention;

[0020] Fig. 9 4 is a structural block diagram of a data monitoring device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0022] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0023] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a data monitoring method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

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

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

[0026] In this embodiment, a data monitoring method is provided. Figure 2 is a flow chart of a method for monitoring data according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0027] Step S202, receiving a configuration file input through a target interface for monitoring a plurality of servers connected to a monitoring system, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface;

[0028] Step S204, for any target server included in the multiple servers, the following operations are performed to monitor the target server: determine a target configuration file included in the configuration file for monitoring the target server, call a monitoring tool through a target script to monitor the target server based on the target configuration file, and obtain target data;

[0029] Step S206: adding the target data to a report template at a predetermined time interval to generate a monitoring report of the target server.

[0030] In the above embodiment, the target interface may be a human-computer interaction interface, and the configuration file may be a basis for determining the monitoring indicators of the server. The monitoring indicators to be monitored in the configuration file may be the number of application processes, application listening ports, application port status, file system usage, CPU, memory, database connection status, database space usage, etc., which can be referred to Figure 3 , Figure 3 is a schematic diagram of monitoring indicator configuration according to an embodiment of the present invention, such as Figure 3 As shown, the process information check (i.e., the above-mentioned application process number indicator) may include function-fixed keywords, user name, process keywords, and the minimum and maximum range of the number of query results; the disk space usage size (i.e., the above-mentioned file system usage rate indicator) may include function-fixed keywords and mount points; the memory usage size (i.e., the above-mentioned memory indicator) may include function-fixed keywords; the CPU usage size (i.e., the above-mentioned CPU indicator) may include function-fixed keywords; the Time_WAIT state number (i.e., the above-mentioned application port status indicator) may include function-fixed keywords, network connection status, and application ports.

[0031] In the above embodiment, the target server may be a server to be monitored among multiple servers, and the target server may be one or more. The target configuration file may be understood as a configuration file corresponding to the monitored target server, the target script may be a custom script, and the monitoring tool may be a tool built into the operating system or a dedicated API interface.

[0032] In the above embodiment, by writing a target script, calling the built-in tool command of the operating system, or a dedicated API interface, the monitoring data in the generated indicator configuration file can be collected and processed regularly. At the same time, for the readability of the result data and the uniformity of the format of the data processing interface, the collected data can be uniformly saved in a json format text file, where the data collected by the target script (i.e. the above target data) can be referred to Figure 4 , Figure 4 is a schematic diagram of target data monitored by a target script according to an embodiment of the present invention, such as Figure 4 As shown, the cpu usage rate is 5.32%; the total memory of the disk space (disk) is 3.9G, the free memory is 3.9G, that is, the disk space usage is 0 (that is, the above file system usage rate is 0%); the memory usage rate of the process keyword mSrv1 is 50%; the memory usage rate mem is 81.4452%; the swap area monitoring information is a total of 8388604KB, and 359936KB has been used, that is, the swap area monitoring usage rate is 4.291%.

[0033] In the above embodiment, the predetermined time interval can be set daily, weekly or monthly, and the report template can be a word format report or a txt format report, without limitation. By writing a dedicated java service program and referencing the paragraph tool component provided in the apache.poi package, the target data can be processed to generate a monitoring report for the target server.

[0034] Through the present invention, a configuration file for monitoring multiple servers connected to a monitoring system input through a target interface is received, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface. When monitoring the target server, the target configuration file included in the configuration file for monitoring the target server can be determined, and the target configuration file of the target server is monitored by calling a monitoring tool using a target script to obtain target data. The target data is added to a report template at a predetermined time interval to generate a monitoring report for the target server. Since it can be known that the monitoring instructions to be monitored for the target server are determined through the target configuration file, the target server is monitored by calling a monitoring tool through a target script, and a monitoring report can be generated through a report template after monitoring, without manual monitoring and statistics, and therefore, the problem of low data monitoring efficiency existing in the related art can be solved, thereby achieving the effect of improving data monitoring.

[0035] Optionally, the execution entity of the above steps may be a monitoring system, a processor, or a server, but is not limited thereto.

[0036] In an exemplary embodiment, after the target server is monitored based on the configuration file by calling the monitoring tool through the target script to obtain the target data, the method further includes: analyzing the target data to obtain the change trend of the target data; and when it is determined based on the change trend that abnormal data exists in the target data, performing optimization operations based on the abnormal data.

[0037] In the above embodiment, after the data is stored in the database, a more in-depth analysis can be performed. For example, the changing trend of the target data can be analyzed and anomaly detection operations can be performed on the target data. That is, when the changing trend shows that there is abnormal target data, optimization operations can be performed based on the abnormal target data, which can help system development and operation and maintenance personnel discover potential patterns, gain insight into business conditions and make decisions.

[0038] In an exemplary embodiment, performing optimization operations based on the exception data includes: when the exception data includes a memory exception, performing a memory optimization operation, wherein the optimization operation includes the memory optimization operation; when the exception data includes a file system usage exception, performing a file system optimization operation, wherein the optimization operation includes the file system optimization operation; when the exception data includes a processor exception, performing a processor optimization operation, wherein the optimization operation includes a processor optimization operation.

[0039] In the above embodiment, the abnormal data may be abnormal memory usage (i.e., memory usage reaches or exceeds the warning upper limit), abnormal disk space usage (i.e., the file system usage reaches or exceeds the warning upper limit), abnormal CPU usage (i.e., the processor usage reaches or exceeds the warning upper limit). When abnormal data occurs, corresponding optimization operations may be performed. Among them, memory optimization operations may include releasing memory, increasing memory, etc. Cultural system optimization operations may include using the system, restarting the system, etc. Processor optimization operations may include releasing processor occupancy, restarting the processor, etc.

[0040] In an exemplary embodiment, after monitoring the target server based on the configuration file by calling the monitoring tool through the target script to obtain the target data, the method also includes: obtaining an information table template for the monitoring indicators of the target server; adding the target data to the information table template to obtain a monitoring information table template for the target server.

[0041] In the above embodiment, the target data can generate a monitoring information table to help system developers and operation and maintenance personnel better understand and track key indicators and improve management efficiency. The information table template of the monitoring indicator can include a host information table, an indicator information table, a system parameter table, etc., which can be used for the storage, analysis and report generation of monitoring data. Taking the system cpu, memory, and swap area monitoring information table as an example, refer to Table 1, as shown in Table 1: The monitoring information table template can include host name hostname, date daytime, monitoring time sourceTime, insertion time insertTime, Cpu usage rate, Mem usage rate, Swap usage rate, and the latest flag sts, where the date is the system year, month, and day time, the monitoring time is the year, month, and day time of the captured data, that is, 24 hours of data, the insertion time is the system hour, minute, and second time, and the latest flag can be divided into new (the latest data) or old (previous data).

[0042] Table 1

[0043]

[0044]

[0045] In an exemplary embodiment, adding the target data to a report template at a predetermined time interval to generate a monitoring report for the target server includes: determining an area to be filled with data to be filled included in the report template; performing the following operations for each target area to be filled included in the area to be filled to add the filling data to the target area to be filled: determining label information and a filling condition for the target area to be filled, determining target sub-data from the target data based on the label information, processing the target sub-data according to the filling condition to obtain the filling data, and adding the filling data to the target area to be filled; and determining the report template after adding the completed data to each target area to be filled as the monitoring report.

[0046] In the above embodiment, the label information of the target area to be filled can be the name of the target area to be filled, for example, it can include name, gender, unit name, trend chart of target data, line chart of target data, bar chart of target data, table of target data, target data trend analysis or target data summary, etc. The filling condition can be the format of the filling content, judgment condition, etc., wherein the format of the filling content can include font, color, size, etc.

[0047] In the above embodiment, the judgment condition can be set corresponding to the label information, and different label information can correspond to different judgment conditions, which are used to judge whether the filled content is correct. For example, when the label information is a line graph, the judgment condition can be to judge whether the filled content is a line graph. If so, filling is allowed. If not, an alarm is given that the filled content is incorrect; when the label information is gender, the judgment condition can be to judge whether the filled content is male or female. If it is male or female, filling is allowed. If not, an alarm is given that the filled content is incorrect; when the label information is a unit name, the judgment condition can be to judge whether the filled content is a unit name, such as ** Bank. If so, filling is allowed. If not, an alarm is given that the filled content is incorrect.

[0048] In the above embodiment, the monitoring report can display the usage and trend analysis of the key target data of the system in the form of line graphs, bar graphs, etc. Figure 5 , Figure 6 , Figure 5 is a histogram of file system usage according to an embodiment of the present invention, Figure 6 is a line graph of system resource usage according to an embodiment of the present invention, such as Figure 5 As shown, Figure 5 Indicates the file system usage rate (i.e., the solid line bar graph in the figure) and the disk inode usage rate (i.e., the dotted line bar graph in the figure) corresponding to each file system; Figure 6A line graph showing the memory usage, CPU usage and swap area usage for different dates. By automatically generating monitoring reports according to a predetermined schedule (such as daily, weekly or monthly), it can replace the current manual generation of system monitoring reports and save a lot of human resources.

[0049] In an exemplary embodiment, after monitoring the target server based on the configuration file through a target script calling a monitoring tool to obtain target data, the method further includes: determining an alarm trigger condition included in the configuration file; and executing an alarm operation when the target data reaches the alarm trigger condition.

[0050] In the above embodiment, the configuration file may also include an alarm threshold (i.e., the above alarm trigger condition). When the data collected by the system at a certain point in time meets the alarm threshold judgment condition, an alarm operation may be executed. The alarm trigger condition may refer to Figure 3 The corresponding warning upper and lower limits are as follows: the warning condition for disk space can be 50 or 60, the warning condition for memory usage can be 80, the warning condition for CPU can be 20, the warning upper limit for application port status can be 2, and the warning lower limit can be 0 or 2.

[0051] In an exemplary embodiment, executing the alarm operation includes at least one of the following: calling a short message interface to send the alarm information to a target terminal; calling an email interface to send the alarm information to a target address.

[0052] In the above embodiment, the alarm operation can be performed by calling the SMS interface to send the alarm index and alarm information to the mobile phones of the corresponding system development and operation and maintenance personnel, or by calling the email interface to send the alarm index and alarm information to the corresponding email address. Figure 7 , Figure 7 Schematic diagram of SMS alarm information according to an embodiment of the present invention. Figure 7 As shown, the alarm information may include unit name, warning time, user name, alarm threshold, etc. The production operation monitoring and early warning indicator configuration of the information system is highly flexible and can support personalized monitoring and alarm functions of different system resources.

[0053] The following is an explanation of the data monitoring method in conjunction with a specific implementation method:

[0054] Figure 8 is a flow chart of a method for monitoring data according to a specific embodiment of the present invention. Figure 8As shown, the monitoring system for executing the data monitoring method includes a monitored server, a data processing server, a public processing server and a maintenance system (i.e., a system used by developers). The monitoring system can realize functions such as indicator configuration, data collection, SMS alarm, data storage, report generation, and email sending. The monitored server configures the monitoring indicators and collects data, transmits the target monitoring data to the data processing server, and transmits the alarm information to the public processing server. The data processing server stores the target monitoring data for processing, generates the corresponding monitoring report, and sends the report to the public processing server by email. The public service processor keeps the file locally and sends the report or alarm information to the developer for maintenance through SMS and email sending services. Through the SMS alarm and email sending functions, it can be connected with various communication operators and the internal email system of the enterprise, realizing the full process closed-loop operation of real-time monitoring, automatic alarm, report generation, and email sending functions, effectively improving the system use value and function expansion space. In addition, when the system fails, the existing historical data can be used as an important reference, which can help quickly locate the cause of the problem and shorten the fault recovery time.

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

[0056] In the present embodiment, a data monitoring device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions thereof will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0057] Fig. 9 is a structural block diagram of a data monitoring device according to an embodiment of the present invention. Fig. 9 As shown, the device comprises:

[0058] A receiving module 92, configured to receive a configuration file for monitoring a plurality of servers connected to a monitoring system input through a target interface, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface;

[0059] The monitoring module 94 is configured to perform the following operations for any target server included in the multiple servers to monitor the target server: determine a target configuration file included in the configuration file for monitoring the target server, call a monitoring tool through a target script to monitor the target server based on the target configuration file, and obtain target data;

[0060] The generating module 96 is used to add the target data to the report template at a predetermined time interval to generate a monitoring report of the target server.

[0061] In an exemplary embodiment, the device can be used to monitor the target server based on the configuration file by calling the monitoring tool through a target script to obtain the target data: analyze the target data to obtain the change trend of the target data; and when it is determined based on the change trend that there is abnormal data in the target data, perform optimization operations based on the abnormal data.

[0062] In an exemplary embodiment, the device can also be used to perform optimization operations based on the exception data: when the exception data includes memory exceptions, perform memory optimization operations, wherein the optimization operations include the memory optimization operations; when the exception data includes file system usage exceptions, perform file system optimization operations, wherein the optimization operations include the file system optimization operations; when the exception data includes processor exceptions, perform processor optimization operations, wherein the optimization operations include processor optimization operations.

[0063] In an exemplary embodiment, the device can also be used to monitor the target server based on the configuration file by calling the monitoring tool through a target script, and after obtaining the target data: obtain the information table template of the monitoring indicators of the target server; add the target data to the information table template to obtain the monitoring information table template of the target server.

[0064] In an exemplary embodiment, the generation module 96 can add the target data to the report template at predetermined time intervals to generate a monitoring report for the target server in the following manner: determine the to-be-filled area of ​​the data to be filled included in the report template; perform the following operations for each target to-be-filled area included in the to-be-filled area to add the filling data to the target to-be-filled area: determine the label information and the filling condition of the target to-be-filled area, determine the target sub-data from the target data based on the label information, process the target sub-data according to the filling condition to obtain the filling data, and add the filling data to the target to-be-filled area; determine the report template after the data is added to each of the target to-be-filled areas as the monitoring report.

[0065] In an exemplary embodiment, the device can also be used to monitor the target server based on the configuration file by calling the monitoring tool through a target script, and after obtaining the target data: determine the alarm trigger conditions included in the configuration file; and execute an alarm operation when the target data reaches the alarm trigger conditions.

[0066] In an exemplary embodiment, the device can also be used to perform an alarm operation, including at least one of the following: calling a text message interface to send the alarm information to a target terminal; calling an email interface to send the alarm information to a target address.

[0067] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0068] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

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

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

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

[0072] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method in each embodiment of the present application when the computer program is executed by a processor.

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

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

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

Claims

1. A data monitoring method, characterized in that: include: Receiving a configuration file input through a target interface for monitoring a plurality of servers connected to a monitoring system, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface; For any target server included in the multiple servers, the following operations are performed to monitor the target server: determining a target configuration file included in the configuration file for monitoring the target server, calling a monitoring tool through a target script to monitor the target server based on the target configuration file, and obtaining target data; The target data is added to a report template at a predetermined time interval to generate a monitoring report for the target server.

2. The method according to claim 1, characterized in that After the target script calls the monitoring tool to monitor the target server based on the configuration file to obtain target data, the method further includes: Analyzing the target data to obtain a change trend of the target data; When it is determined based on the change trend that abnormal data exists in the target data, an optimization operation is performed based on the abnormal data.

3. The method according to claim 2, characterized in that Performing optimization operations based on the abnormal data includes: In the case where the abnormal data includes a memory abnormality, performing a memory optimization operation, wherein the optimization operation includes the memory optimization operation; In the case where the abnormal data includes abnormal file system usage rate, performing a file system optimization operation, wherein the optimization operation includes the file system optimization operation; In case the abnormal data includes a processor abnormality, a processor optimization operation is performed, wherein the optimization operation includes a processor optimization operation.

4. The method according to claim 1, characterized in that: After the target script calls the monitoring tool to monitor the target server based on the configuration file to obtain target data, the method further includes: Obtaining an information table template of the monitoring indicator of the target server; The target data is added to the information table template to obtain a monitoring information table template of the target server.

5. The method according to claim 1, characterized in that Adding the target data to a report template at a predetermined time interval to generate a monitoring report of the target server includes: Determine a to-be-filled area of ​​the report template that includes data to be filled; For each target area to be filled included in the area to be filled, the following operations are performed to add filling data to the target area to be filled: determining label information and a filling condition of the target area to be filled, determining target sub-data from the target data based on the label information, processing the target sub-data according to the filling condition to obtain the filling data, and adding the filling data to the target area to be filled; The report template after adding the completed data to each of the target areas to be filled is determined as the monitoring report.

6. The method according to claim 1, characterized in that After the target script calls the monitoring tool to monitor the target server based on the configuration file to obtain target data, the method further includes: Determining the alarm triggering condition included in the configuration file; When the target data reaches the alarm triggering condition, an alarm operation is performed.

7. The method according to claim 6, characterized in that Performing an alarm operation includes at least one of the following: Call the SMS interface to send the alarm information to the target terminal; Call the email interface to send the warning information to the target address.

8. A data monitoring device, characterized in that: include: A receiving module, used for receiving a configuration file inputted through a target interface for monitoring a plurality of servers connected to a monitoring system, wherein the configuration file includes monitoring indicators to be monitored, and the configuration file allows modification through the target interface; A monitoring module is used to perform the following operations for any target server included in the multiple servers to monitor the target server: determine a target configuration file included in the configuration file for monitoring the target server, call a monitoring tool through a target script to monitor the target server based on the target configuration file, and obtain target data; A generating module is used to add the target data to a report template at a predetermined time interval to generate a monitoring report of the target server.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.

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

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 7 are implemented.