Method and device for monitoring object status
By using monitoring templates and standardized processing technology in security equipment monitoring, the problem that monitoring information of multiple device types cannot be displayed uniformly is solved, and efficient monitoring and management is achieved.
Patent Information
- Application Number
- CN202111569924.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-21
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2041-12-21
AI Technical Summary
Existing security equipment monitoring technology cannot standardize the information of multiple different types of monitoring objects on the same platform, and lacks a unified management language, resulting in inefficient monitoring.
By determining the monitoring template based on the monitoring tasks, recording communication protocols and monitoring indicators, collecting data and performing standardized processing, and analyzing data using preset rules to display monitoring results in a unified page.
It realizes automatic adaptation and unified management of many different types of safety equipment, improves monitoring efficiency, and simplifies operational processes.
Smart Images

Figure CN114253808B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of security management, and in particular to a method and device for monitoring the state of an object. Background Art
[0002] At present, the management of security equipment includes effective monitoring of the status of security equipment, and the existing security equipment monitoring technology mainly revolves around the interface provided by the equipment itself, or is customized for the required functions. Different security equipment monitoring functions need to be customized for different security equipment.
[0003] However, for a security system, there are many different types of monitoring objects involved. Since each type of monitoring object needs to adapt to different monitoring schemes, and different monitoring schemes output different monitoring indicator data, it is impossible to display query information in a standardized manner on the monitoring platform. At the same time, there is no unified management language for unified management when managing and operating various types of monitoring objects. Therefore, there is a problem of low efficiency when monitoring multiple different types of monitoring objects at the same time. Summary of the invention
[0004] In view of the above problems, the present invention provides a method and device for monitoring the state of an object, the main purpose of which is to achieve simultaneous monitoring of multiple different types of monitoring objects to improve monitoring efficiency.
[0005] In order to solve the above technical problems, the present invention proposes the following solutions:
[0006] In a first aspect, the present invention provides a method for monitoring an object state, the method comprising:
[0007] Determine, according to the monitoring task, at least one monitoring template corresponding to the monitored target object, wherein the monitoring template records a communication protocol corresponding to the data collected from the designated target object;
[0008] According to the monitoring indicators in the monitoring template, corresponding indicator data is collected from the target object using the communication protocol;
[0009] Standardize the indicator data corresponding to all target objects in the monitoring task to obtain standardized indicator data;
[0010] The standardized indicator data is analyzed using the preset monitoring rules for each target object, so as to display the monitoring results of the target object status in a unified monitoring page.
[0011] In a second aspect, the present invention further provides a device for monitoring the state of an object, the device comprising:
[0012] An acquisition unit, used to determine, according to the monitoring task, a monitoring template corresponding to at least one monitored target object, wherein the monitoring template records a communication protocol corresponding to the data collected from the designated target object;
[0013] A collection unit, configured to collect corresponding indicator data from the target object using the communication protocol according to the monitoring indicators in the monitoring template;
[0014] A processing unit, used for standardizing the indicator data corresponding to all target objects in the monitoring task to obtain standardized indicator data;
[0015] The analysis unit is used to analyze the standardized indicator data using the preset monitoring rules for each target object, so as to display the monitoring results of the target object status in a unified monitoring page.
[0016] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the object status monitoring method described in the first aspect above.
[0017] In order to achieve the above-mentioned purpose, according to the fourth aspect of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the program, all or part of the steps of the method for monitoring the state of an object as described in the first aspect are implemented.
[0018] By means of the above technical scheme, the object state monitoring method and device provided by the present invention are based on the existing multi-device monitoring system. Since the safety devices have different types, each type of safety device needs to adapt to different monitoring schemes, and the monitoring index data output by different monitoring schemes are different, resulting in the inability to standardize the display of query information on the monitoring platform; at the same time, there is no unified management language for unified management when managing and operating various types of safety devices, so there is a problem of low efficiency when monitoring multiple different types of safety devices at the same time. To this end, the present invention determines at least one monitoring template corresponding to the monitored target object according to the monitoring task, and the monitoring template records the communication protocol corresponding to the data collected from the specified target object; the monitoring target object in the present invention can be adapted to the communication protocol based on the monitoring template, and then according to the monitoring index pre-set in the monitoring template, the corresponding index data is collected from the target object using the adapted communication protocol; then the index data of all the monitored target objects obtained are standardized to obtain standardized index data with a unified data format; and then the standardized index data is analyzed using the monitoring rules preset for each target object, so as to display the monitoring results of the target object state in a unified monitoring page. It can be seen that the present invention can automatically adapt the communication protocol for collecting monitoring data for various types of monitoring objects through the same monitoring platform, and can display the monitoring information on the same monitoring platform, and uniformly manage each monitoring object through a unified management language, which not only improves the efficiency of monitoring, but also facilitates the operation of monitoring personnel.
[0019] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0021] Figure 1 A flow chart of a method for monitoring an object state provided by an embodiment of the present invention is shown;
[0022] Figure 2 A flow chart of another method for monitoring the state of an object provided by an embodiment of the present invention is shown;
[0023] Figure 3A block diagram showing a device for monitoring an object state provided by an embodiment of the present invention;
[0024] Figure 4 A block diagram showing the composition of another device for monitoring the state of an object provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0025] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0026] For the existing security equipment monitoring systems, most of them are independent monitoring systems developed for security equipment with different functions. This means that in a system project integrating multiple security equipment, in order to achieve overall monitoring of all security equipment, it is often necessary to configure monitoring systems corresponding to multiple security equipment at the same time, and multiple monitoring equipment perform simultaneous monitoring, or a single monitoring equipment switches between multiple monitoring systems according to demand, which increases the cost of system monitoring or complicates the monitoring operation. In response to this problem, the inventors came up with the idea of using the same monitoring platform to perform standardized monitoring of different security equipment in a unified monitoring manner.
[0027] To this end, an embodiment of the present invention provides a method for monitoring the state of an object, by which a plurality of different types of monitoring objects can be monitored simultaneously to improve monitoring efficiency. The specific execution steps are as follows: Figure 1 As shown, including:
[0028] 101. Determine, according to a monitoring task, a monitoring template corresponding to at least one monitored target object.
[0029] The monitoring template records the communication protocol corresponding to the data collected from the designated target object.
[0030] Before monitoring the target object, you must first establish a monitoring task. The content of the monitoring task includes the running time, running interval, running monitoring template, etc. The task content can be freely set according to needs. For example, the monitoring template may include the name of the monitoring target object, the name of the adapted communication protocol, the monitoring indicators to be collected, etc. Taking the firewall as an example, the specific content of the monitoring template for "firewall" is as follows:
[0031] "templateName":"Firewall",
[0032] "templateProtocol":"SSH",
[0033] "indicators":[{
[0034] "collectMethod":"command",
[0035] "indicatorName":"CPU usage",
[0036] "command":"ssh$1@$2'cat / proc / cpuinfo'",
[0037] "params":["root","1.1.1.1"],
[0038] "value":"response.label"
[0039] }].
[0040] It should be noted that the communication protocol includes but is not limited to SNMP, JDBC, SSH, JMX and other commonly used communication protocols on the market, so as to support the monitoring function of most devices and objects on the market. The monitoring target object can be a business system, middleware, database, operating system, network and security infrastructure, etc., which is not specifically limited in this embodiment.
[0041] 102. According to the monitoring indicators in the monitoring template, the corresponding indicator data is collected from the target object using the communication protocol.
[0042] When executing the monitoring task, the data collection process is performed based on the name of the monitoring target object pre-set in the monitoring template determined in step 101, the name of the adapted communication protocol, the monitoring indicators that need to be collected, etc. The specific process is: first find the monitoring target object according to the name of the monitoring target object pre-set in the monitoring template; then obtain the communication protocol adapted to the monitoring target object according to the communication protocol pre-set in the monitoring template; then, through the communication protocol, accurately collect the indicator data of the monitoring target object according to the monitoring indicators pre-set in the monitoring template, and then obtain the monitoring indicator data of the monitoring target object.
[0043] 103. Standardize the indicator data corresponding to all target objects in the monitoring task to obtain standardized indicator data.
[0044] According to the established monitoring task, the monitoring task is executed according to step 102 to obtain the indicator data corresponding to all target objects. Since there are many different types of monitoring target objects, such as business systems, middleware, databases, operating systems, networks and security infrastructures, and the indicators to be monitored for different types of monitoring target objects are also different, the data format of the obtained indicator data includes a variety of different formats.
[0045] For example:
[0046]
[0047] Device 2:
[0048] "cpu"->13,"neicun":->24,"disknum"->80j,"loadname":null,"nameorg":22.
[0049] In order to facilitate subsequent data analysis, it is necessary to standardize the indicator data in various data formats. The present invention uses a normalization method to process the indicator data to obtain standardized data with a unified data format. The unified data format can be:
[0050]
[0051] It should be noted that the normalization refers to formatting data from different sources into a unified data format through the configuration of a template, wherein the formatting is to parse different fields into standard fields.
[0052] The formatting is illustrated by example:
[0053]
[0054] 104. Analyze the standardized indicator data using the preset monitoring rules for each target object, so as to display the monitoring results of the target object status in a unified monitoring page.
[0055] Among them, the monitoring rules are to pre-set thresholds, compare the standardized indicator data with the pre-set thresholds, and perform alarm management based on the comparison results. Although the preset monitoring rules for different monitoring indicators of different monitoring target objects are different, the monitoring rules can be set through threshold templates. The threshold template includes monitoring indicators, judgment methods, thresholds and other contents. The contents of the threshold template can be set according to needs. Taking the monitoring indicator "CPU occupancy" as an example, the specific contents of the threshold template are as follows:
[0056] "alarmsThresholds":[{
[0057] "indicators.indicatorName.value":"CPU usage",
[0058] "ComparingConditions":">",
[0059] "thresholdsValue":90
[0060] }].
[0061] According to the above threshold template of "CPU occupancy rate", the indicator name, comparison method (for example: greater than, less than, etc.) and threshold value can be set on the threshold template.
[0062] When the obtained CPU usage indicator data is 100, "100" is compared with the threshold "90", and it is found that 100>90. According to the ">" set in the threshold template, an alarm can be displayed.
[0063] When the obtained CPU usage indicator data is 80, "80" is compared with the threshold value "90", and it is obtained that 80<90. According to the ">" set by the threshold template, no alarm display is performed.
[0064] It should be noted that the warning method may be a prompt message, a sound warning, etc., which is not specifically limited in this embodiment.
[0065] Based on the above Figure 1It can be seen from the implementation of the embodiment that the present invention provides a method for monitoring the state of an object. For multiple different types of monitoring objects, each type of monitoring object needs to be adapted to a different monitoring scheme, and different monitoring schemes output different monitoring indicator data, resulting in the inability to display query information in a standardized manner on the monitoring platform. At the same time, there is no unified management language for unified management when managing and operating various types of monitoring objects. Therefore, there is a problem of low efficiency when monitoring multiple different types of monitoring objects at the same time. The present invention determines at least one monitoring template corresponding to the monitored target object according to the monitoring task, and the monitoring template records the communication protocol corresponding to the data collected from the specified target object; the monitoring target object and the communication protocol in the present invention can be automatically adapted based on the monitoring template, and the present invention includes all existing communication protocols, and by automatically adapting the corresponding communication protocol to the target object based on the monitoring template, different monitoring target objects can communicate, and then according to the monitoring index preset in the monitoring template, the corresponding index data is collected from the target object using the adapted communication protocol; then the index data of all the obtained monitoring target objects are standardized to obtain unified standardized index data in data format, so that subsequent data analysis can be more convenient; then the monitoring rules preset for each target object are used to analyze the standardized index data, so as to display the monitoring results of the target object status in a unified monitoring page. Therefore, the present invention can automatically abstract the adaptation protocol for various types of monitoring objects through a system, and can display query information on the same monitoring platform, and can be uniformly managed through a unified management language, which not only improves the efficiency of monitoring, but also facilitates the operation of operators.
[0066] Furthermore, as a Figure 1 The embodiment shown in the figure is refined and expanded. The embodiment of the present invention also provides another method for monitoring the state of an object, such as Figure 2 As shown, the specific steps are as follows:
[0067] 201. Create a monitoring task.
[0068] Before monitoring the target object, the present invention needs to create a monitoring task, wherein the monitoring task includes the target object to be monitored, the time period to be monitored, and other contents, which are not specifically limited in this embodiment. In order to avoid the problem of incomplete data collection of monitoring indicators when there is a newly added monitoring target object in the monitoring task for which no monitoring template is set. The present invention adopts the step of judging whether there is a monitoring template that has been set for the monitored target object, specifically: judging whether there is a monitoring template that has been set for the monitored target object, if so, updating the monitoring template according to the received communication protocol and monitoring indicators; if not, creating a new monitoring template for the target object according to the received communication protocol and monitoring indicators. Among them, the monitoring template is used to set the communication protocol adapted to the target object, and to set the monitoring indicators for the monitored target object.
[0069] If the monitoring target object already has a monitoring template set, then it can be further determined whether the information pre-set on the monitoring template meets the current monitoring requirements of the corresponding monitoring target object. If it does, the information on the monitoring template is not updated; if it does not, the monitoring template is updated according to the received communication protocol and monitoring indicators. The update can be to modify the parameter value on the monitoring template, or to increase or decrease the items set on the monitoring template, which is not specifically limited in this embodiment.
[0070] If a monitoring template has already been set for the monitored target object, it is not necessary to determine whether the pre-set information on the monitoring template meets the current monitoring requirements of the corresponding monitored target object, but to directly update the monitoring template according to the received communication protocol and monitoring indicators.
[0071] If there is no monitoring template set for the target object to be monitored, then a new monitoring template is created for the target object according to the received communication protocol and monitoring indicator. For example, if the monitoring target object is "firewall", the monitoring indicator is "CPU occupancy", and the communication protocol is "SSH", a monitoring template for the monitoring target object "firewall" can be created according to the pre-set general monitoring template. The content of the general monitoring template is as follows:
[0072] "templateName":"",
[0073] "templateProtocol":"",
[0074] "indicators":[{
[0075] "collectMethod":"command",
[0076] "indicatorName":"",
[0077] "command":"ssh$1@$2'cat / proc / cpuinfo'",
[0078] "params":["root","1.1.1.1"],
[0079] "value":"response.label"
[0080] }].
[0081] 202. Determine, according to the monitoring task, a monitoring template corresponding to at least one monitored target object.
[0082] The monitoring template records the communication protocol corresponding to the data collected from the designated target object.
[0083] This step is combined with the description of step 101 in the above method, and the same contents are not repeated here.
[0084] After creating the monitoring task in step 201, the monitoring task begins to be executed. In order to determine the scope of the monitored target object in the executed monitoring task, the present invention adopts the step of adding a step of judging whether there is at least one target object in the monitoring task when starting to execute the monitoring task, that is, judging whether the target object to be monitored is limited in the monitoring task.
[0085] The result obtained through the above judgment process is: if there is at least one target object in the monitoring task, the corresponding monitoring template is obtained according to the identifier of the target object; the target object and the corresponding monitoring template establish a unique mapping relationship through the identifier, and the specific method of establishing the mapping relationship is not specifically limited.
[0086] The above judgment process yields the following result: if there is no target object for the monitoring task, then the monitoring templates corresponding to all target objects are obtained.
[0087] 203. According to the monitoring indicators in the monitoring template, corresponding indicator data is collected from the target object using the communication protocol.
[0088] This step is combined with the description of step 102 in the above method, and the same contents are not repeated here.
[0089] In order to avoid the situation that the target object and the corresponding communication protocol do not match in the set monitoring template, before collecting the corresponding indicator data from the target object using the communication protocol according to the monitoring indicators in the monitoring template, the present invention further adds a verification step, that is, verifying whether the communication protocol extracted from the monitoring template matches the target object. This can effectively avoid monitoring failures.
[0090] The above matching process yields the following result: if the communication protocol extracted from the monitoring template matches the target object, the corresponding indicator data is collected from the target object using the communication protocol.
[0091] The result obtained through the above matching process is: if the communication protocol extracted from the monitoring template does not match the target object, a new communication protocol is replaced to collect the indicator data of the target object, and a prompt message that the communication protocol in the monitoring template does not match is generated. The prompt message can be in the form of a prompt box, voice prompt, etc., which is not specifically limited in this embodiment.
[0092] It should be noted that the method for matching the communication protocol with the target object can adopt a correspondence table of pre-set communication protocols and their matching target objects, and verify whether the communication protocol extracted from the monitoring template matches the target object based on the correspondence table; this embodiment does not specifically limit this.
[0093] 204. Standardize the indicator data corresponding to all target objects in the monitoring task to obtain standardized indicator data.
[0094] This step is combined with the description of step 103 in the above method, and the same contents are not repeated here.
[0095] According to step 203, the indicator data corresponding to all target objects in the monitoring task are obtained; since the data format of the indicator data is not uniform, it is necessary to standardize the indicator data. The present invention adopts a pre-set data format template to standardize the indicator data. The attribute types in the data format template can be set according to the data characteristics of the indicator data, that is, different data format templates contain attribute combinations corresponding to different indicator data; therefore, each indicator data can be matched to at least one corresponding data format template, and then the most suitable data format template is selected from the matched data format templates (that is, the corresponding data format template is determined according to the indicator data); for example, there are three data format templates that can be matched to the indicator data containing three attributes A, B and C, the first data format template contains A, B and C attributes, the second data format template contains A, B, C and D attributes, and the third data format template contains A, B, C, D and E attributes, then, the indicator data selects the first data format template.
[0096] The present invention then performs data format standardization processing on the indicator data according to the data format template to obtain standardized indicator data.
[0097] For example:
[0098]
[0099]
[0100]
[0101]
[0102] It should be noted that the content and quantity of the data format templates are not specifically limited in this embodiment. For example, the data format template can also be pre-set as an attribute containing all available indicator data, and any indicator data can be standardized using the data format template.
[0103] Furthermore, in another preferred embodiment of the present invention, before analyzing the standardized indicator data using the preset monitoring rules for each target object, a step of determining whether the relevant thresholds contained in the preset monitoring rules are reasonable can be further added, that is, receiving the alarm threshold corresponding to the monitoring indicator for the target object; and determining whether the alarm threshold is reasonable based on the historical monitoring data corresponding to the monitoring indicator. This can effectively avoid incorrect alarm data output due to unreasonable monitoring rules.
[0104] The above judgment process yields the following result: if the alarm threshold corresponding to the target object monitoring indicator is reasonable, the alarm threshold is used to generate the monitoring rule for the target object; please refer to the description of step 104 for the monitoring rule.
[0105] The above judgment process yields a result: if the alarm threshold corresponding to the target object monitoring indicator is unreasonable, an alarm prompt message is generated. The alarm prompt message may be a prompt box, a voice prompt, etc., which is not specifically limited in this embodiment.
[0106] It should be noted that the historical monitoring data corresponding to the monitoring indicator may be the maximum value, minimum value and average value of the monitoring indicator data within a period of time, which is not specifically limited in this embodiment. The period of time may be a time period in units of days, weeks, months, years, etc., which is not specifically limited in this embodiment.
[0107] For example, taking the monitoring indicator "CPU occupancy rate" as an example, the pre-set monitoring rule is to issue an alarm when the indicator data of CPU occupancy rate is greater than 90; the historical monitoring data corresponding to the CPU occupancy rate is set to the average value 86 of the indicator data of CPU occupancy rate collected 7 days before the current date (for example: the previous 7 days, respectively 88, 85, 85, 86, 85, 88, 85); compare the historical monitoring data 86 with the threshold value 90 of the CPU occupancy rate, and it is concluded that 86 < 90, then the threshold setting of the CPU occupancy rate is reasonable, otherwise it is unreasonable.
[0108] 205. Analyze the standardized indicator data using the preset monitoring rules for each target object so as to display the monitoring results of the target object status in a unified monitoring page.
[0109] This step is combined with the description of step 104 in the above method, and the same contents are not repeated here.
[0110] Since the current security monitoring system usually uses different monitoring devices or different monitoring software on the same monitoring device to monitor different monitoring target objects, the data format of the obtained monitoring index data is not uniform. For the index data with non-uniform data format, the display method usually adopted is to use different monitoring software windows on the same monitoring device to display different monitoring index data respectively or to display them on the monitoring platform on different monitoring devices. It can be seen that the current security monitoring system cannot display the monitoring index data uniformly on the same monitoring page on the same monitoring device. However, all the monitoring index data of the present invention are processed by normalization data to obtain standard index data with uniform data format. Therefore, based on the standard index data with uniform data format, the present invention can further construct a monitoring page containing at least one of the target objects, and the monitoring page can display the identification of the monitoring target object, the number of the monitoring target objects, the type of monitoring index, the number of monitoring indexes, and the specific status value of each monitoring index, etc., which is not specifically limited in this embodiment.
[0111] Furthermore, when displaying the monitoring status of the object, there is a need to adjust the current display method. Therefore, the data display structure of the monitoring page can also be adjusted according to actual needs. For example, when the monitoring indicator data requires different data display structures such as comparative display, hierarchical display, and classification display, an adjustment request is issued. When an adjustment request to adjust the monitoring page is received, the data display structure of the monitoring page is adjusted according to the adjustment information in the adjustment request, and the adjustment information includes the identification and quantity of the target object, and the type and quantity of monitoring indicators.
[0112] Based on the above Figure 2It can be seen from the implementation method that the present invention provides a method for monitoring the state of an object. For the case where the monitoring target object lacks a monitoring template, how to determine the scope of the monitoring target object in the monitoring task, the situation where the set monitoring template does not match the target object and the corresponding communication protocol, the monitoring rules are unreasonable, and other problems; For the above problems, the present invention can ensure that the monitoring target object has a set monitoring template by judging whether there is a set monitoring template for the monitored target object, and then creating a monitoring template or updating the monitoring template; then, after creating the monitoring task, judging whether there is at least one target object in the monitoring task, and determining the scope of the monitoring target object in the monitoring task based on the judgment result; then, by further adding a verification step, that is, verifying whether the communication protocol extracted from the monitoring template matches the target object, it can effectively avoid the situation where the target object and the corresponding communication protocol do not match in the set monitoring template, and avoid monitoring failure; then, by further adding a step of judging whether the monitoring rule is reasonable, that is, receiving the alarm threshold corresponding to the monitoring indicator of the target object; judging whether the alarm threshold is reasonable according to the historical monitoring data corresponding to the monitoring indicator. This can effectively avoid the output of incorrect alarm data due to unreasonable monitoring rules; and then use the preset monitoring rules for each target object to analyze the standardized indicator data, so as to display the monitoring results of the target object status in a unified monitoring page. Therefore, the present invention can automatically abstract the adaptation protocol for various types of monitoring objects through a system, and can display query information on the same monitoring platform, and can be uniformly managed through a unified management language, which not only improves the efficiency of monitoring, but also facilitates the operation of operators.
[0113] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a monitoring device for the state of an object, which is used to monitor the state of the object. Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the device comprises:
[0114] An acquisition unit 31 is used to determine, according to the monitoring task, a monitoring template corresponding to at least one monitored target object, wherein the monitoring template records a communication protocol corresponding to the data collected from the designated target object;
[0115] A collection unit 32, configured to collect corresponding indicator data from the target object using the communication protocol according to the monitoring indicators in the monitoring template obtained by the acquisition unit 31;
[0116] A processing unit 33 is used to perform standardization processing on the indicator data corresponding to all target objects in the monitoring task obtained by the collection unit 32 to obtain standardized indicator data;
[0117] The analyzing unit 34 is used to analyze the standardized indicator data obtained by the processing unit 33 by using the monitoring rules preset for each target object, so as to display the monitoring results of the target object status in a unified monitoring page.
[0118] Furthermore, as a response to the above Figure 2 In order to realize the method shown in the figure, the embodiment of the present invention also provides another object state monitoring device for monitoring the above Figure 2 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 4 As shown, the device comprises:
[0119] A judging unit 31 is used to judge whether there is a monitoring template set for the monitored target object, wherein the monitoring template is used to set a communication protocol adapted to the target object and to set a monitoring index for monitoring the target object;
[0120] An updating unit 32, configured to update the monitoring template according to the received communication protocol and monitoring index if there is a monitoring template set for the monitored target object obtained by the judging unit 31;
[0121] A creating unit 33, configured to create a new monitoring template for the target object according to the received communication protocol and monitoring indicators if there is no monitoring template set for the monitored target object obtained by the judging unit 31;
[0122] An acquisition unit 34, configured to determine, according to the monitoring task, a monitoring template corresponding to at least one monitored target object obtained according to the updating unit 32, wherein the monitoring template records a communication protocol corresponding to the data collected from the designated target object;
[0123] A collection unit 35, configured to collect corresponding indicator data from the target object using the communication protocol according to the monitoring indicators in the monitoring template obtained by the acquisition unit 31;
[0124] A processing unit 36 is used to perform standardization processing on the indicator data corresponding to all target objects in the monitoring task obtained by the acquisition unit 32 to obtain standardized indicator data;
[0125] An analysis unit 37, configured to analyze the standardized indicator data obtained by the processing unit 33 using monitoring rules preset for each target object, so as to display the monitoring results of the target object status in a unified monitoring page;
[0126] A construction unit 38, configured to construct a monitoring page containing at least one of the target objects obtained by the acquisition unit 34;
[0127] The adjustment unit 39 is used to adjust the data display structure of the monitoring page according to the adjustment information in the adjustment request when receiving an adjustment request for adjusting the monitoring page obtained according to the construction unit 38, wherein the adjustment information includes the identification and quantity of the target object and the type and quantity of monitoring indicators.
[0128] Furthermore, the acquisition unit 35 includes:
[0129] A detection module 351, used to verify whether the communication protocol extracted from the monitoring template matches the target object;
[0130] A collection module 352, configured to collect corresponding indicator data from the target object using the communication protocol when the communication protocol obtained by the detection module 351 matches the target object;
[0131] The updating module 353 is used to replace the new communication protocol to collect the indicator data of the target object when the communication protocol obtained by the detection module 351 does not match the target object, and generate a prompt message of the communication protocol mismatch in the monitoring template.
[0132] Furthermore, the processing unit 36 includes:
[0133] The acquisition module 361 is used to obtain the indicator data corresponding to all target objects in the monitoring task;
[0134] A matching module 362, configured to determine a corresponding data format template according to the indicator data obtained by the acquisition module 361;
[0135] The processing module 363 is used to perform data format standardization processing on the indicator data according to the data format template obtained by the matching module 362 to obtain standardized indicator data.
[0136] Furthermore, the acquisition unit 34 includes:
[0137] A determination module 341 is used to determine whether there is at least one target object in the monitoring task;
[0138] A first acquisition module 342 is configured to obtain a corresponding monitoring template according to an identifier of the target object if at least one target object exists in the monitoring task obtained by the judgment module 341;
[0139] The second acquisition module 343 is used to acquire monitoring templates corresponding to all target objects if at least one target object does not exist in the monitoring task obtained by the judgment module 341.
[0140] Furthermore, the collection unit 35 also includes:
[0141] A receiving module 354 is used to receive an alarm threshold corresponding to a monitoring indicator of a target object;
[0142] A judgment module 355, configured to judge whether the alarm threshold obtained by the receiving module 354 is reasonable according to the historical monitoring data corresponding to the monitoring indicator;
[0143] A first generating module 356 is used to generate a monitoring rule for the target object by using the alarm threshold value obtained by the judging module 355 if the alarm threshold value is reasonable;
[0144] The second generating module 357 is used to generate an alarm prompt message if the alarm threshold obtained by the judging module 355 is unreasonable.
[0145] Furthermore, an embodiment of the present invention further provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-2 A method for monitoring the state of an object as described in .
[0146] Furthermore, an embodiment of the present invention further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 A method for monitoring the state of an object as described in .
[0147] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0148] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0150] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0151] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0157] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0158] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0159] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0160] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0161] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for monitoring an object state, characterized in that: The method comprises: Determine, according to the monitoring task, at least one monitoring template corresponding to the monitored target object, wherein the monitoring template records a communication protocol corresponding to the data collected from the designated target object; According to the monitoring indicators in the monitoring template, corresponding indicator data is collected from the target object using the communication protocol; Standardizing the indicator data corresponding to all target objects in the monitoring task to obtain standardized indicator data, so as to uniformly manage each target monitoring object through a unified management language; Analyzing the standardized indicator data using the preset monitoring rules for each target object, so as to display the monitoring results of the target object status in a unified monitoring page of the same monitoring platform; The standardization of the indicator data corresponding to all target objects in the monitoring task includes: Obtain the indicator data corresponding to all target objects in the monitoring task; Determine the corresponding data format template according to the indicator data; wherein the attribute types in the data format template are set according to the data characteristics of the indicator data, and different data format templates contain attribute combinations corresponding to different indicator data; each indicator data can be matched to at least one corresponding data format template, and then the most suitable data format template is selected from the matched data format templates; Standardize the data format of the indicator data according to the data format template to obtain standardized indicator data; The method further comprises: Constructing a monitoring page containing at least one of the target objects; When an adjustment request for adjusting the monitoring page is received, the data display structure of the monitoring page is adjusted according to adjustment information in the adjustment request, wherein the adjustment information includes the identifier and quantity of the target object and the type and quantity of monitoring indicators.
2. The method according to claim 1, characterized in that The method comprises: Determine whether there is a monitoring template set for the monitored target object, wherein the monitoring template is used to set a communication protocol adapted to the target object and to set monitoring indicators for monitoring the target object; If so, update the monitoring template according to the received communication protocol and monitoring indicators; If it does not exist, a new monitoring template is created for the target object according to the received communication protocol and monitoring indicators.
3. The method according to claim 1, characterized in that Collecting corresponding indicator data from the target object using the communication protocol includes: Verify whether the communication protocol extracted from the monitoring template matches the target object; If there is a match, the corresponding indicator data is collected from the target object using the communication protocol; If they do not match, a new communication protocol is used to collect the indicator data of the target object, and a prompt message indicating that the communication protocol does not match is generated in the monitoring template.
4. The method according to any one of claims 1 to 3, characterized in that Determining at least one monitoring template corresponding to the monitored target object according to the monitoring task includes: Determining whether there is at least one target object in the monitoring task; If it exists, obtain the corresponding monitoring template according to the identifier of the target object; If it does not exist, get the monitoring templates corresponding to all target objects.
5. The method according to any one of claims 1 to 3, characterized in that: Before analyzing the standardized indicator data using the monitoring rules preset for each target object, the method further includes: Receive the alarm threshold corresponding to the monitoring indicator of the target object; Determine whether the alarm threshold is reasonable based on the historical monitoring data corresponding to the monitoring indicator; If reasonable, using the alarm threshold to generate monitoring rules for the target object; If it is unreasonable, an alarm message will be generated.
6. A monitoring device for an object state, characterized in that: include: An acquisition unit, used to determine, according to the monitoring task, a monitoring template corresponding to at least one monitored target object, wherein the monitoring template records a communication protocol corresponding to the data collected from the designated target object; A collection unit, used to collect corresponding indicator data from the target object using the communication protocol according to the monitoring indicators in the monitoring template; A processing unit, used for standardizing the indicator data corresponding to all target objects in the monitoring task to obtain standardized indicator data, so as to uniformly manage each target monitoring object through a unified management language; An analysis unit, configured to analyze the standardized indicator data using monitoring rules preset for each target object, so as to display the monitoring results of the target object status in a unified monitoring page of the same monitoring platform; The processing unit comprises: The acquisition module is used to obtain the indicator data corresponding to all target objects in the monitoring task; A matching module is used to determine a corresponding data format template according to the indicator data; wherein the attribute types in the data format template are set according to the data characteristics of the indicator data, and different data format templates contain attribute combinations corresponding to different indicator data; each indicator data can be matched to at least one corresponding data format template, and then the most suitable data format template is selected from the matched data format templates; A processing module, used for performing data format standardization processing on the indicator data according to the data format template to obtain standardized indicator data; A construction unit, used to construct a monitoring page containing at least one of the target objects; The adjustment unit is used to adjust the data display structure of the monitoring page according to the adjustment information in the adjustment request when receiving an adjustment request for adjusting the monitoring page, wherein the adjustment information includes the identification and quantity of the target object and the type and quantity of the monitoring indicator.
7. A storage medium comprising a stored program, wherein: When the program is running, the device where the storage medium is located is controlled to execute the monitoring method for the object status as described in any one of claims 1 to 5.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, all or part of the steps of the method for monitoring the state of an object as claimed in any one of claims 1 to 5 are implemented.
