CN114253808A - Object state monitoring method and device - Google Patents

Object state monitoring method and device Download PDF

Info

Publication number
CN114253808A
CN114253808A CN202111569924.XA CN202111569924A CN114253808A CN 114253808 A CN114253808 A CN 114253808A CN 202111569924 A CN202111569924 A CN 202111569924A CN 114253808 A CN114253808 A CN 114253808A
Authority
CN
China
Prior art keywords
monitoring
target object
template
index data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111569924.XA
Other languages
Chinese (zh)
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.)
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing 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 Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical Qianxin Technology Group Co Ltd
Priority to CN202111569924.XA priority Critical patent/CN114253808A/en
Publication of CN114253808A publication Critical patent/CN114253808A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method and a device for monitoring object states, relates to the technical field of safety management, and mainly aims to realize simultaneous monitoring of various different types of monitored objects so as to improve monitoring efficiency. The main technical scheme of the invention is as follows: determining a monitoring template corresponding to at least one monitored target object according to the monitoring task, wherein a communication protocol corresponding to the data of the acquired specified target object is recorded in the monitoring template; acquiring corresponding index data from the target object by using the communication protocol according to the monitoring index in the monitoring template; standardizing index data corresponding to all target objects in the monitoring task to obtain standardized index data; and analyzing the standardized index data by utilizing a monitoring rule preset for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page. The invention is used for monitoring the safety state of the object.

Description

