CN114153705A - Data monitoring method and device based on configuration management database - Google Patents

Data monitoring method and device based on configuration management database Download PDF

Info

Publication number
CN114153705A
CN114153705A CN202210123582.7A CN202210123582A CN114153705A CN 114153705 A CN114153705 A CN 114153705A CN 202210123582 A CN202210123582 A CN 202210123582A CN 114153705 A CN114153705 A CN 114153705A
Authority
CN
China
Prior art keywords
data
monitoring
management database
configuration management
registration
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
CN202210123582.7A
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.)
Beijing Renke Interactive Network Technology Co Ltd
Original Assignee
Beijing Renke Interactive Network Technology 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 Beijing Renke Interactive Network Technology Co Ltd filed Critical Beijing Renke Interactive Network Technology Co Ltd
Priority to CN202210123582.7A priority Critical patent/CN114153705A/en
Publication of CN114153705A publication Critical patent/CN114153705A/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/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a data monitoring method and a device based on a configuration management database, wherein the method comprises the following steps: sending a data acquisition request to a configuration management database, and receiving monitoring metadata returned by the configuration management database; sending an information acquisition request to a registration center, and receiving registration information returned by the registration center; and comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to the comparison result so that the monitoring system can automatically acquire data from the registration center for monitoring. The invention registers the monitoring metadata collected based on the configuration management database to the registration center to improve the accuracy and timeliness of data collection and realize the synchronization of the configuration management database and the registration center data, thereby facilitating the subsequent monitoring system to automatically acquire data from the registration center for monitoring and improving the accuracy of data monitoring.

Description

