[go: up one dir, main page]

CN114116406B - Method, device, electronic equipment and medium for monitoring component - Google Patents

Method, device, electronic equipment and medium for monitoring component

Info

Publication number
CN114116406B
CN114116406B CN202111445913.0A CN202111445913A CN114116406B CN 114116406 B CN114116406 B CN 114116406B CN 202111445913 A CN202111445913 A CN 202111445913A CN 114116406 B CN114116406 B CN 114116406B
Authority
CN
China
Prior art keywords
sensor
monitoring
component
monitored
xml
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.)
Active
Application number
CN202111445913.0A
Other languages
Chinese (zh)
Other versions
CN114116406A (en
Inventor
金澄锦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN202111445913.0A priority Critical patent/CN114116406B/en
Publication of CN114116406A publication Critical patent/CN114116406A/en
Application granted granted Critical
Publication of CN114116406B publication Critical patent/CN114116406B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring 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)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

本申请公开了一种监控部件的方法、装置、电子设备及介质。通过应用本申请的技术方案,可以将服务器中各部件对应的XML参数与预设的传感器集合进行匹配,从而针对性的确定当前服务器中是否有满足监控该部件条件的传感器。如有,再确定启动该传感器对该部件进行监控。从而避免了相关技术中出现的需要运维人员手动为每一个传感器配置对应的监控部件才可以开启监控功能所导致的影响业务处理效率的问题。

The present application discloses a method, device, electronic device and medium for monitoring components. By applying the technical solution of the present application, the XML parameters corresponding to each component in the server can be matched with a preset sensor set, so as to specifically determine whether there is a sensor in the current server that meets the conditions for monitoring the component. If so, it is determined to start the sensor to monitor the component. This avoids the problem of affecting business processing efficiency caused by the need for operation and maintenance personnel to manually configure the corresponding monitoring component for each sensor before the monitoring function can be enabled in the related technology.

Description

