[英]Google Cloud Platform: VM Monitoring agent installation failing
I tried installing the monitoring agent multiple times using both Google Cloud Console & Command Line.我尝试使用 Google Cloud Console 和命令行多次安装监控代理。 None of the approach worked.
没有一种方法奏效。
My OS Version:我的操作系统版本:
Description: Debian GNU/Linux 11 (bullseye)描述:Debian GNU/Linux 11(靶心)
Release: 11发布: 11
Codename: bullseye代号:靶心
Installation Logs:安装日志:
curl -sSO https://dl.google.com/cloudagents/add-monitoring-agent-repo.sh
sudo bash add-monitoring-agent-repo.sh --also-install
Error:错误:
Err:10 https://packages.cloud.google.com/apt google-cloud-monitoring-bullseye-all Release 404 Not Found [IP: 142.250.182.206 443]
错误:10 https://packages.cloud.google.com/apt google-cloud-monitoring-bullseye-all 未找到 404 版 [IP:142.250.182.206 443]
It fails because it's getting 404 from the legacy monitoring agent source list and you need the updated Cloud Ops Agent script :它失败了,因为它从旧监控代理源列表中获取 404,并且您需要更新的 Cloud Ops Agent 脚本:
curl -sSO https://dl.google.com/cloudagents/add-google-cloud-ops-agent-repo.sh
You would also need to remove the apt source of google-cloud-monitoring:您还需要删除 google-cloud-monitoring 的 apt 源:
sudo rm /etc/apt/sources.list.d/google-cloud-monitoring.list
Then run the script installation inside the VM Instance:然后在 VM 实例中运行脚本安装:
sudo bash add-google-cloud-ops-agent-repo.sh --also-install
As the Legacy Monitoring Agent does not support the Debian 11 Bullseye.由于旧版监控代理不支持 Debian 11 Bullseye。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.