Object state monitoring method and device
Technical Field
The invention relates to the technical field of safety management, in particular to a method and a device for monitoring object states.
Background
Currently, the management of the security device includes effective monitoring of the state of the security device, and the existing security device monitoring technology mainly surrounds an interface provided by the device itself, or performs customized development for a required function, and different security device monitoring functions need to be customized for different security devices.
However, for a set of security system, wherein a plurality of different types of monitoring objects are involved, because each type of monitoring object needs to be adapted to different monitoring schemes, and monitoring index data output by different monitoring schemes are different, query information cannot be displayed on a monitoring platform in a standardized manner. Meanwhile, when various types of monitoring objects are managed and operated, unified management is not performed through unified management language, so that the problem of low efficiency exists when various types of monitoring objects are monitored simultaneously.
Disclosure of Invention
In view of the above problems, the present invention provides a method and an apparatus for monitoring object states, and a main objective of the present invention is to achieve simultaneous monitoring of multiple different types of monitored objects, so as to improve monitoring efficiency.
In order to solve the technical problems, the invention provides the following scheme:
in a first aspect, the present invention provides a method for monitoring a state of an object, the method including:
determining a monitoring template corresponding to at least one monitored target object according to the monitoring task, wherein a communication protocol corresponding to the data of the acquired specified target object is recorded in the monitoring template;
acquiring corresponding index data from the target object by using the communication protocol according to the monitoring index in the monitoring template;
standardizing index data corresponding to all target objects in the monitoring task to obtain standardized index data;
and analyzing the standardized index data by utilizing a monitoring rule preset for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page.
In a second aspect, the present invention also provides a monitoring apparatus for the status of an object, the apparatus comprising:
the system comprises an acquisition unit, a monitoring task processing unit and a monitoring task processing unit, wherein the acquisition unit is used for determining a monitoring template corresponding to at least one monitored target object according to the monitoring task, and a communication protocol corresponding to data of a specified target object is acquired and recorded in the monitoring template;
the acquisition unit is used for acquiring corresponding index data from the target object by utilizing the communication protocol according to the monitoring index in the monitoring template;
the processing unit is used for carrying out standardization processing on the index data corresponding to all the target objects in the monitoring task to obtain standardized index data;
and the analysis unit is used for analyzing the standardized index data by utilizing a preset monitoring rule for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page.
In order to achieve the above object, according to a third aspect of the present invention, there is provided a storage medium including a stored program, wherein when the program runs, a device on which the storage medium is located is controlled to execute the monitoring method for the object state of the first aspect.
In order to achieve the above object, according to a fourth aspect of the present invention, there is provided an electronic device, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement all or part of the steps of the monitoring method for object status according to the first aspect.
By means of the technical scheme, the object state monitoring method and the object state monitoring device are based on the fact that in an existing multi-device monitoring system, due to the fact that safety devices are of different types, each type of safety device needs to be adapted to different monitoring schemes, and monitoring index data output by different monitoring schemes are different, and therefore query information cannot be displayed on a monitoring platform in a standardized mode; meanwhile, when various types of safety equipment are managed and operated, unified management is not performed through unified management language, so that the problem of low efficiency exists when various types of safety equipment are monitored simultaneously. Therefore, the method comprises the steps of determining a monitoring template corresponding to at least one monitored target object according to a monitoring task, wherein a communication protocol corresponding to the data of the specified target object is acquired and recorded in the monitoring template; the monitoring target object and the communication protocol in the invention can be adapted based on the monitoring template, and then the corresponding index data is collected from the target object by using the adapted communication protocol according to the preset monitoring index in the monitoring template; standardizing the obtained index data of all the monitored target objects to obtain standardized index data with a uniform data format; and analyzing the standardized index data by utilizing a preset monitoring rule for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page. Therefore, the invention can realize the communication protocol for automatically adapting and acquiring the monitoring data of various different types of monitoring objects through the same monitoring platform, can display the monitoring information on the same monitoring platform, and can uniformly manage the monitoring objects through the uniform management language, thereby not only improving the monitoring efficiency, but also facilitating the operation of monitoring personnel.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart illustrating a method for monitoring an object status according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating another object status monitoring method according to an embodiment of the present invention;
FIG. 3 is a block diagram illustrating an apparatus for monitoring the status of an object according to an embodiment of the present invention;
fig. 4 is a block diagram illustrating another object status monitoring apparatus according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
For the existing safety equipment monitoring system, most of the existing safety equipment monitoring systems are independent monitoring systems developed aiming at safety equipment with different functions, so that in a system project integrated with multiple safety equipment, to realize the overall monitoring of all the safety equipment, the monitoring systems corresponding to the multiple safety equipment are often required to be configured at the same time, and multiple monitoring equipment are used for monitoring at the same time, or a single monitoring equipment is switched among multiple monitoring systems according to requirements, so that the cost of system monitoring is increased or the monitoring operation is complicated. In response to this problem, the inventor thought of standardized monitoring of different safety devices in a uniform monitoring manner using the same monitoring platform.
To this end, an embodiment of the present invention provides a method for monitoring object states, where multiple different types of monitored objects are monitored simultaneously by the method to improve monitoring efficiency, and the specific implementation steps of the method are shown in fig. 1, and include:
101. and determining a monitoring template corresponding to at least one monitored target object according to the monitoring task.
And the monitoring template records a communication protocol corresponding to the data of the acquired specified target object.
Before monitoring a target object, a monitoring task is established, wherein the content of the monitoring task comprises running time, running interval, a running monitoring template and the like, and 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 index to be collected, and the like, and for a firewall, the specific content of the monitoring template for a firewall is as follows:
"templateName": firewall ",
"templateProtocol":"SSH",
"indicators":[{
"collectMethod":"command",
"indictorName": CPU occupancy rate ",
"command":"ssh$1@$2'cat/proc/cpuinfo'",
"params":["root","1.1.1.1"],
"value":"response.label"
}]。
it should be noted that the communication protocol includes, but is not limited to, common communication protocols existing in the market, such as SNMP, JDBC, SSH, JMX, and the like, so as to support the monitoring function of most devices and objects in the market. The monitoring target object may be a service system, middleware, a database, an operating system, a network, a security infrastructure, or the like, and is not specifically limited in this embodiment.
102. And acquiring corresponding index data from the target object by using a communication protocol according to the monitoring index in the monitoring template.
When executing the monitoring task, executing a data acquisition process based on the names of the monitoring target objects, the names of the adapted communication protocols, the monitoring indexes to be acquired and other contents preset in the monitoring template determined in the step 101, wherein the specific process is as follows: firstly, finding the monitoring target object according to the name of the monitoring target object preset in the monitoring template; then, a communication protocol adapted to the monitored target object is obtained according to a communication protocol preset in the monitoring template; and then, carrying out accurate acquisition of index data on the monitored target object according to a preset monitoring index in a monitoring template through the communication protocol, and further obtaining the monitoring index data of the monitored target object.
103. And carrying out standardization processing on the index data corresponding to all target objects in the monitoring task to obtain standardized index data.
And executing the monitoring task according to the step 102 according to the established monitoring task to obtain index data corresponding to all target objects, wherein the target objects to be monitored have different types, such as a service system, middleware, a database, an operating system, a network, safety infrastructure and the like, and the indexes to be monitored for different types of the target objects to be monitored are different, so that the data formats of the obtained index data comprise different formats.
For example, the following steps are carried out:
Figure BDA0003423056130000051
the device 2:
"cpu"->13,"neicun":->24,"disknum"->80j,"loadname":null,"nameorg":22。
in order to facilitate subsequent data analysis, the index data in the different data formats needs to be standardized, and the invention adopts a normalization method to process the index data so as to obtain standardized data with a uniform data format, wherein the uniform data format can be as follows:
Figure BDA0003423056130000061
the normalization refers to formatting data from different sources into a unified data format through the configuration of the template. Wherein, the formatting is to resolve different fields into standard fields.
The formatting illustrates:
Figure BDA0003423056130000062
104. and analyzing the standardized index data by utilizing a monitoring rule preset for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page.
The monitoring rule is that the standardized index data is compared with a preset threshold value through the preset threshold value, and alarm management is carried out according to the comparison result. Although the preset monitoring rules for different monitoring indexes of different monitoring target objects are different, the monitoring rules can be set through a threshold template. The threshold template comprises monitoring indexes, judging modes, thresholds and other contents, and the contents of the threshold template can be specifically set according to needs. Taking the monitoring index "CPU occupancy rate" as an example, the specific contents of the threshold template are as follows:
"alarmsThresholds":[{
indictor name, value, "CPU occupancy",
"ComparingConditions":">",
"thresholdsValue":90
}]。
as can be seen from the threshold template of the CPU occupancy, the index name, the comparison mode (e.g., greater than, less than, etc.), and the threshold may be set on the threshold template.
When the acquired index data of the CPU occupancy is 100, comparing 100 with 90 to obtain 100>90, and performing alarm display according to '>' set by the threshold template.
When the acquired CPU occupancy index data is 80, "80" is compared with a threshold value "90" to obtain 80 < 90, and no alarm display can be performed according to ">" set by the threshold value template.
It should be noted that the alarm mode may be a prompt message, a sound alarm, and the like, and the specific embodiment is not particularly limited.
Based on the implementation manner of the embodiment shown in fig. 1, it can be seen that, for monitoring objects related to multiple different types, because each type of monitoring object needs to be adapted to different monitoring schemes, and monitoring index data output by different monitoring schemes are different, query information cannot be displayed on a monitoring platform in a standardized manner. Meanwhile, when various types of monitoring objects are managed and operated, unified management is not performed through unified management language, so that the problem of low efficiency exists when various types of monitoring objects are monitored simultaneously. The method comprises the steps that at least one monitoring template corresponding to a monitored target object is determined according to a monitoring task, and a communication protocol corresponding to the data of the collected specified target object is recorded in the monitoring template; the monitoring target object and the communication protocol in the invention can be automatically adapted based on the monitoring template, and the invention comprises all the existing communication protocols, different monitoring target objects can be communicated by automatically adapting the corresponding communication protocol to the target object based on the monitoring template, and then the corresponding index data is collected from the target object by using the adapted communication protocol according to the preset monitoring index in the monitoring template; standardizing the obtained index data of all the monitored target objects to obtain uniform standardized index data in a data format, so that subsequent data analysis can be more convenient and faster; and analyzing the standardized index data by utilizing a preset monitoring rule for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page. Therefore, the invention can automatically abstract and adapt protocols to various different types of monitoring objects through a system, can display and query information on the same monitoring platform, and can carry out unified management through a unified management language, thereby not only improving the monitoring efficiency, but also being convenient for operators to operate.
Further, as a refinement and an extension of the embodiment shown in fig. 1, an embodiment of the present invention further provides another object state monitoring method, as shown in fig. 2, which includes the following specific steps:
201. a monitoring task is created.
Before monitoring a target object, a monitoring task needs to be created, where the monitoring task includes a monitored target object, a monitoring time period, and other contents, and the specific embodiment is not particularly limited. The problem that collected monitoring index data are incomplete when a newly-added monitoring target object without a monitoring template exists in a monitoring task is solved. The invention adopts the step of judging whether the set monitoring template exists for the monitored target object, and specifically comprises the following steps: judging whether the monitored target object has a set monitoring template, if so, updating the monitoring template according to the received communication protocol and the monitoring index; and if not, establishing a new monitoring template for the target object according to the received communication protocol and the monitoring index. The monitoring template is used for setting a communication protocol adaptive to the target object and setting a monitoring index for monitoring the target object.
If the monitored target object has the set monitoring template, further judging whether the preset information on the monitoring template meets the current monitoring requirement of the corresponding monitored target object, and if so, not updating the information on the monitoring template; and if the received communication protocol and the monitoring index do not meet the preset requirement, updating the monitoring template according to the received communication protocol and the monitoring index. The updating may be to modify a parameter value on the monitoring template, or may be to increase or decrease a set item on the monitoring template, which is not specifically limited in this embodiment.
If the monitored target object already has the set monitoring template, the monitoring template can be directly updated according to the received communication protocol and the monitoring index without judging whether the preset information on the monitoring template meets the current monitoring requirement of the corresponding monitored target object.
And if the monitored target object does not have the set monitoring template, creating a new monitoring template for the target object according to the received communication protocol and the monitoring index. For example: the monitoring target object is a firewall, the monitoring index is CPU occupancy, the communication protocol is SSH, and a monitoring template aiming at the firewall of the monitoring target object can be created according to a preset general monitoring template. The contents of the universal monitoring template are specifically as follows:
"templateName":"",
"templateProtocol":"",
"indicators":[{
"collectMethod":"command",
"indicatorName":"",
"command":"ssh$1@$2'cat/proc/cpuinfo'",
"params":["root","1.1.1.1"],
"value":"response.label"
}]。
202. and determining a monitoring template corresponding to at least one monitored target object according to the monitoring task.
And the monitoring template records a communication protocol corresponding to the data of the acquired specified target object.
This step is combined with the description of step 101 in the above method, and the same contents are not described herein again.
After the monitoring task is created according to step 201, the monitoring task is started to be executed, and in order to determine the range of the monitoring target object in the executed monitoring task, the present invention adopts the step of adding the step of judging whether at least one target object exists in the monitoring task when the monitoring task is started to be executed, that is, judging whether the target object to be monitored is limited in the monitoring task.
The result is obtained through the judgment process: if the monitoring task has at least one target object, acquiring a corresponding monitoring template according to the identification of the target object; the target object and the corresponding monitoring template establish a unique mapping relation through identification, and the specific method for establishing the mapping relation is not particularly limited.
The result is obtained through the judgment process: and if the monitoring task does not have the target object, acquiring the monitoring templates corresponding to all the target objects.
203. And acquiring corresponding index data from the target object by using the communication protocol according to the monitoring index in the monitoring template.
This step is combined with the description of step 102 in the above method, and the same contents are not described herein again.
In order to avoid the situation that the target object is not matched with the corresponding communication protocol in the set monitoring template, before the corresponding index data is collected from the target object by using the communication protocol according to the monitoring index in the monitoring template, the method further comprises a step of verifying, namely verifying whether the communication protocol extracted from the monitoring template is matched with the target object. Monitoring faults can be effectively avoided.
The result is obtained through the matching process: and if the communication protocol extracted from the monitoring template is matched with the target object, acquiring corresponding index data from the target object by using the communication protocol.
The result is obtained through the matching process: and if the communication protocol extracted from the monitoring template is not matched with the target object, replacing a new communication protocol to acquire index data of the target object and generating prompt information that the communication protocol in the monitoring template is not matched. The prompt mode of the prompt information may be a prompt box, a voice prompt, and the like, and the specific embodiment is not particularly limited.
It should be noted that, the method for matching the communication protocol with the target object may adopt a preset correspondence table of the communication protocol and the target object matched therewith, and verify whether the communication protocol extracted from the monitoring template is matched with the target object based on the correspondence table; the present embodiment is not particularly limited.
204. And carrying out standardization processing on the index data corresponding to all target objects in the monitoring task to obtain standardized index data.
This step is combined with the description of step 103 in the above method, and the same contents are not described herein again.
Acquiring index data corresponding to all target objects in the monitoring task according to the step 203; because the data formats of the index data are not uniform, the index data need to be standardized, the invention adopts a preset data format template to standardize the index data, the attribute types in the data format template can be correspondingly set according to the data characteristics of the index data, that is, different data format templates contain different attribute combinations corresponding to the index data; therefore, each index data can be matched with at least one corresponding data format template, and then the data format template most suitable for the index data is selected from the matched data format templates (namely, the corresponding data format template is determined according to the index data); for example, if index data having three attributes of A, B and C can be matched to three data format templates, the first data format template having A, B and C attributes, the second data format template having A, B, C and D attributes, and the third data format template having A, B, C, D and E attributes, then the index data selects the first data format template.
According to the data format template, the standard processing of the data format is carried out on the index data to obtain the standard index data.
For example, the following steps are carried out:
Figure BDA0003423056130000111
Figure BDA0003423056130000112
Figure BDA0003423056130000113
Figure BDA0003423056130000121
it should be noted that the content and the number of the data format templates are not particularly limited in this embodiment. For example: the data format template can also be preset to be an attribute containing all available index data, and the data format template can be used for standardization of any index data.
Further, in another preferred embodiment of the present invention, before analyzing the standardized index data by using the preset monitoring rule for each target object, a step of determining whether a relevant threshold included in the preset monitoring rule is reasonable or not may be further added, that is, an alarm threshold corresponding to the monitoring index for the target object is received; and judging whether the alarm threshold value is reasonable or not according to the historical monitoring data corresponding to the monitoring index. Therefore, the output alarm data is not correct due to unreasonable monitoring rules.
The result is obtained through the judgment process: if the alarm threshold corresponding to the target object monitoring index is reasonable, generating a monitoring rule of the target object by using the alarm threshold; the monitoring rule is described with reference to step 104.
The result is obtained through the judgment process: and if the alarm threshold corresponding to the target object monitoring index is unreasonable, generating alarm prompt information. The warning prompt information may be a prompt box, a voice prompt, and the like, and the specific embodiment is not particularly limited.
It should be noted that the historical monitoring data corresponding to the monitoring index may be a maximum value, a minimum value, an average value, and the like of the monitoring index data in a period of time, and the specific embodiment is not particularly limited. The period of time may be a time period in units of days, weeks, months, years, etc., and this embodiment is not particularly limited.
For example, taking a monitoring index "CPU occupancy" as an example, the preset monitoring rule is to alarm that index data of the CPU occupancy is greater than 90; the historical monitoring data corresponding to the CPU occupancy is set as an average value 86 of index data of the CPU occupancy collected 7 days before the current date (for example, 88, 85, 86, 85, 88 and 85 are sequentially carried out for the last 7 days); comparing the historical monitoring data 86 with the CPU occupancy threshold value 90 to obtain that 86 is less than 90, the CPU occupancy threshold value is set reasonably, otherwise, the CPU occupancy threshold value is unreasonable.
205. And analyzing the standardized index data by using a monitoring rule preset for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page.
This step is combined with the description of step 104 in the above method, and the same contents are not described herein again.
Because the current safety monitoring system generally adopts different monitoring devices or different monitoring software on the same monitoring device to respectively monitor different monitoring target objects when monitoring the monitoring target objects, the data formats of the obtained monitoring index data are not uniform, and for the index data with the non-uniform data formats, the display mode is generally adopted to respectively display different monitoring software windows on the same monitoring device or display monitoring platforms on different monitoring devices according to different monitoring index data. It can be known that the current security monitoring system cannot perform unified display of monitoring index data on the same monitoring page on the same monitoring device. All the monitoring index data of the present invention are subjected to normalized data processing to obtain standard index data with a uniform data format, so that the present invention can further construct a monitoring page including at least one target object based on the standard index data with the uniform data format, where the monitoring page can show the content of the identifier of the monitoring target object, the number of the monitoring target objects, the type of the monitoring index, the number of the monitoring index, the specific state value of each monitoring index, and the like, and the specific embodiment is not particularly limited.
Further, when the monitoring state of the object is displayed, the requirement for adjusting the current display mode is met, and therefore, the data display structure of the monitoring page can be adjusted according to actual requirements, for example: when monitoring index data need to be compared with different data display structure requirements such as display, hierarchy display, classification display and the like, an adjustment request is sent out, when the 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, and the adjustment information comprises identification and number of target objects and monitoring index types and number.
Based on the implementation manner of fig. 2, it can be seen that the present invention provides a method for monitoring an object state, which is used for determining a range of a monitored target object in a monitoring task when the monitored target object lacks a monitoring template, and solves the problems that the set monitoring template has a mismatch between the target object and a corresponding communication protocol, and a monitoring rule is not reasonable; for the problems, the monitoring template is established or updated by judging whether the set monitoring template exists in the monitored target object, so that the set monitoring template in the monitored target object can be ensured; judging whether at least one target object exists in the monitoring task after the monitoring task is established, and determining the range of the monitoring target object in the monitoring task based on a judgment result; by further adding a verification step, namely verifying whether the communication protocol extracted from the monitoring template is matched with the target object, the situation that the target object is not matched with the corresponding communication protocol in the set monitoring template can be effectively avoided, and monitoring faults are avoided; then, a step of judging whether the monitoring rule is reasonable is further added, namely, an alarm threshold corresponding to the target object monitoring index is received; and judging whether the alarm threshold value is reasonable or not according to the historical monitoring data corresponding to the monitoring index. Therefore, the output alarm data is not correct due to unreasonable monitoring rules can be effectively avoided; and analyzing the standardized index data by utilizing a preset monitoring rule for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page. Therefore, the invention can automatically abstract and adapt protocols to various different types of monitoring objects through a system, can display and query information on the same monitoring platform, and can carry out unified management through a unified management language, thereby not only improving the monitoring efficiency, but also being convenient for operators to operate.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention further provides a device for monitoring an object state, which is used to implement the method shown in fig. 1. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 3, the apparatus includes:
the acquiring unit 31 is configured to determine, according to a monitoring task, at least one monitoring template corresponding to a monitored target object, where a communication protocol corresponding to data of a specified target object is recorded in the monitoring template;
the acquisition unit 32 is configured to acquire corresponding index data from the target object by using the communication protocol according to the monitoring index in the monitoring template acquired by the acquisition unit 31;
the processing unit 33 is configured to perform standardization processing on the index data corresponding to all the target objects in the monitoring task, which is obtained by the acquisition unit 32, to obtain standardized index data;
the analysis unit 34 is configured to analyze the standardized index data obtained by the processing unit 33 by using a preset monitoring rule for each target object, so as to display a monitoring result of the state of the target object in a unified monitoring page.
Further, as an implementation of the method shown in fig. 2, an embodiment of the present invention further provides another object state monitoring device, which is used for implementing the method shown in fig. 2. The embodiment of the apparatus corresponds to the embodiment of the method, and for convenience of reading, details in the embodiment of the apparatus are not repeated one by one, but it should be clear that the apparatus in the embodiment can correspondingly implement all the contents in the embodiment of the method. As shown in fig. 4, the apparatus includes:
a determining unit 31, configured to determine whether a set monitoring template exists in a monitored target object, where the monitoring template is used to set a communication protocol adapted to the target object and set a monitoring index of the monitored target object;
an updating unit 32, configured to update the monitoring template according to the received communication protocol and the monitoring index if the monitoring template exists in the monitored target object obtained by the determining unit 31;
a creating unit 33, configured to create a new monitoring template for the target object according to the received communication protocol and monitoring index if the monitored target object obtained by the determining unit 31 does not have the set monitoring template;
the acquiring unit 34 is configured to determine, according to the monitoring task, at least one monitoring template corresponding to the monitored target object and obtained according to the updating unit 32, where a communication protocol corresponding to data of the specified target object is recorded in the monitoring template;
the acquisition unit 35 is configured to acquire corresponding index data from the target object by using the communication protocol according to the monitoring index in the monitoring template acquired by the acquisition unit 31;
the processing unit 36 is configured to perform standardization processing on the index data corresponding to all target objects in the monitoring task, which is obtained by the acquisition unit 32, to obtain standardized index data;
the analysis unit 37 is configured to analyze the standardized index data obtained by the processing unit 33 by using a preset monitoring rule for each target object, so as to display a monitoring result of a target object state in a unified monitoring page;
a constructing unit 38, configured to construct a monitoring page that includes at least one of the target objects obtained by the obtaining unit 34;
an adjusting unit 39, configured to, when an adjustment request for adjusting the monitoring page obtained according to the building unit 38 is received, adjust a data display structure of the monitoring page according to adjustment information in the adjustment request, where the adjustment information includes an identifier and a number of target objects, and a type and a number of monitoring indexes.
Further, the acquisition unit 35 includes:
the detection module 351 is used for verifying whether the communication protocol extracted from the monitoring template is matched with the target object;
an acquiring module 352, configured to acquire corresponding index data from the target object by using the communication protocol when the communication protocol obtained by the detecting module 351 is matched with the target object;
the updating module 353 is configured to, when the communication protocol obtained by the detecting module 351 is not matched with the target object, replace a new communication protocol to collect index data of the target object, and generate prompt information that the communication protocol in the monitoring template is not matched.
Further, the processing unit 36 includes:
the obtaining module 361 is configured to obtain index data corresponding to all target objects in the monitoring task;
a matching module 362, configured to determine a corresponding data format template according to the index data obtained by the obtaining module 361;
the processing module 363 is configured to perform data format standardization processing on the index data according to the data format template obtained by the matching module 362 to obtain standardized index data.
Further, the acquiring unit 34 includes:
a determining module 341, configured to determine whether at least one target object exists in the monitoring task;
a first obtaining module 342, configured to obtain, according to at least one target object in the monitoring task obtained by the determining module 341, a corresponding monitoring template according to an identifier of the target object;
the second obtaining module 343 is configured to obtain, according to that at least one target object does not exist in the monitoring task obtained by the determining module 341, a monitoring template corresponding to all the target objects.
Further, the acquisition unit 35 further includes:
the receiving module 354 is configured to receive an alarm threshold corresponding to the target object monitoring index;
a determining module 355, configured to determine whether the alarm threshold obtained according to the receiving module 354 is reasonable according to historical monitoring data corresponding to the monitoring index;
a first generating module 356, configured to generate a monitoring rule of the target object by using the alarm threshold value according to the alarm threshold value obtained by the determining module 355 if the alarm threshold value is reasonable;
a second generating module 357, configured to generate an alarm prompt message according to the alarm threshold obtained by the determining module 355, if the alarm threshold is not reasonable.
Further, an embodiment of the present invention further provides a processor, where the processor is configured to execute a program, where the program executes the method for monitoring the object state described in fig. 1 to 2 when running.
Further, an embodiment of the present invention further provides a storage medium, where the storage medium is used to store a computer program, where the computer program controls, when running, a device in which the storage medium is located to execute the object state monitoring method described in fig. 1-2.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, 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 disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for monitoring the status of an object, the method comprising:
determining a monitoring template corresponding to at least one monitored target object according to the monitoring task, wherein a communication protocol corresponding to the data of the acquired specified target object is recorded in the monitoring template;
acquiring corresponding index data from the target object by using the communication protocol according to the monitoring index in the monitoring template;
standardizing index data corresponding to all target objects in the monitoring task to obtain standardized index data;
and analyzing the standardized index data by utilizing a monitoring rule preset for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page.
2. The method according to claim 1, characterized in that it comprises:
judging whether a set monitoring template exists in a monitored target object, wherein the monitoring template is used for setting a communication protocol adapted to the target object and setting a monitoring index of the monitored target object;
if yes, updating the monitoring template according to the received communication protocol and the monitoring index;
and if not, establishing a new monitoring template for the target object according to the received communication protocol and the monitoring index.
3. The method of claim 1, wherein collecting corresponding target data from the target object using the communication protocol comprises:
verifying whether the communication protocol extracted from the monitoring template is matched with the target object;
if the target object is matched with the target object, acquiring corresponding index data from the target object by using the communication protocol;
and if not, replacing a new communication protocol to acquire the index data of the target object and generating prompt information that the communication protocols in the monitoring template are not matched.
4. The method according to claim 1, wherein the step of normalizing the index data corresponding to all target objects in the monitoring task comprises:
acquiring index data corresponding to all target objects in the monitoring task;
determining a corresponding data format template according to the index data;
and carrying out data format standardization processing on the index data according to the data format template to obtain standardized index data.
5. The method according to any one of claims 1-4, wherein determining a monitoring template corresponding to at least one monitored target object according to the monitoring task comprises:
judging whether at least one target object exists in the monitoring task;
if yes, acquiring a corresponding monitoring template according to the identification of the target object;
and if not, acquiring the monitoring templates corresponding to all the target objects.
6. The method according to any one of claims 1 to 4, wherein before analyzing the normalized index data using a monitoring rule preset for each target object, the method further comprises:
receiving an alarm threshold corresponding to a target object monitoring index;
judging whether the alarm threshold value is reasonable or not according to historical monitoring data corresponding to the monitoring index;
if the target object is reasonable, generating a monitoring rule of the target object by using the alarm threshold;
and if the number is not reasonable, generating alarm prompt information.
7. The method of claim 1, further comprising:
constructing a monitoring page containing at least one target object;
when an adjustment request for adjusting the monitoring page is received, adjusting the data display structure of the monitoring page according to adjustment information in the adjustment request, wherein the adjustment information comprises the identification and the number of target objects and the type and the number of monitoring indexes.
8. A monitoring device for the condition of an object, comprising:
the system comprises an acquisition unit, a monitoring task processing unit and a monitoring task processing unit, wherein the acquisition unit is used for determining a monitoring template corresponding to at least one monitored target object according to the monitoring task, and a communication protocol corresponding to data of a specified target object is acquired and recorded in the monitoring template;
the acquisition unit is used for acquiring corresponding index data from the target object by utilizing the communication protocol according to the monitoring index in the monitoring template;
the processing unit is used for carrying out standardization processing on the index data corresponding to all the target objects in the monitoring task to obtain standardized index data;
and the analysis unit is used for analyzing the standardized index data by utilizing a preset monitoring rule for each target object so as to display the monitoring result of the state of the target object in a unified monitoring page.
9. A storage medium comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform the monitoring method for the object status according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements all or part of the steps of the method for monitoring the status of an object according to any one of claims 1 to 7 when executing the program.
CN202111569924.XA 2021-12-21 2021-12-21 Object state monitoring method and device Pending CN114253808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111569924.XA CN114253808A (en) 2021-12-21 2021-12-21 Object state monitoring method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111569924.XA CN114253808A (en) 2021-12-21 2021-12-21 Object state monitoring method and device

