このトピックでは、Java 用 CloudMonitor エージェントのインストール・アンインストール方法 (Linux、Windows) と、その他の関連事項について説明します。
Java 用 CloudMonitor エージェントは、今後はサポート終了となります。C++ 用 CloudMonitor エージェントの使用を推奨します。
Linux
インストール
root ユーザーとして、リージョンに応じて次のコマンドを実行します。
中国 (青島) (リージョン ID: 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)"中国 (北京) (リージョン ID: cn-beijing)
REGION_ID=cn-beijing VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-cn-beijing.oss-cn-beijing-internal.aliyuncs.com/release/cms_install_for_linux.sh)"中国 (張家口) (リージョン ID: cn-zhangjiakou)
REGION_ID=cn-zhangjiakou VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-cn-zhangjiakou.oss-cn-zhangjiakou-internal.aliyuncs.com/release/cms_install_for_linux.sh)"中国 (フフホト) (リージョン ID: cn-huhehaote)
REGION_ID=cn-huhehaote VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-cn-huhehaote.oss-cn-huhehaote-internal.aliyuncs.com/release/cms_install_for_linux.sh)"中国 (杭州) (リージョン ID: 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)"中国 (上海) (リージョン ID: cn-shanghai)
REGION_ID=cn-shanghai VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-cn-shanghai.oss-cn-shanghai-internal.aliyuncs.com/release/cms_install_for_linux.sh)"中国 (深圳) (リージョン ID: cn-shenzhen)
REGION_ID=cn-shenzhen VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-cn-shenzhen.oss-cn-shenzhen-internal.aliyuncs.com/release/cms_install_for_linux.sh)"中国 (香港) (リージョン ID: cn-hongkong)
REGION_ID=cn-hongkong VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-cn-hongkong.oss-cn-hongkong-internal.aliyuncs.com/release/cms_install_for_linux.sh)"米国 (シリコンバレー) (リージョン ID: us-west-1)
REGION_ID=us-west-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-us-west-1.oss-us-west-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"米国 (バージニア北部) (リージョン ID: us-east-1)
REGION_ID=us-east-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-us-east-1.oss-us-east-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"シンガポール (リージョン ID: ap-southeast-1)
REGION_ID=ap-southeast-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-ap-southeast-1.oss-ap-southeast-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"マレーシア (クアラルンプール) (リージョン ID: ap-southeast-3)
REGION_ID=ap-southeast-3 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-ap-southeast-3.oss-ap-southeast-3-internal.aliyuncs.com/release/cms_install_for_linux.sh)"インドネシア (ジャカルタ) (リージョン ID: ap-southeast-5)
REGION_ID=ap-southeast-5 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-ap-southeast-5.oss-ap-southeast-5-internal.aliyuncs.com/release/cms_install_for_linux.sh)"日本 (東京) (リージョン ID: ap-northeast-1)
REGION_ID=ap-northeast-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-ap-northeast-1.oss-ap-northeast-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"ドイツ (フランクフルト) (リージョン ID: eu-central-1)
REGION_ID=eu-central-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-eu-central-1.oss-eu-central-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"英国 (ロンドン) (リージョン ID: eu-west-1)
REGION_ID=eu-west-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-eu-west-1.oss-eu-west-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"UAE (ドバイ) (リージョン ID: me-east-1)
REGION_ID=me-east-1 VERSION=1.3.7 \ bash -c "$(curl https://cms-agent-me-east-1.oss-me-east-1-internal.aliyuncs.com/release/cms_install_for_linux.sh)"
アンインストール
root ユーザーとして、次のコマンドを実行します。
/usr/local/cloudmonitor/wrapper/bin/cloudmonitor.sh remove && \
rm -rf /usr/local/cloudmonitorその他のよく使うコマンド
# エージェントのステータスを表示します。
/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 restartWindows
インストール
OS に応じて、64 ビット版または 32 ビット版のエージェントインストールパッケージをダウンロードします。
C:\Program Files\Alibaba\cloudmonitorディレクトリを作成します。パッケージをここに解凍してください。
管理者として C:\Program Files\Alibaba\cloudmonitor\wrapper\bin\InstallApp-NT.bat ファイルを実行して、エージェントをインストールします。
管理者として C:\Program Files\Alibaba\cloudmonitor\wrapper\bin\StartApp-NT.batを実行して、エージェントを起動します。
インストール後、Cloud Monitor アプリケーションをサービス管理ツールで表示、起動、または停止できます。
アンインストール
サービス管理ツールで Cloud Monitor エージェントを停止します。
管理者として C:\Program Files\Alibaba\cloudmonitor\wrapper\bin\UninstallApp-NT.bat ファイルを実行して、エージェントをアンインストールします。
C:\Program Files\Alibaba\cloudmonitor ディレクトリを削除します。
関連ポート
次の表に、CloudMonitor エージェントが CloudMonitor サーバーと通信するための IP アドレスとポートを示します。セキュリティソフトウェアによりブロックされると、監視データの報告が失敗します。
これらのポートを ECS インスタンスのホワイトリストに追加することで、アウトバウンドトラフィックを制限できます。
CloudMonitor の更新やメンテナンスにより、次の表は予約済みの内部 CIDR ブロック 100.100 範囲内に更新される場合があります。100.100 CIDR ブロックへのアウトバウンドトラフィックを許可することで、設定が簡素化されます。
リージョン | IP アドレス | 方向 | 説明 |
中国 (杭州) (リージョン ID: cn-hangzhou) | 100.100.19.43:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.45.73:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (北京) (リージョン ID: cn-beijing) | 100.100.18.22:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.18.50:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (青島) (リージョン ID: cn-qingdao) | 100.100.36.102:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.15.23:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (深圳) (リージョン ID: cn-shenzhen) | 100.100.0.13:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.0.31:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (香港) (リージョン ID: cn-hongkong) | 100.103.0.47:3128 | アウトバウンド | 監視の設定などを管理します |
100.103.0.45:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (フフホト) (リージョン ID: cn-huhehaote) | 100.100.80.135:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.12:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (張家口) (リージョン ID: cn-zhangjiakou) | 100.100.80.92:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.0.19:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (上海) (リージョン ID: cn-shanghai) | 100.100.36.11:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.36.6:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
中国 (成都) (リージョン ID: cn-chengdu) | 100.100.80.229:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.14:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
米国 (バージニア) (リージョン ID: us-east-1) | 100.103.0.95:3128 | アウトバウンド | 監視の設定などを管理します |
100.103.0.94:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
米国 (シリコンバレー) (リージョン ID: us-west-1) | 100.103.0.95:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.29.7:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
ドイツ (フランクフルト) (リージョン ID: eu-central-1) | 100.100.80.241:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.72:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
英国 (ロンドン) (リージョン ID: eu-west-1) | 100.100.0.3:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.0.2:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
シンガポール (リージョン ID: ap-southeast-1) | 100.100.30.20:3128 | アウトバウンド | 監視の設定などを管理します |
100.100.103.7:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
マレーシア (クアラルンプール) (リージョン ID: ap-southeast-3) | 100.100.80.153:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.140:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
インドネシア (ジャカルタ) (リージョン ID: ap-southeast-5) | 100.100.80.160:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.180:80 | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
UAE (ドバイ) (リージョン ID: me-east-1) | 100.100.80.142:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.151:80 [47.91.99.5:443] | アウトバウンド | 監視データを CloudMonitor サーバーに報告します | |
日本 (東京) (リージョン ID: ap-northeast-1) | 100.100.80.184:8080 | アウトバウンド | 監視の設定などを管理します |
100.100.80.137:80 [47.91.8.7:443] | アウトバウンド | 監視データを CloudMonitor サーバーに報告します |
リソース使用量
パッケージのサイズ:75 MB
インストール後のサイズ:200 MB
メモリ 使用量:64 MB
CPU 使用率:1% 未満
ネットワーク:内部ネットワーク。インターネット帯域幅は使用されません。
使用上の注意
CloudMonitor エージェントは、次のディレクトリに監視ログを保存します。
Linux: /usr/local/cloudmonitor/logs
Windows: C:\Program Files\Alibaba\cloudmonitor\logs
CloudMonitor エージェントが使用するポートと、業務アプリケーションが使用するポートとが競合する場合は、/usr/local/cloudmonitor/wrapper/conf/wrapper.conf 設定ファイルでポート範囲を変更し、CloudMonitor エージェントを再起動して解決できます。
wrapper.port.min=40000 wrapper.port.max=41000 wrapper.jvm.port.min=41001 wrapper.jvm.port.max=42000