Method, device, electronic equipment and medium for monitoring component
Technical Field
The present application relates to data communication technologies, and in particular, to a method, an apparatus, an electronic device, and a medium for monitoring a component.
Background
With the rapid development of cloud technology, a server has become an indispensable hardware facility in the development process of cloud technology.
In the related art, each sensor is generally used to monitor the running state of each component in the server in real time, so as to determine whether fault information of a certain component exists in the server, and it can be understood that the monitoring accuracy and effectiveness of the sensor directly affect the service processing efficiency of the server.
However, the above method has a problem that an operation and maintenance person is required to manually configure a corresponding sensor for each component in advance to monitor, thereby affecting the operation and maintenance efficiency of the operation and maintenance person.
Disclosure of Invention
The embodiment of the application provides a method, a device, electronic equipment and a medium for monitoring components, which are used for solving the problem that each component in a server in the related technology can realize monitoring of the server faults only by manually configuring a corresponding sensor for the component in advance by operation and maintenance personnel.
According to an aspect of an embodiment of the present application, a method for monitoring a component is provided, which is applied to a server and includes:
acquiring XML parameters of a part to be monitored in the server, wherein the XML parameters are used for representing sensor parameters meeting the conditions of monitoring the part to be monitored;
Matching the XML parameters with a preset sensor object set, and determining a target sensor capable of meeting monitoring conditions, wherein parameters corresponding to each sensor deployed by the server are recorded in the sensor object set;
And sending a starting instruction for monitoring the component to be monitored to the target sensor.
Optionally, in another embodiment of the above method according to the present application, the matching the XML parameter with a preset sensor object set, determining a target sensor capable of meeting a monitoring condition includes:
Analyzing the XML parameters and determining sensor object identifiers which are carried by the XML parameters and can meet the monitoring conditions;
detecting whether the sensor object identification is included in the sensor object set;
And if so, taking the sensor corresponding to the sensor object identifier as the target sensor.
Optionally, in another embodiment of the above method according to the present application, the matching the XML parameter with a preset sensor object set, determining a target sensor capable of meeting a monitoring condition includes:
analyzing the XML parameters, and determining sensor configuration parameters carried by the XML parameters and required by the monitoring conditions;
Detecting whether the sensor object set comprises the sensor configuration parameters or not;
And if so, taking the sensor corresponding to the sensor configuration parameter as the target sensor.
Optionally, in another embodiment of the above method according to the present application, after the determining the target sensor capable of meeting the monitoring condition, the method further includes:
if the number of the target sensors is determined to be a plurality of;
And sending a starting instruction for monitoring the component to be monitored to any one of the plurality of target sensors, or sending a starting instruction for monitoring the component to be monitored to a target sensor in which the load running state value is lower than a preset threshold value.
Optionally, in another embodiment of the above method according to the present application, before the obtaining XML parameters of the component to be monitored located in the server, the method further includes:
Monitoring communication interfaces connected with all components to be monitored in the server;
and if the event that the communication interface is connected with the component to be monitored exists, acquiring XML parameters of the component to be monitored.
Optionally, in another embodiment of the above method according to the present application, the sending, to the target sensor, an activation instruction for monitoring the component to be monitored includes:
analyzing the XML parameters, and obtaining monitoring parameters carried by the XML parameters, wherein the monitoring parameters are used for informing the target sensor of monitoring the monitoring frequency and the monitoring category of the part to be monitored;
and sending a starting instruction containing the monitoring parameter to the target sensor.
Optionally, in another embodiment of the above method according to the present application, after said matching the XML parameters with a preset set of sensor objects, the method further includes:
And if the sensor parameters matched with the XML parameters do not exist in the sensor object set, determining that the component to be monitored is not monitored.
According to one aspect of the embodiment of the present application, the method is applied to a server, and includes:
An acquisition module configured to acquire XML parameters of a component to be monitored located in the server, wherein the XML parameters are used for representing sensor parameters meeting the conditions for monitoring the component to be monitored;
The determining module is configured to match the XML parameters with a preset sensor object set, determine target sensors capable of meeting monitoring conditions, and record parameters corresponding to each sensor deployed by the server in the sensor object set;
and the sending module is configured to send a starting instruction for monitoring the component to be monitored to the target sensor.
According to still another aspect of an embodiment of the present application, there is provided an electronic apparatus including:
a memory for storing executable instructions, and
And the display is used for executing the executable instructions with the memory so as to complete the operation of the method of any monitoring component.
According to a further aspect of an embodiment of the present application, there is provided a computer-readable storage medium storing computer-readable instructions that, when executed, perform the operations of the method of any of the above-described monitoring components.
The method and the device can acquire XML parameters of the to-be-monitored component in the server, match the XML parameters with a preset sensor object set, determine target sensors capable of meeting monitoring conditions, record parameters corresponding to each sensor deployed by the server in the sensor object set, and send starting instructions for monitoring the to-be-monitored component to the target sensors. By applying the technical scheme of the application, XML parameters corresponding to each part in the server can be matched with a preset sensor set, so that whether the current server has a sensor meeting the condition of monitoring the part or not can be determined in a targeted manner. If so, it is determined to activate the sensor to monitor the component. Therefore, the problem that the service processing efficiency is affected because the monitoring function can be started only by configuring the corresponding monitoring component for each sensor manually by operation and maintenance personnel in the related technology is avoided.
The technical scheme of the application is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
The application may be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a schematic diagram of a method for monitoring a component according to the present application;
FIG. 2 is a schematic diagram of a system flow of a monitoring device according to the present application;
fig. 3 is a schematic structural diagram of an electronic device with a monitoring component according to the present application;
fig. 4 is a schematic structural diagram of an electronic device with a monitoring component according to the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but are intended to be part of the specification where appropriate.
It should be noted that like reference numerals and letters refer to like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
In addition, the technical solutions of the embodiments of the present application may be combined with each other, but it is necessary to be based on the fact that those skilled in the art can implement the technical solutions, and when the technical solutions are contradictory or cannot be implemented, the combination of the technical solutions should be considered as not existing, and not falling within the scope of protection claimed by the present application.
It should be noted that all directional indicators (such as up, down, left, right, front, and rear are used in the embodiments of the present application) are merely for explaining the relative positional relationship, movement conditions, and the like between the components in a certain specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicators are changed accordingly.
A method for monitoring a component according to an exemplary embodiment of the present application is described below in connection with fig. 1-2. It should be noted that the following application scenarios are only shown for facilitating understanding of the spirit and principles of the present application, and embodiments of the present application are not limited in this respect. Rather, embodiments of the application may be applied to any scenario where applicable.
Furthermore, the application also provides a method, a device, a target terminal and a medium for monitoring the component.
Fig. 1 schematically shows a flow diagram of a method of monitoring a component according to an embodiment of the application. As shown in fig. 1, the method is applied to a server, and includes:
S101, acquiring XML parameters of the to-be-monitored component in the server, wherein the XML parameters are used for representing sensor parameters meeting the conditions of monitoring the to-be-monitored component.
With the continuous development of communication technology, a service platform generally performs corresponding processing on a service through a large-scale computer room with a plurality of servers deployed.
The server typically includes various components, including, for example, a processor, a motherboard, a memory board, a hard disk, a display, and the like.
It can be understood that the sensor is a detection device, can sense the measured information, and can convert the sensed information (such as temperature, blood pressure, humidity, speed and the like) into an electric signal or other information output in a required form according to a certain rule so as to meet the requirements of information transmission, processing, storage, display, recording, control and the like.
The sensor is not particularly limited, and includes, for example, a resistive sensor, a variable frequency sensor, a piezoresistive sensor, a weighing sensor, a physical sensor, a chemical sensor type, and the like.
The sensor is a resistive sensor, which is a device that converts physical quantities, such as displacement, deformation, force, acceleration, humidity, temperature, etc., to be measured into a resistance value. Mainly comprises resistance strain type, piezoresistance type, thermal resistance, thermosensitive, gas-sensitive, humidity-sensitive and other resistance type sensing devices. For the variable frequency sensor, the variable frequency power sensor performs alternating current sampling on input voltage and current signals, and then the sampling value is connected with a digital quantity input secondary instrument through a transmission system such as a cable, an optical fiber and the like, and the digital quantity input secondary instrument performs operation on the sampling value of the voltage and the current.
In one embodiment, the component is a motherboard of a server, which is a circuit board storing electronic circuits. All other components within the server are connected to the motherboard. There are several primary server components on the motherboard, processors (CPUs), chipsets, hard disk drive controllers, expansion slots, memory and ports to support the use of external devices such as keyboards. In addition, the motherboard may contain a network interface, disk controller, and graphics adapter.
Therefore, in order to ensure the running stability of the main board, the application needs to monitor the main board in real time by using the sensor. So as to achieve the purpose of timely informing operation and maintenance personnel to know the operation state of the operation and maintenance personnel.
However, in the prior art, for each component, an operator needs to manually configure a corresponding sensor for the component in advance to monitor, thereby affecting the operation and maintenance efficiency of the operator. Therefore, in order to solve the above-mentioned problem, in the embodiment of the present application, when detecting that a certain component to be monitored exists in the server, XML parameters of the component to be monitored located in the server may be first acquired.
XML is an extensible markup language, among others. Which is a software and hardware independent information transfer tool. In the present application, the data can be transmitted and stored by XML parameters, the focus of which is the content of the data. Hypertext markup language is designed to display data with the focus being on the appearance of the data.
In the embodiment of the application, each component corresponds to a unique XML parameter, for example, the XML parameter can be used for describing hardware information of the component and corresponding sensor parameters supporting monitoring. So that the component can be uniquely determined from the XML parameters later.
In another way, the XML parameters may also include corresponding sensor monitoring parameters. Thereby informing the sensor in which way to monitor the component. The monitoring mode may include monitoring duration, monitoring period, monitoring category and the like.
It should be noted that, the XML parameters of each component in the present application may be manually configured for the XML parameters. It will be appreciated that the type of component and its supported sensor parameters may be subsequently determined by the XML parameters.
S102, matching XML parameters with a preset sensor object set, and determining target sensors capable of meeting monitoring conditions, wherein parameters corresponding to each sensor deployed by a server are recorded in the sensor object set.
In one mode, the sensor object set in the embodiment of the application can include object identifiers corresponding to each sensor deployed by the server. It will be appreciated that the object identification may be the name of the sensor. For example, a temperature sensor identifier, a humidity sensor identifier, a current sensor identifier, a voltage sensor identifier, an in-place sensor identifier, etc. may be used.
In another manner, the sensor object set in the embodiment of the present application may further include sensor configuration parameters corresponding to each sensor deployed by the server. It will be appreciated that the sensor configuration parameter may be a configuration coefficient that characterizes the correspondence of each sensor. For example, the type of parameter it monitors (including, for example, monitoring temperature, monitoring humidity, monitoring current, monitoring voltage, etc.), the power it can monitor, the frequency, etc.
It should be noted that the parameters included in the sensor object set may be manually configured by an operation and maintenance person or automatically generated. As long as it includes parameters corresponding to all sensors deployed by the current server. The application is not limited in this regard.
It will be appreciated that when the set of sensor objects includes object identifiers corresponding to respective sensors, a first sensor object identifier supporting monitoring of the component to be monitored may be determined first according to XML parameters. And matching the first sensor object identifier with the object identifiers corresponding to the sensors included in the sensor object set, so as to determine whether the sensor object set contains the first sensor object identifier. If so, the server is considered to have a sensor supporting monitoring of the component to be monitored, so that the first sensor object can be determined to be the target sensor capable of meeting the monitoring condition.
In the embodiment of the application, the component to be monitored is taken as the CPU for illustration, and the XML parameter corresponding to the component to be monitored can be determined first, then the component is determined to be the CPU by analyzing the XML parameter, and the sensor mark supporting the monitoring of the CPU component is the temperature sensor, and then whether the temperature sensor mark exists in the object marks corresponding to the sensors in the sensor object set is detected. If so, it can be determined that there is a target sensor (i.e., a temperature sensor) in the server that can meet the conditions of the monitor CPU. If not found, it is determined that there is no target sensor in the current server that can meet the conditions of the monitoring CPU, i.e., it is determined that the CPU component is not monitored.
Alternatively, when the sensor object set includes sensor configuration parameters corresponding to each sensor, the first sensor configuration parameters supporting monitoring of the component to be monitored may be determined first according to the XML parameters. And matching the first sensor configuration parameters with the configuration parameters corresponding to the sensors included in the sensor object set, so as to determine whether the sensor object set contains the first sensor configuration parameters. If so, the sensor supporting the monitoring of the component to be monitored exists in the server, so that the sensor corresponding to the first sensor configuration parameter can be determined to be a target sensor capable of meeting the monitoring condition.
Similarly, the component to be monitored is taken as a CPU for illustration, in the embodiment of the application, the XML parameter corresponding to the component to be monitored can be determined first, then the component is determined to be the CPU by analyzing the XML parameter, and the configuration parameter of the first sensor supporting the monitoring of the CPU component is that the monitoring power reaches 1kw, and the monitoring type is the configuration parameter of the monitoring current type. Further, among the sensor configuration parameters corresponding to the respective sensors included in the sensor object set, whether the first sensor configuration parameter exists (i.e., the monitored power reaches 1kw, and the monitored type is the configuration parameter of the monitored current type) is determined. If so, it can be determined that a target sensor capable of meeting the condition of the monitoring CPU exists in the server (namely, a sensor with the configuration parameter of 1kw of monitoring power and the monitoring type of monitoring current type). If not found, it is determined that there is no target sensor in the current server that can meet the conditions of the monitoring CPU, i.e., it is determined that the CPU component is not monitored.
S103, sending a starting instruction for monitoring the part to be monitored to the target sensor.
In one mode, when the target sensor capable of meeting the condition of monitoring the component to be monitored exists in the current server, the method can send a starting instruction for monitoring the component to be monitored to the target sensor. And further the purpose that the starting sensor monitors the part to be monitored is achieved.
The method and the device can acquire XML parameters of the to-be-monitored component in the server, match the XML parameters with a preset sensor object set, determine target sensors capable of meeting monitoring conditions, record parameters corresponding to each sensor deployed by the server in the sensor object set, and send starting instructions for monitoring the to-be-monitored component to the target sensors. By applying the technical scheme of the application, XML parameters corresponding to each part in the server can be matched with a preset sensor set, so that whether the current server has a sensor meeting the condition of monitoring the part or not can be determined in a targeted manner. If so, it is determined to activate the sensor to monitor the component. Therefore, the problem that the service processing efficiency is affected because the monitoring function can be started only by configuring the corresponding monitoring component for each sensor manually by operation and maintenance personnel in the related technology is avoided.
Alternatively, in one possible embodiment of the present application, in S102 (matching the XML parameters with the preset set of sensor objects, determining the target sensor that can meet the monitoring condition), the following steps may be implemented:
analyzing the XML parameters, and determining sensor object identifiers which are carried by the XML parameters and can meet monitoring conditions;
Detecting whether a sensor object identifier is included in a sensor object set;
And if the sensor object identification is included, taking the sensor corresponding to the sensor object identification as a target sensor.
Further, the sensor object set in the embodiment of the present application may include object identifiers corresponding to each sensor deployed by the server. In this way, the sensor object set includes the names of the sensors deployed by the server. For example, the server includes a temperature sensor, a humidity sensor, a current sensor, a voltage sensor, an in-place sensor, and the like.
In one manner, when the sensor object set includes object identifiers corresponding to the respective sensors, a first sensor object identifier supporting monitoring of the component to be monitored may be determined first according to XML parameters. And matching the first sensor object identifier with the object identifiers corresponding to the sensors included in the sensor object set, so as to determine whether the sensor object set contains the first sensor object identifier. If so, the server is considered to have a sensor supporting monitoring of the component to be monitored, so that the first sensor object can be determined to be the target sensor capable of meeting the monitoring condition.
In the embodiment of the application, the component to be monitored is taken as the CPU for illustration, and the XML parameter corresponding to the component to be monitored can be determined first, then the component is determined to be the CPU by analyzing the XML parameter, and the sensor mark supporting the monitoring of the CPU component is the temperature sensor, and then whether the temperature sensor mark exists in the object marks corresponding to the sensors in the sensor object set is detected. If so, it can be determined that there is a target sensor (i.e., a temperature sensor) in the server that can meet the conditions of the monitor CPU. If not found, it is determined that there is no target sensor in the current server that can meet the conditions of the monitoring CPU, i.e., it is determined that the CPU component is not monitored.
Alternatively, in one possible embodiment of the present application, in S102 (matching the XML parameters with the preset set of sensor objects, determining the target sensor that can meet the monitoring condition), the following steps may be implemented:
Analyzing the XML parameters, and determining sensor configuration parameters carried by the XML parameters and capable of meeting monitoring conditions;
Detecting whether a sensor object set comprises sensor configuration parameters or not;
And if the sensor configuration parameters are included, taking the sensor corresponding to the sensor configuration parameters as a target sensor.
Further, the sensor object set in the embodiment of the present application may further include sensor configuration parameters corresponding to each sensor deployed by the server. It will be appreciated that the sensor configuration parameter may be a configuration coefficient that characterizes the correspondence of each sensor. For example, the type of parameter it monitors (including, for example, monitoring temperature, monitoring humidity, monitoring current, monitoring voltage, etc.), the power it can monitor, the frequency, etc.
In the embodiment of the application, the XML parameter corresponding to the component to be monitored can be determined first, then the component is determined to be the main board by analyzing the XML parameter, and the sensor mark supporting the monitoring of the main board component is a temperature sensor, and then whether the temperature sensor mark exists in the object marks corresponding to the sensors in the sensor object set is detected. If so, it can be determined that there is a target sensor (i.e., a temperature sensor) in the server that can meet the condition of the monitor motherboard. If the target sensor is not found, it is determined that the target sensor capable of meeting the condition of the monitoring main board does not exist in the current server, and that the main board component is not monitored is determined.
Alternatively, in one possible embodiment of the present application, after S102 (matching the XML parameters with the preset set of sensor objects, determining the target sensor that can meet the monitoring condition), the following steps may be implemented:
if the number of the target sensors is determined to be a plurality of;
And sending a start command for monitoring the component to be monitored to any one of the plurality of target sensors, or sending a start command for monitoring the component to be monitored to a target sensor in which the load running state value is lower than a preset threshold value.
Further, for example, when there are a plurality of target sensors in the server, which can be used for monitoring the component to be monitored, any one of the sensors may be responsible for monitoring the component to be monitored, or the current performance index of each sensor is detected respectively, so that the corresponding load running state is judged according to the performance index, and then the sensor with the lower load is selected to be responsible for monitoring the component to be monitored.
For example, when it is determined that the target sensor capable of satisfying the monitoring condition is a temperature sensor and it is detected that 3 temperature sensors are disposed in the server, any one of the temperature sensors can be selected to be responsible for monitoring the component to be monitored. Or, the current monitored part number and the running time length of each temperature sensor can be respectively acquired to determine the corresponding load running state. The temperature sensor with the lowest load is selected to be responsible for monitoring the component to be monitored.
Alternatively, in one possible embodiment of the present application, before S101 (acquiring XML parameters of a component to be monitored located in the server), the following steps may be implemented:
Monitoring communication interfaces connected with all components to be monitored in the server;
And if the event that the communication interface is connected with the component to be monitored exists, acquiring XML parameters of the monitoring component.
In one mode, in the process that the server acquires the XML parameters of the monitoring component, whether the condition of the connecting component exists or not can be determined by monitoring each communication interface in real time. For example, when the user pulls out the fault component from the server, the storage module can determine that an event that a communication interface is connected with the component to be monitored exists currently according to feedback of the communication port A communicated with the fault component when the communication port A is subsequently determined to be connected with a new component, and then the XML parameters of the monitoring component can be obtained.
Alternatively, in one possible embodiment of the present application, in S103 (sending an activation instruction for monitoring the component to be monitored to the target sensor), the following steps may be implemented:
analyzing XML parameters, and acquiring monitoring parameters carried by the XML parameters, wherein the monitoring parameters are used for informing a target sensor of monitoring frequency and monitoring category of a part to be monitored;
and sending a starting instruction containing the monitoring parameters to the target sensor.
In one mode, the XML parameters may also include their corresponding sensor monitoring parameters. Thereby informing the sensor in which way to monitor the component. The monitoring mode may include monitoring duration, monitoring period, monitoring category and the like.
Furthermore, when the target sensor capable of meeting the condition of the monitored component exists in the current server, the starting instruction for monitoring the monitored component and the corresponding monitoring parameter can be sent to the target sensor. The purpose of starting the sensor and informing the sensor to monitor the part to be monitored according to the corresponding monitoring parameters is further achieved.
Alternatively, in one possible embodiment of the present application, after S101 (acquiring XML parameters of the component to be monitored located in the server), the following steps may be implemented:
And if the sensor parameters matched with the XML parameters do not exist in the sensor object set, determining that the component to be monitored is not monitored.
Fig. 2 is a schematic flow chart of an overall monitoring component according to an embodiment of the present application, where the flow chart includes:
For the server, the server can monitor the communication interfaces connected with each component to be monitored in the server, and acquire XML parameters of the monitoring component if determining that an event exists in which the communication interfaces are connected with the component to be monitored, and further, two cases are included:
first case:
analyzing the XML parameters, determining sensor object identifiers which are carried by the XML parameters and can meet monitoring conditions, detecting whether the sensor object identifiers are included in a sensor object set, and taking a sensor corresponding to the sensor object identifiers as a target sensor if the sensor object identifiers are included.
Second case:
Analyzing the XML parameters, determining sensor configuration parameters carried by the XML parameters and capable of meeting monitoring conditions, detecting whether the sensor object set comprises the sensor configuration parameters, and taking a sensor corresponding to the sensor configuration parameters as a target sensor if the sensor object set comprises the sensor configuration parameters.
In a further aspect, the server may further parse the XML parameter to obtain a monitoring parameter carried by the XML parameter, where the monitoring parameter is used to inform the target sensor of monitoring the monitoring frequency and the monitoring class of the component to be monitored, and then send a start instruction containing the monitoring parameter to the target sensor. The purpose of starting the sensor and informing the sensor to monitor the part to be monitored according to the corresponding monitoring parameters is further achieved.
In one mode, XML parameters corresponding to each component in the server can be matched with a preset sensor set, so that whether the current server has a sensor meeting the condition of monitoring the component is determined in a targeted manner. If so, it is determined to activate the sensor to monitor the component. Therefore, the problem that the service processing efficiency is affected because the monitoring function can be started only by configuring the corresponding monitoring component for each sensor manually by operation and maintenance personnel in the related technology is avoided.
In another embodiment of the present application, as shown in fig. 3, the present application also provides an apparatus for monitoring a component. The device is applied to a server and comprises:
an obtaining module 201, configured to obtain XML parameters of a component to be monitored located in the server, where the XML parameters are used to characterize sensor parameters that satisfy conditions for monitoring the component to be monitored;
a determining module 202, configured to match the XML parameters with a preset sensor object set, and determine a target sensor capable of meeting a monitoring condition, where parameters corresponding to each sensor deployed by the server are recorded in the sensor object set;
and the sending module 203 is configured to send a starting instruction for monitoring the component to be monitored to the target sensor.
The method and the device can acquire XML parameters of the to-be-monitored component in the server, match the XML parameters with a preset sensor object set, determine target sensors capable of meeting monitoring conditions, record parameters corresponding to each sensor deployed by the server in the sensor object set, and send starting instructions for monitoring the to-be-monitored component to the target sensors. By applying the technical scheme of the application, XML parameters corresponding to each part in the server can be matched with a preset sensor set, so that whether the current server has a sensor meeting the condition of monitoring the part or not can be determined in a targeted manner. If so, it is determined to activate the sensor to monitor the component. Therefore, the problem that the service processing efficiency is affected because the monitoring function can be started only by configuring the corresponding monitoring component for each sensor manually by operation and maintenance personnel in the related technology is avoided.
In another embodiment of the present application, the obtaining module 201 further includes:
An obtaining module 201, configured to parse the XML parameter, and determine a sensor object identifier carried by the XML parameter and capable of meeting the monitoring condition;
an acquisition module 201 configured to detect whether the sensor object identifier is included in the sensor object set;
The obtaining module 201 is configured to take, if included, a sensor corresponding to the sensor object identifier as the target sensor.
In another embodiment of the present application, the obtaining module 201 further includes:
An obtaining module 201, configured to parse the XML parameter, and determine a sensor configuration parameter carried by the XML parameter and capable of meeting the monitoring condition;
An acquisition module 201 configured to detect whether the sensor configuration parameters are included in the sensor object set;
The obtaining module 201 is configured to take, if included, a sensor corresponding to the sensor configuration parameter as the target sensor.
In another embodiment of the present application, the obtaining module 201 further includes:
An acquisition module 201 configured to determine that the number of the target sensors is plural;
an acquisition module 201 configured to send a start-up instruction for monitoring the component to be monitored to any one of the plurality of target sensors, or send a start-up instruction for monitoring the component to be monitored to a target sensor in which a load operation state value is lower than a preset threshold value.
In another embodiment of the present application, the obtaining module 201 further includes:
An acquisition module 201 configured to monitor a communication interface connected to each component to be monitored in the server;
the obtaining module 201 is configured to obtain XML parameters of the component to be monitored if it is determined that there is an event that the communication interface is connected to the component to be monitored.
In another embodiment of the present application, the obtaining module 201 further includes:
the acquiring module 201 is configured to parse the XML parameter, and acquire a monitoring parameter carried by the XML parameter, where the monitoring parameter is used to inform the target sensor of monitoring frequency and monitoring category of the component to be monitored;
An acquisition module 201 is configured to send a start instruction containing the monitoring parameter to the target sensor.
In another embodiment of the present application, the obtaining module 201 further includes:
The obtaining module 201 is configured to determine not to monitor the component to be monitored if it is detected that no sensor parameter matched with the XML parameter exists in the sensor object set.
Fig. 4 is a block diagram of a logic structure of an electronic device, according to an example embodiment. For example, electronic device 300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory comprising instructions executable by an electronic device processor to perform the method of network monitoring described above, the method comprising obtaining XML parameters of a component to be monitored located in the server, wherein the XML parameters are used to characterize sensor parameters that fulfill the conditions for monitoring the component to be monitored, matching the XML parameters with a preset set of sensor objects, determining a target sensor that can fulfill the conditions for monitoring, the set of sensor objects having parameters corresponding to each sensor deployed by the server recorded therein, and sending a start instruction to the target sensor for monitoring the component to be monitored. Optionally, the above instructions may also be executed by a processor of the electronic device to perform the other steps involved in the above-described exemplary embodiments. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In an exemplary embodiment, there is also provided an application/computer program product comprising one or more instructions executable by a processor of an electronic device to perform the above-mentioned method of network monitoring, the method comprising obtaining XML parameters of a component to be monitored located in the server, wherein the XML parameters are used to characterize sensor parameters that fulfill the conditions for monitoring the component to be monitored, matching the XML parameters with a preset set of sensor objects, determining a target sensor capable of fulfilling the monitoring conditions, wherein parameters corresponding to each sensor deployed by the server are recorded in the set of sensor objects, and sending a start instruction for monitoring the component to be monitored to the target sensor. Optionally, the above instructions may also be executed by a processor of the electronic device to perform the other steps involved in the above-described exemplary embodiments.
Fig. 4 is an exemplary diagram of a computer device 300. It will be appreciated by those skilled in the art that the schematic diagram 4 is merely an example of the computer device 300 and is not limiting of the computer device 300, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the computer device 300 may also include input and output devices, network access devices, buses, etc.
The Processor 302 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor 302 may be any conventional processor or the like, the processor 302 being a control center of the computer device 300, with various interfaces and lines connecting the various parts of the overall computer device 300.
The memory 301 may be used to store computer readable instructions and the processor 302 implements the various functions of the computer device 300 by executing or executing the computer readable instructions or modules stored in the memory 301 and invoking data stored in the memory 301. The memory 301 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), etc., and a storage data area that may store data created according to the use of the computer device 300, etc. In addition, the Memory 301 may include a hard disk, memory, a plug-in hard disk, a smart Memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash Memory card (FLASH CARD), at least one magnetic disk storage device, a flash Memory device, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or other non-volatile/volatile storage device.
The modules integrated with computer device 300 may be stored in a computer readable storage medium if implemented as software functional modules and sold or used as a stand-alone product. Based on such understanding, the present invention may implement all or part of the flow of the method of the above-described embodiments, or may be implemented by means of computer readable instructions to instruct related hardware, where the computer readable instructions may be stored in a computer readable storage medium, where the computer readable instructions, when executed by a processor, implement the steps of the method embodiments described above.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (8)

