简体   繁体   English

在 EC2 实例上安装 CloudHealth 代理 - 最新的 CloudHealth 代理

[英]Installing CloudHealth agent on EC2 instance - Latest CloudHealth agent

We have a large number of EC2 instances, both Windows and Linux, and we have CloudHealth v 10.0.0.180 installed.我们有大量的 EC2 实例,包括 Windows 和 Linux,并且我们安装了 CloudHealth v 10.0.0.180。 I understand there are newer versions such as 10.0.0.220 but I can't find a definitive list of the versions and which one is the latest.我知道有较新的版本,例如 10.0.0.220,但我找不到版本的明确列表以及哪个版本是最新的。 I have an AWS custom doc that pushes CloudHealth v10.0.0.180 (see below) but if I update that doc to push 10.0.0.220 it says it succeeds but the version does not change.我有一个推送 CloudHealth v10.0.0.180 的 AWS 自定义文档(见下文),但如果我更新该文档以推送 10.0.0.220,它说它成功但版本没有改变。 Below are the URLs I am using in the doc for both v 10.0.0.180 and 10.0.0.220.以下是我在文档中为 v 10.0.0.180 和 10.0.0.220 使用的 URL。 The full document code is below as well.完整的文档代码也在下面。

https://s3.amazonaws.com/remote-collector/agent/windows/18/CloudHealthAgent.exe\
https://s3.amazonaws.com/remote-collector/agent/windows/22/CloudHealthAgent.exe\
{
  "description": "Download and Install CloudHealth Agents",
  "schemaVersion": "2.2",
  "mainSteps": [
    {
      "inputs": {
        "runCommand": [
          "Write-Output \"Installing CloudHealth Agent\"",
          "$url = \"https://s3.amazonaws.com/remote-collector/agent/windows/22/CloudHealthAgent.exe\"",
          "$output = \"C:\\CloudHealthAgent.exe\"",
          "$start_time = Get-Date",
          "Invoke-WebRequest -Uri $url -OutFile $output",
          "C:\\CloudHealthAgent.exe /S /v\"/l* install.log /qn CLOUDNAME=aws CHTAPIKEY=6a4290cd-116d-46f5-b8f4-eb6c6ee4bf46\"",
          "Write-Output \"Time taken: $((Get-Date).Subtract($start_time).Seconds) second(s)\""
        ]
      },
      "name": "CloudHealthAgentWindows",
      "action": "aws:runPowerShellScript",
      "precondition": {
        "StringEquals": [
          "platformType",
          "Windows"
        ]
      }
    },
    {
      "inputs": {
        "runCommand": [
          "echo “Installing CloudHealth Agent”",
          "sudo yum install wget -y",
          "wget https://s3.amazonaws.com/remote-collector/agent/v22/install_cht_perfmon.sh",
          "sudo sh install_cht_perfmon.sh 20 8fdf2776-eda0-441b-bca8-0566ded6daf1 aws;"
        ]
      },
      "name": "CloudHealthAgentLinux",
      "action": "aws:runShellScript",
      "precondition": {
        "StringEquals": [
          "platformType",
          "Linux"
        ]
      }
    }
  ]
}

I just went through updating the agents myself.我刚刚自己更新了代理。 I had to uninstall the old agent, reboot the instance, and then I was able to successfully install the new (22) version.我必须卸载旧代理,重新启动实例,然后才能成功安装新 (22) 版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通过用户数据在 EC2 实例上安装 CodeDeploy 代理 - Installing CodeDeploy Agent on EC2 Instance via User Data 在 AWS EC2 上安装 CodeDeploy 代理时出错 - Error installing CodeDeploy Agent on AWS EC2 安装 SSM 代理后,EC2 实例不会变为托管状态 - EC2 Instance doesn't become managed after installing SSM Agent 有没有办法在不登录 AWS 中的 EC2 实例的情况下安装 SSM 代理? - Is there a way to install the SSM agent without logging in to EC2 instance in AWS? Jenkins 代理 EC2 实例创建失败并出现 404 NOT FOUND 错误 - Jenkins Agent EC2 instance creation fails with a 404 NOT FOUND error 在私有子网中的 EC2 上安装 Cloudwatch 代理 - Install Cloudwatch agent on EC2 in a private subnet 为什么当我在EC2实例上启动SSM代理时,我得到“单位被屏蔽”。 - Why when I start the SSM agent on my EC2 instance I get “Unit is masked.”? AWS CloudWatch 代理失败 - 刷新 EC2 实例标签失败:RequestError:发送请求失败 - AWS CloudWatch agent fails - refresh EC2 Instance Tags failed: RequestError: send request failed 将本地笔记本电脑配置为 puppet 服务器,将 aws ec2 实例配置为 puppet 代理 - Configuring local laptop as puppet server and aws ec2 instance as puppet agent 如何使用 boto3 通过 ssm 代理 scp 到 ec2 实例并发送文件 - How to scp to ec2 instance via ssm agent using boto3 and send file
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM