云监控服务 CES-在ECS中批量安装Agent(Linux):操作步骤

时间:2023-11-01 16:19:48

操作步骤

  1. 使用Putty以root用户登录到已安装Agent的弹性云服务器中。
  2. 执行如下命令,下载并运行批量安装脚本。

    脚本支持x86和鲲鹏ARM架构的E CS

    华北-北京一:

    cd /usr/local && curl -k -O  https://obs.cn-north-1.myhuaweicloud.com/uniagent-cn-north-1/script/batch_agent_install.sh && bash batch_agent_install.sh

    华北-北京四:

    cd /usr/local && curl -k -O  https://obs.cn-north-4.myhuaweicloud.com/uniagent-cn-north-4/script/batch_agent_install.sh && bash batch_agent_install.sh

    华南-广州:

    cd /usr/local && curl -k -O  https://obs.cn-south-1.myhuaweicloud.com/uniagent-cn-south-1/script/batch_agent_install.sh && bash batch_agent_install.sh

    华南-深圳:

    cd /usr/local && curl -k -O  https://obs.cn-south-2.myhuaweicloud.com/uniagent-cn-south-2/script/batch_agent_install.sh && bash batch_agent_install.sh

    华东-上海一:

    cd /usr/local && curl -k -O  https://obs.cn-east-3.myhuaweicloud.com/uniagent-cn-east-3/script/batch_agent_install.sh && bash batch_agent_install.sh

    华东-上海二:

    cd /usr/local && curl -k -O  https://obs.cn-east-2.myhuaweicloud.com/uniagent-cn-east-2/script/batch_agent_install.sh && bash batch_agent_install.sh

    西南-贵阳一:

    cd /usr/local && curl -k -O  https://obs.cn-southwest-2.myhuaweicloud.com/uniagent-cn-southwest-2/script/batch_agent_install.sh && bash batch_agent_install.sh

    中国-香港:

    cd /usr/local && curl -k -O  https://obs.ap-southeast-1.myhuaweicloud.com/uniagent-ap-southeast-1/script/batch_agent_install.sh && bash batch_agent_install.sh

    亚太-曼谷:

    cd /usr/local && curl -k -O  https://obs.ap-southeast-2.myhuaweicloud.com/uniagent-ap-southeast-2/script/batch_agent_install.sh && bash batch_agent_install.sh

    亚太-新加坡:

    cd /usr/local && curl -k -O  https://obs.ap-southeast-3.myhuaweicloud.com/uniagent-ap-southeast-3/script/batch_agent_install.sh && bash batch_agent_install.sh

    非洲-约翰内斯堡:

    cd /usr/local && curl -k -O  https://obs.af-south-1.myhuaweicloud.com/uniagent-af-south-1/script/batch_agent_install.sh && bash batch_agent_install.sh

    拉美-圣保罗一:

    cd /usr/local && wget http://telescope-sa-brazil-1.obs.myhuaweicloud.com/scripts/agentBatchPackage.sh && chmod 755 agentBatchPackage.sh && ./agentBatchPackage.sh
  3. 安装完成后,登录 云监控服务 管理控制台,单击左侧导航栏的“主机监控”。
    查看所有已安装Agent的弹性云服务器列表。

    Agent插件配置完成后,因监控数据暂未上报,插件状态仍显示“未安装”,等待3-5分钟,刷新即可。

  4. 在“主机监控”页面全选ECS后,单击“修复插件配置”。
  5. 在弹出的页面中单击“一键修复”。
  6. (可选)安装完成后如果不需要pexpect模块,则执行如下命令,到python安装目录下删除pexepct和ptyprocess模块。

    cd /usr/lib/python2.7/site-packages

    rm pexpect-3.2-py2.7.egg-info -f

    rm ptyprocess-0.5.2-py2.7.egg-info -f

    rm pexpect -rf

    rm ptyprocess -rf

support.huaweicloud.com/usermanual-ces/ces_01_0033.html