Data monitoring method and device based on configuration management database
Technical Field
The invention relates to the technical field of data monitoring, in particular to a data monitoring method and device based on a configuration management database.
Background
With the continuous development of the information age, IT systems play an increasingly important role in production. In the face of more and more complex services and more diversified user requirements, the continuously expanded IT application needs more and more reasonable modes to ensure that the IT service can be continuously ensured flexibly, conveniently, safely and stably. Therefore, automatic monitoring, safety alarm, centralized alarm and the like are intensively performed on the operation states of a plurality of fields such as networks, systems, safety, applications, transactions and the like, and a large amount of monitoring events generated by a centralized monitoring platform are increasingly emphasized by people.
The currently adopted data monitoring mode needs monitoring personnel and operation and maintenance personnel to manually add services or host computers in a mutual informing mode, and once the monitoring personnel and the operation and maintenance personnel are not in place in communication or encounter the condition that the monitoring personnel miss the adding, the monitoring of some services or host computers is lost, and a large production environment fault is generated.
Disclosure of Invention
The invention provides a data monitoring method and device based on a configuration management database, which are used for solving the defect of poor data monitoring accuracy caused by untimely and missing monitoring metadata acquisition in the prior art, and realizing real-time acquisition of monitoring metadata so as to improve the data monitoring accuracy.
The invention provides a data monitoring method based on a configuration management database, which comprises the following steps: sending a data acquisition request to a configuration management database, and receiving monitoring metadata returned by the configuration management database; sending an information acquisition request to a registration center, and receiving registration information returned by the registration center; and comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to a comparison result so that the monitoring system can automatically acquire data from the registration center for monitoring.
According to the data monitoring method based on the configuration management database provided by the invention, the comparison is carried out based on the monitoring metadata and the registration information, and the data is registered to the registration center according to the comparison result, and the method comprises the following steps: comparing the monitoring metadata with the registration information; based on the fact that any first data exists in the monitoring metadata and the first data does not exist in the registration information, correspondingly registering the first data to the registration center; and correspondingly deleting the second data from the registration information based on the fact that any second data does not exist in the monitoring metadata and the second data exists in the registration information.
According to the data monitoring method based on the configuration management database, the monitoring metadata are obtained by performing service operation on the configuration management database to a server side based on the received user request.
According to the data monitoring method based on the configuration management database, the service operation comprises at least one of an off-hook operation and an on-hook operation.
According to the data monitoring method based on the configuration management database provided by the invention, before the information acquisition request is sent to the registration center, the method comprises the following steps: sending an agent authorization request to the registry; and receiving the authorization authentication information returned by the registration center.
According to the data monitoring method based on the configuration management database, the authorization authentication information is generated after the registration center carries out security authentication based on the proxy authorization request and passes the security authentication.
The invention also provides a data monitoring device based on the configuration management database, which comprises: the data acquisition module is used for sending a data acquisition request to a configuration management database and receiving monitoring metadata returned by the configuration management database; the information acquisition module is used for sending an information acquisition request to a registration center and receiving registration information returned by the registration center; and the data acquisition module is used for comparing the monitoring metadata with the registration information and registering the data to the registration center according to a comparison result so that the monitoring system can automatically acquire the data from the registration center for monitoring.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of the data monitoring method based on the configuration management database.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the configuration management database based data monitoring method as described in any of the above.
The present invention also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the configuration management database-based data monitoring method according to any of the above.
According to the data monitoring method and device based on the configuration management database, the Agent is used for registering the monitoring metadata acquired based on the configuration management database to the registration center, so that the accuracy and timeliness of data acquisition are improved, the synchronization of the configuration management database and the registration center is realized, a subsequent monitoring system can automatically acquire data from the registration center for monitoring, the monitoring metadata automatically discovered by the monitoring system can be ensured to be consistent with the data of the configuration management database in a short time, the risk of data omission is reduced, the monitoring metadata does not need to be corrected manually, and the labor cost is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a data monitoring method based on a configuration management database according to the present invention;
FIG. 2 is a second schematic flowchart of a data monitoring method based on a configuration management database according to the present invention;
FIG. 3 is a third schematic flowchart of a data monitoring method based on a configuration management database according to the present invention;
FIG. 4 is a schematic structural diagram of a data monitoring apparatus based on a configuration management database according to the present invention;
FIG. 5 is a second schematic structural diagram of a data monitoring apparatus based on a configuration management database according to the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 shows a schematic flow chart of a data monitoring method based on a configuration management database according to the present invention, where an execution subject of the method is an Agent server, and the method includes:
s11, sending a data acquisition request to the configuration management database, and receiving monitoring metadata returned by the configuration management database;
s12, sending an information acquisition request to the registration center and receiving registration information returned by the registration center;
and S13, comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to the comparison result, so that the monitoring system can automatically acquire data from the registration center for monitoring.
It should be noted that S1N in this specification does not represent the sequence of the data monitoring method based on the configuration management database, and the data monitoring method based on the configuration management database according to the present invention is specifically described below.
Step S11, sending a data obtaining request to the configuration management database, and receiving the monitoring metadata returned by the configuration management database.
In this embodiment, the monitoring metadata is returned by the configuration data manager based on the data acquisition request. Note that a Configuration Management Database (CMDB) is used for short. Specifically, the Agent sends a data acquisition request to a configuration management database CMDB, the CMDB receives the data acquisition request and returns monitoring metadata, and the Agent receives the monitoring metadata returned by the CMDB. It should be noted that, the Agent collects data of the CMDB to facilitate registering the CMDB in the registry, so as to facilitate real-time collection of monitoring metadata, and facilitate subsequent monitoring of the monitoring metadata collected in real time.
In an optional embodiment, the monitoring metadata is returned by the CMDB after the integrity check is passed by performing the integrity check based on the data acquisition request. Furthermore, the Agent sends a data acquisition request to the CMDB configuration management database, the CMDB receives the data acquisition request, performs integrity check and returns monitoring metadata after passing the integrity check, and the Agent receives the monitoring metadata returned by the CMDB, so that the Agent can acquire the data of the CMDB in real time and improve the security of data acquisition.
Specifically, the CMDB receives the data acquisition request and returns the monitoring metadata, including: receiving a data acquisition request; performing integrity check based on the data acquisition request; and sending the monitoring metadata to the Agent based on passing the integrity check. Additionally, integrity checking includes: checking whether the ip address is positioned in an authorized ip range; and/or checking whether the status port has a miss compared with the preset port.
In an optional embodiment, the monitoring metadata is obtained by performing a service operation on the service side by the CMDB based on the received user request. Wherein the service operation comprises at least one of an off-hook operation and an on-hook operation.
Specifically, before the Agent receives the monitoring metadata returned by the CMDB, the method comprises the following steps: the user side sends a user request to the CMDB; and the CMDB performs hanging point operation and/or picking point operation on the server side based on the received user request. It should be added that the mount point operation is to mount a certain ip node below the service, so as to illustrate that the service has been deployed on the ip node; the clip point operation is to remove a certain ip node from the service to show that the service is not deployed on the ip node.
Step S12, sending an information acquisition request to the registry, and receiving registration information returned by the registry.
In this embodiment, the sequence of step S12 and step S11 is not further limited, that is, before sending a data acquisition request to the CMDB, and receiving monitoring metadata returned by the CMDB, the information acquisition request may be sent to the registry, and registration information returned by the registry may be received; or after sending a data acquisition request to a CMDB and receiving monitoring metadata returned by the CMDB, sending an information acquisition request to a registry and receiving registration information returned by the registry; or sending a data acquisition request to the CMDB and receiving the monitoring metadata returned by the CMDB, and simultaneously sending an information acquisition request to the registry and receiving the registration information returned by the registry.
It should be noted that the registration information is returned by the registry based on the proxy authorization request. Specifically, the Agent sends an information acquisition request to the registry, the registry returns registration information based on the information acquisition request, and the Agent receives the registration information returned by the registry.
It should be noted that, in order to improve the communication security between the Agent and the registry, the Agent needs to acquire the authorization authority of the registry in advance, that is, before sending the information acquisition request to the registry, the Agent includes: sending an agent authorization request to a registry; and receiving the authorization authentication information returned by the registration center. In this embodiment, the authorization authentication information is returned by the registry based on the proxy authorization request; the Agent is authorized by the registration center first, so that the subsequent Agent can conveniently acquire the registration information in the registration center, and the safety of information transmission is improved.
In another optional embodiment, the authorization authentication information is generated after the registry performs security authentication based on the proxy authorization request and passes the security authentication. Specifically, the Agent sends an information acquisition request to the registry, the registry performs security authentication based on the information acquisition request and returns registration information based on passing the security authentication, and the Agent receives the registration information returned by the registry.
It should be noted that, the registration center performs security authentication based on the information acquisition request, and returns registration information based on passing the security authentication, including: receiving an information acquisition request sent by an Agent; performing security authentication based on the information acquisition request; and returning the registration information to the Agent based on passing the security authentication. Further, the security authentication includes: verifying whether the ip address of the Agent is located in an ip white list, wherein the ip white list is preset based on actual use or design requirements and comprises the ip address in a preset range; or, verifying whether the code fingerprint meets a preset fingerprint standard, wherein the code fingerprint is unique data generated based on the code and used for representing the code, such as the MAC address and/or the version number of the Agent and the like.
In an alternative embodiment, the registry may be a Consul registry, or may also be other registries such as Zookeeper or eureka, and the registry is not further limited in this embodiment. In the present embodiment, the cusul is only used as a service registry in the present embodiment, where the cusul is a distributed, highly available, and open source tool used for service registration, service discovery, service isolation, and service configuration.
And step S13, comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to the comparison result, so that the monitoring system can automatically acquire data from the registration center for monitoring.
In this embodiment, comparing the monitoring metadata with the registration information, and registering the registration information with the registry according to the comparison result includes: comparing the monitoring metadata with the registration information; based on the fact that any first data exists in the monitoring metadata and the first data does not exist in the registration information, correspondingly registering the first data to a registration center; and based on the fact that any second data does not exist in the monitoring metadata and the second data exists in the registration information, correspondingly deleting the second data from the registration information. It should be noted that, the Agent registers the monitoring metadata acquired based on the CMDB into the registration center to improve the accuracy and timeliness of data acquisition, and implement the synchronization of the CMDB and the registration center data, so that the subsequent monitoring system can automatically acquire data from the registration center for monitoring, and the monitoring metadata automatically discovered by the monitoring system can be ensured to be consistent with the CMDB data in a short time, thereby reducing the risk of data omission, eliminating the need for manual correction of the monitoring metadata, and reducing the labor cost.
In addition, after the Agent registers in the registration center according to the comparison result, the monitoring system automatically acquires the updated registration update data of the registration center, so that automatic synchronous monitoring is realized.
In an alternative embodiment, the monitoring system may be a Prometheus monitoring system, or may be other monitoring systems, which are not further limited herein. It should be noted that Prometheus is a monitoring system integrating collection, monitoring and alarm, and can manage a monitoring object in a static configuration or service discovery manner specified in a configuration file.
In an alternative embodiment, referring to fig. 2, a method for data monitoring based on a configuration management database includes:
s21, the Agent sends a data acquisition request to the CMDB and receives monitoring metadata returned by the CMDB;
s22, the Agent sends an information acquisition request to the registration center and receives the registration information returned by the registration center;
s23, the Agent compares the monitoring metadata with the registration information and registers in the registration center according to the comparison result;
and S24, the monitoring system automatically acquires data from the registration center in real time for monitoring.
It should be noted that S2N in this specification does not represent the sequence of the data monitoring method based on the configuration management database, and the data monitoring method based on the configuration management database according to the present invention is specifically described below with reference to fig. 3.
And step S21, the Agent sends a data acquisition request to the CMDB and receives monitoring metadata returned by the CMDB.
In this embodiment, the Agent sends a data acquisition request to the CMDB and receives monitoring metadata returned by the CMDB, including: the Agent sends a data acquisition request to the CMDB; the CMDB receives the data acquisition request and returns monitoring metadata, and the Agent receives the monitoring metadata returned by the CMDB.
In an optional embodiment, the Agent sends a data acquisition request to the CMDB and receives monitoring metadata returned by the CMDB, and further includes: the Agent sends a data acquisition request to a CMDB configuration management database, the CMDB receives the data acquisition request, performs integrity check, and returns monitoring metadata after passing the integrity check, and the Agent receives the monitoring metadata returned by the CMDB.
In an alternative embodiment, before the Agent receives the monitoring metadata returned by the CMDB, the method comprises the following steps: the user side sends a user request to the CMDB; and the CMDB performs hanging point operation and/or picking point operation on the server side based on the received user request. It should be added that the mount point operation is to mount a certain ip node below the service, so as to illustrate that the service has been deployed on the ip node; the clip point operation is to remove a certain ip node from the service to show that the service is not deployed on the ip node.
And step S22, the Agent sends an information acquisition request to the registry and receives the registration information returned by the registry.
In this embodiment, the Agent sends an information acquisition request to the registry, and receives registration information returned by the registry, including: the Agent sends an information acquisition request to a registration center; the registration center receives the information acquisition request and returns registration information; and the Agent receives the registration information returned by the registration center.
In an alternative embodiment, in order to improve the communication security between the Agent and the registry, the Agent needs to acquire the authorization authority of the registry in advance, that is, before the Agent sends an information acquisition request to the registry, the method includes: the Agent sends an Agent authorization request to a registration center; the registration center returns authorization authentication information after receiving the proxy authorization request; and the Agent receives the authorization authentication information returned by the registration center. The Agent is authorized by the registration center first, so that the subsequent Agent can conveniently acquire the registration information in the registration center, and the safety of information transmission is improved.
In another optional embodiment, before the Agent sends the information acquisition request to the registry, the method further comprises: the Agent sends an information acquisition request to a registration center; the registration center performs security authentication based on the information acquisition request and returns registration information based on passing the security authentication; and the Agent receives the registration information returned by the registration center.
And step S23, the Agent compares the monitoring metadata with the registration information and registers in the registry according to the comparison result.
In this embodiment, comparing the monitoring metadata with the registration information, and registering the registration information with the registry according to the comparison result includes: the Agent compares the monitoring metadata with the registration information; the Agent correspondingly registers the first data to the registration center based on the fact that any first data exists in the monitoring metadata and the first data does not exist in the registration information; and based on the fact that any second data does not exist in the monitoring metadata and the second data exists in the registration information, correspondingly deleting the second data from the registration information. It should be noted that, the Agent registers the monitoring metadata acquired based on the CMDB into the registration center to improve the accuracy and timeliness of data acquisition, and implement the synchronization of the CMDB and the registration center data, so that the subsequent monitoring system can automatically acquire data from the registration center for monitoring, and the monitoring metadata automatically discovered by the monitoring system can be ensured to be consistent with the CMDB data in a short time, thereby reducing the risk of data omission, eliminating the need for manual correction of the monitoring metadata, and reducing the labor cost.
Step S24, the monitoring system automatically obtains data from the registry in real time for monitoring.
It should be noted that, after the Agent registers in the registry according to the comparison result, the monitoring system automatically obtains the updated registration update data of the registry, thereby implementing automatic synchronous monitoring.
In summary, the embodiment of the invention registers the monitoring metadata acquired based on the CMDB into the registration center through the Agent, so as to improve the accuracy and timeliness of data acquisition, and implement the synchronization of the CMDB and the registration center data, thereby facilitating the subsequent monitoring system to automatically acquire data from the registration center for monitoring, ensuring that the monitoring metadata automatically discovered by the monitoring system is consistent with the CMDB data in a short time, reducing the risk of data omission, eliminating the need of manually correcting the monitoring metadata, and reducing the labor cost.
The following describes the data monitoring device based on the configuration management database according to the present invention, and the data monitoring device based on the configuration management database described below and the data monitoring method based on the configuration management database described above may be referred to correspondingly.
Fig. 4 shows a schematic structural diagram of a data monitoring apparatus based on a configuration management database, which includes:
a data obtaining module 41, configured to send a data obtaining request to a configuration management database, and receive monitoring metadata returned by the configuration management database;
the information acquisition module 42 sends an information acquisition request to the registration center, and receives registration information returned by the registration center;
and the data acquisition module 43 compares the monitoring metadata with the registration information, and registers in the registry according to a comparison result, so that the monitoring system can automatically acquire data from the registry for monitoring.
In this embodiment, the data obtaining module 41 includes: a request sending unit, which sends a data acquisition request to a configuration management database CMDB; and the data receiving unit is used for receiving the monitoring metadata returned by the CMDB. It should be noted that the monitoring metadata is returned by the configuration data management base CMDB based on the data acquisition request.
The information acquisition module 42 includes: an information request sending unit for sending an information acquisition request to a registration center; and the information receiving unit is used for receiving the registration information returned by the registration center.
In an optional embodiment, the information obtaining module 42 further includes: an authorization request sending unit for sending an agent authorization request to the registration center; and the authorization authentication receiving unit is used for receiving the authorization authentication information returned by the registration center.
A data acquisition module 43 comprising: a comparison unit for comparing the monitoring metadata with the registration information; the registration unit is used for correspondingly registering the first data to the registration center based on the fact that any first data exists in the monitoring metadata and the first data does not exist in the registration information; and the deleting unit correspondingly deletes the second data from the registration information based on the fact that any second data does not exist in the monitoring metadata and the second data exists in the registration information. It should be noted that, the Agent registers the monitoring metadata acquired based on the CMDB into the registration center to improve the accuracy and timeliness of data acquisition, and implement the synchronization of the CMDB and the registration center data, so that the subsequent monitoring system can automatically acquire data from the registration center for monitoring, and the monitoring metadata automatically discovered by the monitoring system can be ensured to be consistent with the CMDB data in a short time, thereby reducing the risk of data omission, eliminating the need for manual correction of the monitoring metadata, and reducing the labor cost.
In an alternative embodiment, referring to fig. 5, the data monitoring apparatus based on the configuration management database further includes an Agent, a CMDB, a registry, and a monitoring system, wherein:
the Agent sends a data acquisition request to the CMDB and receives monitoring metadata returned by the CMDB;
the Agent sends an information acquisition request to the registration center and receives registration information returned by the registration center;
the Agent compares the monitoring metadata with the registration information and registers in the registration center according to the comparison result;
the monitoring system automatically acquires data from the registration center in real time for monitoring.
It should be noted that, in this embodiment, the specific structure of the Agent may be as described in the foregoing embodiment of the apparatus, and is not further described herein.
In the present embodiment, the CMDB includes: the request receiving unit is used for receiving a data acquisition request sent by an Agent; and the data returning unit returns the monitoring metadata based on the data acquisition request. In an alternative embodiment, the CMDB further comprises: and the verification unit is used for carrying out integrity verification on the basis of the data acquisition request and sending the monitoring metadata to the Agent by using the data return unit on the basis of passing the integrity verification.
Specifically, the verification unit includes: checking the sub-unit to check whether the ip address is in the authorized ip range; and/or, a verification unit comprising: and checking the subunit to see whether the status port is compared with the preset port and whether omission exists.
In an alternative embodiment, the CMDB further comprises: the receiving unit is used for receiving a user request sent by a user side; and the operation unit is used for performing point hanging operation and/or point picking operation on the server side based on the received user request. It should be added that the mount point operation is to mount a certain ip node below the service, so as to illustrate that the service has been deployed on the ip node; the clip point operation is to remove a certain ip node from the service to show that the service is not deployed on the ip node.
In this embodiment, the registry includes: the information acquisition request receiving unit is used for receiving the information acquisition unit sent by the Agent; and an information returning unit that returns the registration information based on the information acquisition request.
In an optional embodiment, the registry further comprises: the authorization request receiving unit is used for receiving an Agent authorization request sent by the Agent; and the authorization information returning unit returns authorization authentication information based on the proxy authorization request. More specifically, the registry further includes: and the safety authentication unit is used for carrying out safety authentication based on the information acquisition request and returning the authorization authentication information by using the authorization information returning unit based on passing the safety authentication.
The security authentication unit includes: the verification subunit is used for verifying whether the ip address of the Agent is located in an ip white list, wherein the ip white list is preset based on actual use or design requirements, and comprises the ip address in a preset range; or, a security authentication unit comprising: and the authentication subunit verifies whether the code fingerprint meets a preset fingerprint standard, wherein the code fingerprint is unique data which is generated based on the code and is used for representing the code, such as the MAC address and/or the version number of the Agent and the like.
In this embodiment, the monitoring system includes: the automatic data acquisition unit is used for automatically acquiring the updated data of the registration center; and the detection unit is used for monitoring the acquired data.
In summary, the embodiment of the invention registers the monitoring metadata acquired based on the CMDB into the registration center through the Agent, so as to improve the accuracy and timeliness of data acquisition, and implement the synchronization of the CMDB and the registration center data, thereby facilitating the subsequent monitoring system to automatically acquire data from the registration center for monitoring, ensuring that the monitoring metadata automatically discovered by the monitoring system is consistent with the CMDB data in a short time, reducing the risk of data omission, eliminating the need of manually correcting the monitoring metadata, and reducing the labor cost.
Fig. 6 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 6: a processor (processor)61, a communication Interface (communication Interface)62, a memory (memory)63 and a communication bus 64, wherein the processor 61, the communication Interface 62 and the memory 63 complete communication with each other through the communication bus 64. Processor 61 may invoke logic instructions in memory 63 to perform a method of data monitoring based on a configuration management database, the method comprising: sending a data acquisition request to a configuration management database, and receiving monitoring metadata returned by the configuration management database; sending an information acquisition request to a registration center, and receiving registration information returned by the registration center; and comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to the comparison result so that the monitoring system can automatically acquire data from the registration center for monitoring.
Furthermore, the logic instructions in the memory 63 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer readable storage medium, when the computer program is executed by a processor, a computer can execute the method for data monitoring based on a configuration management database provided by the above methods, the method includes: sending a data acquisition request to a management database, and receiving monitoring metadata returned by a configuration management database; sending an information acquisition request to a registration center, and receiving registration information returned by the registration center; and comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to the comparison result so that the monitoring system can automatically acquire data from the registration center for monitoring.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, the computer program, when being executed by a processor, implementing a method for configuration management database-based data monitoring provided by the above methods, the method including: sending a data acquisition request to a configuration management database, and receiving monitoring metadata returned by the configuration management database; sending an information acquisition request to a registration center, and receiving registration information returned by the registration center; and comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to the comparison result so that the monitoring system can automatically acquire data from the registration center for monitoring.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A data monitoring method based on a configuration management database is characterized by comprising the following steps:
sending a data acquisition request to a configuration management database, and receiving monitoring metadata returned by the configuration management database;
sending an information acquisition request to a registration center, and receiving registration information returned by the registration center;
and comparing the monitoring metadata with the registration information, and registering the monitoring metadata with the registration center according to a comparison result so that the monitoring system can automatically acquire data from the registration center for monitoring.
2. The data monitoring method based on the configuration management database according to claim 1, wherein the comparing based on the monitoring metadata and the registration information and registering to the registry according to the comparison result comprises:
comparing the monitoring metadata with the registration information;
based on the fact that any first data exists in the monitoring metadata and the first data does not exist in the registration information, correspondingly registering the first data to the registration center;
and correspondingly deleting the second data from the registration information based on the fact that any second data does not exist in the monitoring metadata and the second data exists in the registration information.
3. The data monitoring method based on the configuration management database according to claim 1, wherein the monitoring metadata is obtained by the configuration management database performing service operation to a server based on a received user request.
4. The configuration management database-based data monitoring method according to claim 3, wherein the service operation comprises at least one of a hook point operation and a hook point operation.
5. The data monitoring method based on the configuration management database according to claim 1, before the sending of the information acquisition request to the registry, comprising:
sending an agent authorization request to the registry;
and receiving the authorization authentication information returned by the registration center.
6. The data monitoring method based on the configuration management database according to claim 5, wherein the authorization authentication information is generated after the registry performs security authentication based on the agent authorization request and passes the security authentication.
7. A data monitoring apparatus based on a configuration management database, comprising:
the data acquisition module is used for sending a data acquisition request to a configuration management database and receiving monitoring metadata returned by the configuration management database;
the information acquisition module is used for sending an information acquisition request to a registration center and receiving registration information returned by the registration center;
and the data acquisition module is used for comparing the monitoring metadata with the registration information and registering the data to the registration center according to a comparison result so that the monitoring system can automatically acquire the data from the registration center for monitoring.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method for configuration management database based data monitoring according to any of claims 1 to 6.
9. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the configuration management database based data monitoring method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, wherein the computer program when executed by a processor implements the steps of the configuration management database based data monitoring method according to any of claims 1 to 6.
CN202210123582.7A 2022-02-10 2022-02-10 Data monitoring method and device based on configuration management database Pending CN114153705A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210123582.7A CN114153705A (en) 2022-02-10 2022-02-10 Data monitoring method and device based on configuration management database

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210123582.7A CN114153705A (en) 2022-02-10 2022-02-10 Data monitoring method and device based on configuration management database

