Created
August 13, 2020 20:57
-
-
Save demyanovs/a6d962d496e21552e608576cc28101b4 to your computer and use it in GitHub Desktop.
AWS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
yum update -y | |
sudo yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA.x86_64 | |
cd /home/ec2-user/ | |
curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O | |
unzip CloudWatchMonitoringScripts-1.2.2.zip | |
rm -rf CloudWatchMonitoringScripts-1.2.2.zip | |
# Use the commands below for the lab. | |
# /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --verify --verbose | |
# /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail | |
# */1 * * * * root /home/ec2-user/aws-scripts-mon/mon-put-instance-data.pl --mem-util --mem-used --mem-avail |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment