2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Alibaba Cloud で CloudMonitorAgentをインストールしてみる

2
Posted at

AgentのInstall

ECSを作成した後、インスタンスにログインしましょう。コンソールにはVNCが用意されていますがSSHログインでもどちらでも構いません。
ターミナルに入ったら以下の呪文を実行します。

sudo bash -c "wget -e 'http_proxy=jpcmsproxy.aliyun.com:8080' -O /tmp/cloudmonitor.tar.gz 'http://cms-download.aliyun.com/release/1.2.17/linux64/agent-linux64-1.2.17-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"

あとは実行を見守りましょう。

--2018-01-30 17:42:39--  http://cms-download.aliyun.com/release/1.2.17/linux64/agent-linux64-1.2.17-package.tar.gz
jpcmsproxy.aliyun.com (jpcmsproxy.aliyun.com) をDNSに問いあわせています... 100.100.80.184
jpcmsproxy.aliyun.com (jpcmsproxy.aliyun.com)|100.100.80.184|:8080 に接続しています... 接続しました。
Proxy による接続要求を送信しました、応答を待っています... 200 OK
長さ: 116843938 (111M) [application/octet-stream]
`/tmp/cloudmonitor.tar.gz' に保存中

100%[====================================================================================================================>] 116,843,938 8.42MB/s 時間 18s

2018-01-30 17:42:59 (6.15 MB/s) - `/tmp/cloudmonitor.tar.gz' へ保存完了 [116843938/116843938]

Detected RHEL or Fedora:
Installing the cloudmonitor daemon..
Starting cloudmonitor...
Waiting for cloudmonitor....
running: PID:10739

完了したらステータスを確認してみます。

sudo /usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh status
cloudmonitor is running: PID:10748, Wrapper:STARTED, Java:STARTED <実行結果

ちゃんと実行されているようです。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?