CN110290190A - A method for collecting data, a monitored device and a monitoring server - Google Patents
A method for collecting data, a monitored device and a monitoring server Download PDFInfo
- 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
- item
- data
- monitored item
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 459
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000013515 script Methods 0.000 claims abstract description 85
- 230000005540 biological transmission Effects 0.000 claims 5
- 238000004364 calculation method Methods 0.000 claims 1
- 230000007257 malfunction Effects 0.000 claims 1
- 238000004458 analytical method Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 13
- 238000004590 computer program Methods 0.000 description 10
- 238000012545 processing Methods 0.000 description 6
- 238000013480 data collection Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 230000036541 health Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013079 data visualisation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
-
- 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
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/103—Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate
-
- 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/14—Arrangements for monitoring or testing data switching networks using software, i.e. software packages
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- 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
-
- 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/50—Network services
- H04L67/56—Provisioning 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 present invention provides a method for collecting data, a monitored device, and a monitoring server, which relate to the technical field of financial technology. The method includes: installing an agent component on the monitored device, and the monitoring server calls the agent component to make the agent component Trigger the execution of the monitoring script to obtain the monitoring data of each monitoring item. The monitored device sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server. Since the agent component is used to trigger the execution of monitoring scripts, the monitoring data of each monitoring item is obtained. Monitoring data, instead of using proxy components to collect monitoring data, so as to realize one-time batch collection of monitoring data and ensure the accuracy of indicator analysis results. Secondly, the monitoring script runs on the monitored device without pressure on the monitoring server; the execution parameters are defined in the monitoring script and run directly on the monitored device, so the monitored device does not need to authorize the monitoring server, which improves the security of the monitored device .
Description
技术领域technical field
本发明实施例涉及科技金融技术领域,尤其涉及一种采集数据的方法、被监控设备及监控服务器。The embodiments of the present invention relate to the technical field of technology and finance, and in particular, to a method for collecting data, a monitored device, and a monitoring server.
背景技术Background technique
随着计算机技术的发展,越来越多的技术应用在金融领域,传统金融业正在逐步向金融科技(Fintech)转变,但由于金融行业的安全性、实时性要求,也对技术提出的更高的要求。目前,在对金融系统中各个机器的性能指标以及服务软件的健康状态进行监控时,主要通过安装在被监控设备上的代理组件(agent)直接采集数据,然后将采集的数据上报至监控服务器。由于该方法中不能驱动代理组件同时采集一批监控项的数据,只能一个一个的采集,但是有时需要根据同一时刻下多个监控项的数值来分析某个指标是否正常,从而导致分析结果不准确。With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually transforming into Fintech. However, due to the security and real-time requirements of the financial industry, higher requirements are placed on technology. requirements. At present, when monitoring the performance indicators of each machine in the financial system and the health status of service software, the agent component (agent) installed on the monitored device mainly collects data directly, and then reports the collected data to the monitoring server. Since this method cannot drive the proxy component to collect data of a batch of monitoring items at the same time, it can only collect data one by one. However, sometimes it is necessary to analyze whether an indicator is normal based on the values of multiple monitoring items at the same time, resulting in inconsistent analysis results. precise.
发明内容Contents of the invention
由采用代理组件直接采集数据时,不能同时采集一批监控项的数据,从而导致指标分析结果不准确的问题,本发明实施例提供了一种采集数据的方法、被监控设备及监控服务器。When directly collecting data by using the agent component, the data of a batch of monitoring items cannot be collected at the same time, resulting in the problem of inaccurate index analysis results. The embodiment of the present invention provides a method for collecting data, a monitored device and a monitoring server.
一方面,本发明实施例提供了一种采集数据的方法,包括:On the one hand, an embodiment of the present invention provides a method for collecting data, including:
被监控设备接收监控服务器发送的代理组件调用指令,所述被监控设备上安装有代理组件;The monitored device receives the proxy component call instruction sent by the monitoring server, and the monitored device is installed with a proxy component;
所述被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据;The proxy component of the monitored device triggers the execution of the monitoring script to obtain the monitoring data of each monitoring item;
所述被监控设备采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器,以使所述监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述监控服务器的捕捉组件预先保存各个监控项的标识。The monitored device uses a sending script to send the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server, so that the capture component of the monitoring server The monitoring data of each monitoring item is obtained through the corresponding relationship between them, and the capture component of the monitoring server pre-saves the identification of each monitoring item.
可选地,所述被监控设备采用发送脚本将各个监控项的监控数据发送至所述监控服务器之前,还包括:Optionally, before the monitored device sends the monitoring data of each monitoring item to the monitoring server by using the sending script, it further includes:
所述被监控设备在所述各个监控项的监控数据中添加用于标识采集成功的字段。The monitored device adds a field for identifying successful collection to the monitoring data of each monitoring item.
可选地,还包括:Optionally, also include:
当所述监控脚本执行出错时,所述被监控设备不在所述各个监控项的监控数据中添加用于标识采集成功的字段;When an error occurs in the execution of the monitoring script, the monitored device does not add a field for identifying successful collection to the monitoring data of each monitoring item;
所述被监控设备通过发送脚本发送监控数据空集至所述监控服务器,以使所述监控服务器触发告警。The monitored device sends an empty set of monitoring data to the monitoring server by sending a script, so that the monitoring server triggers an alarm.
可选地,所述被监控设备采用发送脚本将各个监控项的监控数据发送至所述监控服务器,包括:Optionally, the monitored device sends the monitoring data of each monitoring item to the monitoring server using a sending script, including:
所述被监控设备采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至代理服务器,以使所述代理服务器将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器。The monitored device uses a sending script to send the identification of each monitoring item and the monitoring data of each monitoring item to the proxy server, so that the proxy server sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server.
可选地,所述监控服务器的捕捉组件中各个监控项的标识是采用自动发现规则获得的。Optionally, the identification of each monitoring item in the capturing component of the monitoring server is obtained by using an automatic discovery rule.
一方面,本发明实施例提供了一种采集数据的方法,包括:On the one hand, an embodiment of the present invention provides a method for collecting data, including:
监控服务器发送代理组件调用指令至被监控设备,所述被监控设备上安装有代理组件,以使所述被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据;The monitoring server sends the proxy component calling instruction to the monitored device, and the proxy component is installed on the monitored device, so that the proxy component of the monitored device triggers the execution of the monitoring script to obtain the monitoring data of each monitoring item;
所述监控服务器接收所述被监控设备采用发送脚本发送的各个监控项的标识和各个监控项的监控数据;The monitoring server receives the identifier of each monitoring item and the monitoring data of each monitoring item sent by the monitored device using a sending script;
所述监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述监控服务器的捕捉组件预先保存各个监控项的标识。The capture component of the monitoring server obtains the monitoring data of each monitoring item according to the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item, and the capturing component of the monitoring server pre-stores the identification of each monitoring item.
一方面,本发明实施例提供了一种被监控设备,包括:On the one hand, an embodiment of the present invention provides a monitored device, including:
第一接收模块,用于接收监控服务器发送的代理组件调用指令;The first receiving module is used to receive the proxy component calling instruction sent by the monitoring server;
代理组件,用于触发监控脚本执行,获得各个监控项的监控数据;The agent component is used to trigger the execution of the monitoring script and obtain the monitoring data of each monitoring item;
第一发送模块,用于采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器,以使所述监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述监控服务器的捕捉组件预先保存各个监控项的标识。The first sending module is used to send the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server by using a sending script, so that the capture component of the monitoring server Correspondence between monitoring data The monitoring data of each monitoring item is obtained, and the capture component of the monitoring server pre-stores the identification of each monitoring item.
可选地,还包括添加模块;Optionally, add modules as well;
所述添加模块具体用于:The adding module is specifically used for:
采用发送脚本将各个监控项的监控数据发送至所述监控服务器之前,在所述各个监控项的监控数据中添加用于标识采集成功的字段。Before the monitoring data of each monitoring item is sent to the monitoring server by using the sending script, a field for identifying successful collection is added to the monitoring data of each monitoring item.
可选地,所述添加模块还用于:Optionally, the added module is also used for:
当所述监控脚本执行出错时,不在所述各个监控项的监控数据中添加用于标识采集成功的字段;When the monitoring script executes an error, a field for identifying successful collection is not added to the monitoring data of each monitoring item;
所述第一发送模块还用于:The first sending module is also used for:
通过发送脚本发送监控数据空集至所述监控服务器,以使所述监控服务器触发告警。Sending an empty set of monitoring data to the monitoring server by sending a script, so that the monitoring server triggers an alarm.
可选地,所述第一发送模块具体用于:Optionally, the first sending module is specifically configured to:
采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至代理服务器,以使所述代理服务器将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器。The identification of each monitoring item and the monitoring data of each monitoring item are sent to the proxy server by using the sending script, so that the proxy server sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server.
可选地,所述监控服务器的捕捉组件中各个监控项的标识是采用自动发现规则获得的。Optionally, the identification of each monitoring item in the capturing component of the monitoring server is obtained by using an automatic discovery rule.
一方面,本发明实施例提供了一种监控服务器,包括:On the one hand, the embodiment of the present invention provides a monitoring server, including:
第二发送模块,用于发送代理组件调用指令至被监控设备,所述被监控设备上安装有代理组件,以使所述被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据;The second sending module is used to send the proxy component calling instruction to the monitored device, the proxy component is installed on the monitored device, so that the proxy component of the monitored device triggers the execution of the monitoring script, and obtains the monitoring data of each monitoring item ;
第二接收模块,用于接收所述被监控设备采用发送脚本发送的各个监控项的标识和各个监控项的监控数据;The second receiving module is used to receive the identification of each monitoring item and the monitoring data of each monitoring item sent by the monitored device by using the sending script;
捕捉组件,用于根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述捕捉组件预先保存各个监控项的标识。The capturing component is used to obtain the monitoring data of each monitoring item according to the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item, and the capturing component pre-stores the identification of each monitoring item.
一方面,本发明实施例提供了一种数据采集系统,包括:On the one hand, an embodiment of the present invention provides a data collection system, including:
被监控设备、监控服务器;Monitored equipment, monitoring server;
所述监控服务器发送代理组件调用指令至被监控设备;The monitoring server sends an agent component calling instruction to the monitored device;
所述被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据,所述被监控设备上安装有代理组件;The proxy component of the monitored device triggers the execution of the monitoring script to obtain the monitoring data of each monitoring item, and the proxy component is installed on the monitored device;
所述被监控设备采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器;The monitored device uses a sending script to send the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server;
所述监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述监控服务器的捕捉组件预先保存各个监控项的标识。The capture component of the monitoring server obtains the monitoring data of each monitoring item according to the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item, and the capturing component of the monitoring server pre-stores the identification of each monitoring item.
一方面,本发明实施例提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现采集数据的方法的步骤。On the one hand, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the program, the method for collecting data is implemented step.
一方面,本发明实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行采集数据的方法的步骤。On the one hand, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the method for collecting data. step.
本发明实施例中,在被监控设备上安装代理组件,同时设置监控脚本,监控服务器通过调用代理组件,以使代理组件触发监控脚本的执行,获得各个监控项的监控数据,被监控设备将各个监控项的标识和各个监控项的监控数据发送至监控服务器,由于采用代理组件触发监控脚本执行的方式获得各个监控项的监控数据,而不是采用代理组件采集监控数据,从而实现一次性批量采集监控数据,在需要根据同一时刻下多个监控项的数值来分析某个指标是否正常时,保证了分析结果的准确性。其次,监控脚本运行在被监控设备,对监控服务器无压力;另外,通过在监控脚本中定义执行参数并直接在被监控设备上运行,故被监控设备不需要授权监控服务器远程登录和执行相关脚本控制命令,提高了被监控设备的安全性。In the embodiment of the present invention, the agent component is installed on the monitored device, and the monitoring script is set at the same time. The monitoring server invokes the agent component, so that the agent component triggers the execution of the monitoring script, and obtains the monitoring data of each monitoring item. The identification of the monitoring item and the monitoring data of each monitoring item are sent to the monitoring server. The monitoring data of each monitoring item is obtained by using the proxy component to trigger the execution of the monitoring script, instead of using the proxy component to collect monitoring data, so as to realize one-time batch collection and monitoring Data, when it is necessary to analyze whether an indicator is normal based on the values of multiple monitoring items at the same time, it ensures the accuracy of the analysis results. Secondly, the monitoring script runs on the monitored device and has no pressure on the monitoring server; in addition, by defining the execution parameters in the monitoring script and running it directly on the monitored device, the monitored device does not need to authorize the monitoring server to log in remotely and execute related scripts Control commands improve the security of the monitored equipment.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.
图1为本发明实施例提供的一种应用场景示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present invention;
图2为本发明实施例提供的一种采集数据的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for collecting data provided by an embodiment of the present invention;
图3为本发明实施例提供的一种采集数据的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for collecting data provided by an embodiment of the present invention;
图4为本发明实施例提供的一种被监控设备的结构示意图;FIG. 4 is a schematic structural diagram of a monitored device provided by an embodiment of the present invention;
图5为本发明实施例提供的一种监控服务器的结构示意图;FIG. 5 is a schematic structural diagram of a monitoring server provided by an embodiment of the present invention;
图6为本发明实施例提供的一种数据采集系统的结构示意图;6 is a schematic structural diagram of a data acquisition system provided by an embodiment of the present invention;
图7为本发明实施例提供的一种计算机设备的结构示意图。FIG. 7 is a schematic structural diagram of a computer device provided by an embodiment of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and beneficial effects of the present invention more clear, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
为了方便理解,下面对本发明实施例中涉及的名词进行解释。For the convenience of understanding, the terms involved in the embodiments of the present invention are explained below.
Zabbix:Zabbix是一个企业级的分布式开源监控方案。是一款能够监控各种网络参数以及服务器健康性和完整性的软件。Zabbix使用灵活的通知机制,允许用户为几乎任何事件配置基于邮件的告警。这样可以快速反馈服务器的问题。基于已存储的数据,Zabbix提供了出色的报告和数据可视化功能。这些功能使得Zabbix成为容量规划的理想方案。Zabbix支持主动轮询和被动捕获。Zabbix所有的报告、统计信息和配置参数都可以通过基于Web的前端页面进行访问。基于Web的前端页面可以确保从任何方面评估网络状态和服务器的健康性。适当的配置后,Zabbix可以在IT基础架构监控方面扮演重要的角色。Zabbix: Zabbix is an enterprise-level distributed open source monitoring solution. is a software capable of monitoring various network parameters as well as server health and integrity. Zabbix uses a flexible notification mechanism that allows users to configure email-based alerts for almost any event. This allows for quick feedback on server issues. Based on the stored data, Zabbix provides excellent reporting and data visualization capabilities. These features make Zabbix an ideal solution for capacity planning. Zabbix supports active polling and passive capture. All Zabbix reports, statistics and configuration parameters can be accessed through the web-based front-end page. The web-based front-end page ensures that the network status and server health can be evaluated from any aspect. Properly configured, Zabbix can play an important role in IT infrastructure monitoring.
本发明实施例中的采集数据的方法可以应用于图1所示的应用场景中,该场景包括监控服务器101、被监控设备102,其中,监控服务器101可以为Zabbix监控服务器,被监控设备102可以是银行等金融机构的业务服务器,被监控设备102可以为一个或多个。每个被监控设备102中安装有代理组件,该代理组件可以是Zabbix代理组件,每个被监控设备102中设置监控脚本,监控脚本的执行参数是在创建各个监控项时指定的。当监控服务器101调用被监控设备102上的代理组件时,代理组件触发监控脚本执行,获得各个监控项的监控数据。被监控设备102将各个监控项的标识和各个监控项的监控数据以一一对应的形式发送至监控服务器101。监控服务器101包括捕捉组件,捕捉组件预先采用自动发现规则获得各个监控项的标识。捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的一一对应关系获得每个监控项的监控数据。The method for collecting data in the embodiment of the present invention can be applied to the application scenario shown in FIG. It is a business server of a financial institution such as a bank, and there may be one or more monitored devices 102 . An agent component is installed in each monitored device 102, and the agent component may be a Zabbix agent component. A monitoring script is set in each monitored device 102, and the execution parameters of the monitoring script are specified when creating each monitoring item. When the monitoring server 101 invokes the proxy component on the monitored device 102, the proxy component triggers the execution of the monitoring script to obtain the monitoring data of each monitoring item. The monitored device 102 sends the identifier of each monitoring item and the monitoring data of each monitoring item to the monitoring server 101 in a one-to-one correspondence. The monitoring server 101 includes a capturing component, which uses an automatic discovery rule in advance to obtain the identification of each monitoring item. The capture component obtains the monitoring data of each monitoring item according to the one-to-one correspondence between the identification of each monitoring item and the monitoring data of each monitoring item.
基于图1所示的应用场景图,本发明实施例提供了一种采集数据的方法的流程,该方法的流程可以由被监控设备和监控服务器交互执行,如图2所示,包括以下步骤:Based on the application scenario diagram shown in FIG. 1, an embodiment of the present invention provides a flow of a method for collecting data. The flow of the method can be executed interactively by the monitored device and the monitoring server, as shown in FIG. 2, including the following steps:
步骤S201,监控服务器发送代理组件调用指令至被监控设备。In step S201, the monitoring server sends a proxy component calling instruction to the monitored device.
具体地,被监控设备上安装有代理组件。Specifically, an agent component is installed on the monitored device.
步骤S202,被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据。In step S202, the proxy component of the monitored device triggers the execution of the monitoring script to obtain monitoring data of each monitoring item.
具体地,各个监控项的监控数据可以是大数据平台组件的运行数据、存活性指标数据、大数据资源数据等。监控脚本的执行参数是在创建各个监控项时指定的。监控脚本按照执行参数生成相关命令并执行。Specifically, the monitoring data of each monitoring item may be operating data of components of the big data platform, survivability indicator data, big data resource data, and the like. The execution parameters of the monitoring script are specified when creating each monitoring item. The monitoring script generates and executes related commands according to the execution parameters.
步骤S203,被监控设备采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至监控服务器。In step S203, the monitored device sends the identifier of each monitoring item and the monitoring data of each monitoring item to the monitoring server by using a sending script.
具体地,发送脚本包括ZabbixMetric和ZabbixSender两个方法,其中ZabbixMetric按照zabbix sender协议的格式将数据封装成数据包,实际数据存放在第三段的json中。ZabbixSender主要用于与zabbix监控服务器取得socket通讯,将数据包发送到zabbix监控服务器监听的10050端口。Specifically, the sending script includes two methods, ZabbixMetric and ZabbixSender, where ZabbixMetric encapsulates data into data packets according to the format of the zabbix sender protocol, and the actual data is stored in the json in the third section. ZabbixSender is mainly used to obtain socket communication with zabbix monitoring server, and send data packets to port 10050 monitored by zabbix monitoring server.
被监控设备采用(key-value)的形式将各个监控项的标识和各个监控项的监控数据发送至监控服务器。The monitored device sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server in the form of (key-value).
步骤S204,监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据。In step S204, the capture component of the monitoring server obtains the monitoring data of each monitoring item according to the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item.
具体地,监控服务器的捕捉组件预先保存各个监控项的标识,捕捉组件采用各个监控项的标识以及各个监控项的标识与各个监控项的监控数据之间的对应关系,对监控数据进行回写,获得每个监控项的监控数据。Specifically, the capture component of the monitoring server pre-stores the identification of each monitoring item, and the capturing component uses the identification of each monitoring item and the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item to write back the monitoring data. Obtain monitoring data for each monitoring item.
本发明实施例中,在被监控设备上安装代理组件,同时设置监控脚本,监控服务器通过调用代理组件,以使代理组件触发监控脚本的执行,获得各个监控项的监控数据,被监控设备将各个监控项的标识和各个监控项的监控数据发送至监控服务器,由于采用代理组件触发监控脚本执行的方式获得各个监控项的监控数据,而不是采用代理组件采集监控数据,从而实现一次性批量采集监控数据,在需要根据同一时刻下多个监控项的数值来分析某个指标是否正常时,保证了分析结果的准确性。其次,监控脚本运行在被监控设备,对监控服务器无压力;另外,通过在监控脚本中定义执行参数并直接在被监控设备上运行,故被监控设备不需要授权监控服务器远程登录和执行相关脚本控制命令,提高了被监控设备的安全性。In the embodiment of the present invention, the agent component is installed on the monitored device, and the monitoring script is set at the same time. The monitoring server invokes the agent component, so that the agent component triggers the execution of the monitoring script, and obtains the monitoring data of each monitoring item. The identification of the monitoring item and the monitoring data of each monitoring item are sent to the monitoring server. The monitoring data of each monitoring item is obtained by using the proxy component to trigger the execution of the monitoring script, instead of using the proxy component to collect monitoring data, so as to realize one-time batch collection and monitoring Data, when it is necessary to analyze whether an indicator is normal based on the values of multiple monitoring items at the same time, it ensures the accuracy of the analysis results. Secondly, the monitoring script runs on the monitored device and has no pressure on the monitoring server; in addition, by defining the execution parameters in the monitoring script and running it directly on the monitored device, the monitored device does not need to authorize the monitoring server to log in remotely and execute related scripts Control commands improve the security of the monitored equipment.
可选地,在上述步骤S203之前,被监控设备在各个监控项的监控数据中添加用于标识采集成功的字段。监控服务器在接收到监控数据时,对监控数据中的预设字段进行监控,若监控数据包括标识采集成功的字段,则说明监控脚本执行过程中没有出错,数据采集成功。Optionally, before the above step S203, the monitored device adds a field for identifying successful collection to the monitoring data of each monitoring item. When the monitoring server receives the monitoring data, it monitors the preset fields in the monitoring data. If the monitoring data includes a field indicating that the acquisition is successful, it means that there is no error during the execution of the monitoring script and the data acquisition is successful.
可选地,当监控脚本执行出错时,被监控设备不在各个监控项的监控数据中添加用于标识采集成功的字段,被监控设备通过发送脚本发送监控数据空集至监控服务器,以使监控服务器触发告警。具体地,监控服务器在接收到监控数据后,对监控数据中的预设字段进行监控。若监控数据不包括标识采集成功的字段,则说明监控脚本执行过程中出错,数据采集失败,从而可以触发告警。Optionally, when an error occurs in the execution of the monitoring script, the monitored device does not add a field for identifying the success of the collection in the monitoring data of each monitoring item, and the monitored device sends an empty set of monitoring data to the monitoring server by sending the script, so that the monitoring server Trigger an alert. Specifically, after receiving the monitoring data, the monitoring server monitors preset fields in the monitoring data. If the monitoring data does not include a field that identifies the success of the collection, it means that an error occurred during the execution of the monitoring script, and the data collection failed, which can trigger an alarm.
通过在监控数据中添加或不添加用于表示采集成功的字段来标识监控数据是否采集成功,故监控服务器在接收到监控数据时能及时发现数据采集失败的情况,从而保证了监控数据的有效性。Whether the monitoring data is collected successfully is identified by adding or not adding a field to indicate the success of the collection in the monitoring data, so the monitoring server can detect the failure of data collection in time when receiving the monitoring data, thus ensuring the validity of the monitoring data .
可选地,为了减少监控服务器的压力,可以在监控服务器和被监控设备之间设置代理服务器,被监控设备采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至代理服务器,然后由代理服务器将各个监控项的标识和各个监控项的监控数据发送至监控服务器。Optionally, in order to reduce the pressure on the monitoring server, a proxy server can be set between the monitoring server and the monitored device, and the monitored device uses a sending script to send the identification of each monitoring item and the monitoring data of each monitoring item to the proxy server, and then The proxy server sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server.
具体实施中,在不同区域可以分别设置代理服务器,每个区域的代理服务器用于接收该区域的被监控设备发送的监控数据,然后由代理服务器统一将收集的监控数据发送至监控服务器,从而实现分布式监控,减少监控服务器的压力。In the specific implementation, proxy servers can be set up in different areas, and the proxy server in each area is used to receive the monitoring data sent by the monitored equipment in the area, and then the proxy server will send the collected monitoring data to the monitoring server in a unified way, so as to realize Distributed monitoring reduces the pressure on monitoring servers.
可选地,监控服务器的捕捉组件预先保存各个监控项的标识,当监控项较少时,可以人工设置各个监控项的标识,但是当监控项较多时,人工设置的方式不易实现,为此,监控服务器的捕捉组件中各个监控项的标识可以是采用自动发现规则获得的。具体地,在监控服务器中定义多个监控项的监控原形,在被监控设备中设置监控项标识发现脚本。监控服务器发现脚本执行请求至被监控设备,脚本执行请求中携带监控原形。被监控设备执行监控项标识发现脚本,确定监控原形对应的监控项标识,然后将监控项标识发送至监控服务器。采用自动发现规则确定监控项的标识,相较于人工设置来说,大大提高了效率。Optionally, the capture component of the monitoring server pre-stores the identification of each monitoring item. When there are few monitoring items, the identification of each monitoring item can be manually set, but when there are many monitoring items, the manual setting method is not easy to implement. Therefore, The identification of each monitoring item in the capturing component of the monitoring server may be obtained by using an automatic discovery rule. Specifically, the monitoring prototypes of multiple monitoring items are defined in the monitoring server, and monitoring item identification discovery scripts are set in the monitored equipment. The monitoring server discovers that the script execution request is sent to the monitored device, and the script execution request carries the monitoring prototype. The monitored device executes the monitoring item identification discovery script to determine the monitoring item identification corresponding to the monitoring prototype, and then sends the monitoring item identification to the monitoring server. Using automatic discovery rules to determine the identification of monitoring items, compared with manual settings, greatly improves efficiency.
可选地,由于代理组件中设置了监控项的采集超时时间,比如30s,在30内没有采集到该监控项的监控数据时,采集线程将会结束,但是监控脚本的运行可能远远超过30s,这样将导致采集线程在监控脚本未执行完时结束。为此,本发明实施例中采用多线程执行监控脚本获取监控数据,采用异步方式发生监控数据至监控服务器,从而避免监控脚本异常中断执行而影响监控数据采集。Optionally, since the collection timeout period of the monitoring item is set in the agent component, such as 30s, when the monitoring data of the monitoring item is not collected within 30 seconds, the collection thread will end, but the running of the monitoring script may far exceed 30s , which will cause the collection thread to end before the monitoring script is executed. For this reason, in the embodiment of the present invention, a multi-threaded execution monitoring script is used to obtain monitoring data, and the monitoring data is sent to the monitoring server in an asynchronous manner, thereby avoiding abnormal interruption of execution of the monitoring script and affecting monitoring data collection.
为了更好的解释本发明实施例,下面结合具体的实施场景描述本发明实施例提供的一种采集数据的方法,该方法由被监控设备、代理服务器、监控服务器交互执行,如图3所示,该方法包括以下步骤:In order to better explain the embodiment of the present invention, a method for collecting data provided by the embodiment of the present invention is described below in conjunction with specific implementation scenarios. The method is interactively executed by the monitored device, the proxy server, and the monitoring server, as shown in FIG. 3 , the method includes the following steps:
步骤S301,监控服务器发送代理组件调用指令至代理服务器。In step S301, the monitoring server sends a proxy component calling instruction to the proxy server.
步骤S302,代理服务器发送代理组件调用指令至被监控设备。Step S302, the proxy server sends a proxy component calling instruction to the monitored device.
一个代理服务器对应一个区域中的多个被监控设备。One proxy server corresponds to multiple monitored devices in one area.
步骤S303,被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据。In step S303, the proxy component of the monitored device triggers the execution of the monitoring script to obtain the monitoring data of each monitoring item.
步骤S304,被监控设备在各个监控项的监控数据中添加用于标识采集成功的字段。In step S304, the monitored device adds a field for identifying successful collection to the monitoring data of each monitoring item.
步骤S305,被监控设备采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至代理服务器。In step S305, the monitored device sends the identifier of each monitoring item and the monitoring data of each monitoring item to the proxy server by using the sending script.
步骤S306,代理服务器将各个监控项的标识和各个监控项的监控数据发送至监控服务器。Step S306, the proxy server sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server.
步骤S307,监控服务器对监控数据中的预设字段进行监控,确定监控数据中包括用于标识采集成功的字段。In step S307, the monitoring server monitors the preset fields in the monitoring data, and determines that the monitoring data includes a field for identifying successful collection.
步骤S308,监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据。Step S308, the capture component of the monitoring server obtains the monitoring data of each monitoring item according to the correspondence between the identification of each monitoring item and the monitoring data of each monitoring item.
监控服务器采用自动发现规则获得各个监控项的标识,捕捉组件采用各个监控项的标识以及各个监控项的标识与各个监控项的监控数据之间的对应关系,对监控数据进行回写,获得每个监控项的监控数据。The monitoring server uses automatic discovery rules to obtain the identification of each monitoring item, and the capture component uses the identification of each monitoring item and the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item to write back the monitoring data to obtain each The monitoring data of the monitoring item.
由于采用代理组件触发监控脚本执行的方式获得各个监控项的监控数据,而不是采用代理组件采集监控数据,从而实现一次性批量采集监控数据,在需要根据同一时刻下多个监控项的数值来分析某个指标是否正常时,保证了分析结果的准确性。其次,监控脚本运行在被监控设备,对监控服务器无压力;另外,通过在监控脚本中定义执行参数并直接在被监控设备上运行,故被监控设备不需要授权监控服务器远程登录和执行相关脚本控制命令,提高了被监控设备的安全性。Since the monitoring data of each monitoring item is obtained by using the proxy component to trigger the execution of the monitoring script, instead of using the proxy component to collect the monitoring data, the monitoring data can be collected in batches at one time, and it needs to be analyzed according to the values of multiple monitoring items at the same time Whether a certain indicator is normal or not ensures the accuracy of the analysis results. Secondly, the monitoring script runs on the monitored device and has no pressure on the monitoring server; in addition, by defining the execution parameters in the monitoring script and running it directly on the monitored device, the monitored device does not need to authorize the monitoring server to log in remotely and execute related scripts Control commands improve the security of the monitored equipment.
基于相同的技术构思,本发明实施例提供了一种被监控设备,如图4所示,该被监控设备400包括:Based on the same technical concept, an embodiment of the present invention provides a monitored device. As shown in FIG. 4, the monitored device 400 includes:
第一接收模块401,用于接收监控服务器发送的代理组件调用指令;The first receiving module 401 is configured to receive the proxy component calling instruction sent by the monitoring server;
代理组件402,用于触发监控脚本执行,获得各个监控项的监控数据;The agent component 402 is used to trigger the execution of the monitoring script to obtain the monitoring data of each monitoring item;
第一发送模块403,用于采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器,以使所述监控服务器的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述监控服务器的捕捉组件预先保存各个监控项的标识。The first sending module 403 is used to send the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server by using a sending script, so that the capture component of the monitoring server can The monitoring data of each monitoring item is obtained according to the corresponding relationship between the monitoring data, and the capture component of the monitoring server pre-stores the identification of each monitoring item.
可选地,还包括添加模块404;Optionally, an adding module 404 is also included;
所述添加模块404具体用于:The adding module 404 is specifically used for:
采用发送脚本将各个监控项的监控数据发送至所述监控服务器之前,在所述各个监控项的监控数据中添加用于标识采集成功的字段。Before the monitoring data of each monitoring item is sent to the monitoring server by using the sending script, a field for identifying successful collection is added to the monitoring data of each monitoring item.
可选地,所述添加模块404还用于:Optionally, the adding module 404 is also used for:
当所述监控脚本执行出错时,不在所述各个监控项的监控数据中添加用于标识采集成功的字段;When the monitoring script executes an error, a field for identifying successful collection is not added to the monitoring data of each monitoring item;
所述第一发送模块403还用于:The first sending module 403 is also used for:
通过发送脚本发送监控数据空集至所述监控服务器,以使所述监控服务器触发告警。Sending an empty set of monitoring data to the monitoring server by sending a script, so that the monitoring server triggers an alarm.
可选地,所述第一发送模块403具体用于:Optionally, the first sending module 403 is specifically configured to:
采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至代理服务器,以使所述代理服务器将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器。The identification of each monitoring item and the monitoring data of each monitoring item are sent to the proxy server by using the sending script, so that the proxy server sends the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server.
可选地,所述监控服务器的捕捉组件中各个监控项的标识是采用自动发现规则获得的。Optionally, the identification of each monitoring item in the capturing component of the monitoring server is obtained by using an automatic discovery rule.
基于相同的技术构思,本发明实施例提供了一种监控服务器,如图5所示,该监控服务器500包括:Based on the same technical concept, the embodiment of the present invention provides a monitoring server, as shown in Figure 5, the monitoring server 500 includes:
第二发送模块501,用于发送代理组件调用指令至被监控设备,所述被监控设备上安装有代理组件,以使所述被监控设备的代理组件触发监控脚本执行,获得各个监控项的监控数据;The second sending module 501 is used to send the proxy component call command to the monitored device, the proxy component is installed on the monitored device, so that the proxy component of the monitored device triggers the execution of the monitoring script, and obtains the monitoring of each monitoring item data;
第二接收模块502,用于接收所述被监控设备采用发送脚本发送的各个监控项的标识和各个监控项的监控数据;The second receiving module 502 is configured to receive the identification of each monitoring item and the monitoring data of each monitoring item sent by the monitored device by using the sending script;
捕捉组件503,用于根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述捕捉组件预先保存各个监控项的标识。The capturing component 503 is configured to obtain the monitoring data of each monitoring item according to the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item, and the capturing component pre-stores the identification of each monitoring item.
基于相同的技术构思,本发明实施例提供了一种数据采集系统,如图6所示,该系统600包括:Based on the same technical concept, the embodiment of the present invention provides a data acquisition system, as shown in Figure 6, the system 600 includes:
被监控设备601、监控服务器602;Monitored device 601, monitoring server 602;
所述监控服务器602发送代理组件调用指令至被监控设备;The monitoring server 602 sends the proxy component invocation instruction to the monitored device;
所述被监控设备601的代理组件触发监控脚本执行,获得各个监控项的监控数据,所述被监控设备上安装有代理组件;The proxy component of the monitored device 601 triggers the execution of the monitoring script to obtain the monitoring data of each monitoring item, and the proxy component is installed on the monitored device;
所述被监控设备601采用发送脚本将各个监控项的标识和各个监控项的监控数据发送至所述监控服务器;The monitored device 601 uses a sending script to send the identification of each monitoring item and the monitoring data of each monitoring item to the monitoring server;
所述监控服务器602的捕捉组件根据各个监控项的标识与各个监控项的监控数据之间的对应关系获得每个监控项的监控数据,所述监控服务器的捕捉组件预先保存各个监控项的标识。The capture component of the monitoring server 602 obtains the monitoring data of each monitoring item according to the corresponding relationship between the identification of each monitoring item and the monitoring data of each monitoring item, and the capturing component of the monitoring server pre-stores the identification of each monitoring item.
基于相同的技术构思,本发明实施例提供了一种计算机设备,如图7所示,包括至少一个处理器701,以及与至少一个处理器连接的存储器702,本发明实施例中不限定处理器701与存储器702之间的具体连接介质,图7中处理器701和存储器702之间通过总线连接为例。总线可以分为地址总线、数据总线、控制总线等。Based on the same technical concept, an embodiment of the present invention provides a computer device, as shown in FIG. 7 , including at least one processor 701, and a memory 702 connected to at least one processor. The processor is not limited in the embodiment of the present invention. As for the specific connection medium between 701 and the memory 702, the bus connection between the processor 701 and the memory 702 in FIG. 7 is taken as an example. The bus can be divided into address bus, data bus, control bus and so on.
在本发明实施例中,存储器702存储有可被至少一个处理器701执行的指令,至少一个处理器701通过执行存储器702存储的指令,可以执行前述的采集数据的方法中所包括的步骤。In the embodiment of the present invention, the memory 702 stores instructions executable by at least one processor 701, and at least one processor 701 executes the instructions stored in the memory 702 to perform the steps included in the aforementioned method for collecting data.
其中,处理器701是计算机设备的控制中心,可以利用各种接口和线路连接计算机设备的各个部分,通过运行或执行存储在存储器702内的指令以及调用存储在存储器702内的数据,从而采集数据。可选的,处理器701可包括一个或多个处理单元,处理器701可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器701中。在一些实施例中,处理器701和存储器702可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 701 is the control center of the computer equipment, which can use various interfaces and lines to connect various parts of the computer equipment, and collect data by running or executing instructions stored in the memory 702 and calling data stored in the memory 702 . Optionally, the processor 701 may include one or more processing units, and the processor 701 may integrate an application processor and a modem processor. The tuner processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 701 . In some embodiments, the processor 701 and the memory 702 can be implemented on the same chip, and in some embodiments, they can also be implemented on independent chips.
处理器701可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本发明实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 701 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
存储器702作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器702可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random AccessMemory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器702是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本发明实施例中的存储器702还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。The memory 702, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules. The memory 702 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Magnetic Memory, Disk, discs and more. Memory 702 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 702 in the embodiment of the present invention may also be a circuit or any other device capable of implementing a storage function, and is used for storing program instructions and/or data.
基于相同的技术构思,本发明实施例提供了一种计算机可读存储介质,其存储有可由计算机设备执行的计算机程序,当所述程序在计算机设备上运行时,使得所述计算机设备执行采集数据的方法的步骤。Based on the same technical concept, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program executable by a computer device, and when the program is run on the computer device, the computer device executes the data collection process. steps of the method.
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910524242.3A CN110290190B (en) | 2019-06-18 | 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 | 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=68005157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910524242.3A Active CN110290190B (en) | 2019-06-18 | 2019-06-18 | Data acquisition method, monitored equipment and monitoring server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110290190B (en) |
Cited By (5)
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)
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 |
-
2019
- 2019-06-18 CN CN201910524242.3A patent/CN110290190B/en active Active
Patent Citations (6)
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)
Title |
---|
章勇;: "基于SaaS的校园网监控平台的设计与实现", 中国教育网络, no. 12, 5 December 2016 (2016-12-05) * |
Cited By (7)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN110290190B (en) | 2024-10-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110290190A (en) | A method for collecting data, a monitored device and a monitoring server | |
CN111083225B (en) | Data processing method and device in Internet of things platform and Internet of things platform | |
CN110232010A (en) | A kind of alarm method, alarm server and monitoring server | |
US10102097B2 (en) | Transaction server performance monitoring using component performance data | |
US9712410B1 (en) | Local metrics in a service provider environment | |
KR101826368B1 (en) | Cloud computing monitoring and management system | |
US10459780B2 (en) | Automatic application repair by network device agent | |
US20170048120A1 (en) | Systems and Methods for WebSphere MQ Performance Metrics Analysis | |
JP2017517060A (en) | Fault processing method, related apparatus, and computer | |
CN109787850B (en) | Monitoring system, monitoring method and computing node | |
CN110806931A (en) | Method and device for realizing call link tracking of distributed service and electronic equipment | |
CN108121633A (en) | Exception catching method and device | |
CN112134754A (en) | Pressure testing method and device, network equipment and storage medium | |
US11700178B2 (en) | System and method for managing clusters in an edge network | |
KR20180015027A (en) | Apparatus and Method for Automatic Error Alarm of DDS Applications System | |
CN114416420A (en) | Equipment problem feedback method and system | |
CN107612755A (en) | The management method and its device of a kind of cloud resource | |
CN113760562A (en) | Link tracking method, device, system, server and storage medium | |
CN117632644A (en) | Service abnormality monitoring method, device, electronic equipment and readable storage medium | |
CN110278100B (en) | Method, device, electronic device and storage medium for early warning processing | |
CN116340111A (en) | Linux socket monitoring event monitoring method and device | |
CN117370053A (en) | Information system service operation-oriented panoramic monitoring method and system | |
CN110874303B (en) | Data acquisition method, device and equipment | |
CN115934453A (en) | Troubleshooting method, troubleshooting device and storage medium | |
CN115391127A (en) | Dial testing method and device, storage medium and chip |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |