# addMonitorStandAutomatic **Repository Path**: huanglaijun/addMonitorStandAutomatic ## Basic Information - **Project Name**: addMonitorStandAutomatic - **Description**: GO实现的自动关联监控标准 - **Primary Language**: Go - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-11-10 - **Last Updated**: 2023-11-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # addMonitorStandAutomatic ## 介绍 1、GO实现的自动关联监控标准(随机选择标准) 2、shell实现针对某个网络区域下的设备自动关联策略(指定关联的标准) ## 使用说明 1、使用前先确定核心模块conf/assets-restful-configure.yml文件device支持字段是否包含: \- monitorId \- disableStatus \- deviceStatus 如没有上述三个字段,先加上,重启核心后再做下面几步。 2、将压缩包放在/opt/TDS/目录下,执行tar zxvf addMonitorStandAutomatic.tar.gz。 3、执行cd /opt/TDS/addMonitorStandAutomatic目录,执行chmod +x * 4、目录中2_getAllDeviceMonitorId文件的size=10字段可控制要做检查的设备数量,目前默认设置为10,可根据现场情况自行修改。 5、执行./addMonitorStandAutomatic即可完成自动关联监控标准。 6、shell/addMonitorStandAutomatic.sh可针对某个网络区域下设备,关联该资源规范的标准,监控标准不随机,可在脚本中定义。