System monitoring method and device, computer device and storage medium
By monitoring the update interval and changes of process data (excluding the heartbeat process) in the IoT data acquisition system, the problem of misjudging system status in existing technologies is solved, enabling more accurate system monitoring and anomaly alarms, and improving system reliability.
Patent Information
- Application Number
- CN202111393109.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2026-01-09
- Estimated Expiration
- 2041-11-23
AI Technical Summary
In existing technologies, the monitoring methods of IoT data acquisition systems are prone to misjudging the system status, especially since the normality judgment of the heartbeat process does not accurately reflect the impact on the status of other processes.
By monitoring the data update interval and data update change of each process in the IoT data acquisition system, excluding the heartbeat process, it is determined whether there is any abnormality, and an alarm message is pushed to the user terminal when there is an abnormality.
This avoids misjudging the status of the IoT data acquisition system, enables more accurate system monitoring, and improves the system's reliability and availability.
Smart Images

Figure CN114064412B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of system monitoring, and in particular to a system monitoring method and device, a computer device, a storage medium and a computer program product. BACKGROUND
[0002] With the development of big data technology, distributed application architecture is widely used, and Internet of Things data collection systems are usually scattered in multiple servers. The running components of the Internet of Things data collection system are becoming more and more fine, and the data link is becoming longer and longer. How to accurately monitor each running component of the Internet of Things data collection system and ensure the normal operation of the data link is particularly important.
[0003] In the related art, the monitoring system determines whether the system is normal by judging whether the heartbeat process of the Internet of Things data collection system is normal. If the heartbeat process is normal, the system is normal. However, the system usually includes other processes in addition to the heartbeat process, and the state of the other processes will also affect the system. There is a problem of misjudging the state of the Internet of Things data collection system. SUMMARY
[0004] Therefore, it is necessary to provide a system monitoring method, device, computer device, computer readable storage medium and computer program product capable of avoiding misjudgment of the state of the Internet of Things data collection system.
[0005] In a first aspect, the present application provides a system monitoring method. The method comprises:
[0006] For each process in the Internet of Things data collection system except the heartbeat process, determining a data update interval corresponding to a preset time for each process according to the preset time and the update time of the last update data of each process.
[0007] Judging whether the data update interval corresponding to the preset time for each process is abnormal. If the data update interval corresponding to the preset time for a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to a user terminal.
[0008] In one of the embodiments, the method further comprises:
[0009] Determining the data update change amount of the last update process before the preset time for each process as the data update change amount corresponding to the preset time for each process.
[0010] Judging whether the data update change amount corresponding to the preset time for each process is abnormal. If the data update change amount corresponding to the preset time for a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to a user terminal.
[0011] In one of the embodiments, the method further comprises:
[0012] For any process, determining whether the data update change amount corresponding to the preset time of the any process is greater than the first preset threshold value, if greater than the first preset threshold value, determining that the data update change amount corresponding to the preset time of the any process is normal, if not greater than the first preset threshold value, determining that the data update change amount corresponding to the preset time of the any process is abnormal.
[0013] In one of the embodiments, the updating process of the first preset threshold value comprises:
[0014] For a historical time period from the last updating of the first preset threshold value to the preset time, determining the data change amount of each updating process in the historical time period, determining whether the total number of updating processes with the data change amount in the preset range is greater than a preset number, if greater than, updating the first preset threshold value at the preset time.
[0015] In one of the embodiments, the method further comprises:
[0016] Determining whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than a second preset threshold value, if the connection number is greater than the second preset threshold value, determining that the database in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal;
[0017] If the connection number is not greater than the second preset threshold value, determining whether the cursor number of the database at the preset time is greater than a third preset threshold value, if the cursor number is greater than the third preset threshold value, determining that the database in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal.
[0018] In one of the embodiments, the method further comprises:
[0019] Determining whether the information interaction system adopts a networking mode, if the information interaction system adopts the networking mode, determining whether the information interaction system uses a short message alarm mode, if the information interaction system uses the short message alarm mode, encapsulating the alarm information as a short message, sending the short message to the user terminal, if the information interaction system does not use the short message alarm mode, encapsulating the alarm information as a voice file, sending the voice file to the user terminal;
[0020] If the information interaction system does not adopt the networking mode, determining whether the information interaction system uses an offline short message mode, if the information interaction system uses the offline short message mode, encapsulating the alarm information as a short message, sending the short message to the user terminal through a short message cat;
[0021] If the information interaction system does not use the offline SMS mode, the alarm information is encapsulated as a voice file, and the voice file is sent to the user terminal.
[0022] In a second aspect, the present application also provides a system monitoring device. The device comprises:
[0023] The first determining module is configured to determine, for each process in the Internet of Things data collection system except the heartbeat process, a data update interval corresponding to a preset time for each process according to the preset time and an update time of the last data update of each process.
[0024] The first judging module is configured to judge whether the data update interval corresponding to the preset time for each process is abnormal. If the data update interval corresponding to the preset time for a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to the user terminal.
[0025] In a third aspect, the present application also provides a computer device. The computer device comprises a memory and a processor. The memory stores a computer program, and the processor implements the following steps when executing the computer program:
[0026] For each process in the Internet of Things data collection system except the heartbeat process, a data update interval corresponding to a preset time for each process is determined according to the preset time and an update time of the last data update of each process.
[0027] It is judged whether the data update interval corresponding to the preset time for each process is abnormal. If the data update interval corresponding to the preset time for a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to the user terminal.
[0028] In a fourth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the following steps:
[0029] For each process in the Internet of Things data collection system except the heartbeat process, a data update interval corresponding to a preset time for each process is determined according to the preset time and an update time of the last data update of each process.
[0030] It is judged whether the data update interval corresponding to the preset time for each process is abnormal. If the data update interval corresponding to the preset time for a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to the user terminal.
[0031] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:
[0032] For each process in the IoT data acquisition system, excluding the heartbeat process, the data update interval corresponding to each process at the preset time is determined based on the preset time and the update time of the last data update of each process.
[0033] Determine whether the data update interval corresponding to each process at a preset time is abnormal. If there is a process in each process whose data update interval corresponding to the preset time is abnormal, then the process in the IoT data acquisition system is determined to be abnormal, and an alarm message is pushed to the user terminal.
[0034] The aforementioned system monitoring methods, devices, computer equipment, storage media, and computer program products, for each process in the IoT data acquisition system (excluding the heartbeat process), determine the data update interval corresponding to each process at a preset time by comparing the preset time with the last data update time of each process; determine whether the data update interval corresponding to each process at the preset time is abnormal; if any process in the system has an abnormal data update interval corresponding to the preset time, then the process in the IoT data acquisition system is determined to be abnormal, and an alarm message is pushed to the user terminal. Because the state of each process in the IoT data acquisition system is not determined based on the state of the heartbeat process, but rather by directly judging whether the data update interval corresponding to each process at the preset time is abnormal, the system's abnormality is determined, thus avoiding the problem of misjudging the state of the IoT data acquisition system. Attached Figure Description
[0035] Figure 1 This is a flowchart illustrating a system monitoring method in one embodiment;
[0036] Figure 2 This is a flowchart illustrating a system monitoring method in one embodiment;
[0037] Figure 3 This is a structural block diagram of a system monitoring device in one embodiment;
[0038] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0039] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0040] It can be understood that the terms "first", "second", and the like used in the present application can be used herein to describe various technical terms, but unless specifically stated, these technical terms are not limited by these terms. These terms are only used to distinguish one technical term from another. For example, without departing from the scope of the present application, the second preset threshold and the third preset threshold can be the same or different.
[0041] With the development of big data technology, distributed application architecture is widely used, and Internet of Things data acquisition systems are usually distributed in multiple servers. The running components of the Internet of Things data acquisition system are increasingly fragmented, and the data link is increasingly long. How to accurately monitor each running component of the Internet of Things data acquisition system and ensure the normal operation of the data link link is particularly important.
[0042] In the related art, the monitoring system determines whether the system is normal by judging whether the heartbeat process of the Internet of Things data acquisition system is normal. If the heartbeat process is normal, the system is normal. However, the system usually includes other processes in addition to the heartbeat process, and the state of the other processes will also affect the system. There is a problem of misjudging the state of the Internet of Things data acquisition system.
[0043] To solve the above problems in the related art, the embodiments of the present application provide a system monitoring method, which can be applied to a server, a terminal, and a system including a terminal and a server, and is realized through the interaction of the terminal and the server. The server can be implemented by an independent server or a server cluster composed of multiple servers. The terminal can be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things device can be a smart speaker, a smart television, a smart air conditioner, a smart vehicle device, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. It should be noted that the number of "multiple" and the like mentioned in the embodiments of the present application refers to "at least two", for example, "multiple" refers to "at least two".
[0044] In one embodiment, as shown in Figure 1 A system monitoring method is provided, and the present embodiment takes the method applied to a server as an example. The method includes the following steps:
[0045] 101. For each process in the Internet of Things data acquisition system except the heartbeat process, according to the preset time and the update time of the last update of each process, determine the data update interval corresponding to each process at the preset time;
[0046] The preset time can correspond to a monitoring time set by the server for monitoring each process of the Internet of Things data acquisition system except the heartbeat process. For example, the time when the Internet of Things data acquisition system is put into use is 8 o'clock today, and the monitoring times are 9 o'clock, 10 o'clock, 11 o'clock, 12 o'clock, etc., that is, each process of the Internet of Things data acquisition system is monitored every 1 hour except the heartbeat process. Correspondingly, the preset times are 9 o'clock, 10 o'clock, 11 o'clock, 12 o'clock, etc.
[0047] Specifically, the determination process of the data update interval of any process corresponding to the preset time includes: obtaining a time interval between the preset time and the update time of the last data update of any process, and taking the time interval as the data update interval of any process corresponding to the preset time.
[0048] In addition, the embodiment of the present application does not limit the specific process of judging whether the data update interval of each process corresponding to the preset time is abnormal, and specifically, it can be as follows: for any remaining process, it is judged whether the data update interval of any process corresponding to the preset time is greater than a fourth preset threshold, if it is not greater than the fourth preset threshold, it is determined that the data update interval of any process corresponding to the preset time is normal, and if it is greater than the fourth preset threshold, it is determined that the data update interval of any process corresponding to the preset time is abnormal. It should be noted that the time interval between two adjacent monitoring times can be equal to the fourth preset threshold, so that the monitoring of each process of the Internet of Things data acquisition system except the heartbeat process can be realized in fewer monitoring times.
[0049] 102, judging whether the data update interval of each process corresponding to the preset time is abnormal, if the data update interval of any process corresponding to the preset time is abnormal in each process, it is determined that the process in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal.
[0050] It should be noted that if the process in the Internet of Things data acquisition system is abnormal, the system is abnormal.
[0051] The user terminal can be mainly used by the operation and maintenance personnel of the Internet of Things data acquisition system, when the operation and maintenance personnel find that the process in the Internet of Things data acquisition system is abnormal through the user terminal, the operation and maintenance personnel can maintain the Internet of Things data acquisition system in time.
[0052] In the system monitoring method, for each process in the Internet of Things data collection system except the heartbeat process, the data update interval of each process corresponding to the preset time is determined according to the preset time and the update time of the last data update of each process; whether the data update interval of each process corresponding to the preset time is abnormal is judged, and if the data update interval of each process corresponding to the preset time is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and the alarm information is pushed to the user terminal. Since the state of each process in the Internet of Things data collection system is not determined according to the state of the heartbeat process, but whether the data update interval of each process corresponding to the preset time is abnormal is directly judged to determine whether each process is abnormal, whether the Internet of Things data collection system is abnormal is determined, and then the problem of misjudging the state of the Internet of Things data collection system is avoided.
[0053] In one embodiment, the method further comprises:
[0054] The data update change amount of the last update process of each process before the preset time is determined as the data update change amount of each process corresponding to the preset time;
[0055] Whether the data update change amount of each process corresponding to the preset time is abnormal is judged, and if the data update change amount of each process corresponding to the preset time is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and the alarm information is pushed to the user terminal.
[0056] In this embodiment, whether the data update change amount of each process corresponding to the preset time is abnormal is judged, and if the data update change amount of each process corresponding to the preset time is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and the alarm information is pushed to the user terminal. Since the state of each process in the Internet of Things data collection system except the heartbeat process is not determined according to the state of the heartbeat process, but whether the data update change amount of each process corresponding to the preset time is abnormal is directly judged to determine whether each process is abnormal, whether the Internet of Things data collection system is abnormal is determined, and then the problem of misjudging the state of the Internet of Things data collection system is avoided. Furthermore, each process is monitored from two aspects of the data update interval of each process corresponding to the preset time and the data update change amount of each process corresponding to the preset time, so that more comprehensive monitoring of each process is realized.
[0057] In one embodiment, whether the data update change amount of each process corresponding to the preset time is abnormal is judged, and if the data update change amount of each process corresponding to the preset time is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and the alarm information is pushed to the user terminal.
[0058] For any remaining process, it is determined whether the data update change amount corresponding to the preset time of any process is greater than the first preset threshold value. If it is greater than the first preset threshold value, it is determined that the data update change amount corresponding to the preset time of any process is normal. If it is not greater than the first preset threshold value, it is determined that the data update change amount corresponding to the preset time of any process is abnormal.
[0059] In one embodiment, the updating process of the first preset threshold value comprises:
[0060] For a historical time period from the end of the last update of the first preset threshold value to the preset time, the data change amount of each update process in all update processes in the historical time period is determined. It is determined whether the total number of update processes with data change amounts in the preset range is greater than the preset number. If it is greater than the preset number, the first preset threshold value is updated at the preset time.
[0061] Specifically, for example, the first preset threshold value before updating is 100, the preset range is 200 to 300, the preset number is 4 times, the current time is 18:00 today, and the last time of updating the first preset threshold value is 12:00 today. The historical time period from 12:00 to 18:00 includes 6 update processes, and the data change amounts of each update process in all update processes correspond to 150, 200, 200, 200, 210 and 210 respectively. The total number of update processes with data change amounts in the preset range is greater than the preset number, which indicates that the first preset threshold value before updating cannot determine whether the data update change amount corresponding to the preset time of each process is abnormal, and the value of the first preset threshold value is unreasonable. Therefore, if it is greater than the preset number, the first preset threshold value is updated at the preset time. In this embodiment, the first preset threshold value can be updated to 200.
[0062] In this embodiment, by determining the data change amount of each update process in all update processes in the historical time period from the end of the last update of the first preset threshold value to the preset time, it is determined whether the total number of update processes with data change amounts in the preset range is greater than the preset number. If it is greater than the preset number, the first preset threshold value is updated at the preset time. Since the first preset threshold value is dynamically changed by combining the data change amount of each update process in all update processes in the historical time period, the first preset threshold value is more reasonable, and the accuracy of the monitoring result of the process in the Internet of Things data acquisition system is improved.
[0063] In one embodiment, the method further comprises:
[0064] It is determined whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than the second preset threshold value. If the connection number is greater than the second preset threshold value, it is determined that the database in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal.
[0065] If the connection number is not greater than the second preset threshold, it is judged whether the cursor number of the database at the preset time is greater than a third preset threshold. If the cursor number is greater than the third preset threshold, it is determined that the database in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal.
[0066] In the embodiment, it is judged whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than the second preset threshold. If the connection number is greater than the second preset threshold, it is determined that the database in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal. If the connection number is not greater than the second preset threshold, it is judged whether the cursor number of the database at the preset time is greater than a third preset threshold. If the cursor number is greater than the third preset threshold, it is determined that the database in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal. Through monitoring the connection number and the cursor number of the database in the Internet of Things data acquisition system at the preset time, the database load is monitored, and the state of the Internet of Things data acquisition system is determined through the state of the database load. Furthermore, since the connection number of the database at the preset time is monitored first, if the connection number is abnormal, it is not necessary to monitor the cursor number of the database at the preset time, thereby improving the performance of the server.
[0067] In one embodiment, the alarm information is pushed to the user terminal, including:
[0068] It is judged whether the information interaction system adopts a networking mode. If the information interaction system adopts the networking mode, it is judged whether the information interaction system uses a short message alarm mode. If the information interaction system uses the short message alarm mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal. If the information interaction system does not use the short message alarm mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal.
[0069] If the information interaction system does not adopt the networking mode, it is judged whether the information interaction system uses an offline short message mode. If the information interaction system uses the offline short message mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal through a short message cat.
[0070] If the information interaction system does not use the offline short message mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal.
[0071] Correspondingly, the packaged short message or voice file can be sent to the user terminal by the information interaction system in the server.
[0072] In the embodiment, whether the information interaction system adopts the networking mode is judged. If the information interaction system adopts the networking mode, whether the information interaction system uses the short message alarm mode is judged. If the information interaction system uses the short message alarm mode, the alarm information is packaged as a short message, the short message is sent to the user terminal, and if the information interaction system does not use the short message alarm mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal. If the information interaction system does not adopt the networking mode, whether the information interaction system uses the offline short message mode is judged. If the information interaction system uses the offline short message mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal through the short message cat. If the information interaction system does not use the offline short message mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal. Thus, it is ensured that the alarm information can be pushed to the user terminal. When the Internet of Things data acquisition system is abnormal, the operation and maintenance personnel can be notified in time, the availability of the Internet of Things data acquisition system is improved, and the expansion of the fault of the Internet of Things data acquisition system is avoided.
[0073] In one embodiment, as shown in FIG. 1, Figure 2 A system monitoring method is provided, and the embodiment takes the method applied to a server as an example. The method comprises the following steps:
[0074] 201. Whether the connection number of a database in an Internet of Things data acquisition system at a preset time is greater than a second preset threshold value is judged. If the connection number is greater than the second preset threshold value, it is determined that the database in the Internet of Things data acquisition system is abnormal, and alarm information is pushed to a user terminal.
[0075] 202. If the connection number is not greater than the second preset threshold value, whether the cursor number of the database at the preset time is greater than a third preset threshold value is judged. If the cursor number is greater than the third preset threshold value, it is determined that the database in the Internet of Things data acquisition system is abnormal, and alarm information is pushed to the user terminal.
[0076] 203. If the cursor number is not greater than the third preset threshold value, for each process in the Internet of Things data acquisition system except a heartbeat process, a data update interval corresponding to each process at a preset time is determined according to the preset time and the update time of the last time each process updates data. For any process, whether the data update interval corresponding to any process at the preset time is greater than a fourth preset threshold value is judged. If the data update interval is greater than the fourth preset threshold value, it is determined that the process in the Internet of Things data acquisition system is abnormal, and alarm information is pushed to the user terminal.
[0077] 204、if not greater than the fourth preset threshold, determining the data update change amount of the last update process of each process before the preset time as the data update change amount corresponding to the preset time of each process, for any remaining process, judging whether the data update change amount corresponding to the preset time of any process is greater than the first preset threshold, if not greater than the first preset threshold, determining that the process in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to the user terminal.
[0078] The execution processes of steps 201 and 204 and related terms can refer to the contents of the related embodiments of the system monitoring method, which will not be described here.
[0079] In the above system monitoring method, the connection number and the cursor number of the database in the Internet of Things data acquisition system at the preset time are monitored to monitor the database load, and then the state of the database load is determined to determine the state of the Internet of Things data acquisition system. By monitoring the data update interval and the data update change amount corresponding to the preset time of each process in the Internet of Things data acquisition system except the heartbeat process, on the one hand, the abnormal monitoring of the process in the Internet of Things data acquisition system is realized, and then the abnormal monitoring of the Internet of Things data acquisition system is realized; on the other hand, since the state of the heartbeat process is not used to determine the state of each process in the Internet of Things data acquisition system, but the data update interval and the data update change amount corresponding to the preset time of each process are directly judged to determine whether each process is abnormal and whether the Internet of Things data acquisition system is abnormal, thereby avoiding the problem of misjudging the state of the Internet of Things data acquisition system. Furthermore, when one of the four indicators of connection number, cursor number, data update interval and data update change amount is monitored to be abnormal, there is no need to monitor the other three indicators, thereby improving the performance of the server.
[0080] It should be understood that, although each step in the flowchart involved in the above embodiments is displayed in sequence according to the arrow, these steps are not necessarily executed in sequence according to the arrow. Unless otherwise stated herein, the execution of these steps has no strict sequence limitation, and these steps can be executed in other sequences. Moreover, at least part of the steps in the flowchart involved in the above embodiments can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least part of other steps or steps or stages in other steps.
[0081] Based on the same inventive concept, the embodiments of the present application further provide a system monitoring device for implementing the system monitoring method described above. The implementation scheme of the device for solving the problem is similar to the implementation scheme described in the above method, so the specific limitations in one or more system monitoring device embodiments provided below can refer to the limitations of the system monitoring method described above, which will not be repeated here.
[0082] In one embodiment, as shown in Figure 3 A system monitoring device is provided, comprising: a first determination module 301 and a first judgment module 302, wherein:
[0083] The first determination module 301 is configured to determine, for each process in the Internet of Things data collection system except the heartbeat process, a data update interval corresponding to a preset time of each process according to the preset time and the update time of the last data update of each process.
[0084] The first judgment module 302 is configured to judge whether the data update interval corresponding to the preset time of each process is abnormal. If the data update interval corresponding to the preset time of a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to a user terminal.
[0085] In one embodiment, the device further comprises:
[0086] The second determination module is configured to determine the data update change amount of the last update process before the preset time of each process as the data update change amount corresponding to the preset time of each process.
[0087] The second judgment module is configured to judge whether the data update change amount corresponding to the preset time of each process is abnormal. If the data update change amount corresponding to the preset time of a process in each process is abnormal, it is determined that the process in the Internet of Things data collection system is abnormal, and an alarm information is pushed to a user terminal.
[0088] In one embodiment, the second judgment module comprises:
[0089] The first judgment unit is configured to judge, for any process remaining, whether the data update change amount corresponding to the preset time of any process is greater than a first preset threshold. If it is greater than the first preset threshold, it is determined that the data update change amount corresponding to the preset time of any process is normal. If it is not greater than the first preset threshold, it is determined that the data update change amount corresponding to the preset time of any process is abnormal.
[0090] In one embodiment, the first judgment unit comprises:
[0091] The updating subunit is configured to determine the data change amount of each updating process in a historical time period from the last updating of the first preset threshold value to a preset time, determine whether the total number of updating processes with the data change amount in a preset range is greater than a preset number, and update the first preset threshold value at the preset time if the total number is greater than the preset number.
[0092] In one embodiment, the apparatus further comprises:
[0093] The third determining module is configured to determine whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than a second preset threshold value, determine that the database in the Internet of Things data acquisition system is abnormal and push an alarm information to the user terminal if the connection number is greater than the second preset threshold value.
[0094] The fourth determining module is configured to determine whether the cursor number of the database at the preset time is greater than a third preset threshold value if the connection number is not greater than the second preset threshold value, determine that the database in the Internet of Things data acquisition system is abnormal and push an alarm information to the user terminal if the cursor number is greater than the third preset threshold value.
[0095] In one embodiment, the first determining module 302 comprises:
[0096] The second determining unit is configured to determine whether the information interaction system adopts a networking mode, determine whether the information interaction system uses a short message alarm mode if the information interaction system adopts the networking mode, encapsulate the alarm information as a short message if the information interaction system uses the short message alarm mode, send the short message to the user terminal, and encapsulate the alarm information as a voice file if the information interaction system does not use the short message alarm mode, and send the voice file to the user terminal.
[0097] The third determining unit is configured to determine whether the information interaction system uses an offline short message mode if the information interaction system does not adopt the networking mode, encapsulate the alarm information as a short message if the information interaction system uses the offline short message mode, and send the short message to the user terminal through a short message cat.
[0098] The encapsulating unit is configured to encapsulate the alarm information as a voice file if the information interaction system does not use the offline short message mode, and send the voice file to the user terminal.
[0099] The above-mentioned modules in the system monitoring apparatus can be realized by software, hardware and combinations thereof in whole or in part. The above-mentioned modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to the above-mentioned modules.
[0100] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 4 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data related to each process in the IoT data acquisition system, except for the heartbeat process. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a system monitoring method.
[0101] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0102] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0103] For each process in the IoT data acquisition system, excluding the heartbeat process, the data update interval corresponding to each process at the preset time is determined based on the preset time and the update time of the last data update of each process.
[0104] Determine whether the data update interval corresponding to each process at a preset time is abnormal. If there is a process in each process whose data update interval corresponding to the preset time is abnormal, then the process in the IoT data acquisition system is determined to be abnormal, and an alarm message is pushed to the user terminal.
[0105] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0106] Determine the amount of data update change in the previous update process before the preset time for each process, and use it as the amount of data update change for each process at the preset time.
[0107] Determine whether the data update change amount corresponding to each process at a preset time is abnormal. If there is an abnormal data update change amount corresponding to a process at a preset time, then the process in the IoT data acquisition system is determined to be abnormal, and an alarm message is pushed to the user terminal.
[0108] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0109] For any remaining process, it is determined whether the data update change amount corresponding to the preset time of any process is greater than the first preset threshold value. If it is greater than the first preset threshold value, it is determined that the data update change amount corresponding to the preset time of any process is normal. If it is not greater than the first preset threshold value, it is determined that the data update change amount corresponding to the preset time of any process is abnormal.
[0110] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0111] For the historical time period from the last update of the first preset threshold value to the preset time, the data change amount of each update process in the historical time period is determined. It is determined whether the total number of update processes with data change amount in the preset range is greater than the preset number. If it is greater than the preset number, the first preset threshold value is updated at the preset time.
[0112] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0113] It is determined whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than the second preset threshold value. If the connection number is greater than the second preset threshold value, it is determined that the database in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal.
[0114] If the connection number is not greater than the second preset threshold value, it is determined whether the cursor number of the database at the preset time is greater than the third preset threshold value. If the cursor number is greater than the third preset threshold value, it is determined that the database in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to the user terminal.
[0115] In one embodiment, the processor, when executing the computer program, also implements the following steps:
[0116] It is determined whether the information interaction system uses a networking mode. If the information interaction system uses a networking mode, it is determined whether the information interaction system uses a short message alarm mode. If the information interaction system uses a short message alarm mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal. If the information interaction system does not use a short message alarm mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal.
[0117] If the information interaction system does not use a networking mode, it is determined whether the information interaction system uses an offline short message mode. If the information interaction system uses an offline short message mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal through a short message cat.
[0118] If the information interaction system does not use the offline SMS mode, the alarm information is encapsulated as a voice file, and the voice file is sent to the user terminal.
[0119] In one embodiment, a computer readable storage medium is provided, and the computer readable storage medium has stored thereon a computer program, and the computer program is executed by a processor to implement the following steps:
[0120] For each process in the Internet of Things data acquisition system except the heartbeat process, according to a preset time and an update time of the last update of each process, a data update interval corresponding to the preset time of each process is determined.
[0121] It is determined whether the data update interval corresponding to the preset time of each process is abnormal, and if the data update interval corresponding to the preset time of a process in each process is abnormal, it is determined that the process in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to a user terminal.
[0122] In one embodiment, the computer program is executed by the processor to further implement the following steps:
[0123] The data update change amount of the last update process before the preset time of each process is determined as the data update change amount corresponding to the preset time of each process.
[0124] It is determined whether the data update change amount corresponding to the preset time of each process is abnormal, and if the data update change amount corresponding to the preset time of a process in each process is abnormal, it is determined that the process in the Internet of Things data acquisition system is abnormal, and an alarm information is pushed to a user terminal.
[0125] In one embodiment, the computer program is executed by the processor to further implement the following steps:
[0126] For any process, it is determined whether the data update change amount corresponding to the preset time of the process is greater than a first preset threshold, and if the data update change amount corresponding to the preset time of the process is greater than the first preset threshold, it is determined that the data update change amount corresponding to the preset time of the process is normal, and if the data update change amount corresponding to the preset time of the process is not greater than the first preset threshold, it is determined that the data update change amount corresponding to the preset time of the process is abnormal.
[0127] In one embodiment, the computer program is executed by the processor to further implement the following steps:
[0128] For a historical time period from the last update of the first preset threshold to the preset time, the data change amount of each update process in all update processes in the historical time period is determined, it is determined whether the total number of update processes with the data change amount in a preset range is greater than a preset number, and if the total number of update processes with the data change amount in the preset range is greater than the preset number, the first preset threshold is updated at the preset time.
[0129] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0130] determining whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than a second preset threshold value; if the connection number is greater than the second preset threshold value, determining that the database in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal;
[0131] if the connection number is not greater than the second preset threshold value, determining whether the cursor number of the database at the preset time is greater than a third preset threshold value; if the cursor number is greater than the third preset threshold value, determining that the database in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal.
[0132] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0133] determining whether the information interaction system adopts a networking mode; if the information interaction system adopts the networking mode, determining whether the information interaction system uses a short message alarm mode; if the information interaction system uses the short message alarm mode, encapsulating the alarm information as a short message, and sending the short message to a user terminal; if the information interaction system does not use the short message alarm mode, encapsulating the alarm information as a voice file, and sending the voice file to the user terminal;
[0134] if the information interaction system does not adopt the networking mode, determining whether the information interaction system uses an offline short message mode; if the information interaction system uses the offline short message mode, encapsulating the alarm information as a short message, and sending the short message to the user terminal through a short message cat;
[0135] if the information interaction system does not use the offline short message mode, encapsulating the alarm information as a voice file, and sending the voice file to the user terminal.
[0136] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0137] for each process in the Internet of Things data acquisition system except the heartbeat process, determining a data update interval corresponding to each process at a preset time according to the preset time and the update time of the last data update of each process;
[0138] determining whether the data update interval corresponding to each process at the preset time is abnormal; if the data update interval corresponding to each process at the preset time is abnormal, determining that the process in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal.
[0139] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0140] determining a data update change amount of the last update process of each process before the preset time as the data update change amount corresponding to the preset time of each process;
[0141] judging whether the data update change amount corresponding to the preset time of each process is abnormal, and if the data update change amount corresponding to the preset time of a process in each process is abnormal, determining that the process in the Internet of Things data collection system is abnormal, and pushing an alarm information to a user terminal.
[0142] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0143] For any remaining process, judging whether the data update change amount corresponding to the preset time of any process is greater than a first preset threshold, if greater than the first preset threshold, determining that the data update change amount corresponding to the preset time of any process is normal, and if not greater than the first preset threshold, determining that the data update change amount corresponding to the preset time of any process is abnormal.
[0144] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0145] For a historical time period from the last update of the first preset threshold to the preset time, determining the data change amount of each update process in all update processes in the historical time period, judging whether the total number of update processes with the data change amount in the preset range is greater than a preset number, and if greater, updating the first preset threshold at the preset time.
[0146] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0147] judging whether the connection number of the database in the Internet of Things data collection system at the preset time is greater than a second preset threshold, and if the connection number is greater than the second preset threshold, determining that the database in the Internet of Things data collection system is abnormal, and pushing an alarm information to a user terminal;
[0148] If the connection number is not greater than the second preset threshold, judging whether the cursor number of the database at the preset time is greater than a third preset threshold, and if the cursor number is greater than the third preset threshold, determining that the database in the Internet of Things data collection system is abnormal, and pushing an alarm information to a user terminal.
[0149] In one embodiment, the computer program, when executed by the processor, further implements the following steps:
[0150] If the information interaction system adopts the networking mode, it is determined whether the information interaction system uses the short message alarm mode, if the information interaction system uses the short message alarm mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal, if the information interaction system does not use the short message alarm mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal;
[0151] If the information interaction system does not adopt the networking mode, it is determined whether the information interaction system uses the offline short message mode, if the information interaction system uses the offline short message mode, the alarm information is packaged as a short message, and the short message is sent to the user terminal through the short message cat;
[0152] If the information interaction system does not use the offline short message mode, the alarm information is packaged as a voice file, and the voice file is sent to the user terminal.
[0153] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware, and the computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, it can include the processes of the above-mentioned embodiments. Any reference to memory, storage, database or other medium used in the embodiments provided by the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
[0154] The technical features of the above embodiments can be combined in any way, and to make the description concise, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0155] The above-described embodiments are merely illustrative of several embodiments of the present application, which are described in more detail and in a specific and detailed manner, but should not be construed as limiting the scope of the patent. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A system monitoring method characterized by, The method comprises: For each process in the Internet of Things data acquisition system except the heartbeat process, determining a data update interval corresponding to the preset time for each process according to the preset time and the update time of the last data update of each process; determining whether the data update interval corresponding to the preset time for each process is abnormal, if the data update interval corresponding to the preset time for a process in each process is abnormal, determining that the process in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal.
2. The method of claim 1, wherein, The method further comprises: determining a data update change amount of the last update process before the preset time for each process as a data update change amount corresponding to the preset time for each process; determining whether the data update change amount corresponding to the preset time for each process is abnormal, if the data update change amount corresponding to the preset time for a process in each process is abnormal, determining that the process in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to the user terminal.
3. The method of claim 2, wherein, The determination of whether the data update change amount corresponding to the preset time for each process is abnormal comprises: For any remaining process, determining whether the data update change amount corresponding to the preset time for the process is greater than a first preset threshold, if greater than the first preset threshold, determining that the data update change amount corresponding to the preset time for the process is normal, if not greater than the first preset threshold, determining that the data update change amount corresponding to the preset time for the process is abnormal.
4. The method of claim 3, wherein, The update process of the first preset threshold comprises: For a historical time period from the end of the last update of the first preset threshold to the preset time, determining a data change amount of each update process in all update processes in the historical time period, determining whether the total number of update processes with data change amounts in a preset range is greater than a preset number, if greater, updating the first preset threshold at the preset time.
5. The method of claim 1, wherein, The method further comprises: determining whether the connection number of the database in the Internet of Things data acquisition system at the preset time is greater than a second preset threshold, if the connection number is greater than the second preset threshold, determining that the database in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal; if the connection number is not greater than the second preset threshold, determining whether the cursor number of the database at the preset time is greater than a third preset threshold, if the cursor number is greater than the third preset threshold, determining that the database in the Internet of Things data acquisition system is abnormal, and pushing an alarm information to a user terminal.
6. The method according to any one of claims 1 to 5, characterized in that, The pushing of the alarm information to the user terminal comprises: determining whether the information interaction system adopts a networking mode, if the information interaction system adopts the networking mode, determining whether the information interaction system uses a short message alarm mode, if the information interaction system uses the short message alarm mode, encapsulating the alarm information as a short message, sending the short message to the user terminal, if the information interaction system does not use the short message alarm mode, encapsulating the alarm information as a voice file, and sending the voice file to the user terminal; if the information interaction system does not adopt the networking mode, determining whether the information interaction system uses an offline short message mode, if the information interaction system uses the offline short message mode, encapsulating the alarm information as a short message, and sending the short message to the user terminal through a short message cat; if the information interaction system does not use the offline short message mode, encapsulating the alarm information as a voice file, and sending the voice file to the user terminal.
7. A system monitoring apparatus characterized by comprising: The device comprises: A first determination module is configured to determine, for each process in the Internet of Things data collection system except the heartbeat process, a data update interval corresponding to a preset time for each process according to the preset time and the update time of the last data update of each process. A first determination module is configured to determine, for each process in the Internet of Things data collection system except the heartbeat process, a data update interval corresponding to a preset time for each process according to the preset time and the update time of the last data update of each process.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The processor executes the computer program to implement the steps of the method of any one of claims 1 to 6.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 6.
Citation Information
Patent Citations
Exception monitoring method and device and electronic equipment
CN107864063A
Process monitoring method for database system and comprehensive monitoring system for rail transit
CN108710544A