【问题标题】:How to check if trivy is up and running如何检查 trivy 是否启动并运行
【发布时间】:2021-12-07 08:11:14
【问题描述】:

Trivy 扫描仪文档没有提到如何测试 Trivy 服务器是否启动并运行(在文档中通过监控检查进行简单的 API 调用就可以了)。 https://aquasecurity.github.io/trivy

$ curl http://trivy.local:8080
404 page not found

当然,我可以监控 404 响应,但我不确定 trivy 是否健康。我就知道它已经启动了。

【问题讨论】:

    标签: docker security monitoring image-scanner trivy


    【解决方案1】:

    我发现了一个已关闭的问题 https://github.com/aquasecurity/trivy/issues/534,其中提到使用 /healthz 端点:

    $ curl http://trivy.local:8080/healthz
    ok
    

    希望这将帮助其他人寻找一种简单的方法来监控 trivy 服务器。

    【讨论】:

      猜你喜欢
      • 2016-05-23
      • 2022-12-03
      • 1970-01-01
      • 1970-01-01
      • 2016-09-28
      • 2021-04-09
      • 2012-09-18
      • 1970-01-01
      • 2016-06-16
      相关资源
      最近更新 更多