Trivy scanner文档没有提到如何测试trivy服务器是否已启动并运行(在文档中,通过监视检查进行简单的API调用就可以了)。https://aquasecurity.github.io/trivy
$ curl http://trivy.local:8080
404 page not found当然,我可以监控404响应,但我不确定trivy是否健康。我只会知道它是向上的。
发布于 2021-10-20 13:40:28
我发现了一个已解决的问题https://github.com/aquasecurity/trivy/issues/534,其中提到使用/healthz端点:
$ curl http://trivy.local:8080/healthz
ok希望这能帮助其他人寻找一种简单的方法来监控trivy服务器。
https://stackoverflow.com/questions/69647111
复制相似问题