使用背景:为了统一监控,在自建机房使用阿里云监控来监控非ECS。

问题:1、有三台虚拟机安装阿里云监控后,三台都是在阿里云监控前台忽隐忽现,同时阿里云监控前台无停止等情况;2、三台服务器不能同时存在在阿里云监控前台。

原因:经过日志查找发现是因为克隆的问题,造成三台获取到instanceId相同的情况,引起之前出现的问题。

处理方法

1、使用以下命令卸载原有的阿里云监控:

cd /usr/local/cloudmonitor
./cloudmonitorCtl.sh stop   //停止阿里云监控
./cloudmonitorCtl.sh uninstall  //卸载阿里云监控
cd ..
rm -rf cloudmonitor
rm -rf /tmp/cloudmonitor.tar.gz
rm -rf /etc/cloudmonitor
rm -rf /etc/systemd/system/cloudmonitor.servic

2、按图示顺序重新安装阿里云监控