云监控服务 CES-安装Agent(Linux):操作步骤

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

操作步骤

  1. 使用root帐号,登录E CS 或BMS。
  2. 执行以下命令,安装Agent。

    脚本支持x86和鲲鹏ARM架构的ECS。

    华北-北京一:

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

    华北-北京四:

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

    华北-乌兰察布:

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

    华南-广州:

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

    华南-广州-友好用户环境:

    cd /usr/local && wget https://telescope-cn-south-4.obs.cn-south-4.myhuaweicloud.com/scripts/agentInstall.sh && chmod 755 agentInstall.sh && ./agentInstall.sh

    华南-深圳:

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

    华东-上海一:

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

    华东-上海二:

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

    西南-贵阳一:

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

    中国-香港:

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

    亚太-曼谷:

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

    亚太-新加坡:

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

    亚太-雅加达:

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

    非洲-约翰内斯堡:

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

    拉美-圣地亚哥:

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

    拉美-圣保罗一:

    cd /usr/local && wget https://telescope-sa-brazil-1.obs.myhuaweicloud.com/scripts/agentInstall.sh && chmod 755 agentInstall.sh && ./agentInstall.sh

    拉美-墨西哥城一:

    cd /usr/local && wget https://telescope-na-mexico-1.obs.myhuaweicloud.com/scripts/agentInstall.sh && chmod 755 agentInstall.sh && ./agentInstall.sh

    拉美-墨西哥城二:

    cd /usr/local && curl -k -O https://uniagent-la-north-2.obs.la-north-2.myhuaweicloud.com/script/agent_install.sh && bash agent_install.sh
    当回显如下图所示时,说明Agent安装成功。
    图1 Agent安装成功
  3. 安装完成后,请参考修复插件配置(Linux)手动配置Agent(Linux,可选)完成Agent的配置。
    • 修复插件配置为用户提供了一键配置AK/SK、RegionID、ProjectId功能,省去了繁琐的手动配置步骤,提升配置效率。也可以参考手动配置Agent(Linux,可选)自己修改相关配置文件。
    • BMS不支持修复插件配置,请参考手动配置Agent(Linux,可选)修改相关配置文件。
  4. 执行如下命令,清除安装脚本。

    if [[ -f /usr/local/uniagent/extension/install/telescope/bin/telescope ]]; then rm /usr/local/agent_install.sh; else rm /usr/local/agentInstall.sh; fi

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