CN108932184A - monitoring device and method - Google Patents
monitoring device and method Download PDFInfo
- Publication number
- CN108932184A CN108932184A CN201810646655.4A CN201810646655A CN108932184A CN 108932184 A CN108932184 A CN 108932184A CN 201810646655 A CN201810646655 A CN 201810646655A CN 108932184 A CN108932184 A CN 108932184A
- Authority
- CN
- China
- Prior art keywords
- monitoring
- data
- module
- monitored object
- management module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
Landscapes
- Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The present embodiments relate to monitoring technology field, a kind of monitoring device and method are provided, are applied to monitoring device, the monitoring device includes management module and collection module, and management module is communicated with collection module;Management module generates data collection request according to monitor task configuration file and is sent to collection module for obtaining monitor task configuration file, wherein data collection request includes monitoring mark;Collection module is used to obtain monitoring according to data collection request using default remote management protocol and identify the monitoring data of corresponding target monitoring object, and monitoring data is sent to management module.Compared with prior art, it is not necessarily to dispose agent on monitored object in the embodiment of the present invention, reduces Information Security Risk and reduce the influence to monitored object, it can be with effectively save manpower and time in extensive monitoring.
Description
Technical field
The present embodiments relate to monitoring technology fields, in particular to a kind of monitoring device and method.
Background technique
As cloud computing, big data technology continue to develop, the IT regulatory requirement of enterprise is also changing.Monitoring scale
Constantly expand, monitored object type be increasing and huge monitoring data amount, the performance of monitoring system is proposed more
High requirement.
Common open source monitoring software realizes the monitoring to monitored object at present, for example, Zabbix, the monitor mode supported
Including agent, SNMP, IPMI, JMX, agent mode is the most common monitor mode of Zabbix, in monitored end installation
Agent program, the end Zabbix server are communicated with agent program to collect the monitoring data of all monitored object.But
It is that agent mode safety is poor, influence the operation of monitored object and there are Information Security Risks, simultaneously as deployment difficulty
Height needs to spend a large amount of manpower and time in extensive monitoring.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of monitoring device and method, to improve the above problem.
To achieve the goals above, technical solution used in the embodiment of the present invention is as follows:
In a first aspect, the monitoring device includes management module and receipts the embodiment of the invention provides a kind of monitoring device
Collect module, the management module is communicated with the collection module;The management module is used to obtain monitor task configuration file, and
Data collection request is generated according to the monitor task configuration file and is sent to the collection module, wherein the data collection
Request includes monitoring mark;The collection module is used to obtain according to the data collection request using default remote management protocol
It takes the monitoring to identify the monitoring data of corresponding target monitoring object, and the monitoring data is sent to the management mould
Block.
Second aspect, the embodiment of the invention also provides a kind of monitoring methods, which comprises obtains monitor task and matches
File is set, and generates data collection request according to the monitor task configuration file, wherein the data collection request includes prison
Control mark;According to the data collection request, the monitoring is obtained using default remote management protocol and identifies corresponding target prison
Control the monitoring data of object.
Compared with the prior art, a kind of monitoring device provided in an embodiment of the present invention and method, when need to monitored object into
When row monitoring, firstly, management module generates data collection request according to monitoring configuration file, and the data collection request is sent
To collection module;Then, collection module obtains target monitoring pair using default remote management protocol according to the data collection request
The monitoring data of elephant is simultaneously sent to management module in response.Compared with prior art, without monitoring in the embodiment of the present invention
Agent is disposed on object, reduces Information Security Risk and reduces the influence to monitored object, it can be in extensive monitoring
Effectively save manpower and time.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only certain embodiments of the present invention, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows the first block diagram of monitoring device provided in an embodiment of the present invention.
Fig. 2 shows monitoring method flow charts provided in an embodiment of the present invention.
Fig. 3 shows the second block diagram of monitoring device provided in an embodiment of the present invention.
Fig. 4 shows the block diagram of monitoring device provided in an embodiment of the present invention.
Icon: 20- monitoring device;21- first information database;The second information database of 22-;301- management module;
302- collection module;40- monitored object;201- processor;202- memory;203- bus;204- communication interface;300- monitoring
Device.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete
Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist
The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below
Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile of the invention
In description, term " first ", " second " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
Fig. 1 is please referred to, Fig. 1 shows the block diagram of monitoring device 20 provided in an embodiment of the present invention.Monitoring device
20 can be applied in cloud computing environment, can be host, single server or server cluster, such as physical services
Device, Cloud Server etc..Monitoring device 20 can be configured with first information database 21 and the second information database 22, the first information
Database 21 can be relevant database, for example, MySQL database, oracle database etc., the second information database 22 can
To be time series database, such as InfluxDB database, OpenTSDB database etc..
In embodiments of the present invention, it can be pre-established with management module 301 and collection module 302 in monitoring device 20,
Management module 301 and collection module 302 can be only fitted in same monitoring device 20, can also be configured at different monitoring devices
On 20.
In embodiments of the present invention, management module 301 is communicated with the second information database 22, collection module 302 and first
Information database 21 communicates, and the object information and object identity of multiple monitored object 40 are stored in first information database 21,
The monitor control index data of monitored object 40 are stored in second information database 22.
It should be noted that first information database 21 and the second information database 22 are not limited to configuration in monitoring device 20
On, as long as monitoring device 20 is configured with database access interface, it can be ensured that management module 301 and the second information database 22 are logical
Letter, collection module 302 are communicated with first information database 21, it is not limited here.
In embodiments of the present invention, monitoring device 20 is communicated at least one monitored object 40, can to this at least one
Monitored object 40 is monitored, and monitored object 40 can be physical server, host etc., is also possible to operating system, virtual
Machine, database, the network equipment, middleware etc..Specifically, management module 301 is communicated with collection module 302, and collection module
302 communicate at least one monitored object 40.Management module 301 is used for monitor task management, that is to say, that management module
301 send data collection request to collection module 302 according to monitor task;Collection module 302 is used for collection monitoring data, collects
After module 302 receives the data collection request of the transmission of management module 301, according to data collection request from first information database
The object information of target monitoring object is obtained in 21, and is connected to target monitoring object using the object information, to obtain target
The monitoring data of monitored object, and it is sent to management module 301 using the monitoring data as the response of data collection request, it manages
Module 301 generates monitor control index data according to monitoring data and stores to the second information database 22.The
One embodiment
Referring to figure 2., Fig. 2 shows monitoring method flow charts provided in an embodiment of the present invention.Monitoring method includes following
Step:
Step S101 obtains monitor task configuration file, and generates data collection request according to monitor task configuration file,
Wherein, data collection request includes monitoring mark.
In embodiments of the present invention, the available monitor task configuration file of management module 301, and match according to monitor task
Set file and generate data collection request, monitor task configuration file can be user previously according to need the monitor task that monitors into
Row is written and stored in monitoring device 20.Monitor task configuration file can be the configuration file of a yaml format, packet
Containing multiple monitor tasks, it further includes monitoring that each monitor task, which includes a monitored object type and a monitoring mark,
Data acquisition intervals time and monitoring data collection time-out time, for example, monitoring configuration file may is that
It include 2 monitor tasks in above-mentioned monitoring configuration file, wherein uuid indicates monitoring mark, monitoring mark
It is the unique identification of monitored object 40;Exporter-endpoint indicates the service endpoints of collection module 302, can characterize
The type of monitored object 40, the type of monitored object 40 may include operating system, virtual machine, database, the network equipment, centre
Part etc.;Scrape_interval indicates monitoring data collection interval time, and scrape_timeout indicates that monitoring data collection is super
When the time;Params indicates the parameter list of http request, and the example above indicates that http request has a parameter targets,
It is worth identical as uuid.
In embodiments of the present invention, the method according to monitoring configuration file generation data collection request may include:
Firstly, management module 301 obtains the multiple monitor tasks for including in monitor task configuration file, wherein Mei Gejian
Control task includes a monitored object type and a monitoring mark, and each monitor task is run by a thread;
Then, monitored object type and monitoring mark of the management module 301 according to each monitor task, generates each monitoring
The corresponding data collection request of task, that is to say, that the corresponding data collection request of each monitor task may each comprise one
Monitored object type and a monitoring mark.The thread of each operation monitor task is adopted according to the monitoring data in the monitor task
Collect interval time, periodically sends data collection request to collection module 302, and due-in in monitoring data collection time-out time etc.
Collect the response of module 302, and extracts monitoring data from response message.
In embodiments of the present invention, after management module 301 generates data collection request according to monitor task configuration file,
Data collection request is sent to collection module 302 according to monitored object type.Collection module 302 can have multiple and each
Collection module 302 is communicated with management module 301, each collection module 302 be preset with a monitored object type identification with
Characterization is communicated with a type of monitored object 40, one of monitored object type identification and a monitored object type pair
It answers.That is, a collection module 302 is for collecting a type of monitored object 40 when there is multiple collection modules 302
Monitoring data, for example, if user not only want monitor (SuSE) Linux OS, but also want monitor the network equipment, then need to run two
Collector, each collector realize the collection of monitoring data with different data collection logics.
In embodiments of the present invention, management module 301 is according to monitored object type and the correspondence of monitored object type identification
Data collection request is sent to collection module 302 by relationship, for example, if the monitored object type for including in data collection request is
Virtual machine, then the data collection request is sent to the collection module 302 that monitoring type is identified as virtual machine by management module 301;
If the monitored object type for including in data collection request is operating system, management module 301 sends out the data collection request
It send to monitoring type and is identified as the collection module 302 of operating system.
Step S102 obtains monitoring using default remote management protocol and identifies corresponding target according to data collection request
The monitoring data of monitored object.
In embodiments of the present invention, after collection module 302 receives the data collection request that management module 301 is sent, according to
According to data collection request, the monitoring data that monitoring identifies corresponding target monitoring object is obtained using default remote management protocol,
And management module 301 is sent to using monitoring data as the response of data collection request.Default remote management protocol can be, but
Be not limited to SSH (Secure Shell, safety shell protocol), SNMP (Simple Network Management Protocol,
Simple Network Management Protocol), HTTP (HyperText Transfer Protocol, hypertext transfer protocol) etc..For example,
(SuSE) Linux OS collection module is connected on (SuSE) Linux OS using SSH agreement, executes (SuSE) Linux OS order;
Network equipment collection module is connected to the network equipment using snmp protocol, executes SNMP WALK/GET operation;Mould is collected in virtualization
Block calls the HTTP API of virtual platform to obtain monitoring data.
In embodiments of the present invention, monitored object is obtained since collection module 302 can use default remote management protocol
40 monitoring data, so there is no need to be deployed in collection module 302 in monitored object 40 as agent.
In embodiments of the present invention, collection module 302 can wrap according to the method for data collection request collection monitoring data
It includes: firstly, collection module 302 is according to data collection request, from the multiple object identities stored in first information database 21
It inquires and identifies consistent target object mark with monitoring;Then, collection module 302 obtained from first information database 21 with
Target object identifies corresponding object information;Finally, collection module 302 utilizes object information, according to default remote management protocol
It is connected to target monitoring object, to obtain the monitoring data of target monitoring object.
First information database 21 can be relevant database, for example, MySQL database, oracle database etc., the
It is stored with monitored object information record sheet in one information database 21, has recorded multiple monitored object in the monitored object record sheet
40 monitored object information, each monitored object information includes object information and object identity, and object information is intended to indicate that
The unique identification of monitored object 40, object information includes essential information needed for being connected to monitored object 40, for example, IP
(Internet Protocol, network protocol), user name, password etc..For example, monitored object information record tableau format is as follows
Shown in table 1:
1 monitored object information record sheet of table
Wherein, uuid field is major key, for saving the object identity of monitored object 40, needs to configure text with monitor task
Monitoring mark in part is consistent;Monitor_info is used to save the object information of monitored object 40, which is
The character string of one JSON format, comprising essential information needed for being connected to monitored object 40 in the character string, for example, IP, use
Name in an account book, password etc..
In embodiments of the present invention, collection module 302 can be a kind of network server, when receiving management module 301
After the data collection request of transmission, the monitoring mark of target monitoring object is extracted from data collection request, then foundation
This monitoring mark, the object information of target monitoring object is inquired from first information database 21, recycles the monitoring information
It is connected to target monitoring object acquisition monitoring data, is finally sent to management using monitoring data as the response of data collection request
Module 301.The function that collection module 302 obtains monitoring data is realized by an interface, and therefore, user only need to be according to monitoring
Need to realize that this interface can support the monitoring of various types of monitored object 40.Assuming that current, there are two collection modules
302, a collection module 302 is for monitoring (SuSE) Linux OS, another collection module 302 is for monitoring the network equipment, often
A collection module 302 has respectively different data collection logics, if user needs to increase virtualization resource (for example, virtual
Machine) monitoring, then need to only realize that the data collection logic of virtualization can be obtained by virtualization collection module, then run the void
Quasi-ization collection module, and in monitored object configuration file increase virtualization resource configuration, will be in monitored object configuration file
The type of monitored object is (for example, the service endpoints of the collection module 302 in step S101 monitoring configuration file example
Exporter-endpoint) it is configured to virtualization resource to be monitored.
It in embodiments of the present invention, can be with after management module 301 receives the monitoring data of the transmission of collection module 302
According to monitoring data according to preset data structural generation monitor control index data, in order to user query, therefore the embodiment of the present invention is also
Including step S103.
Step S103 according to preset data structural generation monitor control index data and is stored to the second letter according to monitoring data
Cease database.
In embodiments of the present invention, after management module 301 receives the monitoring data that collection module 302 is sent, foundation
Monitoring data is according to preset data structural generation monitor control index data and stores into the second information database 22.Collection module
302 be sent to management module 301 monitoring data include target monitoring object achievement data and metadata, metadata can be
The monitor control index of target monitoring object, achievement data can be the numerical value of the monitor control index of target monitoring object, monitor control index with
The specific business of target monitoring object is related, for example, the monitor control index of operating system can be CPU usage, memory usage,
Disk I/O utilization, network interface rate etc..For example, the monitor control index of certain monitored object 40 is monitoring http request sum, http is asked
GET, PUT, POST, DELETE etc. can be divided into according to method by asking, in addition, http request is there are also corresponding status code, then http
Request and status code belong to metadata, and metadata from different dimensions for going analysis monitoring data significant.Assuming that prison
Control index is http request number, the monitoring data got are as follows: the GET request number of http, 100, then metadata is http request
Method GET, achievement data be GET request number, i.e., 100.
In the present embodiment, monitor control index data include data name, achievement data, metadata and timestamp, data name
Claim the meaning for indicating monitor control index data, and can uniquely characterize monitor control index data, data name can be according to monitoring data
It generates, it can also be by user's flexible setting according to their own needs;Metadata can be the set of some key-value pairs, and wherein key is
Fixed, value is variation;Achievement data can be the numerical value of monitor control index, and when metadata determines, achievement data is also only
One determination;Timestamp can be time when management module 301 receives the monitoring data of target monitoring object.Monitor control index
Data can be indicated with JSON format, for example, a monitor control index data are as follows:
Wherein, metric indicates data name, and labels indicates metadata, and metadata labels includes two key assignments
Right: " method ": " GET " and " code ": " 200 ", value indicate that achievement data, timestamp indicate timestamp.
In embodiments of the present invention, the generation method of monitor control index data may include: firstly, generating according to monitoring data
Data name;Then, timestamp when management module 301 gets the monitoring data of target monitoring object is read;Finally, foundation
Data name, achievement data, metadata and timestamp generate monitor control index data and store into the second information database 22.
Second information database 22 can be time series database, such as InfluxDB database, OpenTSDB database etc.,
Monitor control index data are stored in second information database 22, each monitor control index data are stored with a tables of data,
The table name of the tables of data is the data name of monitor control index data, for example, the structure of tables of data is as shown in table 2 below:
2 monitor control index table data store of table
Timestamp | uuid | Metadata key-value pair 1 | Metadata key-value pair 2 ... | Achievement data |
Wherein, timestamp column arrange data sequentially in time, and the number and title of metadata key-value pair column are not solid
It is fixed and related with specific monitor control index, meanwhile, uuid column and all foundation of metadata key-value pair column have index.
In embodiments of the present invention, management module 301 further includes data read and write interface, and management module 301 generates monitoring and refers to
After marking data, the monitor control index data are given to data read and write interface, which can read and write the second Information Number
According to library 22.Specifically, SQL statement can be used between the data read and write interface and the second information database 22 to be written and read,
And query statement is encapsulated, the monitor control index data that query statement is inquired in the second information database 22 can be used in user, look into
The format for asking sentence may is that data name { 1 title of metadata=" value of metadata 1 ", 2 title of metadata=" metadata 2
Value " ..., each metadata therein is a screening conditions, user can by different metadata compositions is set come
From different dimensions query monitor achievement data.
In embodiments of the present invention, management module 301, collection module 302, first information database 21 and the second Information Number
It is run in a manner of docker container according to library 22.When there is multiple collection modules 302, each container runs a collection module
302, each collection module 302 is responsible for a type of monitored object 40 of monitoring, and is between the process of each collection module 302
It is completely self-contained.In addition, the monitoring device 20 in the embodiment of the present invention needs to install docker environment and Container Management tool, example
Such as kubernetes, monitoring device 20 can be single server, be also possible to server cluster.By to management module 301,
Collection module 302, first information database 21 and the second information database 22 realize containerization, enhance scalability convenient for portion
Administration, while supporting clustered deploy(ment).
Compared with prior art, the embodiment of the present invention has the advantages that
Firstly, the collection module 302 in the embodiment of the present invention need to only be disposed in monitoring device 20, information security is reduced
Risk simultaneously reduces influence to monitored object 40, in extensive monitoring, without largely disposing on monitored object 40
Agent has saved manpower and time.
Secondly as between each collection module 302, between collection module 302 and management module 301 be lower coupling, again
The isolation of its running environment is realized by containerization, therefore greatly strengthens scalability, when needing to increase monitored object type
When, new collection module 302 can be increased, can support the monitoring of any kind of monitored object 40.
New data structure and data storage method that third has been monitor control index design data, can support user to carry out
The data query operation of efficient various dimensions.
Finally, in clustered deploy(ment), Container Management tool can be according to loading condition rational management container, and each container can be with
On different nodes, to reduce the resource use to single monitoring device 20, performance is improved.
Second embodiment
Referring to figure 3., Fig. 3 shows the block diagram of monitoring device 20 provided in an embodiment of the present invention.Monitoring device
20 include processor 201, memory 202, bus 203 and communication interface 204, the processor 201, memory 202 and communication
Interface 204 is connected by bus 203;Processor 201 is used to execute the executable module stored in memory 202, such as calculates
Machine program.
Wherein, memory 202 may include high-speed random access memory (RAM:Random Access Memory),
It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely
A few communication interface 204 (can be wired or wireless) realizes the communication link between the monitoring server 20 and monitored end
It connects.
Bus 203 can be isa bus, pci bus or eisa bus etc..It is only indicated with a four-headed arrow in Fig. 3, but
It is not offered as only a bus or a type of bus.
Wherein, memory 202 is for storing program, such as monitoring device shown in Fig. 4 300.The monitoring device 300 includes
At least one can be stored in the memory 202 or be solidificated in the monitoring in the form of software or firmware (firmware) and set
Software function module in standby 20 operating system (operating system, OS).The processor 201 is receiving execution
After instruction, described program is executed to realize the monitoring method of the above embodiment of the present invention announcement.
Processor 201 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization
Each step of method can be completed by the integrated logic circuit of the hardware in processor 201 or the instruction of software form.On
The processor 201 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation
CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), dedicated
Integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor
Logical device, discrete hardware components.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, calculate
Machine program realizes the monitoring method that above-described embodiment discloses when being executed by processor 201.
3rd embodiment
Referring to figure 4., Fig. 4 shows the block diagram of monitoring device 300 provided in an embodiment of the present invention.Monitoring device
300 include management module 301 and collection module 302.
Management module 301 for obtaining monitor task configuration file, and generates data according to monitor task configuration file and receives
Collection request is sent to collection module, wherein data collection request includes monitoring mark.
In embodiments of the present invention, management module 301, which is executed, generates data collection request according to monitor task configuration file
Mode, comprising: obtain the multiple monitor tasks for including in monitor task configuration file, wherein each monitor task includes
One monitored object type and a monitoring mark;According to the monitored object type and monitoring mark of each monitor task, generate
The corresponding data collection request of each monitor task.
In embodiments of the present invention, collection module 302 has multiple, and each collection module 302 is communicated with management module,
Data collection request further includes monitored object type, each collection module 302 be preset with a monitored object type identification with
Characterization is communicated with a type of monitored object, and one of monitored object type identification is corresponding with a monitored object type;
Management module 301 executes the mode that data collection request is sent to collection module, comprising: according to monitored object type and monitoring
Data collection request is sent to collection module by the corresponding relationship of object type mark.
Collection module 302, for obtaining monitoring mark using default remote management protocol and corresponding to according to data collection request
Target monitoring object monitoring data, and monitoring data is sent to management module.
In embodiments of the present invention, monitoring device 20 includes first information database 21, collection module 302 and the first information
Database 21 communicates, and collection module 302 is executed according to data collection request, obtains monitoring mark using default remote management protocol
The mode of the monitoring data of corresponding target monitoring object, comprising: according to data collection request, inquired from multiple object identities
Consistent target object is identified with monitoring out to identify;Object corresponding with target object mark is obtained from first information database
Information;Using object information, it is connected to target monitoring object according to default remote management protocol, to obtain target monitoring object
Monitoring data.
Monitoring device 20 further includes the second information database 22, and management module 301 is communicated with the second information database 22.Pipe
Module 301 is managed, is also used to according to preset data structural generation monitor control index data and be stored according to monitoring data.
In embodiments of the present invention, monitoring data includes the achievement data and metadata of target monitoring object, management module
301 execute according to monitoring data, in the way of by preset data structural generation monitor control index data and being stored, comprising: according to
Data name is generated according to monitoring data;Read timestamp when management module gets the monitoring data of target monitoring object;According to
Monitor control index data are generated according to data name, achievement data, metadata and timestamp and are stored to the second information database.
In conclusion a kind of monitoring device provided in an embodiment of the present invention and method, are applied to monitoring device, the monitoring
Device includes management module and collection module, and management module is communicated with collection module;Management module is matched for obtaining monitor task
File is set, and generates data collection request according to monitor task configuration file and is sent to collection module, wherein data collection request
It is identified including monitoring;Collection module is used for according to data collection request, obtains monitoring mark pair using default remote management protocol
The monitoring data for the target monitoring object answered, and monitoring data is sent to management module.Compared with prior art, the present invention is real
It applies and is not necessarily to dispose agent on monitored object in example, reduce Information Security Risk and reduce the influence to monitored object,
It can be with effectively save manpower and time when extensive monitoring.
In several embodiments provided herein, it should be understood that disclosed device and method can also pass through
Other modes are realized.The apparatus embodiments described above are merely exemplary, for example, flow chart and block diagram in attached drawing
Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this regard, each box in flowchart or block diagram can represent the one of a module, section or code
Part, a part of the module, section or code, which includes that one or more is for implementing the specified logical function, to be held
Row instruction.It should also be noted that function marked in the box can also be to be different from some implementations as replacement
The sequence marked in attached drawing occurs.For example, two continuous boxes can actually be basically executed in parallel, they are sometimes
It can execute in the opposite order, this depends on the function involved.It is also noted that every in block diagram and or flow chart
The combination of box in a box and block diagram and or flow chart can use the dedicated base for executing defined function or movement
It realizes, or can realize using a combination of dedicated hardware and computer instructions in the system of hardware.
In addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation together
Point, it is also possible to modules individualism, an independent part can also be integrated to form with two or more modules.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.It needs
Illustrate, herein, relational terms such as first and second and the like be used merely to by an entity or operation with
Another entity or operation distinguish, and without necessarily requiring or implying between these entities or operation, there are any this realities
The relationship or sequence on border.Moreover, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment for including a series of elements not only includes those elements, but also including
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (10)
1. a kind of monitoring device, which is characterized in that be applied to monitoring device, the monitoring device includes management module and collection mould
Block, the management module are communicated with the collection module;
The management module generates data according to the monitor task configuration file and receives for obtaining monitor task configuration file
Collection request is sent to the collection module, wherein the data collection request includes monitoring mark;
The collection module is used to obtain the monitoring according to the data collection request using default remote management protocol and identify
The monitoring data of corresponding target monitoring object, and the monitoring data is sent to the management module.
2. device as described in claim 1, which is characterized in that the management module, which is executed, configures text according to the monitor task
The mode of part generation data collection request, comprising:
Obtain the multiple monitor tasks for including in the monitor task configuration file, wherein each monitor task includes one
Monitored object type and a monitoring mark;
According to the monitored object type and monitoring mark of each monitor task, the corresponding number of each monitor task is generated
It is requested according to collecting.
3. device as described in claim 1, which is characterized in that the collection module have it is multiple, and each collection module with
The management module communication, the data collection request further includes monitored object type, and each collection module is preset with one
Monitored object type identification is communicated with characterizing with a type of monitored object, one of them described monitored object type identification with
One monitored object type is corresponding;
The management module executes the mode that the data collection request is sent to the collection module, comprising:
Corresponding relationship according to the monitored object type and the monitored object type identification sends out the data collection request
It send to the collection module.
4. device as described in claim 1, which is characterized in that the collection module and first information database communication, it is described
The object information and object identity of multiple monitored object are previously stored in first information database;
The collection module is executed according to the data collection request, is obtained the monitoring using default remote management protocol and is identified
The mode of the monitoring data of corresponding target monitoring object, comprising:
According to the data collection request, is inquired from multiple object identities and identify consistent target object mark with the monitoring
Know;
Object information corresponding with target object mark is obtained from the first information database;
Using the object information, it is connected to the target monitoring object according to default remote management protocol, to obtain the mesh
Mark the monitoring data of monitored object.
5. device as described in claim 1, which is characterized in that the management module is communicated with the second information database;It is described
Management module is also used to according to preset data structural generation monitor control index data and store to described according to the monitoring data
Two information databases.
6. device as claimed in claim 5, which is characterized in that the monitoring data includes the index of the target monitoring object
Data and metadata, the management module are executed according to the monitoring data, according to preset data structural generation monitor control index number
According to and store to the mode of second information database, comprising:
Data name is generated according to the monitoring data;
Read the timestamp when management module gets the monitoring data of the target monitoring object;
The monitor control index data are generated according to the data name, achievement data, metadata and timestamp and are stored to described
Second information database.
7. a kind of monitoring method, which is characterized in that be applied to monitoring device, which comprises
Monitor task configuration file is obtained, and generates data collection request according to the monitor task configuration file, wherein is described
Data collection request includes monitoring mark;
According to the data collection request, the monitoring is obtained using default remote management protocol and identifies corresponding target monitoring pair
The monitoring data of elephant.
8. the method for claim 7, which is characterized in that described to generate data receipts according to the monitor task configuration file
Collect the mode of request, comprising:
Obtain the multiple monitor tasks for including in the monitor task configuration file, wherein each monitor task includes one
Monitored object type and a monitoring mark;
According to the monitored object type and monitoring mark of each monitor task, the corresponding number of each monitor task is generated
It is requested according to collecting.
9. the method for claim 7, which is characterized in that the monitoring device and first information database communication, it is described
The object information and object identity of multiple monitored object are previously stored in first information database;
It is described according to the data collection request, utilize default remote management protocol to obtain the monitoring and identify corresponding target prison
The step of controlling the monitoring data of object, comprising:
According to the data collection request, is inquired from multiple object identities and identify consistent target object mark with the monitoring
Know;
Object information corresponding with target object mark is obtained from the first information database;
Using the object information, it is connected to the target monitoring object according to default remote management protocol, to obtain the mesh
Mark the monitoring data of monitored object.
10. the method for claim 7, which is characterized in that the monitoring device is communicated with the second information database;It is described
Method further include:
According to the monitoring data, according to preset data structural generation monitor control index data and store to second information data
Library.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810646655.4A CN108932184B (en) | 2018-06-21 | 2018-06-21 | Monitoring device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810646655.4A CN108932184B (en) | 2018-06-21 | 2018-06-21 | Monitoring device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108932184A true CN108932184A (en) | 2018-12-04 |
CN108932184B CN108932184B (en) | 2022-05-17 |
Family
ID=64446228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810646655.4A Active CN108932184B (en) | 2018-06-21 | 2018-06-21 | Monitoring device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108932184B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582547A (en) * | 2018-12-11 | 2019-04-05 | 平安科技(深圳)有限公司 | Electronic device, monitoring data alarm method and storage medium |
CN109871815A (en) * | 2019-02-26 | 2019-06-11 | 新华三技术有限公司 | A kind of method and device of query monitor information |
CN111694854A (en) * | 2020-06-05 | 2020-09-22 | 北京百度网讯科技有限公司 | Method and device for monitoring entrance and exit of area, electronic equipment and storage medium |
CN112152824A (en) * | 2019-06-26 | 2020-12-29 | 北京神州泰岳软件股份有限公司 | Performance index data acquisition method and device |
CN112181785A (en) * | 2020-10-21 | 2021-01-05 | 鹏城实验室 | Method, terminal and storage medium for automatically adding monitoring equipment |
CN112199249A (en) * | 2020-09-16 | 2021-01-08 | 中国建设银行股份有限公司 | Monitoring data processing method, device, equipment and medium |
CN112596986A (en) * | 2020-12-31 | 2021-04-02 | 恩亿科(北京)数据科技有限公司 | Monitoring method and device |
CN113010372A (en) * | 2020-12-08 | 2021-06-22 | 云智慧(北京)科技有限公司 | Distributed implementation method and system for API monitoring |
CN113941901A (en) * | 2020-07-17 | 2022-01-18 | 智能云科信息科技有限公司 | Machine tool cutter monitoring method and device and electronic equipment |
CN114253808A (en) * | 2021-12-21 | 2022-03-29 | 奇安信科技集团股份有限公司 | Object state monitoring method and device |
CN116170341A (en) * | 2022-12-23 | 2023-05-26 | 中国联合网络通信集团有限公司 | Virtualization platform monitoring method, device, system and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516555A (en) * | 2013-10-23 | 2014-01-15 | 中国科学院信息工程研究所 | Network device monitoring method and system |
CN105095044A (en) * | 2015-06-04 | 2015-11-25 | 曙光信息产业(北京)有限公司 | SNMP based server monitoring method and apparatus |
CN107959588A (en) * | 2017-12-07 | 2018-04-24 | 郑州云海信息技术有限公司 | Cloud resource management method, cloud resource management platform and the management system of data center |
US20180159724A1 (en) * | 2015-04-29 | 2018-06-07 | Cisco Technology, Inc. | Automatic task tracking |
-
2018
- 2018-06-21 CN CN201810646655.4A patent/CN108932184B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516555A (en) * | 2013-10-23 | 2014-01-15 | 中国科学院信息工程研究所 | Network device monitoring method and system |
US20180159724A1 (en) * | 2015-04-29 | 2018-06-07 | Cisco Technology, Inc. | Automatic task tracking |
CN105095044A (en) * | 2015-06-04 | 2015-11-25 | 曙光信息产业(北京)有限公司 | SNMP based server monitoring method and apparatus |
CN107959588A (en) * | 2017-12-07 | 2018-04-24 | 郑州云海信息技术有限公司 | Cloud resource management method, cloud resource management platform and the management system of data center |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109582547A (en) * | 2018-12-11 | 2019-04-05 | 平安科技(深圳)有限公司 | Electronic device, monitoring data alarm method and storage medium |
CN109871815A (en) * | 2019-02-26 | 2019-06-11 | 新华三技术有限公司 | A kind of method and device of query monitor information |
CN112152824A (en) * | 2019-06-26 | 2020-12-29 | 北京神州泰岳软件股份有限公司 | Performance index data acquisition method and device |
CN112152824B (en) * | 2019-06-26 | 2023-07-11 | 北京神州泰岳软件股份有限公司 | Performance index data acquisition method and device |
CN111694854A (en) * | 2020-06-05 | 2020-09-22 | 北京百度网讯科技有限公司 | Method and device for monitoring entrance and exit of area, electronic equipment and storage medium |
CN111694854B (en) * | 2020-06-05 | 2023-07-21 | 北京百度网讯科技有限公司 | Regional access monitoring method and device, electronic equipment and storage medium |
CN113941901A (en) * | 2020-07-17 | 2022-01-18 | 智能云科信息科技有限公司 | Machine tool cutter monitoring method and device and electronic equipment |
CN113941901B (en) * | 2020-07-17 | 2024-04-23 | 智能云科信息科技有限公司 | Machine tool cutter monitoring method, machine tool cutter monitoring device and electronic equipment |
CN112199249A (en) * | 2020-09-16 | 2021-01-08 | 中国建设银行股份有限公司 | Monitoring data processing method, device, equipment and medium |
CN112181785B (en) * | 2020-10-21 | 2023-02-24 | 鹏城实验室 | Method, terminal and storage medium for automatically adding monitoring equipment |
CN112181785A (en) * | 2020-10-21 | 2021-01-05 | 鹏城实验室 | Method, terminal and storage medium for automatically adding monitoring equipment |
CN113010372A (en) * | 2020-12-08 | 2021-06-22 | 云智慧(北京)科技有限公司 | Distributed implementation method and system for API monitoring |
CN112596986A (en) * | 2020-12-31 | 2021-04-02 | 恩亿科(北京)数据科技有限公司 | Monitoring method and device |
CN114253808A (en) * | 2021-12-21 | 2022-03-29 | 奇安信科技集团股份有限公司 | Object state monitoring method and device |
CN116170341A (en) * | 2022-12-23 | 2023-05-26 | 中国联合网络通信集团有限公司 | Virtualization platform monitoring method, device, system and storage medium |
CN116170341B (en) * | 2022-12-23 | 2024-04-09 | 中国联合网络通信集团有限公司 | Virtualization platform monitoring method, device, system and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108932184B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108932184A (en) | monitoring device and method | |
CN109245931B (en) | Log management and monitoring alarm realization method of container cloud platform based on kubernets | |
WO2021017301A1 (en) | Management method and apparatus based on kubernetes cluster, and computer-readable storage medium | |
US10515000B2 (en) | Systems and methods for performance testing cloud applications from multiple different geographic locations | |
CN107528870B (en) | A kind of collecting method and its equipment | |
US8903996B2 (en) | Operating cloud computing services and cloud computing information system | |
US20180060132A1 (en) | Stateful resource pool management for job execution | |
US9118538B1 (en) | Method and system for configuring resources to enable resource monitoring | |
CN106487574A (en) | Automatic operating safeguards monitoring system | |
CN104486445A (en) | Distributed extendable resource monitoring system and method based on cloud platform | |
CN112506659A (en) | Management method of edge device and related device | |
CN101707632A (en) | Method for dynamically monitoring performance of server cluster and alarming real-timely | |
US20180024866A1 (en) | System, virtualization control apparatus, method for controlling a virtualization control apparatus, and program | |
CN108182140A (en) | Determine the performance capability with monitoring computer resource service | |
CN112269718B (en) | Service system fault analysis method and device | |
CN112214382A (en) | Alarm method and device | |
CN106210124B (en) | A kind of unified cloud data center monitoring system | |
CN102750184A (en) | Cloud resource classification and identification system and cloud resource classification and identification method | |
CN108877188A (en) | A kind of environment protection digital concurrently acquires and Multi net voting dissemination method and device | |
US9218205B2 (en) | Resource management in ephemeral environments | |
CN107515807B (en) | Method and device for storing monitoring data | |
CN109495501B (en) | Network security dynamic asset management system | |
US20210342309A1 (en) | Methods, systems, and computer readable mediums for performing metadata-driven data collection | |
CN112073417B (en) | Method and system for accessing Internet of things equipment to Microsoft cloud | |
CN108337100B (en) | Cloud platform monitoring method and device |
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 |