CN113986647A - Equipment monitoring method and system - Google Patents
Equipment monitoring method and system Download PDFInfo
- Publication number
- CN113986647A CN113986647A CN202111117101.3A CN202111117101A CN113986647A CN 113986647 A CN113986647 A CN 113986647A CN 202111117101 A CN202111117101 A CN 202111117101A CN 113986647 A CN113986647 A CN 113986647A
- Authority
- CN
- China
- Prior art keywords
- equipment
- preset condition
- tested
- preset
- attribute
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3024—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3037—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3051—Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention provides a device monitoring method and a device monitoring system, wherein the method comprises the following steps: searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions; and judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result. The invention realizes that the preset condition corresponding to the attribute is automatically determined according to the attribute of the equipment to be detected, whether the performance parameter of the equipment to be detected meets the preset condition or not is automatically judged, and then the monitoring result of the equipment to be detected is automatically obtained, so that the monitoring result of the equipment to be detected can be obtained in real time, the monitoring efficiency of the equipment to be detected is improved, the defect that the manual monitoring of the equipment to be detected is easy to make mistakes is avoided, and the monitoring accuracy is improved.
Description
Technical Field
The invention relates to the technical field of rail transit, in particular to a device monitoring method and system.
Background
The signal system of urban rail transit is a key system for organizing and commanding train operation, ensuring driving safety, improving transportation efficiency, transmitting information and improving labor conditions of driving personnel. Therefore, the method and the device have the important significance of ensuring that each device in the signal system can make quick, accurate, safe and reliable control or response.
In the practical engineering project implementation process, when the performance of the equipment in the signal system is abnormal, for example, the memory occupancy reaches nearly 100%, the signal system is still in the running state, and the abnormal shutdown processing is not performed. However, in this case, since the memory is fully occupied, the input and output of the program in the actual signal system do not operate according to the correct data, resulting in an incorrect operation result of the signal system. When such problems usually occur, the root cause of the problems is difficult to be found, and even the scene cannot be found basically.
In the prior art, signal system manufacturers are usually equipped with an operation and maintenance system, and the monitoring results of the performance of each device in the signal system are displayed on a maintenance workstation. However, the maintenance workstation is not deployed in the dispatch hall like the dispatch workstation, but in the signal equipment room. However, the maintenance personnel are usually located in the scheduling hall, so that the maintenance personnel cannot obtain the monitoring result of the equipment in real time. Moreover, the number of devices inside the signal system is large, which results in high labor cost, and the situation of abnormal device performance is complex, and it is difficult to accurately obtain the monitoring results of each device in the signal system only by the experience analysis of the maintainers.
Disclosure of Invention
The invention provides a device monitoring method and a device monitoring system, which are used for overcoming the defects of poor real-time performance, high cost and poor accuracy caused by adopting the manual monitoring of the device performance in a signal system in the prior art and realizing the automatic and accurate monitoring of the device in the signal system.
The invention provides a device monitoring method, which comprises the following steps:
searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions;
and judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result.
According to the equipment monitoring method provided by the invention, the performance parameters comprise one or more of memory occupancy rate, CPU occupancy rate, disk occupancy rate, process state and network card state;
correspondingly, the preset condition comprises one or more of a first preset condition, a second preset condition, a third preset condition, a fourth preset condition and a fifth preset condition.
According to the equipment monitoring method provided by the invention, the performance parameters comprise memory occupancy rate, CPU occupancy rate, disk occupancy rate, network card state and process state;
correspondingly, the determining whether the performance parameter of the device to be tested meets the preset condition, and obtaining the monitoring result of the device to be tested according to the determination result includes:
respectively judging whether the memory occupancy rate meets the first preset condition, whether the CPU occupancy rate meets the second preset condition, whether the disk occupancy rate meets the third preset condition, whether the process state meets the fourth preset condition, and whether the network card state meets the fifth preset condition;
if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are not met simultaneously, determining that the equipment to be tested is in an abnormal state;
and if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are simultaneously met, determining that the equipment to be tested is in a normal state.
According to the device monitoring method provided by the present invention, after the determining whether the performance parameter of the device under test satisfies the preset condition, the method further includes:
and if the duration of the performance parameter which does not meet the preset condition is longer than a first preset duration, sending alarm information to a terminal.
According to the equipment monitoring method provided by the invention, the sending of the alarm information to the terminal comprises the following steps:
if the equipment to be tested is master equipment, the alarm information is sent to the terminal through the equipment to be tested;
and if the equipment to be tested is standby equipment, synchronizing the alarm information to main equipment of the equipment to be tested through the equipment to be tested, and sending the alarm information to the terminal through the main equipment of the equipment to be tested.
According to the device monitoring method provided by the present invention, after the determining whether the performance parameter of the device under test satisfies the preset condition, the method further includes:
and under the condition that the duration of the performance parameter which does not meet the preset condition is greater than a second preset duration, if the device to be tested is judged to be the main equipment, switching the standby equipment of the device to be tested into the main equipment.
The present invention also provides an apparatus monitoring system, comprising:
the searching module is used for searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions;
and the judging module is used for judging whether the performance parameters of the equipment to be tested meet the preset conditions or not and acquiring the monitoring result of the equipment to be tested according to the judging result.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any of the device monitoring methods described above when executing the program.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the device monitoring method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the device monitoring method as described in any one of the above.
According to the equipment monitoring method and system provided by the invention, the preset condition corresponding to the attribute is automatically determined according to the attribute of the equipment to be monitored, whether the performance parameter of the equipment to be monitored meets the preset condition or not is automatically judged, and the monitoring result of the equipment to be monitored is automatically obtained, so that the monitoring result of the equipment to be monitored can be obtained in real time, the monitoring efficiency of the equipment to be monitored is improved, the defect that the equipment to be monitored is prone to errors when being manually monitored can be avoided, and the monitoring accuracy is improved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a plant monitoring method provided by the present invention;
FIG. 2 is a second schematic flow chart of the equipment monitoring method provided by the present invention;
FIG. 3 is a schematic diagram of the structure of the device monitoring system provided by the present invention;
fig. 4 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The device monitoring method of the present invention is described below with reference to fig. 1, including:
the device to be tested is a device that needs to monitor an abnormal state, and may be a subsystem of a signal system, such as an automatic control system and a vehicle section signal control system, or may be various devices included in the signal system, and the like.
And a plurality of groups of mapping relations are stored in a pre-constructed mapping relation library according to the attribute of the equipment. Each set of mapping relationships corresponds to attributes of each device one to one. The pre-constructed mapping relation library can be compatible with a plurality of devices with different attributes. In addition, the mapping relation library can be expanded according to actual requirements so as to meet the detection requirements of each device.
Wherein the attribute includes but is not limited to type, number, identification, etc. of the device
Optionally, after obtaining the attribute of the device to be tested from the device side, searching the attribute of the device to be tested in the mapping relation library, and if the attribute of the device to be tested is found, obtaining a preset condition corresponding to the attribute of the device to be tested. If the attribute of the equipment to be detected is not found, the attribute of the equipment to be detected is not in the monitoring range, and the equipment to be detected can not be detected; the attribute and the preset condition of the device to be tested can also be reconfigured in the mapping relation library so as to monitor the device to be tested in a new round of monitoring.
According to the embodiment, the preset conditions related to the equipment to be tested can be quickly and accurately found according to the attributes of the equipment to be tested.
And 102, judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result.
The performance parameter of the device under test is a relevant parameter for characterizing the performance of the device under test, such as an operation index or a space resource utilization condition, which is not specifically limited in this embodiment. The performance parameters of the equipment to be tested are acquired in real time through the acquisition module.
The performance parameter of the device to be tested may be one or more, and correspondingly, the preset condition may also be one or more, and the embodiment does not specifically limit the performance parameter and the number of the preset conditions.
The preset conditions can be preset according to actual requirements. The preset condition may be a condition for defining the device under test in a normal state, or may be a condition for defining the device under test in an abnormal state, which is not specifically defined in this embodiment.
Optionally, under the condition that the preset condition is used for limiting the device to be tested to be in the normal state and the performance parameter of the device to be tested is one, if the performance parameter of the device to be tested is judged to meet the preset condition, determining that the device to be tested is in the normal state; and if the performance parameters of the equipment to be tested are judged and obtained to not meet the preset conditions, determining that the equipment to be tested is in an abnormal state.
Optionally, when the preset condition is a condition for limiting the device under test to be in the normal state, and the performance parameter of the device under test is multiple, it may be determined whether the device under test is in the normal state according to a combined determination result of the multiple performance parameters.
The combination judgment mode can be that each performance parameter is judged respectively, and then whether the equipment to be tested is in a normal state or not is determined according to the judgment results of all the performance parameters; and (3) performing layered and graded judgment, namely judging part of performance parameters, and judging the performance parameters of other parts under the condition that part of the parameters meet or do not meet the preset conditions so as to acquire whether the equipment to be tested is in a normal state. The present embodiment is not particularly limited to this comparison.
In addition, after the monitoring result and the performance parameter of the device to be detected are obtained, the monitoring result and the performance parameter can be uploaded to the terminal in real time so that a user can check the monitoring result and the performance parameter in real time.
In the prior art, a maintenance worker needs to check the performance parameters of the equipment to be tested or obtain the monitoring result of the equipment to be tested at a maintenance workstation; the abnormal condition is difficult to accurately capture only by checking the performance parameters of the equipment regularly or irregularly manually, the abnormal equipment to be tested is difficult to maintain in time, and the difficulty of checking the abnormal root cause is high, the reliability is low, and the maintenance cost is high. In addition, if the abnormal state of the device to be tested cannot be acquired in time, the signal system is affected, so that the signal system runs abnormally, and the line running efficiency and even the safety are adversely affected.
Compared with the prior art, the embodiment can directly monitor and acquire the performance parameters of the equipment to be detected and the monitoring result of the equipment to be detected in real time, does not need the operation and maintenance module for indirect processing of maintenance work, and has good real-time performance. Whether the equipment to be tested is abnormal or not can be monitored in real time, and once abnormal conditions occur, maintenance personnel can timely carry out related maintenance on the equipment to be tested according to performance parameters and monitoring results, so that the safe operation of the train is effectively guaranteed.
The embodiment automatically determines the preset condition corresponding to the attribute according to the attribute of the equipment to be monitored, automatically judges whether the performance parameter of the equipment to be monitored meets the preset condition or not, and then automatically acquires the monitoring result of the equipment to be monitored, so that the monitoring result of the equipment to be monitored can be acquired in real time, the monitoring efficiency of the equipment to be monitored is improved, the defect that the manual monitoring of the equipment to be monitored is prone to error can be avoided, and the monitoring accuracy is improved.
On the basis of the above embodiments, the performance parameters in this embodiment include one or more of memory occupancy, CPU occupancy, disk occupancy, process status, and network card status; correspondingly, the preset condition comprises one or more of a first preset condition, a second preset condition, a third preset condition, a fourth preset condition and a fifth preset condition.
The first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition can be set according to actual requirements.
Optionally, the memory occupancy rate refers to a memory consumed by a process, and when the memory occupancy rate is too high, the performance of the device to be tested is affected;
the CPU (Central Processing Unit) occupancy rate is the ratio of resources of a CPU memory occupied by an operating program to total resources, and when the CPU occupancy rate is too high, the performance of the device to be tested is influenced;
when the occupancy rate of the disk is too high, the running speed of the device to be tested is influenced, and the performance of the device to be tested is also influenced.
The performance of the device under test is also affected when the process state is a blocking state.
In the prior art, when a program of a device to be tested of a signal system runs, only operation parameters of the device to be tested are considered, a memory occupied by the program is not considered, and a CPU or a log outputs a result, so that under the condition that occupied space resources are out of limit, the running state of a process of the latter becomes a zombie process and other scenes, but the device to be tested is still in the running state at the moment, so that a maintainer cannot find abnormal conditions of the device to be tested in time, and further cannot monitor the device to be tested in time, and even cannot troubleshoot abnormal problems of the device to be tested, so that the maintainer cannot timely handle the problem of abnormal running of the signal system caused under the condition that the performance of the device is abnormal.
In conclusion, the monitoring result of the device to be tested can be accurately obtained according to the performance parameters.
On the basis of the above embodiments, the performance parameters in this embodiment include memory occupancy, CPU occupancy, disk occupancy, network card status, and process status; correspondingly, the determining whether the performance parameter of the device to be tested meets the preset condition, and obtaining the monitoring result of the device to be tested according to the determination result includes: respectively judging whether the memory occupancy rate meets the first preset condition, whether the CPU occupancy rate meets the second preset condition, whether the disk occupancy rate meets the third preset condition, whether the process state meets the fourth preset condition, and whether the network card state meets the fifth preset condition; if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are not met simultaneously, determining that the equipment to be tested is in an abnormal state; and if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are simultaneously met, determining that the equipment to be tested is in a normal state.
Optionally, the first preset condition, the second preset condition, and the third preset condition are numeric types, ranges, or thresholds, and the fourth preset condition and the fifth preset condition are character types, and are used to define a state of a process when the device under test is in a normal state.
Respectively judging whether the memory occupancy rate meets the first preset condition, whether the CPU occupancy rate meets the second preset condition, whether the disk occupancy rate meets the third preset condition, whether the process state meets the fourth preset condition, and whether the network card state meets the fifth preset condition;
and under the condition that all conditions are met, determining that the equipment to be tested is in a normal state, and under the condition that any condition is not met, determining that the equipment to be tested is in an abnormal state.
Compared with the monitoring result of the manual determination equipment, the monitoring result of the equipment to be detected can be more accurately obtained by performing combined judgment through multiple performance parameters and multiple preset conditions.
On the basis of the foregoing embodiments, in this embodiment, after the determining whether the performance parameter of the device under test meets the preset condition, the method further includes: and if the duration of the performance parameter which does not meet the preset condition is longer than a first preset duration, sending alarm information to a terminal.
The first preset time can be set according to actual requirements.
The terminal can be a computer, intelligent wearing equipment, a mobile phone and other equipment capable of carrying out data transmission.
The equipment to be tested is in an instant abnormal state due to instant abnormal conditions or abnormal interference, but the equipment to be tested returns to be normal in a short time. The abnormal state is a transient abnormality, and has little influence on a signal system and can be ignored. Therefore, in order to filter the occurrence of such a transient abnormal state, the continuous abnormal state of the device under test, that is, the real occurrence of a fault, is accurately acquired. In this embodiment, whether the duration of the performance parameter that does not satisfy the preset condition is greater than the first preset duration is used as a judgment condition to determine whether the device to be tested actually fails. If the equipment to be tested really fails, the abnormal condition can continuously occur. Therefore, by the monitoring method of the embodiment, the influence of instantaneous abnormal conditions or abnormal interference on the monitoring result of the device to be tested can be effectively relieved.
Optionally, if the duration of at least one performance parameter which does not meet the preset condition is longer than a first preset duration, determining that the equipment to be tested really fails;
if the duration that any performance parameter does not meet the preset condition is longer than the first preset duration, it is determined that the equipment to be tested is only in the instantaneous abnormal state and does not really break down.
And sending alarm information to the terminal to prompt a user that the equipment to be tested fails under the condition that the equipment to be tested really fails is judged and known, so that the user can maintain the equipment to be tested in time.
Wherein, the alarm information can include but not limited to be sent to the terminal in the form of voice or text.
The content of the alarm information includes, but is not limited to, performance parameters, monitoring results, attribute information and state information of the device to be tested.
The embodiment can flexibly customize and judge whether the equipment to be detected is really abnormal according to actual requirements, can effectively avoid the influence of instantaneous abnormality on the monitoring result, has strong anti-interference capability, stable output and high accuracy of the monitoring result, ensures the operating efficiency of the line and has strong stability and higher usability. In addition, the alarm information can be sent to the terminal in real time to assist a user to find out the fault source in time according to the alarm information and maintain in time.
On the basis of the foregoing embodiment, the sending alarm information to a terminal in this embodiment includes: if the equipment to be tested is master equipment, the alarm information is sent to the terminal through the equipment to be tested; and if the equipment to be tested is standby equipment, synchronizing the alarm information to main equipment of the equipment to be tested through the equipment to be tested, and sending the alarm information to the terminal through the main equipment of the equipment to be tested.
Optionally, in order to ensure safe operation of the rail transit system, the device is usually deployed as a dual-machine hot standby. The master system device can be used for receiving and transmitting data, and the backup system device is only used for receiving data but not used for transmitting data. Therefore, when the duration that the performance parameter of the device to be tested does not meet the preset condition is determined to be longer than the first preset duration, the main backup system of the device to be tested needs to be determined, and then the corresponding device is selected to send the alarm information, so that the condition that the alarm information is failed to be sent is avoided.
Optionally, whether the device to be tested is a master device is judged, and if the device to be tested is the master device, the alarm information is directly sent to the terminal through the device to be tested;
if the alarm information is not the master equipment, the alarm information is synchronized to the master equipment, and then the master equipment sends the alarm information to the terminal.
The embodiment can effectively ensure the effective transmission of the alarm information through the main and standby system judgment.
On the basis of the foregoing embodiments, in this embodiment, after the determining whether the performance parameter of the device under test meets the preset condition, the method further includes: and under the condition that the duration of the performance parameter which does not meet the preset condition is greater than a second preset duration, if the device to be tested is judged to be the main equipment, switching the standby equipment of the device to be tested into the main equipment.
In the prior art, although the device inside the signal system is deployed as the dual-computer hot standby, the reverse logic of the dual computers cannot be triggered under the condition that the performance of the device is abnormal, and the normal operation of the signal system is difficult to guarantee.
In order to solve the above problem, in this embodiment, under the condition that the duration of the performance parameter that does not satisfy the preset condition is greater than the second preset duration, if it is determined that the device to be tested is the master device, the reverse logic of the two devices is triggered, so as to ensure the normal operation of the signal system.
It should be noted that the second preset time period is greater than or equal to the first preset time period.
Optionally, judging whether the equipment to be tested is the master equipment or not; if the equipment to be tested is the master equipment, the master equipment is determined to be in an abnormal state, the standby equipment of the equipment to be tested needs to be switched into the master equipment, and a user is prompted to maintain the equipment to be tested in time.
If the equipment to be tested is not the main equipment, determining that the standby equipment is abnormal; and the master system equipment prompts a user to maintain the backup system in time.
The embodiment can flexibly customize the condition for triggering the switching logic according to actual requirements, can effectively avoid the influence of instantaneous abnormality on the main-standby switching, has strong anti-interference capability and stable output, is not easy to cause the situation of carrying out the main-standby switching repeatedly, and ensures the safe and effective operation of a signal system, thereby ensuring the operating efficiency of a circuit and having stronger stability and higher availability.
As shown in fig. 2, which is a complete flow diagram of the device monitoring method, the specific steps include,
step one, inputting relevant configuration, including a mapping relation library, a first preset time length, a second preset time length and the like.
Step two, monitoring the performance parameters of the equipment to be tested in real time when the program of the equipment to be tested is started;
performing relevant judgment on the performance parameters of the equipment to be tested according to the relevant configuration, wherein the relevant judgment comprises state judgment, alarm trigger time judgment and machine reversing trigger time judgment;
step four, under the condition that the alarm triggering time is met, the alarm information is sent to a signal system for internal processing so as to send the alarm information to a terminal; and under the condition of meeting the trigger time of the backup, sending the backup logic to a signal system dual-machine system for processing so as to carry out the main-backup switching.
The following describes the device monitoring system provided by the present invention, and the device monitoring system described below and the device monitoring method described above may be referred to correspondingly.
As shown in fig. 3, this embodiment provides an apparatus monitoring system, which includes a searching module 301 and a determining module 302, where:
the searching module 301 is configured to search, according to an attribute of a device to be tested, a preset condition corresponding to the attribute in a pre-established mapping relation library; the mapping relation library stores the mapping relation between the attributes and preset conditions;
the device to be tested is a device that needs to monitor an abnormal state, and may be a subsystem of a signal system, such as an automatic control system and a vehicle section signal control system, or may be various devices included in the signal system, and the like.
And a plurality of groups of mapping relations are stored in a pre-constructed mapping relation library according to the attribute of the equipment. Each set of mapping relationships corresponds to attributes of each device one to one. The pre-constructed mapping relation library can be compatible with a plurality of devices with different attributes. In addition, the mapping relation library can be expanded according to actual requirements so as to meet the detection requirements of each device.
Wherein the attribute includes but is not limited to type, number, identification, etc. of the device
Optionally, after obtaining the attribute of the device to be tested from the device side, searching the attribute of the device to be tested in the mapping relation library, and if the attribute of the device to be tested is found, obtaining a preset condition corresponding to the attribute of the device to be tested. If the attribute of the equipment to be detected is not found, the attribute of the equipment to be detected is not in the monitoring range, and the equipment to be detected can not be detected; the attribute and the preset condition of the device to be tested can also be reconfigured in the mapping relation library so as to monitor the device to be tested in a new round of monitoring.
According to the embodiment, the preset conditions related to the equipment to be tested can be quickly and accurately found according to the attributes of the equipment to be tested.
The judging module 302 is configured to judge whether the performance parameter of the device to be tested meets the preset condition, and obtain a monitoring result of the device to be tested according to a judgment result.
The performance parameter of the device under test is a relevant parameter for characterizing the performance of the device under test, such as an operation index or a space resource utilization condition, which is not specifically limited in this embodiment. The performance parameters of the equipment to be tested are acquired in real time through the acquisition module.
The performance parameter of the device to be tested may be one or more, and correspondingly, the preset condition may also be one or more, and the embodiment does not specifically limit the performance parameter and the number of the preset conditions.
The preset conditions can be preset according to actual requirements. The preset condition may be a condition for defining the device under test in a normal state, or may be a condition for defining the device under test in an abnormal state, which is not specifically defined in this embodiment.
Optionally, under the condition that the preset condition is used for limiting the device to be tested to be in the normal state and the performance parameter of the device to be tested is one, if the performance parameter of the device to be tested is judged to meet the preset condition, determining that the device to be tested is in the normal state; and if the performance parameters of the equipment to be tested are judged and obtained to not meet the preset conditions, determining that the equipment to be tested is in an abnormal state.
Optionally, when the preset condition is a condition for limiting the device under test to be in the normal state, and the performance parameter of the device under test is multiple, it may be determined whether the device under test is in the normal state according to a combined determination result of the multiple performance parameters.
The combination judgment mode can be that each performance parameter is judged respectively, and then whether the equipment to be tested is in a normal state or not is determined according to the judgment results of all the performance parameters; and (3) performing layered and graded judgment, namely judging part of performance parameters, and judging the performance parameters of other parts under the condition that part of the parameters meet or do not meet the preset conditions so as to acquire whether the equipment to be tested is in a normal state. The present embodiment is not particularly limited to this comparison.
In addition, after the monitoring result and the performance parameter of the device to be detected are obtained, the monitoring result and the performance parameter can be uploaded to the terminal in real time so that a user can check the monitoring result and the performance parameter in real time.
In the prior art, a maintenance worker needs to check the performance parameters of the equipment to be tested or obtain the monitoring result of the equipment to be tested at a maintenance workstation; the abnormal condition is difficult to accurately capture only by checking the performance parameters of the equipment regularly or irregularly manually, the abnormal equipment to be tested is difficult to maintain in time, and the difficulty of checking the abnormal root cause is high, the reliability is low, and the maintenance cost is high. In addition, if the abnormal state of the device to be tested cannot be acquired in time, the signal system is affected, so that the signal system runs abnormally, and the line running efficiency and even the safety are adversely affected.
Compared with the prior art, the embodiment can directly monitor and acquire the performance parameters of the equipment to be detected and the monitoring result of the equipment to be detected in real time, does not need the operation and maintenance module for indirect processing of maintenance work, and has good real-time performance. Whether the equipment to be tested is abnormal or not can be monitored in real time, and once abnormal conditions occur, maintenance personnel can timely carry out related maintenance on the equipment to be tested according to performance parameters and monitoring results, so that the safe operation of the train is effectively guaranteed.
The embodiment automatically determines the preset condition corresponding to the attribute according to the attribute of the equipment to be monitored, automatically judges whether the performance parameter of the equipment to be monitored meets the preset condition or not, and then automatically acquires the monitoring result of the equipment to be monitored, so that the monitoring result of the equipment to be monitored can be acquired in real time, the monitoring efficiency of the equipment to be monitored is improved, the defect that the manual monitoring of the equipment to be monitored is prone to error can be avoided, and the monitoring accuracy is improved.
On the basis of the above embodiment, the performance parameters in this implementation include one or more of memory occupancy rate, CPU occupancy rate, disk occupancy rate, process status, and network card status; correspondingly, the preset condition comprises one or more of a first preset condition, a second preset condition, a third preset condition, a fourth preset condition and a fifth preset condition.
On the basis of the above embodiment, the performance parameters in this embodiment include memory occupancy rate, CPU occupancy rate, disk occupancy rate, network card status, and process status; the monitoring module is specifically configured to: respectively judging whether the memory occupancy rate meets the first preset condition, whether the CPU occupancy rate meets the second preset condition, whether the disk occupancy rate meets the third preset condition, whether the process state meets the fourth preset condition, and whether the network card state meets the fifth preset condition; if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are not met simultaneously, determining that the equipment to be tested is in an abnormal state; and if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are simultaneously met, determining that the equipment to be tested is in a normal state.
On the basis of the above embodiments, the present embodiment further includes an alarm module, configured to: and if the duration of the performance parameter which does not meet the preset condition is longer than a first preset duration, sending alarm information to a terminal.
On the basis of the above embodiment, the alarm module in this implementation is further configured to: if the equipment to be tested is master equipment, the alarm information is sent to the terminal through the equipment to be tested; and if the equipment to be tested is standby equipment, synchronizing the alarm information to main equipment of the equipment to be tested through the equipment to be tested, and sending the alarm information to the terminal through the main equipment of the equipment to be tested.
On the basis of the above embodiment, the present embodiment further includes a switching module, configured to: and under the condition that the duration of the performance parameter which does not meet the preset condition is greater than a second preset duration, if the device to be tested is judged to be the main equipment, switching the standby equipment of the device to be tested into the main equipment.
Fig. 4 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 4: a processor (processor)401, a communication Interface (communication Interface)402, a memory (memory)403 and a communication bus 404, wherein the processor 401, the communication Interface 402 and the memory 403 complete communication with each other through the communication bus 404. Processor 401 may invoke logic instructions in memory 403 to perform a device monitoring method comprising: searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions; and judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result.
In addition, the logic instructions in the memory 403 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being storable on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the device monitoring method provided by the above methods, the method comprising: searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions; and judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method for monitoring a device provided by the above methods, the method comprising: searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions; and judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result.
The above-described system embodiments are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A device monitoring method, comprising:
searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions;
and judging whether the performance parameters of the equipment to be tested meet the preset conditions or not, and acquiring the monitoring result of the equipment to be tested according to the judgment result.
2. The device monitoring method of claim 1, wherein the performance parameters include one or more of memory occupancy, CPU occupancy, disk occupancy, process status, and network card status;
correspondingly, the preset condition comprises one or more of a first preset condition, a second preset condition, a third preset condition, a fourth preset condition and a fifth preset condition.
3. The device monitoring method of claim 2, wherein the performance parameters include memory occupancy, CPU occupancy, disk occupancy, network card status, and process status;
correspondingly, the determining whether the performance parameter of the device to be tested meets the preset condition, and obtaining the monitoring result of the device to be tested according to the determination result includes:
respectively judging whether the memory occupancy rate meets the first preset condition, whether the CPU occupancy rate meets the second preset condition, whether the disk occupancy rate meets the third preset condition, whether the process state meets the fourth preset condition, and whether the network card state meets the fifth preset condition;
if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are not met simultaneously, determining that the equipment to be tested is in an abnormal state;
and if the first preset condition, the second preset condition, the third preset condition, the fourth preset condition and the fifth preset condition are simultaneously met, determining that the equipment to be tested is in a normal state.
4. The device monitoring method according to any one of claims 1 to 3, wherein after the determining whether the performance parameter of the device under test satisfies the preset condition, the method further includes:
and if the duration of the performance parameter which does not meet the preset condition is longer than a first preset duration, sending alarm information to a terminal.
5. The device monitoring method according to claim 4, wherein the sending alarm information to the terminal comprises:
if the equipment to be tested is master equipment, the alarm information is sent to the terminal through the equipment to be tested;
and if the equipment to be tested is standby equipment, synchronizing the alarm information to main equipment of the equipment to be tested through the equipment to be tested, and sending the alarm information to the terminal through the main equipment of the equipment to be tested.
6. The device monitoring method according to any one of claims 1 to 3, wherein after the determining whether the performance parameter of the device under test satisfies the preset condition, the method further includes:
and under the condition that the duration of the performance parameter which does not meet the preset condition is greater than a second preset duration, if the device to be tested is judged to be the main equipment, switching the standby equipment of the device to be tested into the main equipment.
7. An equipment monitoring system, comprising:
the searching module is used for searching a preset condition corresponding to the attribute in a pre-established mapping relation library according to the attribute of the equipment to be tested; the mapping relation library stores the mapping relation between the attributes and preset conditions;
and the judging module is used for judging whether the performance parameters of the equipment to be tested meet the preset conditions or not and acquiring the monitoring result of the equipment to be tested according to the judging result.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the device monitoring method according to any one of claims 1 to 6 are implemented when the program is executed by the processor.
9. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the steps of the device monitoring method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the steps of the device monitoring method according to any one of claims 1 to 6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111117101.3A CN113986647A (en) | 2021-09-23 | 2021-09-23 | Equipment monitoring method and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202111117101.3A CN113986647A (en) | 2021-09-23 | 2021-09-23 | Equipment monitoring method and system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN113986647A true CN113986647A (en) | 2022-01-28 |
Family
ID=79736428
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202111117101.3A Pending CN113986647A (en) | 2021-09-23 | 2021-09-23 | Equipment monitoring method and system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN113986647A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114545281A (en) * | 2022-02-25 | 2022-05-27 | 杭州安脉盛智能技术有限公司 | Energy storage power station state monitoring method and system |
| CN116242395A (en) * | 2023-01-29 | 2023-06-09 | 广州文远知行科技有限公司 | Performance evaluation method, device, equipment and storage medium of integrated navigation equipment |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107480014A (en) * | 2017-07-24 | 2017-12-15 | 北京奇安信科技有限公司 | A kind of High Availabitity equipment switching method and device |
| CN110472749A (en) * | 2018-10-11 | 2019-11-19 | 广州德亚机械制造有限公司 | The long-distance monitoring method and monitoring device of equipment |
| WO2019233047A1 (en) * | 2018-06-07 | 2019-12-12 | 国电南瑞科技股份有限公司 | Power grid dispatching-based operation and maintenance method |
| CN110955579A (en) * | 2019-11-29 | 2020-04-03 | 杭州安恒信息技术股份有限公司 | Ambari-based large data platform monitoring method |
| CN110968465A (en) * | 2018-09-30 | 2020-04-07 | 北京奇虎科技有限公司 | Hardware performance test method and device |
| CN111999583A (en) * | 2020-08-24 | 2020-11-27 | 南京工程学院 | Fault trip judging method of safety and stability control device suitable for alternating current power grid |
| CN112668727A (en) * | 2019-09-29 | 2021-04-16 | 北京国双科技有限公司 | Method and device for detecting equipment fault |
-
2021
- 2021-09-23 CN CN202111117101.3A patent/CN113986647A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107480014A (en) * | 2017-07-24 | 2017-12-15 | 北京奇安信科技有限公司 | A kind of High Availabitity equipment switching method and device |
| WO2019233047A1 (en) * | 2018-06-07 | 2019-12-12 | 国电南瑞科技股份有限公司 | Power grid dispatching-based operation and maintenance method |
| CN110968465A (en) * | 2018-09-30 | 2020-04-07 | 北京奇虎科技有限公司 | Hardware performance test method and device |
| CN110472749A (en) * | 2018-10-11 | 2019-11-19 | 广州德亚机械制造有限公司 | The long-distance monitoring method and monitoring device of equipment |
| CN112668727A (en) * | 2019-09-29 | 2021-04-16 | 北京国双科技有限公司 | Method and device for detecting equipment fault |
| CN110955579A (en) * | 2019-11-29 | 2020-04-03 | 杭州安恒信息技术股份有限公司 | Ambari-based large data platform monitoring method |
| CN111999583A (en) * | 2020-08-24 | 2020-11-27 | 南京工程学院 | Fault trip judging method of safety and stability control device suitable for alternating current power grid |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114545281A (en) * | 2022-02-25 | 2022-05-27 | 杭州安脉盛智能技术有限公司 | Energy storage power station state monitoring method and system |
| CN116242395A (en) * | 2023-01-29 | 2023-06-09 | 广州文远知行科技有限公司 | Performance evaluation method, device, equipment and storage medium of integrated navigation equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN110224858B (en) | Log-based alarm method and related device | |
| CN102355368B (en) | Fault processing method of network equipment and system | |
| CN107797896B (en) | A kind of data on flows self- recoverage processing method and server | |
| CN111897671A (en) | Failure recovery method, computer device, and storage medium | |
| US20220321440A1 (en) | Interface Service Function Monitoring Method and System Based on Data Acquisition | |
| CN109240126B (en) | A distributed application service monitoring system and method with simulation operation function | |
| CN109726071A (en) | System failure processing method, device, equipment and storage medium | |
| CN103812675A (en) | Method and system for realizing allopatric disaster recovery switching of service delivery platform | |
| CN112529223A (en) | Equipment fault repair method and device, server and storage medium | |
| CN113986647A (en) | Equipment monitoring method and system | |
| CN107800783B (en) | Method and device for remotely monitoring server | |
| CN110708715B (en) | Service fault finding method and device for 5G base station | |
| CN101141327A (en) | Method for detecting network node abnormality | |
| CN110930538A (en) | Method and system for visualizing fault information of vehicle | |
| CN102045181A (en) | Method and device for handling terminal offline fault | |
| CN113312200A (en) | Event processing method and device, computer equipment and storage medium | |
| CN107749778A (en) | A kind of communications optical cable fault early warning method and device | |
| CN118011922A (en) | Embedded intelligent building monitoring system and monitoring method based on edge calculation | |
| CN113806127A (en) | Server log collection method and device and readable storage medium | |
| CN105588989B (en) | Single board testing method and device | |
| CN110198245A (en) | Equipment fault self-checking method | |
| CN117670033A (en) | Security check method, system, electronic equipment and storage medium | |
| CN116302989A (en) | Stress testing method and system, storage medium, computer equipment | |
| CN115983836A (en) | Data processing method and related equipment | |
| CN111130934A (en) | Monitoring method, device and system of communication system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |