通常出现这情况是因为没有装云监控的插件,安装办法如下:
Linux Agent安装说明:
直接root帐号执行以下命令,回车即可:
#64位
wget -e ‘http_proxy=hzcmsproxy.aliyun.com:3128’ -O /tmp/cloudmonitor.tar.gz ‘http://cms-download.aliyun.com/release/1.1.24/linux64/agent-linux64-1.1.24-package.tar.gz’ && \
mkdir /usr/local/cloudmonitor && \
tar -xf /tmp/cloudmonitor.tar.gz -C /usr/local/cloudmonitor && \
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh install && \
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start
#32位
wget -e ‘http_proxy=hzcmsproxy.aliyun.com:3128’ -O /tmp/cloudmonitor.tar.gz ‘http://cms-download.aliyun.com/release/1.1.24/linux32/agent-linux32-1.1.24-package.tar.gz’ && \
mkdir /usr/local/cloudmonitor && \
tar -xf /tmp/cloudmonitor.tar.gz -C /usr/local/cloudmonitor && \
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh install && \
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start
查看运行状态
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
重启
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart
卸载
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && rm -rf /usr/local/cloudmonitor
windows请参考一下原文
原文:https://shipengliang.com/software-exp/阿里云-云监控-插件状态已停止-解决办法.html
阿里云 云监控 插件状态已停止 解决办法
第二种办法 可以拿到高版本
https://help.aliyun.com/knowledge_detail/38859.html
常用命令
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh start
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh stop
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && \
rm -rf /usr/local/cloudmonitor
安装命令
直接复制以下命令后在服务器上使用root权限运行即可。
华北1 青岛 cn-qingdao
REGION_ID=cn-qingdao VERSION=1.3.7 \
bash -c "$(curl https://cms-agent-cn-qingdao.oss-cn-qingdao-internal.aliyuncs.com/release/cms_install_for_linux.sh)"
华东1 杭州 cn-hangzhou
REGION_ID=cn-hangzhou VERSION=1.3.7 \
bash -c "$(curl https://cms-agent-cn-hangzhou.oss-cn-hangzhou-internal.aliyuncs.com/release/cms_install_for_linux.sh)"
其中区别是 region_id