Installing CVM Agent

Last updated: 2019-12-31 11:12:55

PDF

To use Tencent Cloud Cloud Monitoring (CM) to view the metric data of Cloud Virtual Machine (CVM) instances and generate alarms, you need to properly install Agent on Tencent Cloud CVM instances, which will be used to collect the metric data of instances.

  • To properly report monitoring data, you need to open TCP dport 80 on your CVM.
  • You must log in to the CVM in order to run the command to acquire the Agent installer.

Installing Agent on Linux

  1. After logging in to a Linux instance, run the following commands:
    wget http://update2.agent.tencentyun.com/update/linux_stargate_installer   //Downloads the Agent installer.
    chmod +x linux_stargate_installer   //Grants the permission for executing the Agent installation script.
    ./linux_stargate_installer   //Installs Agent.
  2. Check whether Agent has been successfully installed.
    1. Run the following commands to check whether Agent has been added to scheduled tasks:
      crontab -l |grep stargate
      If the command output shown in the following figure appears, Agent installation has been added to scheduled tasks.
    2. Run the following commands to check whether Agent-related processes have started:
      ps ax |grep sgagent
      ps ax |grep barad_agent
      If the command output is shown as below, Agent-related processes have started and Agent has been successfully installed.

Installing Agent on Windows

  1. After logging in to a Windows instance, use private network to access http://update2.agent.tencentyun.com/update/ and download the windows-stargate-installer.exe installer.
  2. Run the installer to automatically install Agent.

FAQs