Publications (1)

Publication Number Publication Date
CN114253808A true CN114253808A (en) 2022-03-29

Family

ID=80793658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111569924.XA Pending CN114253808A (en) 2021-12-21 2021-12-21 Object state monitoring method and device

Country Status (1)

Country Link
CN (1) CN114253808A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499336A (en) * 2022-08-19 2022-12-20 恒丰银行股份有限公司 Method, equipment and medium for monitoring full life cycle of application system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331354A (en) * 2014-11-20 2015-02-04 普华基础软件股份有限公司 Real-time comprehensive monitoring method for cloud computing
CN107608862A (en) * 2017-10-13 2018-01-19 众安信息技术服务有限公司 Monitoring alarm method, monitoring alarm device and computer-readable recording medium
CN108932184A (en) * 2018-06-21 2018-12-04 新华三云计算技术有限公司 monitoring device and method
CN109343993A (en) * 2018-09-28 2019-02-15 郑州云海信息技术有限公司 A kind of error message processing method and processing device of cloud platform
CN109408340A (en) * 2018-11-06 2019-03-01 云宏信息科技股份有限公司 Store monitoring method, the storage medium of equipment
CN113568811A (en) * 2021-07-28 2021-10-29 中国南方电网有限责任公司 Distributed safety monitoring data processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331354A (en) * 2014-11-20 2015-02-04 普华基础软件股份有限公司 Real-time comprehensive monitoring method for cloud computing
CN107608862A (en) * 2017-10-13 2018-01-19 众安信息技术服务有限公司 Monitoring alarm method, monitoring alarm device and computer-readable recording medium
CN108932184A (en) * 2018-06-21 2018-12-04 新华三云计算技术有限公司 monitoring device and method
CN109343993A (en) * 2018-09-28 2019-02-15 郑州云海信息技术有限公司 A kind of error message processing method and processing device of cloud platform
CN109408340A (en) * 2018-11-06 2019-03-01 云宏信息科技股份有限公司 Store monitoring method, the storage medium of equipment
CN113568811A (en) * 2021-07-28 2021-10-29 中国南方电网有限责任公司 Distributed safety monitoring data processing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115499336A (en) * 2022-08-19 2022-12-20 恒丰银行股份有限公司 Method, equipment and medium for monitoring full life cycle of application system

