I am trying to configure aws cloudwatch
script for monitoring memory etc. While executing the script we get below error and I upgraded the perl
package the LWP version is also latest as 6 but still script is failing with below error.
I tried setting env variables as PERL_LWP_ENV_PROXY=1
and PERL_LWP_SSL_VERIFY_HOSTNAME=0
but still failing. Please help on this.
[ec2-user@ip-10-175-82-195 aws-scripts-mon]$ sudo ./mon-put-instance-data.pl --mem-util --mem-used --mem-avail --aws-credential-file=./awscreds.template
ERROR: Failed to call CloudWatch: HTTP 500. Message: Can't connect to monitoring.ap-southeast-1.amazonaws.com:443 (timeout)
LWP::Protocol::https::Socket: connect: timeout at /usr/local/share/perl5/LWP/Protocol/http.pm line 47.
For more information, run 'mon-put-instance-data.pl --help'