CN112416698A - Monitoring system expansion method and device, storage medium and electronic equipment - Google Patents

Monitoring system expansion method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112416698A
CN112416698A CN201910780830.3A CN201910780830A CN112416698A CN 112416698 A CN112416698 A CN 112416698A CN 201910780830 A CN201910780830 A CN 201910780830A CN 112416698 A CN112416698 A CN 112416698A
Authority
CN
China
Prior art keywords
monitoring
plug
configuration parameter
parameter information
target
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.)
Granted
Application number
CN201910780830.3A
Other languages
Chinese (zh)
Other versions
CN112416698B (en
Inventor
付正全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Zhenshi Information Technology Co Ltd
Original Assignee
Beijing Jingdong Zhenshi Information 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 Jingdong Zhenshi Information Technology Co Ltd filed Critical Beijing Jingdong Zhenshi Information Technology Co Ltd
Priority to CN201910780830.3A priority Critical patent/CN112416698B/en
Publication of CN112416698A publication Critical patent/CN112416698A/en
Application granted granted Critical
Publication of CN112416698B publication Critical patent/CN112416698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to an extension method and device of a monitoring system, a computer storage medium and electronic equipment, and belongs to the technical field of computers. The extension method of the monitoring system comprises the following steps: acquiring configuration parameter information of a target monitoring plug-in according to a monitoring item to be expanded; acquiring storage position information of the target monitoring plug-in a preset plug-in warehouse according to the configuration parameter information; setting a proxy object for a monitored terminal, and sending the storage position information to the proxy object so as to obtain the target monitoring plug-in through the proxy object according to the storage position information; and receiving and processing the monitoring data acquired by the target monitoring plug-in to realize the extension of the monitoring system. The invention can realize automatic dynamic expansion of the monitoring system and improve the working efficiency of the monitoring system.

Description

Monitoring system expansion method and device, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for extending a monitoring system, a computer storage medium, and an electronic device.
Background
In order to ensure the working efficiency of enterprises, the working state of each machine can be monitored in real time. Different monitoring items in the monitoring system have different monitoring functions, so that the monitoring items in the monitoring system are expanded, and different function requirements on different occasions can be met.
In the prior art, extension of a monitoring project in a monitoring system is generally realized by reserving a development interface in the monitoring system, directly invading the monitoring system to modify codes, or redeveloping a monitoring plug-in.
However, the extension provided by the prior art may result in inefficient operation of the monitoring system.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
The invention aims to provide an extension method and device of a monitoring system, a computer readable storage medium and electronic equipment, and further to overcome the problem of low working efficiency of the monitoring system caused by the extension mode provided by the prior art at least to a certain extent.
Additional features and advantages of the invention will be set forth in the detailed description which follows, or may be learned by practice of the invention.
According to a first aspect of the present invention, there is provided an extension method of a monitoring system, including:
acquiring storage position information of the target monitoring plug-in a preset plug-in warehouse according to the configuration parameter information;
setting a proxy object for a monitored terminal, and sending the storage position information to the proxy object so as to obtain the target monitoring plug-in through the proxy object according to the storage position information;
and receiving and processing the monitoring data acquired by the target monitoring plug-in to realize the extension of the monitoring system.
In an exemplary embodiment of the present invention, acquiring configuration parameter information of a target monitoring plugin according to a monitoring item to be extended includes:
and acquiring configuration parameter information of the target monitoring plug-in the human-computer interaction interface.
In an exemplary embodiment of the present invention, acquiring, according to the configuration parameter information, storage location information of the target monitoring plugin in a preset plugin warehouse includes:
acquiring a monitoring script of the configuration parameter information;
checking whether the output of the monitoring script conforms to a specified format;
and if the output of the monitoring script conforms to the specified format, acquiring the storage position information of the target monitoring plug-in a preset plug-in warehouse according to the configuration parameter information.
In an exemplary embodiment of the invention, the monitoring plug-in repository is a local storage or a remote storage.
In an exemplary embodiment of the present invention, setting a proxy object for a monitored terminal, and sending the storage location information to the proxy object, includes:
responding to the received connection request sent by the proxy object, and sending the storage position information to the proxy object.
In an exemplary embodiment of the present invention, acquiring, by the proxy object, the target monitoring plug-in according to the storage location information includes:
sending configuration parameter information of the target monitoring plug-in to the proxy object so as to judge whether the target monitoring plug-in exists in the monitored terminal or not according to the configuration parameter information by the proxy object;
and if the target monitoring plug-in does not exist in the monitored terminal, acquiring the target monitoring plug-in according to the storage position information through the proxy object.
In an exemplary embodiment of the present invention, receiving and processing the monitoring data collected by the target monitoring plug-in to implement extension of the monitoring system includes:
receiving monitoring data of the monitoring item to be expanded, which is acquired by the target monitoring plug-in, and storing the monitoring data in a queue;
processing the monitoring data in the queue;
and displaying the monitoring data.
According to a second aspect of the present invention, there is provided an extension device of a monitoring system, comprising:
the configuration parameter information acquisition module is used for acquiring configuration parameter information of a monitoring project to be expanded;
the target monitoring plug-in storage position information acquisition module is used for acquiring the storage position information of the target monitoring plug-in according to the configuration parameter information of the monitoring item to be expanded;
the proxy object setting module is used for sending the storage position information of the target monitoring plug-in to a proxy object so that the monitored terminal can acquire the target monitoring plug-in according to the storage position information;
and the monitoring data processing module is used for receiving and processing the monitoring data acquired by the target monitoring plug-in.
According to a third aspect of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the monitoring system extension method as described in the first aspect of the embodiments above.
According to a fourth aspect of embodiments of the present invention, there is provided an electronic apparatus, including: a processor; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of extending a monitoring system as described in the first aspect of the embodiments above.
As can be seen from the foregoing technical solutions, the extension method and apparatus for a monitoring system, and the computer-readable storage medium and the electronic device for implementing the extension method for a monitoring system in the exemplary embodiment of the present invention have at least the following advantages and beneficial effects:
in the technical solutions provided in some exemplary embodiments of the present invention, based on the acquired configuration parameter information of the monitoring item to be expanded and the storage location information of the target monitoring plug-in, the proxy object arranged in the monitored terminal can acquire the target monitoring plug-in according to the storage location information, and automatically acquire monitoring data by using the target monitoring plug-in according to the configuration parameter information, thereby implementing automatic expansion of the monitoring system. On one hand, the code is not required to be modified by invading the original monitoring system, so that the expansion mode of the monitoring system provided by the invention is safer; on the other hand, after the expansion is finished, the original monitoring system does not need to be restarted, and the configuration file does not need to be modified manually in the background of the monitored terminal, so that the expansion mode of the monitoring system provided by the invention can improve the working efficiency of the expanded monitoring system.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic diagram illustrating an exemplary system architecture to which the method and apparatus for expanding a monitoring system according to an embodiment of the present invention may be applied;
FIG. 2 illustrates a flow chart of an expansion method of a monitoring system in an exemplary embodiment of the invention;
FIG. 3 illustrates an interaction flow diagram in a monitoring system expansion method in an exemplary embodiment of the invention;
FIG. 4 illustrates a detailed flow chart of a monitoring system expansion method in an exemplary embodiment of the invention;
FIG. 5 illustrates a block diagram of a monitoring system expansion device in an exemplary embodiment of the invention;
FIG. 6 shows a schematic diagram of a structure of a computer storage medium in an exemplary embodiment of the invention;
fig. 7 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to provide a thorough understanding of embodiments of the invention. One skilled in the relevant art will recognize, however, that the invention may be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the invention.
The terms "a," "an," "the," and "said" are used in this specification to denote the presence of one or more elements/components/parts/etc.; the terms "comprising" and "having" are intended to be inclusive and mean that there may be additional elements/components/etc. other than the listed elements/components/etc.
Furthermore, the drawings are merely schematic illustrations of the invention and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities.
Fig. 1 is a schematic diagram illustrating a system architecture of an exemplary application environment in which the method and apparatus for expanding a monitoring system according to an exemplary embodiment of the present invention can be applied.
As shown in fig. 1, the system architecture 100 may include multiple ones of the mobile terminals 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the mobile terminals 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wireless communication links and the like.
It should be understood that the number of mobile terminals, networks, and servers in fig. 1 is merely illustrative. There may be any number of mobile terminals, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
The mobile terminals 101, 102, 103 may be various electronic devices having a processor including, but not limited to, smart phones, tablet computers, portable computers, and the like. The server 105 may be a server that provides various services. For example, the mobile terminals 101, 102, and 103 may obtain the target monitoring plug-in according to the storage location information of the target monitoring plug-in through the processor, collect monitoring data by using the target monitoring plug-in, and send the collected monitoring data to the server 105. The server 105 may receive and process the monitoring data collected by the target monitoring plug-in, and display the processed results on an administrator page for viewing.
In the existing related technology, when a monitoring system is expanded, a new code needs to be added in a reserved development interface of the monitoring system, recompilation and release are needed after the development is completed, and the expansion step is complex; in another related technology, a monitoring plug-in needs to be redeveloped, and after the development is completed, a configuration file is manually modified in a background of a monitored terminal, so that the labor cost is increased, an original monitoring system needs to be restarted, and the working efficiency of the monitoring system is reduced.
In an exemplary embodiment of the present invention, an extension method of a monitoring system is provided, which overcomes the above-mentioned shortcomings of the related art at least to some extent.
Fig. 2 is a flow chart illustrating an expansion method of the monitoring system according to an exemplary embodiment of the present invention. Referring to fig. 2, the method includes:
step S210, acquiring configuration parameter information of the target monitoring plug-in according to the monitoring item to be expanded;
step S220, according to the configuration parameter information, obtaining the storage position information of the target monitoring plug-in a preset plug-in warehouse;
step S230, setting a proxy object for the monitored terminal, and sending the storage position information to the proxy object so as to obtain a target monitoring plug-in through the proxy object according to the storage position information;
and step S240, receiving and processing the monitoring data acquired by the target monitoring plug-in to realize the monitoring of the monitoring system.
The following details the specific implementation of the various steps in the example shown in fig. 2:
step S210, obtaining the configuration parameter information of the target monitoring plug-in according to the monitoring item to be expanded.
For example, the monitoring item to be expanded may be any monitoring item that needs to be monitored, and may include a CPU related monitoring item, a GPU related monitoring item, a memory related monitoring item, a file system monitoring item, a network related monitoring item, and the like, which is not particularly limited in this exemplary embodiment. In a monitoring system, different monitoring plugins are needed to realize monitoring operations on different monitoring projects, a target monitoring plugin can be a monitoring plugin for realizing monitoring operations on the monitoring projects to be expanded, and specifically, the target monitoring plugin is a program which is compiled by an application program interface following a certain specification and can be used for monitoring operations on the monitoring projects to be expanded. The configuration parameter information may be a configuration parameter of a monitoring item to be expanded, the target monitoring plug-in performs a monitoring operation on the monitoring item to be expanded according to the configuration parameter information, and the configuration parameter information may include: the information such as the name of the monitoring project, the code of the monitoring project, the value type, the unit, the default warning threshold value, the monitoring interval, etc. may be a certain number of parameters that meet certain specifications and are manually set according to certain rules, or may also be a user-defined parameter that is set by the user according to the user's own needs, which is not particularly limited in this exemplary embodiment.
For example, after determining the monitoring item to be expanded, the user may input configuration parameter information of the monitoring item to be expanded on a human-computer interaction interface of the server terminal, where the configuration parameter information is also configuration parameter information of the target monitoring plug-in, a background of the server terminal may obtain the configuration parameter information of the target monitoring plug-in according to content input by the user in a script manner, and after obtaining the configuration parameter information of the target monitoring plug-in, the configuration parameter information may be stored in the background of the server terminal.
Step S220, according to the configuration parameter information, obtaining the storage position information of the target monitoring plug-in a preset plug-in warehouse.
For example, the preset plug-in repository may be used to store or store target monitoring plug-ins required for monitoring operations on different monitoring items, may store or store script files corresponding to the monitoring plug-ins, and may also store or store remote storage addresses of the script files corresponding to the target monitoring plug-ins. The preset plug-in repository may be set locally in the monitoring system, or may be set at a remote server, and may be implemented by ftp (file transfer protocol) or Git (open source distributed version control system). The storage location information may be storage addresses of different monitoring plug-ins in a preset plug-in repository. For example, the storage location of the target monitoring plugin corresponding to the monitoring project a in the preset plugin warehouse may be local storage information "E: \ plugin warehouse \ script file of the target monitoring plugin of the monitoring project a", or remote storage information "E: \ remote storage address of the script file of the target monitoring plugin of the plugin warehouse \ a monitoring project", "remote storage address of the plugin warehouse \ script file of the target monitoring plugin of the monitoring project a storage address of the script file of the target monitoring plugin of the monitoring project a script file of the monitoring project a".
After the configuration parameter information of the target monitoring plug-in is acquired, the server terminal can acquire the storage position information of the target monitoring plug-in a preset plug-in warehouse based on the acquired configuration parameter information. For example, a user writes and stores a monitoring script corresponding to configuration parameter information by using any computer development language, and uploads the monitoring script to a server terminal, the server terminal executes the monitoring script after acquiring the monitoring script, performs format check on output of the monitoring script, and sends the monitoring script to the preset plug-in warehouse if the check is passed, the preset plug-in warehouse finds a target monitoring plug-in according to the configuration parameter information in the monitoring script sent by the server terminal, and writes storage location information of the target monitoring plug-in into the monitoring script, and the server terminal can acquire the storage location information of the target monitoring plug-in the preset plug-in warehouse.
It should be noted that, in the present exemplary embodiment, the target monitoring plug-in may also be a higher version of a monitoring plug-in corresponding to an original monitoring item of the monitoring system, that is, monitoring plug-ins of different versions of monitoring operation may be implemented on the same monitoring item, that is, the present exemplary embodiment may also implement automatic update of the target monitoring plug-in. For example, the 1.0 version of the target monitoring plug-in of the monitoring project a and the 2.0 version of the target monitoring plug-in of the monitoring project a can both realize the monitoring operation of the monitoring project a, the 1.0 version of the target monitoring plug-in exists in the monitoring system, but the 2.0 version of the target monitoring plug-in does not exist in the original monitoring system, but the 2.0 version may be more reliable than the 1.0 version, the 2.0 version of the target monitoring plug-in of the monitoring project a can be added into a preset plug-in warehouse, and the two versions are distinguished by the configuration parameters of the monitoring project, the storage location information of the 2.0 version of the target monitoring plug-in of the monitoring project a can be obtained according to the configuration parameter information, and the automatic update of the target monitoring plug-in is realized.
Step S230, setting a proxy object for the monitored terminal, and sending the storage location information to the proxy object, so as to obtain a target monitoring plug-in through the proxy object according to the storage location information.
In this exemplary embodiment, the monitored terminal may include a smart phone, a tablet computer, a portable computer, a desktop computer, a Unix terminal, a Windows terminal, a Linux terminal, a Web terminal, a Java terminal, and the like, which is not limited in this exemplary embodiment. In the present exemplary embodiment, the number of monitored terminals may be N (N is an integer of 1 or more).
The agent object is a program script and is deployed on each monitored terminal, and the deployment of the agent object can be manually deployed on each monitored terminal or can be deployed on each monitored terminal through a server terminal. The program script of the proxy object enables the monitored terminal to realize the following functions: the monitoring server terminal is in communication connection with the monitoring service terminal so as to obtain the storage position information of the target monitoring plug-in and the configuration parameter information of the monitoring item to be expanded, which are provided by the server terminal, obtain the target monitoring plug-in script according to the storage position information of the target monitoring plug-in, execute the target monitoring plug-in script according to the configuration parameter information, acquire monitoring data and send the monitoring data.
For example, the proxy object sends a connection request to the server terminal, the server terminal responds to the connection request sent by the proxy object and sends the storage location information of the target monitoring plugin and the configuration parameter information of the monitoring item corresponding to the target monitoring plugin, after the proxy object receives the storage location information of the target monitoring plugin and the configuration parameter information of the monitoring item sent by the server terminal, whether the target monitoring plugin exists in the monitored terminal is judged according to the configuration parameter information, if the target monitoring plugin exists in the monitored terminal, a target monitoring plugin script is executed according to the configuration parameter information, and monitoring data is collected; if the monitored terminal does not exist, the agent object finds the target monitoring plug-in according to the storage position information of the target monitoring plug-in, downloads the target monitoring plug-in script at the monitored terminal, executes the monitoring plug-in script, and collects and sends monitoring data according to the configuration parameter information of the monitoring project.
And step S240, receiving and processing the monitoring data acquired by the target monitoring plug-in to realize the extension of the monitoring system.
For example, the monitoring data may be data collected by the target monitoring plug-in according to the configuration parameter information of the monitoring project. The server terminal of the monitoring system may receive the monitoring data sent by each monitored terminal, and process the monitoring data, where the processing may include operations of checking, filtering, warehousing, judging, and warning of the monitoring data, and this is not particularly limited in this exemplary embodiment.
For example, after the agent object of each monitored terminal acquires the target monitoring plug-in according to the storage location information of the target monitoring plug-in, a command for calling the target monitoring plug-in is formed in combination with the received configuration parameter information of the monitoring item sent by the server terminal, and the agent object of each monitored terminal executes the command to acquire monitoring data and sends the acquired monitoring data to the server terminal for processing. The server terminal can receive the monitoring data sent by the agent object of the monitored terminal and temporarily store the received monitoring data into the queue, so that the situation that the monitoring data are too fast and too much to be processed in time can be avoided, and the processing unit of the server terminal carries out processing operations such as checking, filtering, warehousing, judging and warning on the monitoring data sent in the queue. After the monitoring data is processed, the processing result is displayed on a management page of the monitoring system, so that a manager can log in the management page at any time to check the monitoring data.
In the monitoring system extension method according to the exemplary embodiment of the present invention, based on the acquired configuration parameter information of the monitoring item to be extended and the storage location information of the target monitoring plug-in, the proxy object provided at the monitored terminal can acquire the target monitoring plug-in according to the storage location information, and automatically acquire monitoring data by using the target monitoring plug-in according to the configuration parameter information, thereby implementing automatic extension of the monitoring system. On one hand, the code is not required to be modified by invading the original monitoring system, so that the expansion mode of the monitoring system provided by the invention is safer; on the other hand, after the expansion is finished, the original monitoring system does not need to be restarted, and the configuration file does not need to be modified manually in the background of the monitored terminal, so that the expansion mode of the monitoring system provided by the invention can improve the working efficiency of the expanded monitoring system, and meanwhile, the labor cost is reduced.
In order to more clearly show a specific implementation of the automatic extension process of the monitoring item in the exemplary embodiment of the present invention, an interaction flowchart in the extension method of the monitoring system in an exemplary embodiment of the present invention is shown in fig. 3.
The above steps are described in more detail with reference to the interaction flowchart in the monitoring system extension method in an exemplary embodiment shown in fig. 3.
In step S220 in fig. 2, the storage location information of the target monitoring plugin in the preset plugin warehouse is obtained according to the configuration parameter information.
Illustratively, a configuration storage unit may be provided at the server terminal, and the configuration storage unit may be used to store the configuration parameter information acquired in step S210. Then, in step S220, the server terminal may acquire the storage location information of the target monitoring plug-in from the preset plug-in repository according to the configuration parameter information stored in the configuration storage unit. After the server terminal acquires the storage location information of the target monitoring plug-in, the storage location information can also be stored in the configuration storage unit.
The server terminal needs to send the acquired configuration parameter information and the storage location information of the target monitoring plug-in to the monitored terminal, so that the agent object of the monitored terminal can acquire the target monitoring plug-in according to the storage location information of the target monitoring plug-in, and perform monitoring operation on a monitoring item to be expanded by using the target monitoring plug-in according to the configuration parameter information, so as to expand the monitoring system. For example, as shown in fig. 3, the method may specifically include:
step S310, the proxy object actively sends a connection request to the server terminal at regular time.
In the exemplary embodiment, the proxy object is set in the monitored terminal, and the proxy object may be a program script capable of automatically acquiring the target monitoring plug-in a certain manner. For example, the agent object periodically initiates a connection request to the server terminal so that the monitored terminal can acquire the target monitoring plug-in, specifically, the method may include that the agent object program of the monitored terminal actively initiates rpc connection to the server terminal, and after receiving the rpc connection request of the monitored terminal, the server terminal sends the storage location information and the configuration parameter information of the target monitoring plug-in the configuration storage unit to the monitored terminal.
It should be noted that, in the present exemplary embodiment, rpc connection is used as an example, and it is only for the purpose of explaining that the monitored terminal and the server terminal can be connected in communication by this method, and any other communication connection method may be used, which is within the scope of the present invention. In addition, in the exemplary embodiment, the monitored terminal actively sends the connection request to the server terminal as an example to describe a process of interaction between the monitored terminal and the server terminal, or the server terminal actively sends the connection request to the monitored terminal to achieve a purpose of mutual communication between the monitored terminal and the server terminal, which is also within the protection scope of the present invention.
Step S320, responding to the connection request sent by the proxy object, and returning the storage location information and the configuration parameter information of the target monitoring plug-in.
In the present exemplary embodiment, a heartbeat detection unit may be provided. The heartbeat detection unit can be a program script, and the purpose of the heartbeat detection unit is to enable the server terminal to respond to the connection request sent by the proxy object and return the storage position information and the configuration parameter information of the target monitoring plug-in. For example, the heartbeat detecting unit may request the configuration storage unit for the storage location information and the configuration parameter information of the target monitoring plug-in at regular time, after receiving the request of the heartbeat unit, the configuration storage unit may send the storage location information and the configuration parameter information of the target monitoring plug-in stored by the heartbeat detecting unit, and after receiving the storage location information and the configuration parameter information of the target monitoring plug-in sent by the configuration storage unit, the heartbeat detecting unit may update the information to the cache, and wait for a connection request of the monitored terminal. And after receiving a connection request actively sent by a proxy object arranged at the monitored terminal, the heartbeat detection unit sends the storage position information and the configuration parameter information of the target monitoring plug-in the cache to the monitored terminal. In the present exemplary embodiment, the number of the monitored terminals may be plural, for example, two or more.
Step S330, receiving the storage location information and the configuration parameter information of the target monitoring plug-in.
Illustratively, the proxy object arranged at the monitored terminal receives the storage location information and the configuration parameter information of the target monitoring plug-in sent by the server terminal. After receiving the storage position information and the configuration parameter information of the target monitoring plug-in, the agent object judges whether the target monitoring plug-in exists in the monitored terminal according to the configuration parameter information. If the target monitoring plug-in exists, the proxy object directly executes the script of the target monitoring plug-in, collects monitoring data according to the configuration parameter information and sends the collected monitoring data to the server terminal; if the target monitoring plug-in does not exist, step S340 is implemented.
And step S340, acquiring the target monitoring plug-in script according to the storage position information, executing the target monitoring plug-in script, and acquiring and sending monitoring data.
Illustratively, after the agent object of the monitored terminal receives the storage location information and the configuration parameter information of the target monitoring plug-in sent by the server terminal, the target monitoring plug-in is obtained according to the storage location information. For example, the proxy object may download a script of the target monitoring plug-in according to the storage location information. And after the downloading is finished, the proxy object executes the script of the downloaded target monitoring plug-in according to the configuration parameter information, acquires the monitoring data and sends the acquired monitoring data to the server terminal.
And step S240, receiving the monitoring data acquired by the target monitoring plug-in to realize the extension of the monitoring system.
For example, the server terminal may be provided with a data receiving unit and a data processing unit, wherein the data receiving unit is used for receiving the monitoring data collected by the target monitoring plug-in. The data receiving unit may be a queue, the queue may be used to store monitoring data that is not processed before, and the data processing unit processes the monitoring data one by one from the queue of the data receiving unit. Processing the monitoring data may include checking, filtering, warehousing, determining and warning operations of the monitoring data, which is not limited in this exemplary embodiment. And after the data processing is finished, displaying the processing result in the server terminal to realize the expansion of the monitoring system. The display of the processing result can be displayed on a management page of the server terminal, and an administrator of the monitoring system can check the monitoring data of the monitoring project by logging in the management page provided by the monitoring service terminal.
The steps described above are explained in more detail below with reference to a detailed flowchart of the monitoring system extender in an exemplary embodiment of the present invention shown in fig. 4.
Step S410, each functional unit is deployed.
In the present exemplary embodiment, each functional unit may be different functional modules that are combined together to implement the extension of the monitoring system, and the function of each functional unit may be implemented by any computer programming language, which is not limited in this exemplary embodiment. The deploying the functional unit may include: the method comprises the steps of deploying an entry unit, a configuration storage unit, a heartbeat unit, a plug-in warehouse unit, a receiving unit and a processing unit at a server terminal, deploying an agent unit at a monitored terminal and starting service of each unit. Wherein, the function of each unit is: the input unit is responsible for inputting configuration parameter information of a monitoring project to be expanded of a user; the configuration storage unit is used for storing configuration parameter information of the monitoring item to be expanded, which is recorded by the recording unit; the heartbeat unit is responsible for communication between the monitored terminal and the server terminal; the plug-in warehouse unit is used for storing monitoring plug-ins corresponding to different monitoring items; the agent unit is responsible for downloading or updating the monitoring plug-in for each monitored terminal, executing the monitoring plug-in script, collecting the monitoring data and sending the monitoring data to the receiving unit; the receiving unit is used for receiving monitoring data sent by the proxy object; the processing unit is used for processing the monitoring data.
The working mode among the functional units can be, for example, that a user inputs configuration parameter information of a monitoring project to be expanded through a human-computer interaction interface of the input unit, and the configuration storage unit stores the configuration parameter information input by the user. The server terminal uploads the configuration parameter information of the human-computer interaction interface to the plug-in warehouse unit after acquiring the configuration parameter information, and the plug-in warehouse unit sends the storage position information of the target monitoring plug-in to the configuration storage unit after receiving the configuration parameter information, so that the configuration storage unit stores the configuration parameter information of the monitoring project including the storage position information of the target monitoring plug-in. The heartbeat unit actively requests the configuration storage unit to inquire the target monitoring plug-in information at regular time, and after receiving the request of the heartbeat unit, the configuration storage unit returns the monitoring item configuration parameter information including the storage position information of the target monitoring plug-in to the heartbeat unit. The heartbeat unit stores the heartbeat information into a cache and waits for a connection request of the proxy object deployed at the monitored terminal. The method comprises the steps that a proxy object of a monitored terminal sends a connection request to a heartbeat unit deployed at a server terminal at regular time, the heartbeat unit sends the configuration parameter information of a monitoring item including the stored position information of a target monitoring plug-in unit to the proxy object after receiving the connection request of the proxy object, the proxy object downloads a script of the target monitoring plug-in unit according to the stored position information after receiving the configuration parameter information, executes the script of the target monitoring plug-in unit according to the configuration parameter information to acquire monitoring data, and sends the acquired monitoring data to a data receiving unit of the server terminal. And the data receiving unit sends the received monitoring data to the processing unit for processing the monitoring data, and after the processing is finished, the processing result is displayed on a management page of the monitoring system, so that the expansion of the monitoring system is realized.
It should be noted that, in the present exemplary embodiment, the heartbeat unit may also be deployed in the monitored terminal to achieve the purpose of mutual communication between the monitored terminal and the server terminal.
For example, the configuration storage unit of the server terminal may actively initiate rpc a connection request to a heartbeat unit deployed in the monitored terminal, after the heartbeat unit of the monitored terminal receives the connection request of the configuration storage unit of the server terminal, a confirmation signal is returned to the configuration storage unit of the server terminal, after the configuration storage unit receives the confirmation signal, the configuration storage unit sends the storage location information and the configuration parameter information of the target monitoring plug-in to the heartbeat unit, and the storage location information and the configuration parameter information of the target monitoring plug-in received by the heartbeat unit are stored to wait for an inquiry request of the agent object. The agent object requests the heartbeat unit for inquiring the storage position information and the configuration parameter information of the target monitoring plug-in at regular time, and the heartbeat unit sends the storage position information and the configuration parameter information of the target monitoring plug-in to the agent object after receiving the inquiry request of the agent object, so that the monitored terminal and the server terminal can be communicated with each other through the heartbeat unit arranged on the monitored terminal.
The operation of the above functional units will be described in more detail with reference to the other steps in fig. 4.
Step S420, acquiring a monitoring script corresponding to the configuration parameter information of the monitoring item to be expanded;
step S430, checking the output format of the monitoring script, and uploading the monitoring script to a plug-in warehouse after the checking is passed;
step S440, obtaining configuration parameter information of the monitoring item including the storage position information of the monitoring plug-in.
In the exemplary embodiment, a monitoring script needs to be generated according to the configuration parameter information of the monitoring item to be expanded, after the server terminal obtains the monitoring script corresponding to the configuration parameter information of the monitoring item to be expanded, format verification is performed on the monitoring script, and after the verification is passed, the storage location information of the target monitoring plugin can be obtained according to the monitoring script.
For example, before acquiring the monitoring script corresponding to the configuration parameter information of the monitoring item to be expanded, the configuration parameter information of the monitoring item to be expanded needs to be defined and the corresponding monitoring script needs to be written in any computer language. The written monitoring script code may be: "CPU, use, endpoint, 10.191.52.118, value, 1.5, time:,"% date +% s ", type, GAUGE, step, 60 }" where, the method is the monitoring item name, the endpoint is the IP of the monitored machine, the counter type is the value type, the step is the reporting period of the monitoring data, and the value and the time represent the monitoring data value and the data acquisition time, respectively.
When the monitoring system is expanded, a user inputs configuration parameter information of a monitoring item to be expanded in a form provided by a human-computer interaction interface of the input unit. After the input is completed, the configuration parameter information is stored in a configuration storage unit, then, a user selects a compiled monitoring script and uploads the monitoring script to a server terminal, and the server terminal executes the uploaded monitoring script and verifies whether the output of the script conforms to a specified format. If the verification fails, returning prompt information for error prompt; and if the verification is passed, uploading the monitoring script to the plug-in warehouse unit, acquiring the storage position information of the target monitoring plug-in according to the configuration parameter information in the script after uploading the monitoring script to the plug-in warehouse unit, writing the storage position information into the uploaded monitoring script, and storing the configuration parameter information script of the monitoring item including the storage position information of the monitoring plug-in a configuration storage unit.
Step S450, receiving a monitoring plug-in information request of an agent object arranged at a monitored terminal;
step S460, sending configuration parameter information of the monitoring item including the storage location information of the monitoring plug-in synchronously at regular time.
In the exemplary embodiment, the monitoring plug-in is a target monitoring plug-in, that is, a monitoring plug-in capable of performing a monitoring operation on a monitoring item to be expanded. The server terminal receives a target monitoring plug-in information request of an agent object arranged at the monitored terminal through the heartbeat unit, and synchronously sends configuration parameter information of monitoring items including target monitoring plug-in storage position information to each monitored terminal at regular time.
For example, the heartbeat unit regularly requests the configuration storage unit for target monitoring plug-in information, after receiving the target monitoring plug-in information request, the configuration storage unit sends the configuration parameter information of the monitoring item, which is stored by the heartbeat unit and includes the storage location information of the target monitoring plug-in, to the heartbeat unit, and the heartbeat unit stores the configuration parameter information in a cache and waits for a connection request of the monitored terminal. And the heartbeat unit receives the connection request and then synchronously sends configuration parameter information containing the storage position information of the target monitoring plug-in to the proxy object.
After an agent object of each monitored terminal receives configuration parameter information which is sent by a server terminal and contains storage position information of a target monitoring plug-in, judging whether the monitored terminal has the target monitoring plug-in or not according to the configuration parameter information, and if the monitored terminal has the target monitoring plug-in, acquiring monitoring data according to the configuration parameter information; if the target monitoring plug-in does not exist, the agent object downloads and executes the target monitoring plug-in according to the storage position information of the target monitoring plug-in, the target monitoring plug-in acquires monitoring data according to the configuration parameter information, and the agent object of the monitored terminal actively sends the acquired monitoring data to the server terminal.
It should be noted that, in the present exemplary embodiment, the heartbeat unit may receive and respond to connection requests of multiple monitored terminals at the same time. For example, at time a, the monitored terminal 1, the monitored terminal 2, and the monitored terminal N all initiate rpc a connection to the server terminal, and the server terminal will respond to the connection request of each monitored terminal at time B after the delay of time a, that is, send the configuration parameter information including the storage location information of the target monitoring plug-in to each monitored terminal at the same time.
Step S470, receiving and processing the monitoring data collected by the monitoring plug-in, so as to implement the monitoring operation of the monitoring item to be expanded.
In this exemplary embodiment, the monitoring plug-in may include the target monitoring plug-in downloaded in step S460 or a target monitoring plug-in that is already existed in the monitored terminal and can perform a monitoring operation on the monitoring item to be expanded, the monitoring data may be monitoring information obtained when the target monitoring plug-in performs a monitoring operation on the monitoring item to be expanded, after the server terminal receives the monitoring data, the server terminal may first store the monitoring data in a certain storage unit, process the monitoring data stored in the storage unit one by one and display the monitoring result on the management page, thereby implementing the monitoring operation on the monitoring item to be expanded. The processing may include checking, filtering, warehousing, determining alerts, etc. of the monitored data, which is not specifically specified by the exemplary embodiment.
For example, the server terminal receives the monitoring data sent by the proxy object into the queue of the receiving unit, so that the situation that the processing unit cannot process the monitoring data due to the fact that a large amount of monitoring data are sent at the same time can be prevented. The receiving unit sends data to the processing unit from the queue, the processing unit carries out processing operations of checking, filtering, warehousing and judging warning on the received data, the processing result is sent to the management page, the management page displays the processing result, and the processing result is displayed on the management page, so that an administrator can conveniently check monitoring data at any time by logging in the management page.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments are implemented as computer programs executed by a CPU. The computer program, when executed by the CPU, performs the functions defined by the method provided by the present invention. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic or optical disk, or the like.
Furthermore, it should be noted that the above-mentioned figures are only schematic illustrations of the processes involved in the method according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it will also be readily appreciated that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
Further, in the present exemplary embodiment, a monitoring system extension apparatus is also provided. As shown in fig. 5, a detailed block diagram of a monitoring system extension apparatus in an exemplary embodiment of the present invention is shown, where the monitoring system extension apparatus can implement automatic extension of a monitoring item in a monitoring system, that is, after each functional module of the apparatus is deployed, each functional module is started, and according to configuration parameter information of the monitoring item input by a user and a corresponding monitoring script written, each functional module can enable each monitoring terminal to automatically acquire monitoring data corresponding to the monitoring item to be extended through mutual cooperation, and actively send the monitoring data to a server terminal, without modifying a program in an original monitoring system or restarting services of the original monitoring system, thereby implementing automatic extension of the monitoring system. The monitoring system expansion device can be used on the server side.
As shown in fig. 5, the monitoring system extension apparatus 500 may include a configuration parameter information obtaining module 510, a target monitoring plug-in storage location information obtaining module 520, an agent object setting module 530, and a monitoring data reception processing module 540. Wherein:
the configuration parameter information obtaining module 510 is configured to obtain configuration parameter information of a monitoring item to be expanded.
And a target monitoring plug-in storage location information obtaining module 520, configured to obtain storage location information of a target monitoring plug-in corresponding to the monitoring item to be expanded.
The proxy object setting module 530 is configured to send the storage location information of the target monitoring plugin to the proxy object, so that the monitored terminal obtains the target monitoring plugin according to the storage location information.
And the monitoring data receiving and processing module 540 is configured to receive and process the monitoring data sent by each monitored terminal.
For example, the configuration parameter information obtaining module 510 may include: the device comprises a configuration parameter information storage unit and a monitoring script acquisition unit. Wherein:
the above configuration parameter information storage unit may be configured to: and storing the configuration parameter information of the monitoring project to be expanded, which is input by a user on the human-computer interaction interface. Wherein, the configuration parameter information may include: the name of the monitoring item, the code corresponding to the monitoring item, the value type, the unit, the default warning value, and the like, which are not particularly limited in this exemplary embodiment.
The monitoring script obtaining unit may be configured to: and acquiring a monitoring script of the compiled monitoring item to be expanded. Wherein the monitoring script can be executed by the server background.
For example, the target monitoring plug-in storage location information obtaining module 520 may include: the monitoring system comprises a monitoring script checking unit, a monitoring plug-in storage unit and a heartbeat detection unit. Wherein:
the monitoring script checking unit may be configured to: and detecting whether the output of the monitoring script of the monitoring item to be expanded conforms to a specified format. If the output is not in accordance with the specified format, the prompt message is returned, and if the output is in accordance with the specified format, the monitoring script is sent to the monitoring plug-in warehouse setting unit.
The monitoring plug-in storage unit described above may be used to: and storing monitoring plug-ins corresponding to different monitoring items. After receiving the monitoring script sent by the monitoring script checking unit, the unit sends the configuration parameter information of the monitoring item, including the storage location information of the target monitoring plug-in, to the configuration parameter storage unit.
For example, after the monitoring plug-in storage unit receives the monitoring script sent by the script checking unit, the storage location information of the target monitoring plug-in corresponding to the configuration parameter information of the monitoring item in the monitoring script is written into the monitoring script according to the configuration parameter information of the monitoring item, and the monitoring plug-in warehouse unit sends the monitoring script to the configuration parameter information storage unit, at this time, the configuration parameter information storage unit stores the configuration parameter information of the monitoring item to be expanded and the storage location information of the target monitoring plug-in.
The heartbeat detecting unit for requesting the configuration storage unit may be configured to: the stored configuration parameter information and the storage position information of the target monitoring plug-in are used for receiving the connection request of the monitored terminal.
For example, the heartbeat detecting unit may request the configuration parameter information of the monitoring item and the storage location information of the target monitoring plug-in from the configuration storage unit at regular time, after receiving the request of the heartbeat detecting unit, the configuration storage unit may send the configuration parameter information of the monitoring item including the storage location information of the target monitoring plug-in to the heartbeat detecting unit, and the heartbeat detecting unit temporarily stores the configuration parameter information of the monitoring item in a cache to wait for a connection request of the monitored terminal. Each monitored terminal periodically initiates a connection request to the heartbeat unit, wherein the connection request may be rpc connection, but is not limited to rpc connection, and any communication manner that can make the heartbeat detecting unit respond to the monitored terminal is within the protection scope of the present invention. And after receiving the connection request sent by the monitored terminal, the heartbeat detection unit sends the cached storage position information of the target monitoring plug-in and the configuration parameter information of the monitoring item to the monitored terminal.
The proxy object setting module 530 may include: the system comprises an information receiving unit and a target monitoring plug-in downloading execution unit. Wherein:
the information receiving unit described above may be configured to: and receiving the configuration parameter information of the monitoring item cached by the heartbeat detection unit and the storage position information of the target monitoring plug-in.
The target monitoring plug-in download execution unit may be configured to: and downloading and executing the target monitoring plug-in.
For example, it may be determined whether a target monitoring plug-in exists in the monitored terminal according to the configuration parameter information in the information receiving unit, if the target monitoring plug-in exists in the monitored terminal, the target monitoring plug-in is directly executed, if the target monitoring plug-in does not exist in the monitored terminal, the target monitoring plug-in is downloaded according to the storage location information of the target monitoring plug-in, the downloaded target monitoring plug-in is executed according to the configuration parameter information, the monitoring data is collected, and the collected monitoring data is sent to the server terminal.
The monitoring data receiving and processing module 540 may include: a data receiving unit and a data processing unit. Wherein:
the data receiving unit described above may be configured to: the monitoring data is temporarily stored in the queue to prevent the condition that a large amount of messages cannot be processed.
The data processing unit described above may be configured to: and processing the monitoring data temporarily stored in the queue of the data receiving unit.
The specific details of each unit in the monitoring system extension apparatus have been described in detail in the corresponding embodiment section of the corresponding monitoring system extension method, and therefore are not described herein again.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the invention. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present invention are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) execute the method according to the embodiment of the present invention.
In an exemplary embodiment of the present invention, there is also provided a computer storage medium capable of implementing the above method. On which a program product capable of implementing the above-described method of the present specification is stored. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of this description, when said program product is run on the terminal device.
Referring to fig. 6, a program product 600 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In addition, in an exemplary embodiment of the present invention, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the invention is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 that couples various system components including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs the steps according to various exemplary embodiments of the present invention as described in the above section "exemplary method" of the present specification. For example, the processing unit 710 may execute codes corresponding to the implementation of the steps as shown in fig. 2.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 800 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiment of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present invention.
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it will also be readily appreciated that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.