Publications (1)

Publication Number Publication Date
CN114153705A true CN114153705A (en) 2022-03-08

Family

ID=80450236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210123582.7A Pending CN114153705A (en) 2022-02-10 2022-02-10 Data monitoring method and device based on configuration management database

Country Status (1)

Country Link
CN (1) CN114153705A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448777A (en) * 2022-03-14 2022-05-06 平安普惠企业管理有限公司 Monitoring alarm method, device, equipment and storage medium based on data management
CN117194149A (en) * 2023-08-25 2023-12-08 中移互联网有限公司 Monitoring method, device, system, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170689A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 Method and device for configuring information synchronization
CN105761003A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 CMDB-based automatic registration asset system and implementation method thereof
CN107197012A (en) * 2017-05-19 2017-09-22 焦点科技股份有限公司 A kind of service issue and supervisory systems and method based on metadata management system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170689A (en) * 2007-11-22 2008-04-30 中兴通讯股份有限公司 Method and device for configuring information synchronization
CN105761003A (en) * 2016-02-23 2016-07-13 浪潮通用软件有限公司 CMDB-based automatic registration asset system and implementation method thereof
CN107197012A (en) * 2017-05-19 2017-09-22 焦点科技股份有限公司 A kind of service issue and supervisory systems and method based on metadata management system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114448777A (en) * 2022-03-14 2022-05-06 平安普惠企业管理有限公司 Monitoring alarm method, device, equipment and storage medium based on data management
CN114448777B (en) * 2022-03-14 2023-12-01 年华数据科技有限公司 Monitoring alarm method, device, equipment and storage medium based on data management
CN117194149A (en) * 2023-08-25 2023-12-08 中移互联网有限公司 Monitoring method, device, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107395767B (en) Message pushing system and method based on long connection
CN106850746B (en) The method and device of smooth service upgrading
CN114153705A (en) Data monitoring method and device based on configuration management database
US20170163478A1 (en) Method,electronic device and system for updating client configuration in key-value pair database
CN108055157B (en) Service node acquisition method and device
CN109218407B (en) Code management and control method based on log monitoring technology and terminal equipment
CN111538763A (en) Method for determining main node in cluster, electronic equipment and storage medium
CN109246078B (en) Data interaction method and server
CN111353136B (en) Method and device for processing operation request
US8468238B2 (en) Computer product, apparatus and method for generating configuration-information for use in monitoring information technology services
CN106934272B (en) Application information verification method and device
US10776392B2 (en) Apparatus and method to establish a connection between apparatuses while synchronization of connection information thereof is suspended
CN106507300A (en) A kind of method for giving loss terminal for change, device and terminal
CN108900603A (en) A kind of server discovery methods, devices and systems
CN110275793B (en) Detection method and equipment for MongoDB data fragment cluster
CN107465669A (en) The equipment safety partition method and device of a kind of multi-user
CN115499487B (en) Updating method and device of server configuration file, storage medium and equipment
CN116389385A (en) System resource processing method, device, storage medium and equipment
CN114900341A (en) Scanning detection method, device, system, equipment and medium in mixed cloud environment
CN103326892B (en) The operating method and device of web interface
CN111399749A (en) Data processing system and method
CN111478901B (en) Account weak password detection method and device, server and storage medium
CN111163117B (en) Zookeeper-based peer-to-peer scheduling method and device
CN114048098B (en) Monitoring method and device for abnormal service instance
CN112564953B (en) Method, device and equipment for managing remote equipment of office

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220308