AWS CloudWatch -- 签名已过期
AWS CloudWatch -- Signature Expired
我正在为我的几个 EC2 实例设置 CloudWatch,使用 AWS custom CloudWatch metrics。
一切正常,除了我的一个实例出现以下错误:
ubuntu@my-host:~$ /etc/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-util --disk-path=/ --aws-credential-file=/etc/aws-scripts-mon/awscreds.template
ERROR: Failed to call CloudWatch: HTTP 400. Message: Signature expired: 20150515T204709Z is now earlier than 20150515T204917Z (20150515T205417Z - 5 min.)
For more information, run 'mon-put-instance-data.pl --help'
我试过在 Internet 上搜索,包括 this link,但没有成功。有什么想法吗?
一个提示:我有一个 cron 作业每 5 分钟调用一次相同的命令。它也不成功。这可能与上述错误消息中的 x - 5 min.
消息位有关。
问题 EC2 实例的系统时间偏差了几分钟。参见 AWS SDK Error - Signature not yet current
这可能是解决方案!
我正在为我的几个 EC2 实例设置 CloudWatch,使用 AWS custom CloudWatch metrics。
一切正常,除了我的一个实例出现以下错误:
ubuntu@my-host:~$ /etc/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-util --disk-path=/ --aws-credential-file=/etc/aws-scripts-mon/awscreds.template
ERROR: Failed to call CloudWatch: HTTP 400. Message: Signature expired: 20150515T204709Z is now earlier than 20150515T204917Z (20150515T205417Z - 5 min.)
For more information, run 'mon-put-instance-data.pl --help'
我试过在 Internet 上搜索,包括 this link,但没有成功。有什么想法吗?
一个提示:我有一个 cron 作业每 5 分钟调用一次相同的命令。它也不成功。这可能与上述错误消息中的 x - 5 min.
消息位有关。
问题 EC2 实例的系统时间偏差了几分钟。参见 AWS SDK Error - Signature not yet current
这可能是解决方案!