阿里云监控插件安装

Linux Agent安装说明

安装

直接复制以下命令后在服务器上使用root权限运行即可。

  1. #64位
  2. sudo bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.24" CMS_ARCH="linux64" CMS_PROXY="bjcmsproxy.aliyun.com:3128"; \
  3. if [ -f $CMS_HOME/wrapper/bin/cloudmonitor.sh ] ; then $CMS_HOME/wrapper/bin/cloudmonitor.sh remove; rm -rf $CMS_HOME; fi ; \
  4. mkdir -p $CMS_HOME && \
  5. wget -e "http_proxy=$CMS_PROXY" -O "$CMS_HOME/cloudmonitor.tar.gz" "http://cms-download.aliyun.com/release/$CMS_VERSION/$CMS_ARCH/agent-$CMS_ARCH-$CMS_VERSION-package.tar.gz" && \
  6. tar -xf $CMS_HOME/cloudmonitor.tar.gz -C $CMS_HOME && \
  7. rm -f $CMS_HOME/cloudmonitor.tar.gz && \
  8. chown -R root:root $CMS_HOME && \
  9. $CMS_HOME/wrapper/bin/cloudmonitor.sh install && \
  10. $CMS_HOME/wrapper/bin/cloudmonitor.sh start'
  11. #32位
  12. sudo bash -c 'CMS_HOME="/usr/local/cloudmonitor" CMS_VERSION="1.2.24" CMS_ARCH="linux32" CMS_PROXY="hzcmsproxy.aliyun.com:3128"; \
  13. if [ -f $CMS_HOME/wrapper/bin/cloudmonitor.sh ] ; then $CMS_HOME/wrapper/bin/cloudmonitor.sh remove; rm -rf $CMS_HOME; fi ; \
  14. mkdir -p $CMS_HOME && \
  15. wget -e "http_proxy=$CMS_PROXY" -O "$CMS_HOME/cloudmonitor.tar.gz" "http://cms-download.aliyun.com/release/$CMS_VERSION/$CMS_ARCH/agent-$CMS_ARCH-$CMS_VERSION-package.tar.gz" && \
  16. tar -xf $CMS_HOME/cloudmonitor.tar.gz -C $CMS_HOME && \
  17. rm -f $CMS_HOME/cloudmonitor.tar.gz && \
  18. chown -R root:root $CMS_HOME && \
  19. $CMS_HOME/wrapper/bin/cloudmonitor.sh install && \
  20. $CMS_HOME/wrapper/bin/cloudmonitor.sh start'

查看运行状态

  1. sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status

重启

  1. sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh restart

卸载

  1. sudo bash -c "/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && rm -rf /usr/local/cloudmonitor"

 

    天津雍博科技有限责任公司

    欢迎大家访问www.yongbosoft.com ,崇尚技术,为您提供完美产品,优质服务!

posted @ 2018-05-24 16:22  roundlight  阅读(1301)  评论(0编辑  收藏  举报