CN110290190A - A kind of method, monitored device and monitoring server acquiring data - Google Patents

A kind of method, monitored device and monitoring server acquiring data Download PDF

Info

Publication number
CN110290190A
CN110290190A CN201910524242.3A CN201910524242A CN110290190A CN 110290190 A CN110290190 A CN 110290190A CN 201910524242 A CN201910524242 A CN 201910524242A CN 110290190 A CN110290190 A CN 110290190A
Authority
CN
China
Prior art keywords
monitoring
monitored
monitored item
item
monitoring data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910524242.3A
Other languages
Chinese (zh)
Other versions
CN110290190B (en
Inventor
林子康
谢健
邸帅
卢道和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910524242.3A priority Critical patent/CN110290190B/en
Priority claimed from CN201910524242.3A external-priority patent/CN110290190B/en
Publication of CN110290190A publication Critical patent/CN110290190A/en
Application granted granted Critical
Publication of CN110290190B publication Critical patent/CN110290190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a kind of methods for acquiring data, monitored device and monitoring server, it is related to techno-financial technical field, this method comprises: the installation agent component in monitored device, monitoring server is by calling Agent components, so that the execution of Agent components triggering monitoring script, obtain the monitoring data of each monitored item, the monitoring data of the mark of each monitored item and each monitored item is sent to monitoring server by monitored device, due to obtaining the monitoring data of each monitored item in such a way that Agent components triggering monitoring script executes, rather than Agent components is used to acquire monitoring data, to realize disposable batch capture monitoring data, it ensure that the accuracy of index analysis result.Secondly, monitoring script operates in monitored device, to monitoring server no pressure;Definition executes parameter and directly runs in monitored device in monitoring script, therefore monitored device does not need authorization monitoring server, improves the safety of monitored device.

Description

A kind of method, monitored device and monitoring server acquiring data
Technical field
The present embodiments relate to techno-financial technical field more particularly to a kind of method for acquiring data, being monitored sets Standby and monitoring server.
Background technique
With the development of computer technology, more and more technical applications are in financial field, and traditional financial industry is gradually Change to financial technology (Fintech), but due to the safety of financial industry, requirement of real-time, also technology is proposed higher Requirement.Currently, when the performance indicator of each machine and the health status of service software are monitored in financial system, Data are directly mainly acquired by the Agent components (agent) being mounted in monitored device, then report the data of acquisition To monitoring server.It, can only be one one due to that cannot drive Agent components in this method while acquire the data of a collection of monitored item A acquisition, but it is whether normal sometimes for some index is analyzed according to the numerical value of monitored item multiple under synchronization, from And cause to analyze result inaccuracy.
Summary of the invention
When by directly acquiring data using Agent components, the data of a collection of monitored item cannot be acquired, simultaneously so as to cause finger The problem of mark analysis result inaccuracy, the embodiment of the invention provides a kind of method, monitored device and monitoring for acquiring data Server.
On the one hand, the embodiment of the invention provides a kind of methods for acquiring data, comprising:
Monitored device receives the Agent components call instruction that monitoring server is sent, and is equipped in the monitored device Agent components;
The Agent components triggering monitoring script of the monitored device executes, and obtains the monitoring data of each monitored item;
The monitored device is sent out the monitoring data of the mark of each monitored item and each monitored item using transmission script It send to the monitoring server, so that the monitoring server captures component according to the mark and each monitoring of each monitored item Corresponding relationship between the monitoring data of item obtains the monitoring data of each monitored item, and the capture component of the monitoring server is pre- First save the mark of each monitored item.
Optionally, the monitoring data of each monitored item is sent to the monitoring using transmission script by the monitored device Before server, further includes:
The monitored device is added in the monitoring data of each monitored item acquires successful field for identifying.
Optionally, further includes:
When the monitoring script, which executes, to malfunction, the monitored device is not in the monitoring data of each monitored item Addition acquires successful field for identifying;
The monitored device sends monitoring data empty set to the monitoring server, so that the prison by sending script Control server triggers alarm.
Optionally, the monitoring data of each monitored item is sent to the monitoring using transmission script by the monitored device Server, comprising:
The monitored device is sent out the monitoring data of the mark of each monitored item and each monitored item using transmission script It send to proxy server, so that the proxy server sends the monitoring data of the mark of each monitored item and each monitored item To the monitoring server.
Optionally, the mark of each monitored item is obtained using automatic discovery rule in the capture component of the monitoring server ?.
On the one hand, the embodiment of the invention provides a kind of methods for acquiring data, comprising:
Monitoring server sends Agent components call instruction to monitored device, is equipped with agency in the monitored device Component obtains the monitoring data of each monitored item so that the Agent components triggering monitoring script of the monitored device executes;
The monitoring server receive the monitored device using the mark for sending each monitored item that script is sent and The monitoring data of each monitored item;
The monitoring server capture component according to the mark and the monitoring data of each monitored item of each monitored item it Between corresponding relationship obtain the monitoring data of each monitored item, the capture component of the monitoring server pre-saves each monitoring The mark of item.
On the one hand, the embodiment of the invention provides a kind of monitored devices, comprising:
First receiving module, for receiving the Agent components call instruction of monitoring server transmission;
Agent components execute for triggering monitoring script, obtain the monitoring data of each monitored item;
First sending module sends script for the mark of each monitored item and the monitoring data of each monitored item for using It is sent to the monitoring server, so that the monitoring server captures mark and each prison of the component according to each monitored item Control the monitoring data that the corresponding relationship between the monitoring data of item obtains each monitored item, the capture component of the monitoring server Pre-save the mark of each monitored item.
It optionally, further include adding module;
The adding module is specifically used for:
Before the monitoring data of each monitored item is sent to the monitoring server using transmission script, described each Addition acquires successful field for identifying in the monitoring data of monitored item.
Optionally, the adding module is also used to:
When the monitoring script, which executes, to malfunction, not in the monitoring data of each monitored item, addition is adopted for identifying Collect successful field;
First sending module is also used to:
Monitoring data empty set is sent to the monitoring server, so that monitoring server triggering is accused by sending script It is alert.
Optionally, first sending module is specifically used for:
The monitoring data of the mark of each monitored item and each monitored item is sent to proxy server using script is sent, So that the monitoring data of the mark of each monitored item and each monitored item is sent to the monitoring service by the proxy server Device.
Optionally, the mark of each monitored item is obtained using automatic discovery rule in the capture component of the monitoring server ?.
On the one hand, the embodiment of the invention provides a kind of monitoring servers, comprising:
Second sending module is pacified in the monitored device for sending Agent components call instruction to monitored device The prison of each monitored item is obtained so that the Agent components triggering monitoring script of the monitored device executes equipped with Agent components Control data;
Second receiving module, for receiving the monitored device using the mark for sending each monitored item that script is sent With the monitoring data of each monitored item;
Component is captured, for the corresponding relationship between the mark and the monitoring data of each monitored item according to each monitored item Obtain the monitoring data of each monitored item, the mark for capturing component and pre-saving each monitored item.
On the one hand, the embodiment of the invention provides a kind of data collection systems, comprising:
Monitored device, monitoring server;
The monitoring server sends Agent components call instruction to monitored device;
The Agent components triggering monitoring script of the monitored device executes, and obtains the monitoring data of each monitored item, institute It states and Agent components is installed in monitored device;
The monitored device is sent out the monitoring data of the mark of each monitored item and each monitored item using transmission script It send to the monitoring server;
The monitoring server capture component according to the mark and the monitoring data of each monitored item of each monitored item it Between corresponding relationship obtain the monitoring data of each monitored item, the capture component of the monitoring server pre-saves each monitoring The mark of item.
On the one hand, the embodiment of the invention provides a kind of computer equipment, including memory, processor and it is stored in storage On device and the computer program that can run on a processor, the processor execute the method for realizing acquisition data when described program The step of.
On the one hand, the embodiment of the invention provides a kind of computer readable storage medium, being stored with can be set by computer The standby computer program executed, when described program is run on a computing device, so that the computer equipment executes acquisition The step of method of data.
In the embodiment of the present invention, the installation agent component in monitored device, while monitoring script is set, monitoring server By calling Agent components, so that the execution of Agent components triggering monitoring script, obtains the monitoring data of each monitored item, is supervised The monitoring data of the mark of each monitored item and each monitored item is sent to monitoring server by control equipment, acts on behalf of group due to using The mode that part triggering monitoring script executes obtains the monitoring data of each monitored item, rather than uses Agent components acquisition monitoring number According to needing to be analyzed according to the numerical value of monitored item multiple under synchronization to realize disposable batch capture monitoring data When whether some index is normal, precision of analysis ensure that.Secondly, monitoring script operates in monitored device, to prison Control server no pressure;In addition, by defining execution parameter in monitoring script and directly being run in monitored device, therefore by Monitoring device does not need authorization monitoring server Telnet and executes associated script control command, improves monitored device Safety.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of application scenarios schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of method for acquiring data provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of method for acquiring data provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of monitored device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of monitoring server provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of data collection system provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used to explain this hair It is bright, it is not intended to limit the present invention.
In order to facilitate understanding, noun involved in the embodiment of the present invention is explained below.
Zabbix:Zabbix is the distributed open source monitoring scheme an of enterprise-level.It is that a can monitor various networks The software of parameter and server health and integrality.The informing mechanism of Zabbix using flexible, allowing user is almost to appoint Event configures the alarm based on mail.In this way can be with rapid feedback server the problem of.Based on stored data, Zabbix Provide outstanding report and data visualization function.These functions make ideal scheme of the Zabbix as capacity planning. Zabbix supports active poll and passive capture.Zabbix all report, statistical information and configuration parameters can pass through base It accesses in the front end page of Web.Front end page based on Web may insure to assess network state and service in terms of any The health of device.It is appropriate with postponing, Zabbix can play the part of important role in terms of IT infrastructure monitoring.
The method of acquisition data in the embodiment of the present invention can be applied in application scenarios shown in FIG. 1, the scene packet Include monitoring server 101, monitored device 102, wherein monitoring server 101 can be Zabbix monitoring server, be monitored Equipment 102 can be the service server of bank and other financial mechanism, and monitored device 102 can be one or more.Each quilt Agent components are installed in monitoring device 102, which can be Zabbix Agent components, each monitored device 102 Middle setting monitoring script, the execution parameter of monitoring script are specified when creating each monitored item.When monitoring server 101 is adjusted When with Agent components in monitored device 102, Agent components trigger monitoring script and execute, and obtain the monitoring number of each monitored item According to.Monitored device 102 sends the monitoring data of the mark of each monitored item and each monitored item in the form of one-to-one To monitoring server 101.Monitoring server 101 includes capturing component, captures component and automatic discovery rule is used to obtain respectively in advance The mark of a monitored item.It is a pair of according to one between the mark and the monitoring data of each monitored item of each monitored item to capture component It should be related to the monitoring data for obtaining each monitored item.
Based on application scenario diagram shown in FIG. 1, the embodiment of the invention provides a kind of processes of method for acquiring data, should The process of method can be executed by monitored device and monitoring server interaction, as shown in Figure 2, comprising the following steps:
Step S201, monitoring server send Agent components call instruction to monitored device.
Specifically, Agent components are installed in monitored device.
The Agent components triggering monitoring script of step S202, monitored device execute, and obtain the monitoring number of each monitored item According to.
Specifically, the monitoring data of each monitored item can be the operation data of big data platform component, viability index Data, big data resource data etc..The execution parameter of monitoring script is specified when creating each monitored item.Monitoring script is pressed Related command is generated according to execution parameter and is executed.
Step S203, monitored device, which uses, sends script for the mark of each monitored item and the monitoring number of each monitored item According to being sent to monitoring server.
Specifically, sending script includes two methods of ZabbixMetric and ZabbixSender, wherein ZabbixMetric encapsulates data into data packet according to the format of zabbix sender agreement, and real data is stored in third In the json of section.ZabbixSender is mainly used for obtaining socket communication with zabbix monitoring server, sends the packet within 10050 ports monitored to zabbix monitoring server.
Monitored device uses the form of (key-value) by the mark of each monitored item and the monitoring number of each monitored item According to being sent to monitoring server.
Step S204, monitoring server capture component according to the mark and the monitoring number of each monitored item of each monitored item Corresponding relationship between obtains the monitoring data of each monitored item.
Specifically, the capture component of monitoring server pre-saves the mark of each monitored item, captures component using each Corresponding relationship between the mark of monitored item and the mark and the monitoring data of each monitored item of each monitored item, to monitoring number According to write-back is carried out, the monitoring data of each monitored item is obtained.
In the embodiment of the present invention, the installation agent component in monitored device, while monitoring script is set, monitoring server By calling Agent components, so that the execution of Agent components triggering monitoring script, obtains the monitoring data of each monitored item, is supervised The monitoring data of the mark of each monitored item and each monitored item is sent to monitoring server by control equipment, acts on behalf of group due to using The mode that part triggering monitoring script executes obtains the monitoring data of each monitored item, rather than uses Agent components acquisition monitoring number According to needing to be analyzed according to the numerical value of monitored item multiple under synchronization to realize disposable batch capture monitoring data When whether some index is normal, precision of analysis ensure that.Secondly, monitoring script operates in monitored device, to prison Control server no pressure;In addition, by defining execution parameter in monitoring script and directly being run in monitored device, therefore by Monitoring device does not need authorization monitoring server Telnet and executes associated script control command, improves monitored device Safety.
Optionally, before above-mentioned steps S203, monitored device is added in the monitoring data of each monitored item and is used for Mark acquires successful field.Monitoring server supervises the preset field in monitoring data when receiving monitoring data Control illustrates not malfunction in monitoring script implementation procedure if monitoring data includes that mark acquires successful field, data acquisition Success.
Optionally, when monitoring script, which executes, to malfunction, monitored device is not added in the monitoring data of each monitored item Successful field is acquired for identifying, monitored device sends monitoring data empty set to monitoring server by sending script, with Make monitoring server triggering alarm.Specifically, monitoring server is after receiving monitoring data, to the predetermined word in monitoring data Section is monitored.If monitoring data does not include that mark acquires successful field, illustrate to malfunction in monitoring script implementation procedure, number Fail according to acquisition, so as to trigger alarm.
By being added in monitoring data or not adding for indicating to acquire successful field whether identify monitoring data It acquires successfully, therefore monitoring server can find the case where data acquisition fails when receiving monitoring data in time, to guarantee The validity of monitoring data.
Optionally, in order to reduce the pressure of monitoring server, can be arranged between monitoring server and monitored device Proxy server, monitored device are sent the monitoring data of the mark of each monitored item and each monitored item using transmission script To proxy server, the monitoring data of the mark of each monitored item and each monitored item is then sent to prison by proxy server Control server.
In specific implementation, proxy server can be respectively set in different zones, the proxy server in each region is used for The monitoring data that the monitored device in the region is sent is received, is then sent by the unified monitoring data by collection of proxy server The pressure of monitoring server is reduced to monitoring server to realize distributed monitoring.
Optionally, the mark that the capture component of monitoring server pre-saves each monitored item can when monitored item is less The mark of each monitored item is manually arranged, but when monitored item is more, the mode being manually arranged is not easy to realize, for this purpose, prison The mark for controlling each monitored item in the capture component of server, which can be, finds what rule obtained using automatic.Specifically, it is supervising The monitoring original shape that multiple monitored item are defined in control server, is arranged monitored item identification discovery script in monitored device.Monitoring Server discovery script execution is requested to monitored device, and monitoring original shape is carried in script execution request.Monitored device executes Monitored item identification discovery script determines the corresponding monitored item mark of monitoring original shape, monitored item mark is then sent to monitoring clothes Business device.Determine that the mark of monitored item greatly improves the efficiency for artificial setting using automatic discovery rule.
Optionally, due to, provided with the acquisition time-out time of monitored item, such as 30s, not adopted in 30 in Agent components When collecting the monitoring data of the monitored item, collecting thread will terminate, but the operation of monitoring script may considerably beyond 30s, Will lead to collecting thread in this way terminates when monitoring script has been not carried out.For this purpose, being executed in the embodiment of the present invention using multithreading Monitoring script obtains monitoring data, and monitoring data occurs to monitoring server, to avoid monitoring script different using asynchronous system It often interrupts and executes and influence monitoring data collection.
Embodiment in order to preferably explain the present invention describes the embodiment of the present invention below with reference to specific implement scene and provides A kind of acquisition data method, this method by monitored device, proxy server, monitoring server interaction execute, such as Fig. 3 institute Show, method includes the following steps:
Step S301, monitoring server send Agent components call instruction to proxy server.
Step S302, proxy server send Agent components call instruction to monitored device.
Multiple monitored devices in the corresponding region of one proxy server.
The Agent components triggering monitoring script of step S303, monitored device execute, and obtain the monitoring number of each monitored item According to.
Step S304, monitored device is added in the monitoring data of each monitored item acquires successful word for identifying Section.
Step S305, monitored device, which uses, sends script for the mark of each monitored item and the monitoring number of each monitored item According to being sent to proxy server.
The monitoring data of the mark of each monitored item and each monitored item is sent to monitoring by step S306, proxy server Server.
Step S307, monitoring server are monitored the preset field in monitoring data, determine in monitoring data and include Successful field is acquired for identifying.
Step S308, monitoring server capture component according to the mark and the monitoring number of each monitored item of each monitored item Corresponding relationship between obtains the monitoring data of each monitored item.
Monitoring server obtains the mark of each monitored item using automatic discovery rule, captures component and uses each monitored item Mark and each monitored item mark the monitoring data of each monitored item between corresponding relationship, to monitoring data carry out Write-back obtains the monitoring data of each monitored item.
Due to obtaining the monitoring data of each monitored item in such a way that Agent components triggering monitoring script executes, rather than Monitoring data is acquired using Agent components, to realize disposable batch capture monitoring data, is being needed according under synchronization The numerical value of multiple monitored item come analyze some index it is whether normal when, ensure that precision of analysis.Secondly, monitoring script Monitored device is operated in, to monitoring server no pressure;In addition, by defining execution parameter in monitoring script and directly existing It is run in monitored device, therefore monitored device does not need authorization monitoring server Telnet and executes associated script control life It enables, improves the safety of monitored device.
Based on the same technical idea, the embodiment of the invention provides a kind of monitored devices, as shown in figure 4, this is supervised Controlling equipment 400 includes:
First receiving module 401, for receiving the Agent components call instruction of monitoring server transmission;
Agent components 402 execute for triggering monitoring script, obtain the monitoring data of each monitored item;
First sending module 403 sends script for the mark of each monitored item and the monitoring of each monitored item for using Data are sent to the monitoring server, so that the monitoring server captures component according to the mark of each monitored item and each Corresponding relationship between the monitoring data of a monitored item obtains the monitoring data of each monitored item, the capture of the monitoring server Component pre-saves the mark of each monitored item.
It optionally, further include adding module 404;
The adding module 404 is specifically used for:
Before the monitoring data of each monitored item is sent to the monitoring server using transmission script, described each Addition acquires successful field for identifying in the monitoring data of monitored item.
Optionally, the adding module 404 is also used to:
When the monitoring script, which executes, to malfunction, not in the monitoring data of each monitored item, addition is adopted for identifying Collect successful field;
First sending module 403 is also used to:
Monitoring data empty set is sent to the monitoring server, so that monitoring server triggering is accused by sending script It is alert.
Optionally, first sending module 403 is specifically used for:
The monitoring data of the mark of each monitored item and each monitored item is sent to proxy server using script is sent, So that the monitoring data of the mark of each monitored item and each monitored item is sent to the monitoring service by the proxy server Device.
Optionally, the mark of each monitored item is obtained using automatic discovery rule in the capture component of the monitoring server ?.
Based on the same technical idea, the embodiment of the invention provides a kind of monitoring servers, as shown in figure 5, the monitoring Server 500 includes:
Second sending module 501, for sending Agent components call instruction to monitored device, in the monitored device Agent components are installed, so that the Agent components triggering monitoring script of the monitored device executes, obtain each monitored item Monitoring data;
Second receiving module 502, for receiving the monitored device using each monitored item for sending script transmission The monitoring data of mark and each monitored item;
Capture component 503, for according to each monitored item mark with it is corresponding between the monitoring data of each monitored item Relationship obtains the monitoring data of each monitored item, the mark for capturing component and pre-saving each monitored item.
Based on the same technical idea, the embodiment of the invention provides a kind of data collection systems, as shown in fig. 6, this is System 600 includes:
Monitored device 601, monitoring server 602;
The monitoring server 602 sends Agent components call instruction to monitored device;
The Agent components triggering monitoring script of the monitored device 601 executes, and obtains the monitoring data of each monitored item, Agent components are installed in the monitored device;
The monitored device 601, which uses, sends script for the mark of each monitored item and the monitoring data of each monitored item It is sent to the monitoring server;
The monitoring server 602 captures component according to the mark and the monitoring data of each monitored item of each monitored item Between corresponding relationship obtain the monitoring data of each monitored item, the capture component of the monitoring server pre-saves each prison Control the mark of item.
Based on the same technical idea, the embodiment of the invention provides a kind of computer equipments, as shown in fig. 7, comprises extremely Lack a processor 701, and the memory 702 connecting at least one processor, does not limit processing in the embodiment of the present invention Specific connection medium between device 701 and memory 702 passes through bus between processor 701 and memory 702 in Fig. 7 and connects For.Bus can be divided into address bus, data/address bus, control bus etc..
In embodiments of the present invention, memory 702 is stored with the instruction that can be executed by least one processor 701, at least The instruction that one processor 701 is stored by executing memory 702 can execute included in the method for acquisition data above-mentioned The step of.
Wherein, processor 701 is the control centre of computer equipment, can use various interfaces and connection computer The various pieces of equipment are stored in memory 702 by running or executing the instruction being stored in memory 702 and calling Data, to acquire data.Optionally, processor 701 may include one or more processing units, and processor 701 can integrate Application processor and modem processor, wherein the main processing operation system of application processor, user interface and application program Deng modem processor mainly handles wireless communication.It is understood that above-mentioned modem processor can not also integrate Into processor 701.In some embodiments, processor 701 and memory 702 can be realized on the same chip, some In embodiment, they can also be realized respectively on independent chip.
Processor 701 can be general processor, such as central processing unit (CPU), digital signal processor, dedicated integrated Circuit (Application Specific Integrated Circuit, ASIC), field programmable gate array or other can Perhaps transistor logic, discrete hardware components may be implemented or execute present invention implementation for programmed logic device, discrete gate Each method, step and logic diagram disclosed in example.General processor can be microprocessor or any conventional processor Deng.The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware processor and execute completion, Huo Zheyong Hardware and software module combination in processor execute completion.
Memory 702 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module.Memory 702 may include the storage medium of at least one type, It such as may include flash memory, hard disk, multimedia card, card-type memory, random access storage device (Random Access Memory, RAM), static random-access memory (Static Random Access Memory, SRAM), may be programmed read-only deposit Reservoir (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), band Electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic storage, disk, CD etc..Memory 702 can be used for carrying or storing have instruction or data The desired program code of structure type and can by any other medium of computer access, but not limited to this.The present invention is real Applying the memory 702 in example can also be circuit or other devices that arbitrarily can be realized store function, for storing program Instruction and/or data.
Based on the same technical idea, it the embodiment of the invention provides a kind of computer readable storage medium, is stored with The computer program that can be executed by computer equipment, when described program is run on a computing device, so that the computer Equipment executes the step of method of acquisition data.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method for acquiring data characterized by comprising
Monitored device receives the Agent components call instruction that monitoring server is sent, and is equipped with agency in the monitored device Component;
The Agent components triggering monitoring script of the monitored device executes, and obtains the monitoring data of each monitored item;
The monitoring data of the mark of each monitored item and each monitored item is sent to by the monitored device using transmission script The monitoring server, so that the monitoring server captures mark and each monitored item of the component according to each monitored item Corresponding relationship between monitoring data obtains the monitoring data of each monitored item, and the capture component of the monitoring server is protected in advance Deposit the mark of each monitored item.
2. the method as described in claim 1, which is characterized in that the monitored device, which uses, sends script for each monitored item Monitoring data be sent to before the monitoring server, further includes:
The monitored device is added in the monitoring data of each monitored item acquires successful field for identifying.
3. method according to claim 2, which is characterized in that further include:
When the monitoring script, which executes, to malfunction, the monitored device is not added in the monitoring data of each monitored item Successful field is acquired for identifying;
The monitored device sends monitoring data empty set to the monitoring server, so that the monitoring takes by sending script Business device triggering alarm.
4. the method as described in claims 1 to 3 is any, which is characterized in that the monitored device will be each using transmission script The monitoring data of a monitored item is sent to the monitoring server, comprising:
The monitoring data of the mark of each monitored item and each monitored item is sent to by the monitored device using transmission script Proxy server, so that the monitoring data of the mark of each monitored item and each monitored item is sent to institute by the proxy server State monitoring server.
5. the method as described in claim 1, which is characterized in that the monitoring server captures each monitored item in component Mark is obtained using automatic discovery rule.
6. a kind of method for acquiring data characterized by comprising
Monitoring server sends Agent components call instruction to monitored device, is equipped in the monitored device and acts on behalf of group Part obtains the monitoring data of each monitored item so that the Agent components triggering monitoring script of the monitored device executes;
The monitoring server receives the monitored device using the mark that sends each monitored item that script is sent and each The monitoring data of monitored item;
The monitoring server captures component according between the mark and the monitoring data of each monitored item of each monitored item Corresponding relationship obtains the monitoring data of each monitored item, and the capture component of the monitoring server pre-saves each monitored item Mark.
7. a kind of monitored device characterized by comprising
First receiving module, for receiving the Agent components call instruction of monitoring server transmission;
Agent components execute for triggering monitoring script, obtain the monitoring data of each monitored item;
First sending module, for being sent the monitoring data of the mark of each monitored item and each monitored item using transmission script To the monitoring server, so that the monitoring server captures mark and each monitored item of the component according to each monitored item Monitoring data between corresponding relationship obtain the monitoring data of each monitored item, the capture component of the monitoring server is preparatory Save the mark of each monitored item.
8. a kind of monitoring server characterized by comprising
Second sending module is equipped in the monitored device for sending Agent components call instruction to monitored device Agent components obtain the monitoring number of each monitored item so that the Agent components triggering monitoring script of the monitored device executes According to;
Second receiving module, for receiving the monitored device using the mark for sending each monitored item that script is sent and each The monitoring data of a monitored item;
Component is captured, is obtained for the corresponding relationship between the mark and the monitoring data of each monitored item according to each monitored item The monitoring data of each monitored item, the mark for capturing component and pre-saving each monitored item.
9. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes Claims 1 to 5 any claim or power when executing described program Benefit requires the step of 6 the method.
10. a kind of computer readable storage medium, which is characterized in that it is stored with the computer journey that can be executed by computer equipment Sequence, when described program is run on a computing device, so that the computer equipment perform claim requires 1~5 any right It is required that or the step of claim 6 the method.
CN201910524242.3A 2019-06-18 Data acquisition method, monitored equipment and monitoring server Active CN110290190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910524242.3A CN110290190B (en) 2019-06-18 Data acquisition method, monitored equipment and monitoring server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910524242.3A CN110290190B (en) 2019-06-18 Data acquisition method, monitored equipment and monitoring server

Publications (2)

Publication Number Publication Date
CN110290190A true CN110290190A (en) 2019-09-27
CN110290190B CN110290190B (en) 2024-10-25

Family

ID=

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111811555A (en) * 2020-07-08 2020-10-23 深圳市杰和科技发展有限公司 Method and device for displaying RTU (remote terminal Unit) data by digital signage
CN112711514A (en) * 2020-12-30 2021-04-27 北京珞安科技有限责任公司 Monitoring system, method and device of terminal equipment
WO2021190659A1 (en) * 2020-10-29 2021-09-30 平安科技(深圳)有限公司 System data acquisition method and apparatus, and medium and electronic device
CN113645099A (en) * 2021-08-12 2021-11-12 中国工商银行股份有限公司 High-availability monitoring method, device, equipment and storage medium
CN115514674A (en) * 2022-08-24 2022-12-23 智网安云(武汉)信息技术有限公司 Automatic monitoring item creating method and equipment based on script remote connection

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252471A (en) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 Distributed automatization test system and method
US20090063509A1 (en) * 2007-08-30 2009-03-05 Sqlalert Corporation Method and Apparatus for Monitoring Network Servers
CN107239379A (en) * 2017-05-10 2017-10-10 杭州铭师堂教育科技发展有限公司 Database performance Automatic monitoring systems based on salt
CN107659453A (en) * 2017-10-13 2018-02-02 千寻位置网络有限公司 The method that a large amount of TCP serve ports are monitored by zabbix
CN107846321A (en) * 2016-09-19 2018-03-27 阿里巴巴集团控股有限公司 A kind of monitoring method of interface, device and electronic equipment
CN109086182A (en) * 2018-06-27 2018-12-25 平安科技(深圳)有限公司 The method and terminal device of database auto-alarming

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090063509A1 (en) * 2007-08-30 2009-03-05 Sqlalert Corporation Method and Apparatus for Monitoring Network Servers
CN101252471A (en) * 2008-03-20 2008-08-27 中兴通讯股份有限公司 Distributed automatization test system and method
CN107846321A (en) * 2016-09-19 2018-03-27 阿里巴巴集团控股有限公司 A kind of monitoring method of interface, device and electronic equipment
CN107239379A (en) * 2017-05-10 2017-10-10 杭州铭师堂教育科技发展有限公司 Database performance Automatic monitoring systems based on salt
CN107659453A (en) * 2017-10-13 2018-02-02 千寻位置网络有限公司 The method that a large amount of TCP serve ports are monitored by zabbix
CN109086182A (en) * 2018-06-27 2018-12-25 平安科技(深圳)有限公司 The method and terminal device of database auto-alarming

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
章勇;: "基于SaaS的校园网监控平台的设计与实现", 中国教育网络, no. 12, 5 December 2016 (2016-12-05) *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111811555A (en) * 2020-07-08 2020-10-23 深圳市杰和科技发展有限公司 Method and device for displaying RTU (remote terminal Unit) data by digital signage
WO2021190659A1 (en) * 2020-10-29 2021-09-30 平安科技(深圳)有限公司 System data acquisition method and apparatus, and medium and electronic device
CN112711514A (en) * 2020-12-30 2021-04-27 北京珞安科技有限责任公司 Monitoring system, method and device of terminal equipment
CN113645099A (en) * 2021-08-12 2021-11-12 中国工商银行股份有限公司 High-availability monitoring method, device, equipment and storage medium
CN113645099B (en) * 2021-08-12 2024-02-02 中国工商银行股份有限公司 High availability monitoring method, device, equipment and storage medium
CN115514674A (en) * 2022-08-24 2022-12-23 智网安云(武汉)信息技术有限公司 Automatic monitoring item creating method and equipment based on script remote connection
CN115514674B (en) * 2022-08-24 2023-12-26 智网安云(武汉)信息技术有限公司 Automatic monitoring item creation method and equipment based on script remote connection

Similar Documents

Publication Publication Date Title
CN110232010A (en) A kind of alarm method, alarm server and monitoring server
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN108874624B (en) Server, method for monitoring Java process and storage medium
CN108039964B (en) Fault processing method, device and system based on network function virtualization
US10116534B2 (en) Systems and methods for WebSphere MQ performance metrics analysis
CN112052111B (en) Processing method, device and equipment for server abnormity early warning and storage medium
CN106383764B (en) A kind of collecting method and equipment
CN109460307B (en) Micro-service calling tracking method and system based on log embedded point
WO2019051948A1 (en) Method, apparatus, server, and storage medium for processing monitoring data
CN112256542B (en) eBPF-based micro-service system performance detection method, device and system
CN111813573A (en) Communication method of management platform and robot software and related equipment thereof
CN104182683A (en) Method, device and system for monitoring online transactions
KR20180037342A (en) Application software error monitoring, statistics management service and solution method.
CN111984505A (en) Operation and maintenance data acquisition engine and acquisition method
CN112650614A (en) Call chain monitoring method and device, electronic equipment and storage medium
CN107612755A (en) The management method and its device of a kind of cloud resource
CN104967667A (en) Software stability test remote monitoring system based on cloud service
CN111159009A (en) Pressure testing method and device for log service system
CN110290190A (en) A kind of method, monitored device and monitoring server acquiring data
CN106933718B (en) Method for monitoring performance and device
CN114741218A (en) Method, device, equipment, system and medium for extracting abnormal index of operating system
CN110874303B (en) Data acquisition method, device and equipment
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN110290190B (en) Data acquisition method, monitored equipment and monitoring server
CN109034768B (en) Financial reconciliation method, apparatus, computer device and storage medium

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