If a firewall is installed on your host, you must add the IP addresses and port numbers
that are used by CloudMonitor to the whitelist of the firewall. This way, the CloudMonitor
agent installed on your host can communicate with the CloudMonitor server.
Procedure
- Log on to the host where the CloudMonitor agent resides as the root user.
- Run the following command to obtain the IP address that is used by CloudMonitor to
receive heartbeat data:
nslookup cms-cloudmonitor.aliyun.com
- Run the following command to obtain the IP address that is used by CloudMonitor to
receive monitoring data:
Note If your host is deployed in a virtual private cloud (VPC), we recommend that you preferentially
report monitoring data to the VPC endpoint of CloudMonitor metrichub-<regionid>.aliyun.com
. You can also report monitoring data to the public endpoint of CloudMonitor metrichub-cms-<regionid>.aliyuncs.com
. In the public endpoint, the regionid
parameter can be set only to cn-hangzhou
, cn-shanghai
, cn-beijing
, or cn-shenzhen
.
- Add the IP addresses and port numbers that are used by CloudMonitor to receive heartbeat
data and monitoring data to the whitelist of the firewall.
CloudMonitor uses the following port numbers:
- 80 and 443: used to receive the monitoring data reported by the CloudMonitor agent
from the host.
- 8080 and 3128: used to monitor the heartbeats of the CloudMonitor agent.