I am Setting up AWS autoscaling, and while setting scaling policy i ran into this problem.
I wanted to use memory as a parameter, so i installed CLoudwatch's script for memory monitoring from below link.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html
When i use it for simple instance it works fine. but when i do it for autosacling with below command as suggested in above doc it gives error
Command
./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --auto-scaling=only
Error:
WARNING: The Auto Scaling metrics will not be reported this time.
when i check this error on internet few people said it may be error of instance-id in /var/tmp/aws-mon i checked that is not the issue.
Any help is appreciated.