Claims (10)

1. An expansion method of a monitoring system, characterized by comprising:
acquiring configuration parameter information of a target monitoring plug-in according to a monitoring item to be expanded;
acquiring storage position information of the target monitoring plug-in a preset plug-in warehouse according to the configuration parameter information;
setting a proxy object for a monitored terminal, and sending the storage position information to the proxy object so as to obtain the target monitoring plug-in through the proxy object according to the storage position information;
and receiving and processing the monitoring data acquired by the target monitoring plug-in to realize the extension of the monitoring system.
2. The method according to claim 1, wherein the step of obtaining the configuration parameter information of the target monitoring plug-in according to the monitoring item to be extended includes:
and acquiring configuration parameter information of the target monitoring plug-in the human-computer interaction interface.
3. The method for extending a monitoring system according to claim 1, wherein obtaining, according to the configuration parameter information, storage location information of the target monitoring plugin in a preset plugin warehouse includes:
acquiring a monitoring script of the configuration parameter information;
checking whether the output of the monitoring script conforms to a specified format;
and if the output of the monitoring script conforms to the specified format, acquiring the storage position information of the target monitoring plug-in a preset plug-in warehouse according to the configuration parameter information.
4. An extension method of a monitoring system according to claim 3,
the preset plug-in storage is local storage or remote storage.
5. The method according to claim 1, wherein setting a proxy object for the monitored terminal, and sending the storage location information to the proxy object, comprises:
responding to the received connection request sent by the proxy object, and sending the storage position information to the proxy object.
6. The method for extending a monitoring system according to claim 1, wherein obtaining the target monitoring plug-in according to the storage location information by the proxy object includes:
sending configuration parameter information of the target monitoring plug-in to the proxy object so as to judge whether the target monitoring plug-in exists in the monitored terminal or not according to the configuration parameter information by the proxy object;
and if the target monitoring plug-in does not exist in the monitored terminal, acquiring the target monitoring plug-in according to the storage position information through the proxy object.
7. The method for expanding a monitoring system according to claim 1, wherein receiving and processing the monitoring data collected by the target monitoring plug-in to realize the expansion of the monitoring system comprises:
receiving monitoring data of the monitoring item to be expanded, which is acquired by the target monitoring plug-in, and storing the monitoring data in a queue;
processing the monitoring data in the queue;
and displaying the monitoring data.
8. A monitoring system expansion device, comprising:
the configuration parameter information acquisition module is used for acquiring configuration parameter information of a monitoring project to be expanded;
the target monitoring plug-in storage position information acquisition module is used for acquiring the storage position information of the target monitoring plug-in according to the configuration parameter information of the monitoring item to be expanded;
the proxy object setting module is used for sending the storage position information of the target monitoring plug-in to a proxy object so that the monitored terminal can acquire the target monitoring plug-in according to the storage position information;
and the monitoring data processing module is used for receiving and processing the monitoring data acquired by the target monitoring plug-in.
9. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out a monitoring system extension method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
a storage device to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the monitoring system extension method of any one of claims 1 to 7.
CN201910780830.3A 2019-08-22 2019-08-22 Expansion method and device of monitoring system, storage medium and electronic equipment Active CN112416698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910780830.3A CN112416698B (en) 2019-08-22 2019-08-22 Expansion method and device of monitoring system, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910780830.3A CN112416698B (en) 2019-08-22 2019-08-22 Expansion method and device of monitoring system, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112416698A true CN112416698A (en) 2021-02-26
CN112416698B CN112416698B (en) 2024-04-05

