CN109194543A - Collecting method and device - Google Patents
Collecting method and device Download PDFInfo
- Publication number
- CN109194543A CN109194543A CN201810974924.XA CN201810974924A CN109194543A CN 109194543 A CN109194543 A CN 109194543A CN 201810974924 A CN201810974924 A CN 201810974924A CN 109194543 A CN109194543 A CN 109194543A
- Authority
- CN
- China
- Prior art keywords
- monitored device
- index
- acquisition
- data
- template
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/04—Processing captured monitoring data, e.g. for logfile generation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Data Mining & Analysis (AREA)
- Computer And Data Communications (AREA)
Abstract
The embodiment of the present invention provides a kind of collecting method and device.Wherein, method includes: to generate the request of several index collections according to acquisition tasks;Each index collection is requested, according to the information for the monitored device that index collection request carries, the log-on message of monitored device, and the information of the index group to be collected carried according to index collection request are obtained, the corresponding acquisition configuration of monitored device is obtained;According to the log-on message of monitored device, Telnet monitored device obtains the monitor control index of monitored device according to the corresponding acquisition configuration of monitored device.Collecting method and device provided in an embodiment of the present invention, log-on message and the corresponding acquisition configuration of monitored device by the acquisition tasks, monitored device that are configured in identical platform, Telnet monitored device, and according to the corresponding acquisition configuration of monitored device, the monitor control index for obtaining monitored device, improves scalability.
Description
Technical field
The present embodiments relate to technical field of the computer network more particularly to collecting methods and device.
Background technique
With being skyrocketed through for Chinese netizen, the scale of the hardware devices such as server of IT enterprises is also more and more huger.Firmly
Part equipment safety is related to the lifeblood of company.Many problems of hardware device are not timings, unpredictable.And system engineer
It 24 hours can not go to refresh webpage, 24 hours all in safeguard service device, it is also not possible to which 24 hours all in ping server
State.Therefore, distance host, that is, server implementation monitoring is just highly desirable.
For the most common failure of server, as service can not log in, respond slowly, user data, cpu load can not be written
Excessively high, the problems such as hard disk utilization rate is excessively high, is required to the solution of the effectively distance host monitoring based on log analysis, from
And can in real time to the operating status of the services such as the CPU of distance host, memory, hard disk, Web server, database software into
Row monitoring, when being abnormal situation, notifies corresponding responsible person immediately.
Therefore, it is necessary to the data of acquisition server, to judge the operating status of server, find the problem in time and former
Barrier.Data acquisition side formula is usual at present are as follows: affixes one's name to acquisition performance index script in monitored upper side, is acquired by operation
Collected performance indicator is sent transfer server by performance indicator script, then is reported to backstage to take by transfer server concentration
Business device.Since the production firm of hardware device, type, model etc. can all have difference, performance indicator also can be different, and different sets
The standby acquisition performance index script that can correspond to different editions, therefore, before disposing acquisition performance index script, staff is needed
The acquisition performance index script that different editions are write according to different equipment and data acquisition demand, causes available data to acquire
Versatility, portability, the poor expandability of device.
Summary of the invention
Aiming at the problem that poor expandability of the existing technology, the embodiment of the present invention provides collecting method and dress
It sets.
According to the first aspect of the invention, the embodiment of the present invention provides a kind of collecting method, comprising:
According to acquisition tasks, the request of several index collections is generated;
Each index collection is requested, according to the information for the monitored device that index collection request carries, is obtained
The log-on message of the monitored device, and the information of the index group to be collected carried according to index collection request are taken, is obtained
The corresponding acquisition configuration of the monitored device;
According to the log-on message of the monitored device, monitored device described in Telnet monitored is set according to described
Standby corresponding acquisition configuration, obtains the monitor control index of the monitored device;
Wherein, the information of the index group to be collected carries several monitor control indexes, and to each monitored
Equipment acquires the corresponding acquisition configuration of each monitor control index.
According to the second aspect of the invention, the embodiment of the present invention provides a kind of data acquisition device, comprising:
Generation module is requested, for according to acquisition tasks, generating the request of several index collections;
Configuration obtains module, for being requested for each index collection, the quilt carried according to index collection request
The information of monitoring device obtains the log-on message of the monitored device, and according to the to be collected of index collection request carrying
The information of index group obtains the corresponding acquisition configuration of the monitored device;
Data acquisition module, for the log-on message according to the monitored device, monitored device described in Telnet,
According to the corresponding acquisition configuration of the monitored device, the monitor control index of the monitored device is obtained;
Wherein, the information of the index group to be collected carries several monitor control indexes, and to each monitored
Equipment acquires the corresponding acquisition configuration of each monitor control index.
According to the third aspect of the invention we, the embodiment of the present invention provides a kind of electronic equipment, comprising:
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to refer to
Order is able to carry out data provided by any possible implementation in the various possible implementations of first aspect and acquires
Method.
According to the fourth aspect of the invention, the embodiment of the present invention provides a kind of non-transient computer readable storage medium, institute
Non-transient computer readable storage medium storage computer instruction is stated, the computer instruction makes the computer execute first party
The method that data provided by any possible implementation acquire in the various possible implementations in face.
Collecting method and device provided in an embodiment of the present invention, by the acquisition tasks that are configured in identical platform,
The corresponding acquisition configuration of log-on message and monitored device of monitored device, Telnet monitored device, and according to being supervised
The corresponding acquisition configuration of equipment is controlled, the monitor control index of monitored device is obtained, does not need to be preset in each monitored device
Collection rule configuration, improve scalability, versatility, portability and configurability.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the flow diagram according to collecting method provided in an embodiment of the present invention;
Fig. 2 is the functional block diagram according to data acquisition device provided in an embodiment of the present invention;
Fig. 3 is the structural block diagram according to electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Embodiment in the present invention, those of ordinary skill in the art are not having
Every other embodiment obtained under the premise of creative work is made, shall fall within the protection scope of the present invention.
In order to overcome the above problem of the prior art, the embodiment of the present invention provides a kind of collecting method, invention structure
Think of is to carry out the configuration of preset collection rule not on hardware device and execute preset script, but pass through unification
Platform is that all types of hardware device of each manufacturer configures acquisition configuration, and monitored device is logged in by way of Telnet,
Execution part or whole acquisition configurations in monitored device, thus each monitor control index in acquisition index group.
Fig. 1 is the flow diagram according to collecting method provided in an embodiment of the present invention.As shown in Figure 1, a kind of number
Include: step S101, according to acquisition tasks according to acquisition method, generates the request of several index collections.
It should be noted that unified platform is data acquisition device.Data acquisition device includes multiple functional modules, function
Energy module is used to execute each step of collecting method provided in an embodiment of the present invention.
For step S101, can be executed by the functional module of an entitled collection scheduling client.
Before step S101, user is according to monitoring needs, the set (index i.e. to be collected for the index that definition needs to monitor
Group).
The index for needing to monitor is monitor control index.Index group to be collected includes several monitor control indexes.Wherein, several
It is a, refer to one or more.
According to the index group to be collected of user configuration, acquisition tasks can be generated, i.e., which monitored device is carried out
Data acquisition, and for each monitored device, which monitor control index acquired.
Acquisition tasks also carry the information of collection period.
According to the quantity of monitored device, acquisition tasks are decomposed into number index identical with the quantity of monitored device
Acquisition request.I.e. index collection request is corresponded with monitored device.
Step S102, each index collection is requested, according to the letter for the monitored device that index collection request carries
Breath obtains the log-on message of monitored device, and the information of the index group to be collected carried according to index collection request, obtains
The corresponding acquisition configuration of monitored device;Wherein, the information of index group to be collected carries the information of several monitor control indexes, with
And the corresponding acquisition configuration of each monitor control index is acquired to each monitored device.
It is understood that needing the log-on message to all monitored devices to configure before step S102.
Log-on message, including at least user name, password, IP address, port, communication protocol version.
It is understood that when configuring the information of index group to be collected, in addition to treating the monitoring for including in acquisition index group
Outside index is configured, acquisition configuration corresponding for each monitor control index is configured.
The operating system run by monitored device or affiliated manufacturer are different, to different monitored devices
The acquisition for acquiring same monitor control index may be different with monitored device, therefore for same monitor control index, can be according to different
Equipment manufacturing decides through consultation that justice covers acquisition configuration more.
It is understood that acquisition tasks carry the information of whole monitored devices and the information of index group to be collected,
Therefore, each index collection request, carries the information an of monitored device and the information of index group to be collected, realizes index
Association between acquisition request, monitored device and acquisition configuration.
The information of index group to be collected carries the information of several monitor control indexes, and acquires to each monitored device
The corresponding acquisition configuration of each monitor control index, is maintained in caching.
For step S102, can be executed by the functional module of entitled acquisition adapter.
Acquiring adapter can be one or more.
When it is multiple for acquiring adapter, since index collection request is corresponded with monitored device, each index is adopted
Collection request is corresponding with an acquisition adapter and a monitored device;When acquire adapter be one when, acquisition adapter by
Multiple sub- acquisition adapters are constituted, and each index collection request is corresponding with a son acquisition adapter and a monitored device.
It is communicated between acquisition adapter and collection scheduling client by preset interface.
For example, acquisition adapter provides the API service interface of JSON format, for being led to collection scheduling client
Letter.
After collection scheduling client generates index collection request, the acquisition for receiving and executing each index collection request is determined
Adapter, and the information of the collection period carried according to acquisition tasks, using the collection period as the period, periodically to being determined
Acquisition adapter send index collection request.
Each index collection is requested, according to the information for the monitored device that index collection request carries, inquiry is slow
It deposits, obtains the log-on message of the monitored device;According to the index collection request carry index group to be collected information and by
The information of monitoring device, query caching obtain the corresponding acquisition configuration of monitored device.
Preferably, the number for acquiring adapter is greater than the number of monitored device in this acquisition tasks.
Therefore, adapter can distributed deployment be in multiple monitored devices in a manner of cluster for acquisition, by load balancing
Processing is distributed to the scheduling request of acquisition tasks, generates index collection request.
When one in load balancing or several acquisition adapters are operating abnormally, acquisition tasks will not be interrupted, and acquisition is adjusted
Degree client can be reassigned rapidly available acquisition adapter in idle acquisition adapter and carry out data acquisition.Pass through
Use the mode of load balancing, it is ensured that the stability and high reliability of collecting method provided in an embodiment of the present invention.
Step S103, according to the log-on message of monitored device, Telnet monitored device, according to monitored device pair
The acquisition configuration answered obtains the monitor control index of monitored device.
For step S103, can equally be executed by the functional module of entitled acquisition adapter.
For each acquisition adapter, the information for the monitored device that index collection request carries based on the received is based on
Communication protocol in the log-on message of the monitored device, according to user name, password, IP address and port etc., Telnet quilt
Monitoring device runs corresponding script, order or plug-in unit according to the corresponding acquisition configuration of the monitored device, obtains this and is supervised
Control each monitor control index of equipment.
Collecting method provided in an embodiment of the present invention can be applied to cloud monitoring field, be Internet framework
The method of next-generation cloud monitoring, can complete the acquisition of monitored device soft hardware performance index, network parameter and configuration data, can
It is widely used in the acquisition of the performance indicator of enterprise and Internet company's hardware and software device, network parameter and configuration data, has
Higher practical value and realistic meaning.
The embodiment of the present invention is by the log-on messages of the acquisition tasks, monitored device that configure in identical platform and is supervised
The corresponding acquisition configuration of control equipment, Telnet monitored device, and according to the corresponding acquisition configuration of monitored device, obtain quilt
The monitor control index of monitoring device does not need the configuration that preset collection rule is carried out in each monitored device, and improving can expand
Malleability, versatility, portability and configurability.Further, the acquisition of energy each monitor control index of effective monitoring, guarantees each hardware
The safe operation of equipment.
Content based on the above embodiment, according to the log-on message of monitored device, the tool of Telnet monitored device
Body step includes: the log-on message according to monitored device, is based on safety shell protocol, Telnet monitored device.
Specifically, according to the log-on message of monitored device, Telnet monitored device is based on safety shell protocol
It realizes.
Secure Shell (Secure Shell, abbreviation SSH) agreement, by network group (the Network Working of IETF
Group it) is formulated;SSH agreement is the security protocol established on the basis of application layer.SSH agreement be it is relatively reliable at present, aim at remote
Journey login sessions and other network services provide the agreement of safety.Remote management procedures can be effectively prevented using SSH agreement
In information leakage problem.
Traditional network server, such as: ftp, pop and telnet are unsafe in itself, because they
With transmission password and data in plain text on network.
By using SSH, the data of all transmission can be encrypted, and can prevent DNS deception and IP from taking advantage of
It deceives.Using SSH's further additional benefit is that the data of transmission are through overcompression, it is possible to accelerate the speed of transmission.
It is understood that the data between data acquisition device and monitored device are transmitted, it is all based on SSH agreement.
The embodiment of the present invention is based on safety shell protocol, and Telnet monitored device can improve the safety of data acquisition
Property and speed, can help user find, position, solving the operation problem of hardware device according to the collected data more quickly, and
O&M cost can be effectively reduced.
Content based on the above embodiment, acquisition configuration include: instruction template, parsing template and data template;Instruct mould
Plate executes instruction the initial data of template acquisition for acquiring monitored device;Template is parsed, for solving to initial data
Analysis;Data template, for obtaining monitor control index according to the initial data after parsing.
Specifically, it for each of index group to be collected monitor control index, is required to configure adopting for the monitor control index
Collection instruction (i.e. instruction template), analysis mode (i.e. parsing template), final required data (i.e. data template).
For different monitored devices, the corresponding acquisition configuration of the monitored device includes a set of instruction template, parsing
Template and data template.
By the operating system or affiliated manufacturer difference that host is run that is monitored, same index is acquired
Instruction may be different, therefore can decide through consultation that justice covers instruction template, parsing mould more according to different equipment manufacturings for same index
Plate, data template.
Instruction template executes instruction the initial data of template acquisition for acquiring monitored device.Namely refer to and is being supervised
Which kind of instruction or which kind of script are executed in control equipment, to obtain initial data.
Template is parsed, for parsing to initial data.That is, for the original for executing instruction the return after template
Beginning data are parsed using which kind of mode
Data template, for obtaining monitor control index according to the initial data after parsing.That is, finally needing to extract
Which data in initial data after parsing.
Content based on the above embodiment obtains the prison of monitored device according to the corresponding acquisition configuration of monitored device
The specific steps of control index include: each monitor control index for acquiring to each monitored device, in the monitored device
The corresponding instruction template of the monitored device is executed, initial data is obtained.
After being successfully remotely logged into monitored device, according to the corresponding acquisition configuration of monitored device, monitored set is obtained
Standby monitor control index.
Specifically, for each monitor control index acquired to each monitored device, load should in the monitored device
The corresponding instruction template of monitored device, and corresponding instruction template is executed, obtain initial data.
It should be noted that initial data can be returned to acquisition adapter by monitored device, can not also return to
Acquire adapter.
The corresponding parsing template of the monitored device is executed, initial data is parsed, and execute the monitored device
Corresponding data template extracts the data after parsing, obtains the index of the monitored device.
Since the operating system of the type of monitored device, manufacturer, installation is different, the data format of the initial data of acquisition
Difference needs to parse template by executing.
When being set as monitored device initial data being returned to acquisition adapter, loads and hold on acquisition adapter
Row parsing template;When be set as monitored device not by initial data return to acquisition adapter when, in monitored device plus
It carries and executes parsing template.
Template is parsed, for being parsed to the initial data of acquisition, and is cached.
When parsing, data each in initial data are selected.
When being set as monitored device initial data being returned to acquisition adapter, loads and hold on acquisition adapter
Row data template;When be set as monitored device by initial data do not return to acquisition adapter be, in monitored device plus
It carries and executes data template.
Data template, for extracting the monitor control index of monitored device in the initial data after analytically.
Content based on the above embodiment, instruction template include the script or customized plug-in unit of command sequence, order.
Specifically, instruction template is the formatted message of acquisition instructions, carries the preconfigured acquisition instructions information of user.
Wherein, according to the difference of monitored device, acquisition instructions information may include common command sequence, command script
Or customized plug-in unit.
For example, instruction template includes JAVA component, SHELL script and 3 kinds of Command order.
The embodiment of the present invention ensure that the flexible and scalability of collecting method by way of providing customized plug-in unit,
Facilitate the realization of individual demand, to guarantee the high scalability of collecting method.
Content based on the above embodiment, parsing template include according to regular expressions, XML resolution rules, JSON parsing
The script of at least one of regular and customized plug-in unit configuration.
Specifically, parsing template supports a variety of resolution rules.
For example, include at least according to regular expressions, XML resolution rules, JSON resolution rules and customized plug-in card configuration
Script.
When initial data is made of letter, number and the character of regularity, its correspondence can be write by summarizing its rule
Regular expression, select regular expression parsing;It is optional when collection result is the data interchange format of standard JSON agreement
JSON resolution rules are selected to explain;When collection result is the data interchange format of standard x ML agreement, XML parsing may be selected
Rule explains;When collection result be complex content, need to solve by complex, personalized logical process
When result is precipitated, it can be realized by customized plug-in unit, i.e., customized plug-in mode.
Parsing template is the definition to the resolution rules of collected initial data, itself is JSON format, and key is to need
The title of the initial data of acquisition, value are the analysis mode of the initial data.For regular expression mode, expection is adopted
The text formatting of the initial data collected is analyzed, and the spy of wherein letter, number and other such as space characters etc is analyzed
The component law of different character, writes the corresponding matched regular expression of text format, then, can be into according to the regular expression
Row matching, obtains the data result for meeting resolution rules.For more complex data or simple regular expression is not available it
Matched data are carried out, the mode of the customized plug-in unit of custom-written can be used to carry out data parsing.Customized plug-in unit supports java
Language.It can be realized by java code and carry out complicated, personalized service logic dissection process to initial data, and by code
It is jar packet that implementation, which is beaten, is integrated in parsing template in a manner of plug-in unit.For initial data be standard JSON protocol format or
Corresponding JSON XML resolution rules may be selected in person's XML protocol format, carry out data parsing according to mark protocol format.
Content based on the above embodiment, data template include the script configured according to template instruction.
Specifically, data template includes the script configured according to template instruction.
Operation data template at least can be recombinated and be formatted, be obtained to based on the initial data after parsing template parsing
Take each monitor control index of data format for meeting user's needs.
Template instruction includes at least one of Html, Css, JavaScript and Freemarker.According to Html,
The script that Css, JavaScript language configure is for showing each monitor control index, and the corresponding event of processing abnormal monitoring index;
According to the script of Freemarker language configuration for carrying out data filling, secondary operation is carried out to the initial data after parsing.
To each monitor control index of acquisition, other than being shown, can also be saved.Preserving type can be preservation
In database (such as relevant database mySQL), message queue (such as Kafka queue) or the interface of Web Service.
The collecting method that each embodiment provides for a better understanding of the present invention, below by three examples to data
The concrete application scene of acquisition method is illustrated.
One, the network monitoring system based on SSH agreement
Using data on flows as monitor control index, which is based on SSH agreement, acquires the weight of related flow original in network
Information is wanted, is parsed and is extracted by important information of the high-speed engine to original related flow, data on flows is obtained, according to
Data on flows generates various useful reports.Network Safety Analysis is carried out based on data on flows, energy is intelligent and identifies in real time
The application of consumed flow is formulated network bandwidth capacity planning for enterprise and is mentioned by the usage trend of analysis network flow and bandwidth
For data supporting.
Two, the RFID information network monitoring system based on SSH
This system is mainly made of monitor terminal, communications platform and monitoring center.Monitor terminal passes through RS232 interface
It is connected with the transparent data transfer terminal of communications platform.Monitor terminal is acquired based on SSH agreement, is parsed and extracted required various
Data and information obtain monitoring data, then by the monitoring data transmission of acquisition to communications platform.Communications platform be monitor terminal and
The bridge of control centre is mainly used for being sent transparently through the data of monitor terminal acquisition, inerrably, in real time, quickly by data
Ground transmission.It is flat that embeded processor in communications platform will hand to communication after monitoring data progress simple process, protocol encapsulation
GPRS module in platform is sent to monitoring center by GPRS network.Monitoring center is also used to divide the data of monitor terminal
Analysis and processing, and valid data therein are saved in database hub.Monitoring center can also issue the monitor terminal of distal end
Instruction carries out parameter setting, calls test data in real time.
Three, the distance host based on SSH monitors system
The monitoring system by SSH protocol entry distance host, and by acquisition monitor control index to the survival of distance host,
The operation of the services such as disk space, load, process number, ip connection number, CPU, memory, hard disk, Web server, database software
State etc. is monitored, and when being abnormal situation, notifies corresponding responsible person in time.
Fig. 2 is the functional block diagram according to data acquisition device provided in an embodiment of the present invention.Based on the above embodiment interior
Hold, as shown in Fig. 2, a kind of data acquisition device includes: request generation module 201, for generating several according to acquisition tasks
Index collection request;Configuration obtains module 202, for requesting each index collection, requests to carry according to the index collection
Monitored device information, obtain the log-on message of monitored device, and carry according to index collection request to be collected
The information of index group obtains the corresponding acquisition configuration of monitored device;Data acquisition module 203, for according to monitored device
Log-on message, Telnet monitored device obtains the prison of monitored device according to the corresponding acquisition configuration of monitored device
Control index;Wherein, the information of index group to be collected carries the information of several monitor control indexes, and to each monitored device
Acquire the corresponding acquisition configuration of each monitor control index.
The device of data acquisition provided in an embodiment of the present invention, for executing data acquisition side provided in an embodiment of the present invention
Method, each module that data acquisition device includes realize that the specific method of corresponding function and process are detailed in above-mentioned collecting method
Embodiment, details are not described herein again.
The data acquisition device is used for the collecting method of foregoing embodiments.Therefore, in foregoing embodiments
Description and definition in collecting method, can be used for the understanding of each execution module in the embodiment of the present invention.
The embodiment of the present invention is by the log-on messages of the acquisition tasks, monitored device that configure in identical platform and is supervised
The corresponding acquisition configuration of control equipment, Telnet monitored device, and according to the corresponding acquisition configuration of monitored device, obtain quilt
The monitor control index of monitoring device does not need the configuration that preset collection rule is carried out in each monitored device, and improving can expand
Malleability, versatility, portability and configurability.Further, the acquisition of energy each monitor control index of effective monitoring, guarantees each hardware
The safe operation of equipment.
Fig. 3 is the structural block diagram according to electronic equipment provided in an embodiment of the present invention.Content based on the above embodiment, such as
Shown in Fig. 3, a kind of electronic equipment includes: processor (processor) 301, memory (memory) 302 and bus 303;Its
In, processor 301 and memory 302 pass through bus 303 and complete mutual communication;Processor 301 is for calling memory 302
In program instruction, to execute method provided by above-mentioned each method embodiment, for example, according to acquisition tasks, if generating
Dry index collection request;Each index collection is requested, according to the letter for the monitored device that index collection request carries
Breath obtains the log-on message of monitored device, and the information of the index group to be collected carried according to index collection request, obtains
The corresponding acquisition configuration of monitored device;According to the log-on message of monitored device, Telnet monitored device, according to being supervised
The corresponding acquisition configuration of equipment is controlled, the monitor control index of monitored device is obtained.
Another embodiment of the present invention discloses a kind of computer program product, and computer program product is non-transient including being stored in
Computer program on computer readable storage medium, computer program include program instruction, when program instruction is held by computer
When row, computer is able to carry out method provided by above-mentioned each method embodiment, for example, according to acquisition tasks, if generating
Dry index collection request;Each index collection is requested, according to the letter for the monitored device that index collection request carries
Breath obtains the log-on message of monitored device, and the information of the index group to be collected carried according to index collection request, obtains
The corresponding acquisition configuration of monitored device;According to the log-on message of monitored device, Telnet monitored device, according to being supervised
The corresponding acquisition configuration of equipment is controlled, the monitor control index of monitored device is obtained.
Another embodiment of the present invention provides a kind of non-transient computer readable storage medium, non-transient computer readable storages
Medium storing computer instruction, computer instruction makes computer execute method provided by above-mentioned each method embodiment, such as wraps
It includes: according to acquisition tasks, generating the request of several index collections;Each index collection is requested, is asked according to the index collection
The information for seeking the monitored device of carrying obtains the log-on message of monitored device, and carried according to index collection request
The information of index group to be collected obtains the corresponding acquisition configuration of monitored device;According to the log-on message of monitored device, remotely
It logs in monitored device and the monitor control index of monitored device is obtained according to the corresponding acquisition configuration of monitored device.
The apparatus embodiments described above are merely exemplary, wherein unit can be as illustrated by the separation member
Or may not be and be physically separated, component shown as a unit may or may not be physical unit, i.e.,
It can be located in one place, or may be distributed over multiple network units.It can select according to the actual needs therein
Some or all of the modules achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not paying creative labor
In the case where dynamic, it can understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Such understanding, above-mentioned skill
Substantially the part that contributes to existing technology can be embodied in the form of software products art scheme in other words, the calculating
Machine software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used
So that a computer equipment (can be personal computer, server or the network equipment etc.) executes above-mentioned each implementation
The method of certain parts of example or embodiment.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although
Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;
And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. a kind of collecting method characterized by comprising
According to acquisition tasks, the request of several index collections is generated;
Each index collection is requested, according to the information for the monitored device that index collection request carries, obtains institute
The information for the index group to be collected stating the log-on message of monitored device, and being carried according to index collection request, described in acquisition
The corresponding acquisition configuration of monitored device;
According to the log-on message of the monitored device, monitored device described in Telnet, according to the monitored device pair
The acquisition configuration answered obtains the monitor control index of the monitored device;
Wherein, the information of the index group to be collected carries several monitor control indexes, and to each monitored device
Acquire the corresponding acquisition configuration of each monitor control index.
2. collecting method according to claim 1, which is characterized in that believed according to the login of the monitored device
It ceases, the specific steps of monitored device described in Telnet include:
According to the log-on message of the monitored device, it is based on safety shell protocol, monitored device described in Telnet.
3. collecting method according to claim 1 or 2, which is characterized in that the acquisition configuration includes: instruction mould
Plate, parsing template and data template;
Described instruction template executes the initial data that described instruction template obtains for acquiring monitored device;
The parsing template, for being parsed to the initial data;
The data template, for obtaining monitor control index according to the initial data after parsing.
4. collecting method according to claim 3, which is characterized in that according to the corresponding acquisition of the monitored device
Configuration, the specific steps for obtaining the monitor control index of the monitored device include:
For each monitor control index acquired to each monitored device, the monitored device pair is executed in the monitored device
The instruction template answered obtains the initial data;
The corresponding parsing template of the monitored device is executed, the initial data is parsed, and execute the monitored device
Corresponding data template extracts the data after parsing, obtains the index of the monitored device.
5. collecting method according to claim 3, which is characterized in that described instruction template includes command sequence, life
The script of order or customized plug-in unit.
6. collecting method according to claim 3, which is characterized in that the parsing template includes according to regular expressions
The script of at least one of formula, XML resolution rules, JSON resolution rules and customized plug-in unit configuration.
7. collecting method according to claim 3, which is characterized in that the data template includes according to template instruction
The script of configuration.
8. a kind of data acquisition device characterized by comprising
Generation module is requested, for according to acquisition tasks, generating the request of several index collections;
Configuration obtains module, for requesting for each index collection, is carried according to index collection request monitored
The information of equipment obtains the log-on message of the monitored device, and the index to be collected carried according to index collection request
The information of group, obtains the corresponding acquisition configuration of the monitored device;
Data acquisition module, for the log-on message according to the monitored device, monitored device described in Telnet, according to
The corresponding acquisition configuration of the monitored device, obtains the monitor control index of the monitored device;
Wherein, the information of the index group to be collected carries several monitor control indexes, and to each monitored device
Acquire the corresponding acquisition configuration of each monitor control index.
9. a kind of electronic equipment characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, in which:
The memory is stored with the program instruction that can be executed by the processor, and the processor calls described program to instruct energy
Enough methods executed as described in claim 1 to 7 is any.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited
Computer instruction is stored up, the computer instruction makes the computer execute the method as described in claim 1 to 7 is any.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810974924.XA CN109194543A (en) | 2018-08-24 | 2018-08-24 | Collecting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810974924.XA CN109194543A (en) | 2018-08-24 | 2018-08-24 | Collecting method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109194543A true CN109194543A (en) | 2019-01-11 |
Family
ID=64919779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810974924.XA Pending CN109194543A (en) | 2018-08-24 | 2018-08-24 | Collecting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194543A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110032497A (en) * | 2019-04-22 | 2019-07-19 | 山东浪潮云信息技术有限公司 | A kind of monitoring system and method for achievement data |
CN110457182A (en) * | 2019-08-12 | 2019-11-15 | 首约科技(北京)有限公司 | A kind of load balancing cluster example operating index monitoring system |
CN110647442A (en) * | 2019-09-25 | 2020-01-03 | 北京宝兰德软件股份有限公司 | Software installation state monitoring method and device |
CN110806958A (en) * | 2019-10-24 | 2020-02-18 | 长城计算机软件与系统有限公司 | Monitoring method, monitoring device, storage medium and electronic equipment |
CN110888772A (en) * | 2019-10-12 | 2020-03-17 | 平安普惠企业管理有限公司 | Remote monitoring method, monitoring device, computer equipment and readable storage medium |
CN111338900A (en) * | 2020-02-26 | 2020-06-26 | 北京跃盟科技有限公司 | Method and device for monitoring running state of software system |
CN111526189A (en) * | 2020-04-13 | 2020-08-11 | 恒安嘉新(北京)科技股份公司 | Equipment monitoring method and device, computer equipment and storage medium |
CN111901310A (en) * | 2020-07-06 | 2020-11-06 | 北京达佳互联信息技术有限公司 | Website security testing method and device, electronic equipment and storage medium |
CN112073262A (en) * | 2020-08-26 | 2020-12-11 | 中国建设银行股份有限公司 | Cloud platform monitoring method, device, equipment and system |
CN112968933A (en) * | 2021-01-29 | 2021-06-15 | 北京达佳互联信息技术有限公司 | Data transmission method, device, server and storage medium |
CN113934913A (en) * | 2021-11-12 | 2022-01-14 | 盐城金堤科技有限公司 | Data capture method and device, storage medium and electronic equipment |
CN114244740A (en) * | 2021-12-22 | 2022-03-25 | 唯品会(广州)软件有限公司 | Network data acquisition method and system |
CN115277481A (en) * | 2022-09-22 | 2022-11-01 | 东方合智数据科技(广东)有限责任公司 | Performance index monitoring method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009127137A1 (en) * | 2008-04-16 | 2009-10-22 | 广东高新兴通信股份有限公司 | Centralized parsing method for remote device data flow |
CN101567816A (en) * | 2009-05-27 | 2009-10-28 | 北京中企开源信息技术有限公司 | Monitoring server and monitoring method |
CN104243230A (en) * | 2013-06-24 | 2014-12-24 | 北京新媒传信科技有限公司 | Method and device for obtaining monitoring data of Linux server |
CN104935621A (en) * | 2014-03-20 | 2015-09-23 | 中芯国际集成电路制造(上海)有限公司 | Remote monitoring system and remote monitoring method |
CN105429826A (en) * | 2015-12-25 | 2016-03-23 | 北京奇虎科技有限公司 | Fault detection method and device for database cluster |
-
2018
- 2018-08-24 CN CN201810974924.XA patent/CN109194543A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009127137A1 (en) * | 2008-04-16 | 2009-10-22 | 广东高新兴通信股份有限公司 | Centralized parsing method for remote device data flow |
CN101567816A (en) * | 2009-05-27 | 2009-10-28 | 北京中企开源信息技术有限公司 | Monitoring server and monitoring method |
CN104243230A (en) * | 2013-06-24 | 2014-12-24 | 北京新媒传信科技有限公司 | Method and device for obtaining monitoring data of Linux server |
CN104935621A (en) * | 2014-03-20 | 2015-09-23 | 中芯国际集成电路制造(上海)有限公司 | Remote monitoring system and remote monitoring method |
CN105429826A (en) * | 2015-12-25 | 2016-03-23 | 北京奇虎科技有限公司 | Fault detection method and device for database cluster |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110032497A (en) * | 2019-04-22 | 2019-07-19 | 山东浪潮云信息技术有限公司 | A kind of monitoring system and method for achievement data |
CN110457182A (en) * | 2019-08-12 | 2019-11-15 | 首约科技(北京)有限公司 | A kind of load balancing cluster example operating index monitoring system |
CN110647442A (en) * | 2019-09-25 | 2020-01-03 | 北京宝兰德软件股份有限公司 | Software installation state monitoring method and device |
CN110888772A (en) * | 2019-10-12 | 2020-03-17 | 平安普惠企业管理有限公司 | Remote monitoring method, monitoring device, computer equipment and readable storage medium |
CN110806958A (en) * | 2019-10-24 | 2020-02-18 | 长城计算机软件与系统有限公司 | Monitoring method, monitoring device, storage medium and electronic equipment |
CN111338900A (en) * | 2020-02-26 | 2020-06-26 | 北京跃盟科技有限公司 | Method and device for monitoring running state of software system |
CN111526189A (en) * | 2020-04-13 | 2020-08-11 | 恒安嘉新(北京)科技股份公司 | Equipment monitoring method and device, computer equipment and storage medium |
CN111901310A (en) * | 2020-07-06 | 2020-11-06 | 北京达佳互联信息技术有限公司 | Website security testing method and device, electronic equipment and storage medium |
CN112073262A (en) * | 2020-08-26 | 2020-12-11 | 中国建设银行股份有限公司 | Cloud platform monitoring method, device, equipment and system |
CN112968933A (en) * | 2021-01-29 | 2021-06-15 | 北京达佳互联信息技术有限公司 | Data transmission method, device, server and storage medium |
CN112968933B (en) * | 2021-01-29 | 2023-03-14 | 北京达佳互联信息技术有限公司 | Data transmission method, device, server and storage medium |
CN113934913A (en) * | 2021-11-12 | 2022-01-14 | 盐城金堤科技有限公司 | Data capture method and device, storage medium and electronic equipment |
CN114244740A (en) * | 2021-12-22 | 2022-03-25 | 唯品会(广州)软件有限公司 | Network data acquisition method and system |
CN114244740B (en) * | 2021-12-22 | 2024-02-27 | 唯品会(广州)软件有限公司 | Network data acquisition method and system |
CN115277481A (en) * | 2022-09-22 | 2022-11-01 | 东方合智数据科技(广东)有限责任公司 | Performance index monitoring method, device, equipment and storage medium |
CN115277481B (en) * | 2022-09-22 | 2022-12-20 | 东方合智数据科技(广东)有限责任公司 | Performance index monitoring method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109194543A (en) | Collecting method and device | |
CN105991734B (en) | A kind of cloud platform management method and system | |
CN104012041B (en) | system and method for analyzing network index | |
CN110493352A (en) | A kind of unified gateway service system and its method of servicing based on WEB middleware | |
CN108234614A (en) | A kind of exchange method based on custom protocol and Netty frames | |
CN109542011A (en) | A kind of standardized acquisition system of multi-source heterogeneous monitoring data | |
CN104636678B (en) | The method and system of management and control is carried out under a kind of cloud computing environment to terminal device | |
CN106888194A (en) | Intelligent grid IT assets security monitoring systems based on distributed scheduling | |
CN103716173B (en) | A kind of method for storing monitoring system and monitoring alarm issue | |
CN106888106A (en) | The extensive detecting system of IT assets in intelligent grid | |
WO2009064623A1 (en) | A network device and method for monitoring of backend transactions in data centers | |
CN106412113A (en) | Energy cloud service system and communication method thereof | |
CN106201754A (en) | Mission bit stream analyzes method and device | |
CN108880943A (en) | A kind of monitoring system of isomery cloud platform | |
CN109327335A (en) | A kind of cloud monitoring solution system and method | |
CN103457802A (en) | Information transmission system and method | |
CN106559498A (en) | Air control data collection platform and its collection method | |
CN105379192B (en) | Method and system for hardware assets management | |
CN103580924A (en) | Fault location method, device and system | |
CN110247812A (en) | A kind of more cluster management methods, device, system and associated component | |
CN103117878A (en) | Design method of Nagios-based distribution monitoring system | |
CN106790699A (en) | A kind of diesel engine cloud monitoring and cloud management system | |
CN104967667A (en) | Software stability test remote monitoring system based on cloud service | |
CN107592234A (en) | Method, system and the computer-readable recording medium of service link fault location | |
CN108322343A (en) | Web monitoring devices and method based on distributed SNMP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |