To use Cloud Monitor to view CVM metric data and generate alarms, install the monitoring component Agent on the CVM instance to collect metric data.
- To ensure the normal reporting of the monitoring data, TCP dport 80 in the CVM instance must be opened to the Internet. Agent reports data without relying on security groups or the network ACL. Therefore, you do not need to open TCP dport 80 of the security groups or the network ACL.
- To run the following command to obtain the Agent installer, you must first log in to the CVM instance.
Log in to the CVM instance to download the Agent installer. You can download the Agent installer only by using a private IP address of Tencent Cloud. Therefore, please ensure that the DNS of your CVM instance is a private network DNS. Otherwise, the resolution of the URL for downloading the Agent installer will fail.
wget http://update2.agent.tencentyun.com/update/linux_stargate_installer // Download the Agent installer.
chmod +x linux_stargate_installer // Grant the permission to run the Agent installation script.
./linux_stargate_installer // Install Agent.
crontab -l |grep stargate
If the following command output is returned, Agent has been added to scheduled tasks. If no prompt appears, the installation has failed.ps ax |grep sgagent
ps ax |grep barad_agent
If the following command output is returned, the Agent-related processes have been properly launched and Agent has been successfully installed.Run the following command to access the Agent installation directory.
cd /usr/local/qcloud/stargate/admin
crontab -l |grep stargate
command to check whether there are any scheduled tasks. If there are no scheduled tasks, the uninstallation has been successfully completed../uninstall.sh
stargate agent run succ
appears, Agent has successfully restarted../restart.sh
ps ax |grep sgagent
command to check whether any Agent-related processes are running. If there are no Agent-related processes running, Agent has successfully stopped running../stop.sh
Log in to the CVM instance to download the Agent installer. You can download the Agent installer only by using a private IP address of Tencent Cloud. Therefore, please ensure that the DNS of your CVM instance is a private network DNS. Otherwise, the resolution of the URL for downloading the Agent installer will fail.
http://update2.agent.tencentyun.com/update/windows-stargate-installer.exe
, and paste it in the address bar of your browser to download the windows-stargate-installer.exe
installer.QCloud BaradAgent Monitor
and QCloud Stargate Manager
services are running.BaradAgent
and sgagent
processes.Uninstall Agent: run the following commands. After "[SC] DeleteService succeeds" appears, restart the CVM instance.
sc.exe delete "BaradAgentSvc"
sc.exe delete "StargateSvc"
Was this page helpful?