Family

ID=74779295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910780830.3A Active CN112416698B (en) 2019-08-22 2019-08-22 Expansion method and device of monitoring system, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112416698B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579199A (en) * 2022-02-22 2022-06-03 阿里巴巴(中国)有限公司 Method, system and storage medium for extending proxy in service grid

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050036010A (en) * 2003-10-14 2005-04-20 (주)데이타헤븐 System-monitoring system and method
CN101789890A (en) * 2010-02-05 2010-07-28 上海宝信软件股份有限公司 Configuration-based agent monitoring system capable of automatically realizing update and monitoring method thereof
US20120036516A1 (en) * 2008-10-09 2012-02-09 International Business Machines Corporation Integrated extension framework
CN108520056A (en) * 2018-04-03 2018-09-11 北京京东金融科技控股有限公司 Business datum monitoring method and device, system, readable medium and electronic equipment
CN109408340A (en) * 2018-11-06 2019-03-01 云宏信息科技股份有限公司 Store monitoring method, the storage medium of equipment
CN109634805A (en) * 2018-11-19 2019-04-16 平安科技(深圳)有限公司 Monitoring data processing method, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050036010A (en) * 2003-10-14 2005-04-20 (주)데이타헤븐 System-monitoring system and method
US20120036516A1 (en) * 2008-10-09 2012-02-09 International Business Machines Corporation Integrated extension framework
CN101789890A (en) * 2010-02-05 2010-07-28 上海宝信软件股份有限公司 Configuration-based agent monitoring system capable of automatically realizing update and monitoring method thereof
CN108520056A (en) * 2018-04-03 2018-09-11 北京京东金融科技控股有限公司 Business datum monitoring method and device, system, readable medium and electronic equipment
CN109408340A (en) * 2018-11-06 2019-03-01 云宏信息科技股份有限公司 Store monitoring method, the storage medium of equipment
CN109634805A (en) * 2018-11-19 2019-04-16 平安科技(深圳)有限公司 Monitoring data processing method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114579199A (en) * 2022-02-22 2022-06-03 阿里巴巴(中国)有限公司 Method, system and storage medium for extending proxy in service grid
CN114579199B (en) * 2022-02-22 2024-04-26 阿里巴巴(中国)有限公司 Method, system and storage medium for expanding agent in service grid

