CN115811457A - Integrated Data Acquisition Method for Multi-source Data Fusion - Google Patents
Integrated Data Acquisition Method for Multi-source Data Fusion Download PDFInfo
- Publication number
- CN115811457A CN115811457A CN202211530609.0A CN202211530609A CN115811457A CN 115811457 A CN115811457 A CN 115811457A CN 202211530609 A CN202211530609 A CN 202211530609A CN 115811457 A CN115811457 A CN 115811457A
- Authority
- CN
- China
- Prior art keywords
- data
- 7xops
- task
- agent
- monitoring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000004927 fusion Effects 0.000 title claims abstract description 21
- 238000012544 monitoring process Methods 0.000 claims abstract description 212
- 238000009434 installation Methods 0.000 claims abstract description 39
- 238000007726 management method Methods 0.000 claims description 27
- 230000010354 integration Effects 0.000 claims description 24
- 238000005457 optimization Methods 0.000 claims description 23
- 238000004140 cleaning Methods 0.000 claims description 22
- 238000013144 data compression Methods 0.000 claims description 22
- 238000001914 filtration Methods 0.000 claims description 22
- 238000013524 data verification Methods 0.000 claims description 21
- 238000013515 script Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 claims description 3
- 238000012795 verification Methods 0.000 claims 1
- 238000013480 data collection Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 13
- 238000011161 development Methods 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 238000012827 research and development Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000007639 printing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
本发明属于多源数据融合技术领域,且公开了多源数据融合的一体化数据采集方法,所述7xOPS Agent自动、手动注册:S1:实现配置文件全局初始化,打印日志全局初始化,配置代理IP池,系统初始化;S2:请求7xOPS Server分配Token,每5分钟自动进行请求7xOPS Server获取Token,以协程方式启动;本发明提供了多源数据融合的一体化数据采集方法,通过7xOPS Server对7xOPS Agent进行管理,可实现安装、升级、卸载、编辑等操作,任务类型有性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控等任务。7xOPS Server实现任务的启动、停止、编辑、删除等操作,通过7xOPS Agent实现对不同任务类型的数据采集,7xOPS Receiver实现对采集到的数据进行存储。
The invention belongs to the technical field of multi-source data fusion, and discloses an integrated data collection method for multi-source data fusion. The automatic and manual registration of the 7xOPS Agent: S1: realize the global initialization of the configuration file, the global initialization of the print log, and the configuration of the agent IP pool , system initialization; S2: request 7xOPS Server to allocate Token, automatically request 7xOPS Server to obtain Token every 5 minutes, and start in a collaborative process mode; the present invention provides an integrated data collection method for multi-source data fusion, through 7xOPS Server to 7xOPS Agent For management, operations such as installation, upgrade, uninstallation, and editing can be realized. Task types include performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, and UCPE monitoring. 7xOPS Server implements operations such as start, stop, edit, and delete of tasks, implements data collection of different task types through 7xOPS Agent, and implements storage of collected data through 7xOPS Receiver.
Description
技术领域technical field
本发明属于多源数据融合技术领域,具体是多源数据融合的一体化数据采集方法。The invention belongs to the technical field of multi-source data fusion, in particular to an integrated data acquisition method for multi-source data fusion.
背景技术Background technique
随着宽带网络的普及和行业管理部门对管理水平提高的需求增加,城市公安、交通、金融、环保、电力、医疗、教育等管理部门对城市范围内的大型联网安全监控平台的需求也在这两年开始大量增加,随着网络传输技术、互联网的成熟,实现这些新兴行业客户需求的已经取得了重大的突破,大型的自动化运维监控系统正在全国各地迅速地建设起来,现有常见的采集器主流支持的操作系统有Windows,各种Linux,Unix等,针对特定的操作系统进行研发,每个操作系统都有自己独立的开发环境,研发成本高,代码维护困难等缺点。With the popularization of broadband network and the increasing demand of management departments for management level, urban public security, transportation, finance, environmental protection, electric power, medical care, education and other management departments have the same demand for large-scale networked security monitoring platforms within the city. It started to increase a lot in two years. With the maturity of network transmission technology and the Internet, major breakthroughs have been made to meet the needs of customers in these emerging industries. Large-scale automated operation and maintenance monitoring systems are being rapidly built all over the country. The existing common collection The mainstream operating systems supported by the server include Windows, various Linux, Unix, etc., and research and development are carried out for specific operating systems. Each operating system has its own independent development environment, which has disadvantages such as high research and development costs and difficult code maintenance.
发明内容Contents of the invention
为解决上述背景技术中提出的问题,本发明提供了多源数据融合的一体化数据采集方法,通过7xOPS Server对7xOPS Agent进行管理,可实现安装、升级、卸载等操作,任务类型有性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控等任务。7xOPS Server实现任务的删除、编辑、启动、停止等操作,7xOPS Agent实现对不同任务类型的统一入口管理和数据采集,7xOPS Receiver实现对采集到的数据进行存储。In order to solve the problems raised in the above-mentioned background technology, the present invention provides an integrated data acquisition method for multi-source data fusion. The 7xOPS Agent is managed through the 7xOPS Server, and operations such as installation, upgrade, and uninstallation can be realized. The task types include performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, UCPE monitoring and other tasks. 7xOPS Server implements operations such as deletion, editing, starting, and stopping of tasks, 7xOPS Agent implements unified entry management and data collection for different task types, and 7xOPS Receiver implements storage of collected data.
为实现上述目的,本发明提供如下技术方案:多源数据融合的一体化数据采集方法,所述7xOPS Agent自动、手动注册;In order to achieve the above object, the present invention provides the following technical solutions: an integrated data collection method for multi-source data fusion, and the 7xOPS Agent is automatically and manually registered;
S1:实现配置文件全局初始化,打印日志全局初始化,配置代理IP池,系统初始化;S1: Realize the global initialization of the configuration file, the global initialization of the printing log, the configuration of the proxy IP pool, and the system initialization;
S2:请求7xOPS Server获取Token,每5分钟自动进行请求7xOPS Server获取Token,以协程方式启动;S2: Request 7xOPS Server to obtain Token, automatically request 7xOPS Server to obtain Token every 5 minutes, and start in the form of coroutine;
所述Token生成规则,根据用户名和密码随机生成,获取到返回的Token后进行赋值操作,7xOPS Agent赋值到全局配置的对象中;The Token generation rule is randomly generated according to the user name and password, and the assignment operation is performed after the returned Token is obtained, and the 7xOPS Agent is assigned to the object of the global configuration;
S3:将获取到的Token在7xOPS Server进行注册验证,判断7xOPS Agent是自动/手动部署;S3: Register and verify the obtained Token with 7xOPS Server, and determine whether the 7xOPS Agent is deployed automatically or manually;
S31:自动部署请求7xOPS Server,更新7xOPS Agent管理状态,返回请求结果,成功则更新全局配置,失败则退出当前函数,重新发起请求;S31: Automatically deploy the request to 7xOPS Server, update the management status of 7xOPS Agent, return the request result, update the global configuration if successful, exit the current function and re-initiate the request if it fails;
S32:手动部署请求7xOPS Server,对新部署的7xOPS Agent进行注册,成功则更新全局配置,失败则退出程序,结束进程;S32: Manual deployment requests 7xOPS Server, registers the newly deployed 7xOPS Agent, updates the global configuration if successful, exits the program and ends the process if it fails;
S4:7xOPS Agent注册完成。S4: 7xOPS Agent registration is complete.
优选的,所述7xOPS Agent自动部署:Preferably, the automatic deployment of the 7xOPS Agent:
S1:在7xOPS Agent管理列表中创建一个新的Agent,需要安装地址IP、root账号和密码,安装路径,下载链接等信息;S1: Create a new Agent in the 7xOPS Agent management list, which requires installation address IP, root account and password, installation path, download link and other information;
S2:7xOPS Server启动SSH建立链接,建立链接成功后,上传shell脚本,执行shell脚本,跳转至指定路径,进行下载安装包文件,下载成功后进行启动;S2: 7xOPS Server starts SSH to establish a link. After the link is successfully established, upload the shell script, execute the shell script, jump to the specified path, download the installation package file, and start it after the download is successful;
S3:7xOPS Agent启动成功,在7xOPS Server注册完成,7xOPS Agent会定时发送Agent状态进行更新,并附带安装日志发送到Mq;S3: The 7xOPS Agent starts successfully, and the registration on the 7xOPS Server is completed. The 7xOPS Agent will regularly send the Agent status to update, and send it to Mq with the installation log;
S4:7xOPS Server从Mq中接受到状态更新消息,修改7xOPS Agent管理列表中创建的7xOPS Agent的状态为运行中,并保存安装日志。S4: 7xOPS Server receives a status update message from Mq, modifies the status of the 7xOPS Agent created in the 7xOPS Agent management list to running, and saves the installation log.
优选的,所述7xOPS Agent自动升级、卸载:Preferably, the 7xOPS Agent automatically upgrades and uninstalls:
S1:7xOPS Agent管理列表中点击升级,7xOPS Server下发任务到对应Mq队列,7xOPS Agent去监听7xOPS Server下发的Mq任务;S1: Click Upgrade in the 7xOPS Agent management list, the 7xOPS Server sends tasks to the corresponding Mq queue, and the 7xOPS Agent monitors the Mq tasks sent by the 7xOPS Server;
S2:7xOPS Agent监听到要升级的信息,解析接受到的信息,执行shell脚本,通过链接下载安装包,安装完成通过查看进程判断7xOPS Agent是否启动;S2: 7xOPS Agent listens to the information to be upgraded, parses the received information, executes the shell script, downloads the installation package through the link, and checks the progress of the installation to determine whether the 7xOPS Agent is started;
S21:启动中:当前运行的安装包进行备份,杀死当前程序进程,运行新的安装包,启动成功后发送状态消息到Mq任务;S21: Starting: the currently running installation package is backed up, the current program process is killed, a new installation package is run, and a status message is sent to the Mq task after the startup is successful;
S22:未启动:备份旧的安装包,运行新的安装包,启动成功后发送状态消息到Mq任务;S22: not started: back up the old installation package, run the new installation package, and send a status message to the Mq task after the startup is successful;
S3:7xOPS Server从Mq中接受到状态消息,修改7xOPS Agent管理列表中新创建7xOPS Agent的状态为运行中,并保存升级日志。S3: 7xOPS Server receives the status message from Mq, modifies the status of the newly created 7xOPS Agent in the 7xOPS Agent management list to running, and saves the upgrade log.
优选的,所述监控任务采集:Preferably, the monitoring task collects:
7xOPS Server实现对7xOPS Agent监控任务管理,进行各种任务如性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控的启动、停止,任务启动后根据任务类型,将监控的信息模版发送到对应的Mq队列;7xOPS Server realizes the monitoring task management of 7xOPS Agent, and performs various tasks such as performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, and UCPE monitoring. The information template is sent to the corresponding Mq queue;
7xOPS Agent监听到7xOPS Server下发的Mq任务,根据任务的类型进行不同的数据监控,将监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩最后进行数据发送;7xOPS Agent listens to the Mq tasks issued by 7xOPS Server, performs different data monitoring according to the type of tasks, and performs data cleaning, data filtering, data integration, data queue, data structure optimization, data compression and finally data transmission on the monitored data ;
7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。The data monitored by 7xOPS Agent is sent to 7xOPS Receiver in the form of Http/Rpc, and 7xOPS Receiver realizes the storage of the collected data.
优选的,所述性能采集监控流程:Preferably, the performance collection and monitoring process:
S1:7xOPS Agent任务列表启动性能监控任务,7xOPS Agent接受到7xOPS Server下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the performance monitoring task. The 7xOPS Agent receives the Mq task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:通过校验后的数据进行Context上下文赋值,使其可以在接下来的监控任务中可以被全程使用,安装插件shell脚本,用户自定义的采集指标;S2: Context assignment is carried out through the verified data, so that it can be used throughout the next monitoring task, install plug-in shell scripts, and user-defined collection indicators;
S3:运行性能监控任务,使用Linux(获取内置文件)以及Windows(使用命令和dll文件)方法进行数据读取获取系统设备信息cpu,内存,无线网卡等数据;S3: Run performance monitoring tasks, use Linux (to obtain built-in files) and Windows (to use commands and dll files) to read data and obtain system device information cpu, memory, wireless network card and other data;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储;S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data;
所述SNMP采集流程:The SNMP collection process:
S1:7xOPS Agent任务列表启动SNMP监控任务,7xOPS Agent接受到7xOPS Server下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the SNMP monitoring task, and the 7xOPS Agent receives the Mq task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, the data verification is required;
S2:通过校验后的数据进行Context上下文赋值,使其可以在接下来的监控任务中可以被全程使用;S2: Context assignment is performed through the verified data, so that it can be used throughout the next monitoring task;
S3:运行SNMP监控任务,使用SNMP walk/get请求方法通过Oid和IP作为入参可以获取设备的cpu,内存等基础信息,也可以通过Ping方法进行数据监控;S3: Run the SNMP monitoring task, use the SNMP walk/get request method to obtain basic information such as the cpu and memory of the device through Oid and IP as input parameters, and also perform data monitoring through the Ping method;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
优选的,所述资产扫描流程:Preferably, the asset scanning process:
S1:7xOPS Agent任务列表启动资产扫描任务,7xOPS Agent接受到7xOPS Server下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the asset scanning task, and the 7xOPS Agent receives the Mq task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, the data verification is required;
S2:通过校验后的数据,需要把任务Id添加进资产扫描任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动/停止操作;S2: After passing the verified data, the task Id needs to be added to the global variable Map array created by the asset scanning task, so that the received task can be started/stopped subsequently;
S3:运行资产扫描任务,根据任务信息中的数据类型(icmp/snmp)进行不同的数据监控,使用SNMP walk/get请求方法通过Oid和IP作为入参可以获取系统环境基础信息,也可以通过Ping方法进行数据监控;S3: Run the asset scanning task, perform different data monitoring according to the data type (icmp/snmp) in the task information, use the SNMP walk/get request method to obtain the basic information of the system environment through Oid and IP as input parameters, or through Ping method for data monitoring;
S4:监控到的数据进行数据清洗,数据过滤,数据整合后进行数据发送;S4: The monitored data is cleaned, filtered, and sent after data integration;
S5:7xOPS Agent监控到的数据发送到7xOPS Server,7xOPS Server实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Server, and the 7xOPS Server realizes the storage of the collected data.
优选的,所述状态监控流程:Preferably, the state monitoring process:
S1:7xOPS Agent任务列表启动状态监控任务,7xOPS Agent接受到7xOPS Server下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the status monitoring task, and the 7xOPS Agent receives the Mq task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, the data verification is required;
S2:需要把任务Id添加进状态监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task Id needs to be added to the global variable Map array created by the status monitoring task, so that the received task can be started and stopped subsequently;
S3:运行状态监控任务,根据任务信息中的IP进行数据监控,使用Ping方法获取是否可以正常通讯等数据;S3: Running status monitoring tasks, data monitoring according to the IP in the task information, using the Ping method to obtain data such as whether normal communication is possible;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储;S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data;
所述传感器监控流程:The sensor monitoring process:
S1:7xOPS Agent任务列表启动传感器监控任务,7xOPS Agent接受到7xOPSServer下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the sensor monitoring task, and the 7xOPS Agent receives the Mq task information issued by the 7xOPSServer to execute the corresponding monitoring task. Before starting the monitoring task, the data verification is required;
S2:需要把任务Id添加进传感器监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task Id needs to be added to the global variable Map array created by the sensor monitoring task, so that the received task can be started and stopped subsequently;
S3:运行传感器监控任务,用户使用的IOT设备定时发送设备信息到指定队列,7xOPS Agent在任务启动后开始监听该队列,通过监听专属队列方法进行数据读取;S3: Run the sensor monitoring task, the IOT device used by the user sends device information to the designated queue regularly, 7xOPS Agent starts to monitor the queue after the task is started, and reads data by monitoring the exclusive queue method;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
优选的,所述域名检测流程:Preferably, the domain name detection process:
S1:7xOPS Agent任务列表启动域名监控任务,7xOPS Agent接受到7xOPS Server下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the domain name monitoring task, and the 7xOPS Agent receives the Mq task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:需要把任务Id添加进域名监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task ID needs to be added to the global variable Map array created by the domain name monitoring task, so that the received task can be started and stopped subsequently;
S3:运行域名监控任务,根据任务信息中的IP进行数据监控,使用Ping方法来获取丢包,时延,状态码等数据;S3: Run the domain name monitoring task, perform data monitoring according to the IP in the task information, and use the Ping method to obtain data such as packet loss, delay, and status code;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
优选的,所述UCPE采集流程:Preferably, the UCPE acquisition process:
S1:7xOPS Agent任务列表启动UCPE监控任务,7xOPS Agent接受到7xOPS Server下发的Mq任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the UCPE monitoring task, and the 7xOPS Agent receives the Mq task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, the data verification is required;
S2:需要把任务Id添加进UCPE监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task ID needs to be added to the global variable Map array created by the UCPE monitoring task, so that the received task can be started and stopped subsequently;
S3:运行UCPE监控任务,执行shell脚本获取7xNetWork设备信息,读取shell脚本监控到数据;S3: Run the UCPE monitoring task, execute the shell script to obtain 7xNetWork device information, and read the shell script to monitor the data;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
优选的,所述7xOPS Agent任务启动、停止:7xOPS Server实现对7xOPS Agent监控任务管理,可以对不同任务如性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控进行启动和停止;Preferably, the 7xOPS Agent task starts and stops: the 7xOPS Server realizes the monitoring task management of the 7xOPS Agent, and can start and execute different tasks such as performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, and UCPE monitoring stop;
当7xOPS Server通过Mq把任务下发到7xOPS Agent中,7xOPS Agent根据下发中解析出的数据运行启动、停止程序。When the 7xOPS Server sends the task to the 7xOPS Agent through Mq, the 7xOPS Agent starts and stops the program according to the data analyzed in the sending.
与现有技术相比,本发明的有益效果如下:Compared with the prior art, the beneficial effects of the present invention are as follows:
本发明提供了多源数据融合的一体化数据采集方法,通过7xOPS Server对7xOPSAgent进行管理,可实现安装、升级、卸载等操作,任务类型有性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控等任务。7xOPS Server实现任务的安装、升级、卸载、启动、停止等操作,通过7xOPS Agent实现对不同任务类型的统一入口管理和数据采集,7xOPS Receiver实现对采集到的数据进行存储。The present invention provides an integrated data acquisition method for multi-source data fusion, and manages 7xOPSAgent through 7xOPS Server, which can realize operations such as installation, upgrade, and uninstallation. The task types include performance monitoring, SNMP monitoring, asset scanning, status monitoring, and sensor monitoring. , domain name monitoring, UCPE monitoring and other tasks. 7xOPS Server implements operations such as installation, upgrade, uninstallation, start, and stop of tasks, implements unified entry management and data collection for different task types through 7xOPS Agent, and 7xOPS Receiver implements storage of collected data.
附图说明Description of drawings
图1为本发明的架构示意图;Fig. 1 is a schematic diagram of the architecture of the present invention;
图2为本发明的7xOPS Agent自动、手动注册流程示意图;Fig. 2 is 7xOPS Agent automatic, manual registration flow diagram of the present invention;
图3为本发明的7xOPS Agent自动部署流程示意图;Fig. 3 is the schematic diagram of the automatic deployment flow chart of 7xOPS Agent of the present invention;
图4为本发明的7xOPS Agent自动升级、卸载流程示意图;Fig. 4 is the 7xOPS Agent automatic upgrade of the present invention, the schematic diagram of unloading process;
图5为本发明的任务采集流程示意图;Fig. 5 is a schematic diagram of the task collection process of the present invention;
图6为本发明的性能采集流程示意图;Fig. 6 is a schematic diagram of the performance collection process of the present invention;
图7为本发明的SNMP采集流程示意图;Fig. 7 is the SNMP collection flow schematic diagram of the present invention;
图8为本发明的资产扫描流程示意图;Fig. 8 is a schematic diagram of the asset scanning process of the present invention;
图9为本发明的状态检测流程示意图;Fig. 9 is a schematic diagram of a state detection flow chart of the present invention;
图10为本发明的传感器检测流程示意图;Fig. 10 is a schematic diagram of the sensor detection process of the present invention;
图11为本发明的域名检测流程示意图;FIG. 11 is a schematic diagram of a domain name detection process of the present invention;
图12为本发明的UCPE采集流程示意图;Fig. 12 is a schematic diagram of the UCPE collection process of the present invention;
图13为本发明的7xOPS Agent任务启动、停止流程示意图。Fig. 13 is a schematic diagram of the process of starting and stopping the 7xOPS Agent task of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
如图1至图13所示,本发明提供多源数据融合的一体化数据采集方法,多源数据融合的一体化数据采集方法,7xOPS Agent自动、手动注册:As shown in Figures 1 to 13, the present invention provides an integrated data collection method for multi-source data fusion, an integrated data collection method for multi-source data fusion, 7xOPS Agent automatic and manual registration:
S1:实现配置文件全局初始化,打印日志全局初始化,配置代理IP池,系统初始化;S1: Realize the global initialization of the configuration file, the global initialization of the printing log, the configuration of the proxy IP pool, and the system initialization;
S2:请求7xOPS Server获取Token,每5分钟自动进行请求7xOPS Server获取Token,以协程方式启动;S2: Request 7xOPS Server to obtain Token, automatically request 7xOPS Server to obtain Token every 5 minutes, and start in the form of coroutine;
Token生成规则,根据用户名和密码随机生成,获取到返回的Token后进行赋值操作,赋值到全局配置的对象中;Token generation rules, randomly generated according to the user name and password, after obtaining the returned Token, carry out the assignment operation, and assign the value to the object of the global configuration;
S3:将获取到的Token在7xOPS Server进行注册验证,判断7xOPS Agent是自动/手动部署;S3: Register and verify the obtained Token with 7xOPS Server, and determine whether the 7xOPS Agent is deployed automatically or manually;
S31:自动部署请求7xOPS Server,更新7xOPS Agent管理状态,返回请求结果,成功则更新全局配置,失败则退出当前函数,进行重新请求;S31: Automatically deploy the request to 7xOPS Server, update the management status of 7xOPS Agent, and return the request result, if successful, update the global configuration, and if it fails, exit the current function and make a new request;
S32:手动部署请求7xOPS Server,对新部署的7xOPS Agent进行注册,成功则更新全局配置,失败则退出程序,结束进程;S32: Manual deployment requests 7xOPS Server, registers the newly deployed 7xOPS Agent, updates the global configuration if successful, exits the program and ends the process if it fails;
S4:7xOPS Agent注册完成;S4: 7xOPS Agent registration is completed;
如图3所示,7xOPS Agent自动部署:As shown in Figure 3, 7xOPS Agent is automatically deployed:
S1:在7xOPS Agent管理列表中创建一个新的监控任务,需要安装地址IP、root账号和密码,安装路径,下载链接等信息;S1: Create a new monitoring task in the 7xOPS Agent management list, which requires installation address IP, root account and password, installation path, download link and other information;
S2:7xOPS Server启动SSH建立链接,建立链接成功后,上传shell脚本,执行shell脚本,跳转至指定路径,进行下载安装包文件,下载成功后进行启动;S2: 7xOPS Server starts SSH to establish a link. After the link is successfully established, upload the shell script, execute the shell script, jump to the specified path, download the installation package file, and start it after the download is successful;
S3:7xOPS Agent启动并成功,在7xOPS Server注册完成,7xOPS Agent会定时发送监控任务状态更新,并附带安装日志;S3: 7xOPS Agent starts and succeeds, registration is completed in 7xOPS Server, 7xOPS Agent will regularly send monitoring task status updates, and attach installation logs;
S4:7xOPS Server接受到状态更新消息,修改7xOPS Agent管理列表中新创建7xOPS Agent的状态为运行中,并保存安装日志。S4: The 7xOPS Server receives the status update message, modifies the status of the newly created 7xOPS Agent in the 7xOPS Agent management list to running, and saves the installation log.
如图4所示,7xOPS Agent自动升级、卸载:As shown in Figure 4, 7xOPS Agent automatically upgrades and uninstalls:
S1:7xOPS Agent管理列表中点击启动,7xOPS Server下发任务到对应Mq队列,7xOPS Agent去监听7xOPS Server下发的Mq任务;S1: Click Start in the 7xOPS Agent management list, the 7xOPS Server sends tasks to the corresponding Mq queue, and the 7xOPS Agent monitors the Mq tasks sent by the 7xOPS Server;
S2:7xOPS Agent监听到要升级的信息,执行shell脚本,通过链接下载安装包,判断7xOPS Agent是否启动;S2: 7xOPS Agent monitors the information to be upgraded, executes the shell script, downloads the installation package through the link, and determines whether the 7xOPS Agent is started;
S21:启动中:当前运行的安装包进行备份,杀死当前程序进程,运行新的安装包,启动成功后发送状态消息到Mq任务;S21: Starting: the currently running installation package is backed up, the current program process is killed, a new installation package is run, and a status message is sent to the Mq task after the startup is successful;
S22:未启动:备份旧的安装包,运行新的安装包,启动成功后发送状态消息到Mq任务;S22: not started: back up the old installation package, run the new installation package, and send a status message to the Mq task after the startup is successful;
S3:7xOPS Server接受到状态更新消息,修改7xOPS Agent管理列表中新创建7xOPS Agent的状态为运行中,并保存升级/卸载日志。S3: The 7xOPS Server receives the status update message, modifies the status of the newly created 7xOPS Agent in the 7xOPS Agent management list to running, and saves the upgrade/uninstallation log.
如图5所示,监控任务采集:As shown in Figure 5, the monitoring task collection:
7xOPS Server实现对7xOPS Agent监控任务管理,进行各种任务如性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控的启动、停止,任务启动后根据任务类型,将监控的信息模版发送到对应的Mq队列;7xOPS Server realizes the monitoring task management of 7xOPS Agent, and performs various tasks such as performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, and UCPE monitoring. The information template is sent to the corresponding Mq queue;
7xOPS Agent监听到7xOPS Server下发的任务,根据任务的类型进行不同的数据监控,将监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩最后进行数据发送;7xOPS Agent listens to the tasks delivered by 7xOPS Server, performs different data monitoring according to the type of tasks, and performs data cleaning, data filtering, data integration, data queuing, data structure optimization, data compression and finally data transmission on the monitored data;
7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储;The data monitored by 7xOPS Agent is sent to 7xOPS Receiver in the form of Http/Rpc, and 7xOPSReceiver realizes the storage of the collected data;
7xOPS Agent具有统一性,适用于监控市场上大多数业务场景,也可以创建自定义模版,例:有的系统只会有snmp监控/ping监控,大多数只有snmp监控;7xOPS Agent is unified, suitable for monitoring most business scenarios in the market, and can also create custom templates, for example: some systems only have snmp monitoring/ping monitoring, most of them only have snmp monitoring;
“7xOPS系统Agent统一采集器”在项目中集成了性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控及自定义模版等任务,配置简单,方便用户使用和统一管理等操作。"7xOPS System Agent Unified Collector" integrates tasks such as performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, UCPE monitoring and custom templates in the project. It is easy to configure, convenient for users to use and unified management, etc. operate.
系统兼容性,适应Linux,Windows,Mac等系统环境的开发,例:Linux,Windows,Mac中因系统命令的不统一,造成项目开发需要在不同系统环境中独立开发。System compatibility, adapting to the development of Linux, Windows, Mac and other system environments. For example, due to the inconsistency of system commands in Linux, Windows, and Mac, project development needs to be independently developed in different system environments.
“7xOPS系统Agent统一采集器”解决了此问题,根据获取到的当前系统环境(包括临时赋予系统环境)去执行对应的业务线,对此减少了对研发成本上的支出。"7xOPS System Agent Unified Collector" solves this problem, and executes the corresponding business line according to the obtained current system environment (including the temporary system environment), which reduces the expenditure on research and development costs.
如图6、图7所示,性能采集监控流程:As shown in Figure 6 and Figure 7, the performance collection and monitoring process:
S1:7xOPS Agent任务列表启动性能监控任务,7xOPS Agent接受到7xOPS Server下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the performance monitoring task. The 7xOPS Agent receives the task information sent by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:通过校验后的数据进行Context上下文赋值,使其可以在接下来的监控任务中可以被随时使用,安装插件shell脚本,用户自定义的采集指标;S2: Context assignment is carried out through the verified data, so that it can be used at any time in the next monitoring task, install the plug-in shell script, and user-defined collection indicators;
S3:运行性能监控任务,使用Linux(获取内置文件)以及Windows(使用命令和dll文件)方法进行数据读取获取系统设备信息cpu,内存,无线网卡等数据;S3: Run performance monitoring tasks, use Linux (to obtain built-in files) and Windows (to use commands and dll files) to read data and obtain system device information cpu, memory, wireless network card and other data;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储;S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data;
智能部署,系统安装/升级/卸载等业务支持自动化操作,减少了人力资源,方便客户的操作体验,在实现这些业务中针对内网和外网的的区别;Intelligent deployment, system installation/upgrade/uninstallation and other services support automated operations, reducing human resources and facilitating customers' operating experience. In the realization of these services, the difference between intranet and extranet is aimed at;
“7xOPS系统Agent统一采集器”解决了这个问题,在不同环境都支持系统的自启动/安装/升级等操作。"7xOPS System Agent Unified Collector" solves this problem, and supports operations such as system self-start/installation/upgrade in different environments.
SNMP采集流程:SNMP collection process:
S1:7xOPS Agent任务列表启动SNMP监控任务,7xOPS Agent接受到7xOPS Server下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the SNMP monitoring task, and the 7xOPS Agent receives the task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, the data verification is required;
S2:通过校验后的数据进行Context上下文赋值,使其可以在接下来的监控任务中可以被随时使用;S2: Context assignment is performed through the verified data, so that it can be used at any time in the next monitoring task;
S3:运行SNMP监控任务,使用SNMP walk/get请求方法通过Oid和IP作为入参可以获取设备的cpu,内存等基础信息,也可以通过Ping方法进行数据监控;S3: Run the SNMP monitoring task, use the SNMP walk/get request method to obtain basic information such as the cpu and memory of the device through Oid and IP as input parameters, and also perform data monitoring through the Ping method;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
如图8所示,资产扫描流程:As shown in Figure 8, the asset scanning process:
S1:7xOPS Agent任务列表启动资产扫描任务,7xOPS Agent接受到7xOPS Server下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the asset scanning task, and the 7xOPS Agent receives the task information sent by the 7xOPS Server to perform the corresponding monitoring task, and then needs to pass the data verification before starting the monitoring task;
S2:通过校验后的数据,需要把任务Id添加进资产扫描任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动/停止操作;S2: After passing the verified data, the task Id needs to be added to the global variable Map array created by the asset scanning task, so that the received task can be started/stopped subsequently;
S3:运行资产扫描任务,根据任务信息中的数据类型(icmp/snmp)进行不同的数据监控,使用SNMP walk/get请求方法通过Oid和IP作为入参可以获取系统环境基础信息,也可以通过Ping方法进行数据监控;S3: Run the asset scanning task, perform different data monitoring according to the data type (icmp/snmp) in the task information, use the SNMP walk/get request method to obtain the basic information of the system environment through Oid and IP as input parameters, or through Ping method for data monitoring;
S4:监控到的数据进行数据清洗,数据过滤,数据整合后进行数据发送;S4: The monitored data is cleaned, filtered, and sent after data integration;
S5:7xOPS Agent监控到的数据发送到7xOPS Server,7xOPS Server实现对采集到的数据进行存储;S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Server, and the 7xOPS Server realizes the storage of the collected data;
数据交互,在内网传输中数据量的大小在数据传输带宽中影响不是很大,而在与外网的交互中因为传输内存过大而造成的数据丢失和链接超时;For data interaction, the amount of data in internal network transmission does not have a great influence on the data transmission bandwidth, but in the interaction with the external network, data loss and link timeout are caused by excessive transmission memory;
“7xOPS系统Agent统一采集器”提供了数据结构优化,传输数据压缩等方案解决在外网传输中因数据过大而产生的带宽而产生的数据丢失问题。"7xOPS System Agent Unified Collector" provides data structure optimization, transmission data compression and other solutions to solve the problem of data loss caused by bandwidth generated by excessive data in external network transmission.
如图9、图10所示,状态监控流程:As shown in Figure 9 and Figure 10, the status monitoring process:
S1:7xOPS Agent任务列表启动状态监控任务,7xOPS Agent接受到7xOPS Server下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the status monitoring task, and the 7xOPS Agent receives the task information issued by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:需要把任务Id添加进状态监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task Id needs to be added to the global variable Map array created by the status monitoring task, so that the received task can be started and stopped subsequently;
S3:运行状态监控任务,根据任务信息中的IP进行数据监控,使用Ping方法获取是否可以正常通讯等数据;S3: Running status monitoring tasks, data monitoring according to the IP in the task information, using the Ping method to obtain data such as whether normal communication is possible;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储;S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data;
传感器监控流程:Sensor monitoring process:
S1:7xOPS Agent任务列表启动传感器监控任务,7xOPS Agent接受到7xOPSServer下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the sensor monitoring task. The 7xOPS Agent receives the task information sent by the 7xOPSServer to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:需要把任务Id添加进传感器监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task Id needs to be added to the global variable Map array created by the sensor monitoring task, so that the received task can be started and stopped subsequently;
S3:运行传感器监控任务,用户使用的IOT设备定时发送设备信息到指定队列,7xOPS Agent在任务启动后开始监听该队列,通过监听专属队列方法进行数据读取;S3: Run the sensor monitoring task, the IOT device used by the user sends device information to the designated queue regularly, 7xOPS Agent starts to monitor the queue after the task is started, and reads data by monitoring the exclusive queue method;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
如图11所示,域名检测流程:As shown in Figure 11, the domain name detection process:
S1:7xOPS Agent任务列表启动域名监控任务,7xOPS Agent接受到7xOPS Server下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the domain name monitoring task, and the 7xOPS Agent receives the task information sent by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:需要把任务Id添加进域名监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task ID needs to be added to the global variable Map array created by the domain name monitoring task, so that the received task can be started and stopped subsequently;
S3:运行域名监控任务,根据任务信息中的IP进行数据监控,使用Ping方法来获取丢包,时延,状态码等数据;S3: Run the domain name monitoring task, perform data monitoring according to the IP in the task information, and use the Ping method to obtain data such as packet loss, delay, and status code;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储。S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data.
如图12所示,UCPE采集流程:As shown in Figure 12, the UCPE acquisition process:
S1:7xOPS Agent任务列表启动UCPE监控任务,7xOPS Agent接受到7xOPS Server下发的任务信息,去执行对应的监控任务,再准备启动监控任务前,需要经过数据校验;S1: The 7xOPS Agent task list starts the UCPE monitoring task. The 7xOPS Agent receives the task information sent by the 7xOPS Server to execute the corresponding monitoring task. Before starting the monitoring task, it needs to pass the data verification;
S2:需要把任务Id添加进UCPE监控任务创建的全局变量Map数组中,使接收到的任务可以后续进行启动、停止操作;S2: The task ID needs to be added to the global variable Map array created by the UCPE monitoring task, so that the received task can be started and stopped subsequently;
S3:运行UCPE监控任务,执行shell脚本获取7xNetWork设备信息,读取shell脚本监控到数据;S3: Run the UCPE monitoring task, execute the shell script to obtain 7xNetWork device information, and read the shell script to monitor the data;
S4:监控到的数据进行数据清洗,数据过滤,数据整合,数据队列,数据结构优化,数据压缩后进行数据发送;S4: Perform data cleaning, data filtering, data integration, data queuing, data structure optimization, and data compression for the monitored data to send data;
S5:7xOPS Agent监控到的数据以Http/Rpc的方式发送到7xOPS Receiver,7xOPSReceiver实现对采集到的数据进行存储;S5: The data monitored by the 7xOPS Agent is sent to the 7xOPS Receiver in the form of Http/Rpc, and the 7xOPS Receiver realizes the storage of the collected data;
数据采集,数据的实时采集,一个采集任务有时需要维护500多台机器的数据采集,在数据获取实时性的问题;Data collection, real-time collection of data, a collection task sometimes needs to maintain the data collection of more than 500 machines, the problem of real-time data acquisition;
“7xOPS系统Agent统一采集器”使用go协程的方式去获取数据,因协程开启数过大,造成的服务器cpu使用率增大,采用了协程池的方式进行优化,解决了因采集数据过大而造成的数据实时性不达标。"7xOPS System Agent Unified Collector" uses go coroutines to acquire data. Because the number of coroutines is too large, the CPU usage of the server increases. The coroutine pool is used for optimization, which solves the problem of data collection. If the data is too large, the real-time performance of the data is not up to standard.
如图13所示,7xOPS Agent任务启动、停止:7xOPS Server实现对7xOPS Agent监控任务管理,可以对不同任务如性能监控、SNMP监控、资产扫描、状态监控、传感器监控、域名监控、UCPE监控进行启动和停止;As shown in Figure 13, 7xOPS Agent task start and stop: 7xOPS Server implements 7xOPS Agent monitoring task management, and can start different tasks such as performance monitoring, SNMP monitoring, asset scanning, status monitoring, sensor monitoring, domain name monitoring, and UCPE monitoring and stop;
当7xOPS Server通过Mq把任务下发到7xOPS Agent中,7xOPS Agent根据下发中解析出的数据运行启动、停止程序。When the 7xOPS Server sends the task to the 7xOPS Agent through Mq, the 7xOPS Agent starts and stops the program according to the data analyzed in the sending.
7xOPS Agent接收到任务为启动根据任务类型的不同分别实现监控业务;当解析出的数据需要上下文(Context)传递时,把接收到的消息赋值给Context,不需要时只需要把任务ID赋值为对应监控任务生成的Map数组;7xOPS Agent receives tasks to start monitoring services according to different task types; when the parsed data needs context (Context) transmission, it assigns the received message to Context, and only needs to assign the task ID to the corresponding The Map array generated by the monitoring task;
7xOPS Agent接收到任务为停止时根据任务类型的不同分别停止监控业务;根据启动时的赋值操作,对Context/Map进行操作使监控任务中断停止监控;7xOPS Agent stops the monitoring service according to different task types when it receives a task to stop; according to the assignment operation at startup, it operates Context/Map to interrupt the monitoring task and stop monitoring;
7xOPS Agent监控任务完成时,定时任务状态维护则会把执行完的任务状态发送到对应的Mq队列中,7xOPS Server去定时消费,读取这些信息并及时更新7xOPS Agent监控任务列表中的任务状态。When the 7xOPS Agent monitoring task is completed, the scheduled task status maintenance will send the completed task status to the corresponding Mq queue, and the 7xOPS Server will consume regularly, read the information and update the task status in the 7xOPS Agent monitoring task list in time.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or order between them. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or device.
尽管已经示出和描述了本发明的实施例,对于本领域的普通技术人员而言,可以理解在不脱离本发明的原理和精神的情况下可以对这些实施例进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although the embodiments of the present invention have been shown and described, those skilled in the art can understand that various changes, modifications and substitutions can be made to these embodiments without departing from the principle and spirit of the present invention. and modifications, the scope of the invention is defined by the appended claims and their equivalents.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211530609.0A CN115811457A (en) | 2022-12-01 | 2022-12-01 | Integrated Data Acquisition Method for Multi-source Data Fusion |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211530609.0A CN115811457A (en) | 2022-12-01 | 2022-12-01 | Integrated Data Acquisition Method for Multi-source Data Fusion |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115811457A true CN115811457A (en) | 2023-03-17 |
Family
ID=85484633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211530609.0A Pending CN115811457A (en) | 2022-12-01 | 2022-12-01 | Integrated Data Acquisition Method for Multi-source Data Fusion |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115811457A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117290671A (en) * | 2023-11-27 | 2023-12-26 | 中国西安卫星测控中心 | Data preprocessing method and device, electronic equipment and computer storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731580A (en) * | 2015-01-12 | 2015-06-24 | 上海新炬网络信息技术有限公司 | Automation operation and maintenance system based on Karaf and ActiveMQ and implement method thereof |
CN107483245A (en) * | 2017-08-14 | 2017-12-15 | 上海新炬网络信息技术股份有限公司 | It is a kind of that realization device is actively gathered based on karaf_agent |
CN108632106A (en) * | 2017-03-22 | 2018-10-09 | 广达电脑股份有限公司 | System for monitoring service equipment |
-
2022
- 2022-12-01 CN CN202211530609.0A patent/CN115811457A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104731580A (en) * | 2015-01-12 | 2015-06-24 | 上海新炬网络信息技术有限公司 | Automation operation and maintenance system based on Karaf and ActiveMQ and implement method thereof |
CN108632106A (en) * | 2017-03-22 | 2018-10-09 | 广达电脑股份有限公司 | System for monitoring service equipment |
CN107483245A (en) * | 2017-08-14 | 2017-12-15 | 上海新炬网络信息技术股份有限公司 | It is a kind of that realization device is actively gathered based on karaf_agent |
Non-Patent Citations (2)
Title |
---|
中国首席搬砖师VIP: "k3s-(3)k3s-agent工作节点安装", pages 1 - 6, Retrieved from the Internet <URL:https://blog.csdn.net/weixin_43960618/article/details/108106020?fromshare=blogdetail&sharetype=blogdetail&sharerId=108106020&sharerefer=PC&sharesource=qq_45755146&sharefrom=from_link> * |
运维个西瓜: "Wazuh agent的安装、注册与配置管理", pages 1 - 5, Retrieved from the Internet <URL:https://blog.csdn.net/watermelonbig/article/details/126272006?fromshare=blogdetail&sharetype=blogdetail&sharerId=126272006&sharerefer=PC&sharesource=qq_45755146&sharefrom=from_link> * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117290671A (en) * | 2023-11-27 | 2023-12-26 | 中国西安卫星测控中心 | Data preprocessing method and device, electronic equipment and computer storage medium |
CN117290671B (en) * | 2023-11-27 | 2024-02-09 | 中国西安卫星测控中心 | Data preprocessing method and device, electronic equipment and computer storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220078092A1 (en) | Provisioning a service | |
US9419856B1 (en) | Network device configuration deployment pipeline | |
US7181519B2 (en) | Distributed network monitoring and control system | |
US7219140B2 (en) | Configuration and management systems for mobile and embedded devices | |
EP1168711B1 (en) | Process for controlling devices of an intranet network through the web | |
CN106992903B (en) | Data acquisition system and method based on network equipment | |
CN112230942A (en) | Automatic deployment method and system supporting various domestic operating systems | |
EP3299953B1 (en) | System and method for providing automatic firmware update management | |
US7974211B2 (en) | Methods and apparatus for network configuration baselining and restoration | |
US20030069956A1 (en) | Object oriented SNMP agent | |
US8099588B2 (en) | Method, system and computer program for configuring firewalls | |
US6804773B1 (en) | System and method for transferring information over a network | |
KR20110042070A (en) | How to dynamically update network security policy rules when new network resources are provided to a service landscape instance | |
CN104767649A (en) | Bare metal server deployment method and device | |
CN107566165A (en) | A kind of method and system for finding and disposing electric power cloud data center available resources | |
US20030069955A1 (en) | SNMP agent object model | |
CN102013998A (en) | Tr-069 protocol-based management method for realizing home network | |
CN114996006A (en) | Server arrangement configuration execution method, device, equipment and medium | |
CN112948008A (en) | Ironic based physical bare computer management method | |
CN105072398B (en) | A kind of device updating method and device | |
CN115811457A (en) | Integrated Data Acquisition Method for Multi-source Data Fusion | |
CN115357308B (en) | Docker-based edge IoT agent device, system and application method | |
US20040268292A1 (en) | Task sequence interface | |
CN115357258A (en) | Application deployment method and device, storage medium and electronic device | |
CN118626101A (en) | Implementation method, device and electronic device of CI/CD of microservice cluster |
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 |