在Amazon Linux 2上试用AWS Inspector。 Installing manually Added proxy details,因为我们在代理服务器后面
安装成功,但是日志中出现以下错误(sudo systemctl状态为awsagent.service):
Publishers/ArsenalPublisher.cpp:1070:RegisterEC2Agent operation not permitted failure : Account not registered in this AWS region. AccountID : <redacted>
Publishers/ArsenalPublisher.cpp:649:Agent failed to register during config retrieval: Operation not permitted: Account not registered in this AWS region. AccountID : <redacted>
Service/MainInspectorThread.cpp:80:Config retrieval failed : -96
这与以下位置的状态匹配:
sudo /opt/aws/awsagent/bin/awsagent status | less
Last registration attempt date : Thu 2018-10-11 23:15:01 UTC
Registration failure reason : Operation not permitted: Account not registered in this AWS region. AccountID : <redacted>
Config retrieval failure reason : Agent failed to register during config retrieval
并确认上面文件中的区域与该区域匹配。
答案 0 :(得分:0)
事实证明,AWS Inspector需要一些时间来注册。
在编写问题,一般搜索互联网并查看服务的常见问题解答时,代理会自行解决。
sudo /opt/aws/awsagent/bin/awsagent status | less
现在显示:
Last registration attempt date : Thu 2018-10-11 23:35:44 UTC
Last registration date : Thu 2018-10-11 23:35:45 UTC
Last config retrieval attempt date : Thu 2018-10-11 23:40:21 UTC
Last config retrieval date : Thu 2018-10-11 23:40:21 UTC