If you are installing monitoring scripts for cloudwatch agent.
These are the steps needed for Ubuntu
- Install required Packages
sudo apt-get install unzip
sudo apt-get install libwww-perl libdatetime-perl
This might be the command you missed to execute, this will install the required perl packages
- Download monitoring scripts
curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O
- Extract the files
unzip CloudWatchMonitoringScripts-1.2.2.zip && \
rm CloudWatchMonitoringScripts-1.2.2.zip && \
cd aws-scripts-mon
Do the IAM role configuration for your instance or create awscreds.conf
file with your credentials
Do a test run
./mon-put-instance-data.pl --mem-util --verify --verbose