1.一种监控部件的方法,其特征在于,应用于服务器,包括:1. A method for monitoring a component, characterized in that it is applied to a server, comprising: 获取位于所述服务器中的待监控部件的XML参数,其中所述XML参数用于表征满足监控所述待监控部件条件的传感器参数;Acquire XML parameters of the component to be monitored located in the server, wherein the XML parameters are used to characterize sensor parameters that meet the conditions for monitoring the component to be monitored; 将所述XML参数与预设的传感器对象集合相匹配,确定能够满足监控条件的目标传感器,所述传感器对象集合中记录有所述服务器部署的各个传感器对应的参数;其中,The XML parameters are matched with a preset sensor object set to determine a target sensor that can meet the monitoring conditions, wherein the sensor object set records the parameters corresponding to each sensor deployed by the server; wherein, 所述将所述XML参数与预设的传感器对象集合相匹配,确定能够满足监控条件的目标传感器,包括:The step of matching the XML parameter with a preset sensor object set to determine a target sensor that can meet the monitoring condition includes: 解析所述XML参数,确定所述XML参数所携带的能够满足所述监控条件的传感器对象标识;检测所述传感器对象集合中是否包括所述传感器对象标识;若包括,将所述传感器对象标识对应的传感器作为所述目标传感器;和/或,Parsing the XML parameter to determine the sensor object identifier carried by the XML parameter that can meet the monitoring condition; detecting whether the sensor object set includes the sensor object identifier; if included, using the sensor corresponding to the sensor object identifier as the target sensor; and/or, 解析所述XML参数,确定所述XML参数所携带的能够满足所述监控条件所需的传感器配置参数;检测所述传感器对象集合中是否包括所述传感器配置参数;若包括,将所述传感器配置参数对应的传感器作为所述目标传感器;Parsing the XML parameter to determine the sensor configuration parameter carried by the XML parameter that can meet the monitoring condition; detecting whether the sensor object set includes the sensor configuration parameter; if included, taking the sensor corresponding to the sensor configuration parameter as the target sensor; 向所述目标传感器发送用于监控所述待监控部件的启动指令。A start instruction for monitoring the component to be monitored is sent to the target sensor. 2.如权利要求1所述的方法,其特征在于,在所述确定能够满足监控条件的目标传感器之后,还包括:2. The method according to claim 1, characterized in that after determining the target sensor that can meet the monitoring conditions, it also includes: 若确定所述目标传感器的数量为多个;If it is determined that the number of the target sensors is multiple; 向所述多个目标传感器中的任意一个传感器发送用于监控所述待监控部件的启动指令;或,向其中负荷运行状态值低于预设阈值的目标传感器发送用于监控所述待监控部件的启动指令。Sending a start instruction for monitoring the component to be monitored to any one of the multiple target sensors; or sending a start instruction for monitoring the component to be monitored to a target sensor whose load operation status value is lower than a preset threshold. 3.如权利要求1所述的方法,其特征在于,在所述获取位于所述服务器中的待监控部件的XML参数之前,还包括:3. The method according to claim 1, characterized in that before obtaining the XML parameters of the component to be monitored located in the server, it also includes: 监测与所述服务器中各个待监控部件相连的通信接口;Monitoring the communication interface connected to each component to be monitored in the server; 若确定存在有通信接口与待监控部件相连接的事件时,获取所待监控部件的XML参数。If it is determined that there is an event that the communication interface is connected to the component to be monitored, the XML parameters of the component to be monitored are obtained. 4.如权利要求1所述的方法,其特征在于,所述向所述目标传感器发送用于监控所述待监控部件的启动指令,包括:4. The method according to claim 1, wherein the step of sending a start instruction for monitoring the component to be monitored to the target sensor comprises: 解析所述XML参数,获取所述XML参数所携带的监控参数,所述监控参数用于告知所述目标传感器监控所述待监控部件的监控频率以及监控类别;Parsing the XML parameter to obtain the monitoring parameter carried by the XML parameter, wherein the monitoring parameter is used to inform the target sensor of the monitoring frequency and monitoring category of the component to be monitored; 向所述目标传感器发送包含所述监控参数的启动指令。A start instruction including the monitoring parameters is sent to the target sensor. 5.如权利要求1所述的方法,其特征在于,在所述将所述XML参数与预设的传感器对象集合相匹配之后,还包括:5. The method according to claim 1, characterized in that after matching the XML parameters with a preset sensor object set, it further comprises: 若检测到所述传感器对象集合中不存在与所述XML参数相匹配的传感器参数,确定不对所述待监控部件进行监控。If it is detected that no sensor parameter matching the XML parameter exists in the sensor object set, it is determined not to monitor the component to be monitored. 6.一种使用权利要求1-5任一项所述的方法实现的监控部件的装置,其特征在于,应用于服务器,包括:6. A device for monitoring components implemented by the method according to any one of claims 1 to 5, characterized in that it is applied to a server and comprises: 获取模块,被配置为获取位于所述服务器中的待监控部件的XML参数,其中所述XML参数用于表征满足监控所述待监控部件条件的传感器参数;An acquisition module is configured to acquire XML parameters of the component to be monitored located in the server, wherein the XML parameters are used to characterize sensor parameters that meet the conditions for monitoring the component to be monitored; 确定模块,被配置为将所述XML参数与预设的传感器对象集合相匹配,确定能够满足监控条件的目标传感器,所述传感器对象集合中记录有所述服务器部署的各个传感器对应的参数;A determination module is configured to match the XML parameters with a preset sensor object set to determine a target sensor that can meet the monitoring conditions, wherein the sensor object set records parameters corresponding to each sensor deployed by the server; 发送模块,被配置为向所述目标传感器发送用于监控所述待监控部件的启动指令。The sending module is configured to send a start instruction for monitoring the component to be monitored to the target sensor. 7.一种电子设备,其特征在于,包括:7. An electronic device, comprising: 存储器,用于存储可执行指令;以及,a memory for storing executable instructions; and, 处理器,用于与所述存储器执行所述可执行指令从而完成权利要求1-5中任一所述监控部件的方法的操作。A processor is used to execute the executable instructions with the memory to complete the operation of the method of the monitoring component in any one of claims 1-5. 8.一种电子设备,其特征在于,包括:8. An electronic device, comprising: 存储器,用于存储可执行指令;以及,a memory for storing executable instructions; and, 处理器,用于与所述存储器执行所述可执行指令从而完成权利要求1-5中任一所述监控部件的方法的操作。A processor is used to execute the executable instructions with the memory to complete the operation of the method of the monitoring component in any one of claims 1-5.
CN202111445913.0A 2021-11-30 2021-11-30 Method, device, electronic equipment and medium for monitoring component Active CN114116406B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111445913.0A CN114116406B (en) 2021-11-30 2021-11-30 Method, device, electronic equipment and medium for monitoring component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111445913.0A CN114116406B (en) 2021-11-30 2021-11-30 Method, device, electronic equipment and medium for monitoring component