Also Published As

Publication number Publication date
CN112416698B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
US9961129B2 (en) Business transaction correlation with client request monitoring data
CN108427616B (en) Background program monitoring method and monitoring device
CN111416821A (en) Internet of things equipment information acquisition method, system and device
US9990214B2 (en) Dynamic agent delivery
US20210311859A1 (en) Orchestration for automated performance testing
US20150067146A1 (en) Custom correlation of a distributed business transaction
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US10216601B2 (en) Agent dynamic service
CN113900834B (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN111597065B (en) Method and device for collecting equipment information
CN107644075B (en) Method and device for collecting page information
CN113407383B (en) Main and standby system switching method and device, server and main and standby system
US10432490B2 (en) Monitoring single content page application transitions
US10191844B2 (en) Automatic garbage collection thrashing monitoring
CN111930565B (en) Process fault self-healing method, device and equipment for components in distributed management system
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
US10073689B2 (en) Managing application lifecycles within a federation of distributed software applications
CN114385457A (en) Application program data acquisition method, device, equipment and storage medium
JP6412641B2 (en) Communication link transmission method, apparatus and terminal
CN109756393B (en) Information processing method, system, medium, and computing device
US9858549B2 (en) Business transaction resource usage tracking
CN113656378A (en) Server management method, device and medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
US9942361B2 (en) Reporting page composition data
US9935856B2 (en) System and method for determining end user timing

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant