[英]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.