Publications (2)

Publication Number Publication Date
CN114116406A CN114116406A (en) 2022-03-01
CN114116406B true CN114116406B (en) 2025-07-25

Family

ID=80368602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111445913.0A Active CN114116406B (en) 2021-11-30 2021-11-30 Method, device, electronic equipment and medium for monitoring component

Country Status (1)

Country Link
CN (1) CN114116406B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066371A (en) * 2017-04-18 2017-08-18 北京百度网讯科技有限公司 Data monitoring method and device
CN113032333A (en) * 2021-03-19 2021-06-25 山东英信计算机技术有限公司 Sensor file adding method, device and equipment for server monitoring project

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7499951B2 (en) * 2005-11-18 2009-03-03 Oracle International Corporation Capturing data from user selected portions of a business process and transferring captured data to user identified destinations
US8836467B1 (en) * 2010-09-28 2014-09-16 Icontrol Networks, Inc. Method, system and apparatus for automated reporting of account and sensor zone information to a central station
US9226119B2 (en) * 2013-11-20 2015-12-29 Qualcomm Incorporated Using sensor data to provide information for proximally-relevant group communications
CN113573396B (en) * 2020-04-28 2022-11-08 深圳市万普拉斯科技有限公司 SAR value control method and device and mobile terminal
CN113442663A (en) * 2021-06-17 2021-09-28 深圳市元征未来汽车技术有限公司 Matching method of vehicle tire pressure monitoring system and related device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066371A (en) * 2017-04-18 2017-08-18 北京百度网讯科技有限公司 Data monitoring method and device
CN113032333A (en) * 2021-03-19 2021-06-25 山东英信计算机技术有限公司 Sensor file adding method, device and equipment for server monitoring project

