This topic describes how to troubleshoot an abnormal stop of the Cloud Monitor agent.
Background information
By default, the Cloud Monitor agent sends a heartbeat message to the Cloud Monitor server every 3 minutes. If the Cloud Monitor agent does not send heartbeat messages for 15 minutes, the host where the agent resides determines that the agent stops.
- The Cloud Monitor agent cannot communicate with the Cloud Monitor server.
- The process of the Cloud Monitor agent exits.
Solution for the failure to communicate with the Cloud Monitor server
- Automatically install the Cloud Monitor agent
For more information, see Automatically install the Cloud Monitor agent (Recommended).
- Manually install the Cloud Monitor agent
For more information, see Manually install the Cloud Monitor agent on ECS instances or Manually install the Cloud Monitor agent on hosts that are not provided by Alibaba Cloud.
Solution for the exit of the agent process
- View logs of the Cloud Monitor agent
- Windows
- Log on to the ECS instance on which you want to install the Cloud Monitor agent as the administrator.
- Go to the C:\Program Files\Alibaba\cloudmonitor\local_data\logs directory that stores the logs of the Cloud Monitor agent.
- Open the log file argusagent.log or argusagentd.log in Notepad or WordPad.
- argusagentd.log: stores the logs generated by the C++ agent about daemon processes. The logs contain information such as the startup and shutdown of monitoring processes.
- argusagent.log: stores the operational logs of the C++ agent.
- Linux
- Log on to the host where the Cloud Monitor agent resides as the root user.
- Run the following commands to view the logs of the Cloud Monitor agent:
cd /usr/local/cloudmonitor/local_data/logs
cat argusagent.log
cat argusagentd.log
- argusagentd.log: stores the logs generated by the C++ agent about daemon processes. The logs contain information such as the startup and shutdown of monitoring processes.
- argusagent.log: stores the operational logs of the C++ agent.
- Windows
- View the status of the Cloud Monitor agent
- Windows
- Log on to the host where the Cloud Monitor agent resides as the administrator.
- 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.
- Linux
- Log on to the host where the Cloud Monitor agent resides as the root user.
- Run the following command to view the status of the Cloud Monitor agent:
ps aux | grep argusagent | grep -v grep
- Windows