0

为什么我需要将/sdk包含在主机地址的末尾?例如,如果我将主机设置为https://vcenter.test.ca,我会收到服务器错误,但使用https://vcenter.test.ca/sdk它运行良好。

我的 metricbeat.yml 的内容如下所示:

metricbeat.modules:
        # Vsphere module
      - module: vsphere
        enabled: true
        metricsets: ["datastore", "host", "virtualmachine"]
        period: 60s
        **hosts: ["https://vcenter.test.ca/sdk"]**
        username: "test@test.ca"
        password: "****"
        insecure: true
4

1 回答 1

0

我发现url 末尾的/sdk是 API 路由。如果它未包含在您的网址中,您将获得:

"error": {
  "message": "Post https://vcenter.test.ca: **x509: certificate signed by unknown authority**"
},
于 2018-11-28T13:02:29.187 回答