This topic describes how to automatically install, manually install, and uninstall
the C++ agent of Cloud Monitor.
Automatically install the Cloud Monitor agent (Recommended)
Perform the following steps to enable automatic installation of the Cloud Monitor
agent on Elastic Compute Service (ECS) instances provided by Alibaba Cloud and hosts
that are not provided by Alibaba Cloud:
- Log on to the Cloud Monitor console.
- In the left-side navigation pane, click Host Monitoring.
- On the Instances tab of the Host Monitoring page, select the hosts on which you want to install or upgrade the Cloud Monitor
agent.
- Click Batch Install.
Wait for about 5 minutes. When the agent status changes from Installing to Running, the installation or upgrade is successful.
- Turn on New purchase ECS automatically installs Cloud Monitor.
After you turn on this switch, the Cloud Monitor agent is automatically installed
on new ECS instances. Otherwise, you must manually install the agent.
Manually install the Cloud Monitor agent on ECS instances
- Log on to the Cloud Monitor console.
- In the left-side navigation pane, click Host Monitoring.
- On the Instances tab of the Host Monitoring page, click Aliyun ECS install in the upper-right corner.
- In the Monitor Install Guide panel, select the region and operating system of the ECS instance. Then, copy and
run the commands that are displayed in the panel as prompted to install the Cloud
Monitor agent.
- Windows

- Download the agent package of the 32-bit version or 64-bit version based on the operating
system of the ECS instance.
- Log on to the ECS instance on which you want to install the Cloud Monitor agent as
the administrator.
- Create a directory named cloudmonitor in the C:\Program Files\Alibaba directory.
- Upload the agent package to the ECS instance and decompress the agent package to the
C:\Program Files\Alibaba\cloudmonitor directory.
- Open Command Prompt.
Press Win+R. In the Run dialog box, enter cmd and click OK.
- Run the following commands to install the Cloud Monitor agent:
cd C:\Program Files\Alibaba\cloudmonitor\bin
argusagent_service.exe install
- Run the following command to start the Cloud Monitor agent:
net start argusagent
- Query the status of the Cloud Monitor agent.
- Open the Services window.
Press Win+R. In the Run dialog box, enter services.msc and click OK.
- View the status of the argusagent service.
If the status of the argusagent service is Running, the Cloud Monitor agent is properly running.
- Linux

- In the Monitor Install Guide panel, click Click the copy installation command.
- Log on to the ECS instance on which you want to install the Cloud Monitor agent as
the root user.
- Paste and run the command to install the Cloud Monitor agent.
- Run the following command to view the status of the Cloud Monitor agent:
ps aux | grep argusagent | grep -v grep
The following output indicates that the Cloud Monitor agent is properly running:
root 2284 0.0 0.0 22516 1488 ? Ss Sep14 0:00 /usr/local/cloudmonitor/bin/argusagent -d
root 2286 0.2 0.3 939652 14300 ? Sl Sep14 3:15 /usr/local/cloudmonitor/bin/argusagent
Manually install the Cloud Monitor agent on hosts that are not provided by Alibaba
Cloud
- Log on to the Cloud Monitor console.
- In the left-side navigation pane, click Host Monitoring.
- On the Instances tab of the Host Monitoring page, click Not Aliyun ecs install in the upper-right corner.
- In the Monitor Install Guide panel, select the region and operating system of the host. Then, copy and run the
commands that are displayed in the panel as prompted to install the Cloud Monitor
agent.
- Windows

- Download the agent package of the 32-bit version or 64-bit version based on the operating
system of the host.
- Download the accesskey.properties configuration file.
- Log on to the host on which you want to install the Cloud Monitor agent as the administrator.
- Create a directory named cloudmonitor in the C:\Program Files\Alibaba directory.
- Upload the agent package to the host and decompress the agent package to the C:\Program Files\Alibaba\cloudmonitor directory.
- Upload the configuration file to the C:\Program Files\Alibaba\cloudmonitor\local_data\conf directory of the host.
- Open the command prompt window.
Press Win+R. In the Run dialog box, enter cmd and click OK.
- Run the following command to install the Cloud Monitor agent:
cd C:\Program Files\Alibaba\cloudmonitor\bin
argusagent_service.exe install
- Run the following command to start the Cloud Monitor agent:
net start argusagent
- Query the status of the Cloud Monitor agent.
- Open the Services window.
Press Win+R. In the Run dialog box, enter services.msc and click OK.
- View the status of the argusagent service.
If the status of the argusagent service is Running, the Cloud Monitor agent is properly running.
- Linux

- On the monitoring installation guide page, click click copy installation command.
- Log on to the host on which you want to install the Cloud Monitor agent as the root
user.
- Paste and run the command to install the Cloud Monitor agent.
- Run the following command to view the status of the Cloud Monitor agent:
ps aux | grep argusagent | grep -v grep
The following output indicates that the Cloud Monitor agent is properly running:
root 2284 0.0 0.0 22516 1488 ? Ss Sep14 0:00 /usr/local/cloudmonitor/bin/argusagent -d
root 2286 0.2 0.3 939652 14300 ? Sl Sep14 3:15 /usr/local/cloudmonitor/bin/argusagent
Uninstall the Cloud Monitor agent
After you uninstall the Cloud Monitor agent from a host, you cannot monitor the host
in real time in the Cloud Monitor console, but you can view the historical metric
data.
- Windows
- Log on to the host where the Cloud Monitor agent resides as the administrator.
- Open the command prompt window.
Press Win+R. In the Run dialog box, enter cmd and click OK.
- Run the following command to stop the Cloud Monitor agent:
net stop argusagent
- Run the following command to uninstall the Cloud Monitor agent:
"C:\Program Files\Alibaba\cloudmonitor\bin\argusagent_service.exe" uninstall
- Run the following command to delete the cloudmonitor directory:
cd C:\Program Files\Alibaba
rd /s /q cloudmonitor
- Linux
- Log on to the host where the Cloud Monitor agent resides as the root user.
- Run the following command to stop the Cloud Monitor agent:
bash /usr/local/cloudmonitor/cloudmonitorCtl.sh stop
- Run the following command to uninstall the Cloud Monitor agent:
bash /usr/local/cloudmonitor/cloudmonitorCtl.sh uninstall
- Run the following command to delete the cloudmonitor directory:
rm -rf /usr/local/cloudmonitor