Also Published As

Publication number Publication date
CN114116406A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
JP5569051B2 (en) Biological information measuring device, biological information management system, and biological information management method
EP2972976B1 (en) Capture and association of measurement data
US9773135B2 (en) Portable data collection system and method
KR20110121866A (en) Portable devices and methods of processing the measurement data thereof
WO2018201615A1 (en) Testing method and system for use with battery management unit
CN108880897A (en) Acceptance method, device, computer equipment and the storage medium of server
CN117055718B (en) System, method, device, equipment and storage medium for detecting power consumption of server
JP2017134064A (en) Management device for measuring equipment
CN114116406B (en) Method, device, electronic equipment and medium for monitoring component
KR100471589B1 (en) Digital Weight Scale For PC And Method of Managing Weight Therewith
US20110246682A1 (en) Management system of removable device, management method of removable device, and non-transitory readable-by-computer recording medium
CN109361192B (en) A kind of terminal equipment, constant value modification method and device
JP4834562B2 (en) Weighing equipment
CN110275808B (en) System, method and server for detecting ID conflict of transfer card
JP6732147B1 (en) Communication device and data collection system
CN113900890A (en) Server component information collection method, device, equipment and medium
WO2017022458A1 (en) Biological information display apparatus, biological information measuring system, control device, program, and storage medium
CN111078161A (en) Printer simulation method and device, electronic equipment and storage medium
TWI442341B (en) System for analyzing physiological condition using physiological data saved in remote host and method thereof
JP2004024487A (en) Information recording system, information processing system, storage device and measuring instrument
CN117707876A (en) Simulation instrument processing method and system
KR101828443B1 (en) User-Friendly Apparatus for Per-Device Power/Energy Measurement and Managemet Method thereof
CN113533755A (en) Measurement triggering method and device, medical equipment and storage medium
CN114756412A (en) An information processing method, electronic device and computer-readable storage medium
CN117740167A (en) Temperature display method and device, computer equipment and storage medium

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
GR01 Patent grant
GR01 Patent grant