Similar Documents

Publication Publication Date Title
CN108494622A (en) Monitoring rules configuration method, device and server
CN109934268B (en) Abnormal transaction detection method and system
CN110932918B (en) Log data acquisition method and device and storage medium
CN110912782B (en) Data acquisition method, device and storage medium
WO2023272850A1 (en) Decision tree-based product matching method, apparatus and device, and storage medium
CN115086148B (en) Optical network alarm processing method, system, equipment and storage medium
US11897527B2 (en) Automated positive train control event data extraction and analysis engine and method therefor
CN114253808A (en) Object state monitoring method and device
CN114238474A (en) Data processing method, device and equipment based on drainage system and storage medium
CN112634025A (en) Wind control rule generation method, device, equipment and computer readable storage medium
CN114168610B (en) Distributed storage and query method and system based on line sequence division
CN113706739B (en) Remote fault diagnosis processing method, platform and system
CN114070737B (en) Method and device for checking configuration data of equipment, storage medium and electronic equipment
CN116233164A (en) Method, apparatus, storage medium and processor for collecting device data
CN113608981B (en) Time sequence database test method and device, computer equipment and storage medium
CN112632132A (en) Method, device and equipment for processing abnormal import data
CN109324951A (en) The acquisition methods and device of hard disk information in server
CN113609162B (en) Query method and device for operation records, server and storage medium
CN115473343B (en) Intelligent gateway multi-master-station parallel access test method
CN111901307B (en) Encrypted traffic identification method, device, equipment and medium
CN111614749B (en) Data transmission method, data transmission device, computer equipment and storage medium
JP6707215B1 (en) Engineering tools, learning devices, and data acquisition systems
WO2023230902A1 (en) Human-machine interaction method and apparatus, electronic device, and storage medium
CN112565015B (en) Internet of things communication method and device, computer equipment and storage medium
CN112101926B (en) Intelligent payment method and system for patent annual fee

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
CB02 Change of applicant information

Address after: 100032 NO.332, 3rd floor, Building 102, 28 xinjiekouwai street, Xicheng District, Beijing

Applicant after: QAX Technology Group Inc.

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Address before: 100032 NO.332, 3rd floor, Building 102, 28 xinjiekouwai street, Xicheng District, Beijing

Applicant before: QAX Technology Group Inc.

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

CB02 Change of applicant information