エージェントのインストール
以下の情報と手順に従い、Windows 用 SixthSense エージェント をインストールします。
前提条件
- OS:Windows サーバー バージョン 2008R2 以降、およびデスクトップ Windows バージョン 7 以降
- Windows 用 SixthSense アナリティクス エージェント。詳細は エージェントのインストール を参照してください。
- Sixthsense バックエンドコレクターの URL/IP (カスタマーサポートから提供されたテナント URL)
- カスタマーサポートから提供されたアクセストークン
- PACKAGE_TOKEN - カスタマーサポートから提供された SixthSense パッケージのダウンロードに必要なアクセストークン
- PACKAGE_TOKEN_USERNAME - カスタマーサポートから提供されたアクストークンのユーザー名
- TOKEN - SixthSense ポータルの設定ページからのアクセストークン
エージェントのダウンロード
- カスタマーサポートから提供された最新の ss_windows_infra_agent-<version_no>.zip リリースフォルダをダウンロードします。
curl --header "PRIVATE-TOKEN:{{TOKEN}}" --output ss_windows_infra_agent.zip "https://artifacts-observability.sixthsense.rakuten.com/api/v4/projects/15/packages/generic/sixthsense-infra-agent/2.2.0/ss_windows_infra_agent.zip"
- ダウンロードしたリリース zip フォルダを解凍し、エージェントディレクトリに配置します。.
エージェントのインストール
- ss_windows_infra_agent_config.yaml を、config ファイル エージェント リソースの利用方法 に記載の指示に従い更新します。
# sixthsense-infra-agent can be configured via yaml or environment variables
#
# Note: Environment Variables are given higher priority over yaml file
#
# Following are the environment variables that can be set:
# ENV VARIABLE CORRESPONDS TO
# SS_SERVICE_NAME service_name
# SS_AUTHENTICATION authentication
# SS_BACKEND sixthsense_backend
# SS_LOGGING logging
# SS_SECURE secure
# SS_DEFAULTCOLLECTOR default_collectors
# SS_DEFAULTCOLLECTOR_PLACEHOLDER default_collectors_placeholdersixthsense
service_name: <custom_service_name >
# Login to Sixthsense UI --> Go to Settings on Side Navbar --> Copy Access Token
authentication: <service_auth_token>
# debug|error|info
logging: info
sixthsense_backend: <sixthsense_backend_collector>
# For connectivity to backend using intra public network: 133.237.176.44:80
# For connectivity to backend using onecloud private network: 100.99.116.221:80
# SSL connection with backend true|false
secure: true
# For OneCloud Platform use secure: false
#cpu,cs,logical_disk,net,os,service,system,textfile
default_collectors: "cpu,cs,logical_disk,net,os,memory,system,iis,process,cpu_info"
default_collectors_placeholder: "[defaults]"
enabled: cpu,cs,net,service`
- 接続の詳細を設定した後、サービスからエージェントサービスを開始します。メトリクスはダッシュボードにて利用可能となります。
powershell スクリプトのパスを設定するための executions_config.yaml ファイルの例:
sixthsensescheduler:
name: Script_Monitoring
enabled: true
sixthsense_scheduler_backend: <collector_url>
secure: true
access_token: <authentication_token>
logging: info
cronCycle: "*/1 * * * *"
# ----------- Execution task configuration -- --------------
scripts:
- type: powershell
source_name: activeDirectory_Prod1
enabled: true
timeout: 15
script_path:
- 'C:/path/AD.ps1'
- 'C:/path/NewFile.ps1'