简体   繁体   English

AWS CloudWatch - 签名已过期

[英]AWS CloudWatch — Signature Expired

I'm setting up CloudWatch for several of my EC2 instances, using AWS custom CloudWatch metrics . 我正在使用AWS自定义CloudWatch指标为我的几个EC2实例设置CloudWatch

Everything is going fine, except one of my instances gives me the below error: 一切都很顺利,除了我的一个实例给我以下错误:

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 ubuntu @ my-host:〜 $ /etc/aws-scripts-mon/mon-put-instance-data.pl --mem-util --disk-space-util --disk-path = / --aws-credential -file =的/ etc / AWS-脚本纹/ awscreds.template

ERROR: Failed to call CloudWatch: HTTP 400. Message: Signature expired: 20150515T204709Z is now earlier than 20150515T204917Z (20150515T205417Z - 5 min .) 错误:无法调用CloudWatch:HTTP 400.消息:签名已过期:20150515T204709Z现在早于20150515T204917Z(20150515T205417Z - 5分钟

For more information, run 'mon-put-instance-data.pl --help' 有关更多信息,请运行'mon-put-instance-data.pl --help'

I've tried searching around the Internet, including this link , but no luck. 我试过在互联网上搜索,包括这个链接 ,但没有运气。 Any ideas? 有任何想法吗?

One hint: I have a cron job invoking this same command every 5 minutes. 一个提示:我有一个cron作业每5分钟调用一次相同的命令。 It is also unsuccessful. 它也不成功。 That may be related to the x - 5 min. 这可能与x - 5 min. message bit in the above error message. 上述错误消息中的消息位。

The system time of the problem EC2 instance is off by several minutes. 问题EC2实例的系统时间关闭了几分钟。 See AWS SDK Error - Signature not yet current 请参阅AWS SDK错误 - 签名尚未确定

This is likely the solution! 这可能是解决方案!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM