GreenPages Blog

As an IT professional, you need to stay current on all things tech; with articles from industry experts and GreenPages' staff, you get the info you need to help your organization compete and succeed!

AWS – Monitoring the Memory of your Virtual Machine (AMI)

Posted by: GreenPages Blog
Read More
All Posts

AWS – Monitoring the Memory of your Virtual Machine (AMI)

Out of the box, AWS CloudWatch by default monitors 4 things:

  1. CPU
  2. Network
  3. Disk
  4. Status Checks

Can you tell which resource CloudWatch doesn’t monitor out of the box? Memory! (update:  According to AWS technical support “Right now, you do not need to deploy anything in you AMI to monitor your instance. Metrics like memory utilization and disk space require us to look into the OS running in the instance and that is why we do not have these valuable metrics.  We are looking at ways to provide more insight into your OS and applications and will have more details as we firm up the plans”).  Amazon provides 2 articles for doing this, one for most Linux flavors and another for Windows. This article is basically a walkthrough of the Linux article (since I know Windows and want to learn more Linux anyway).

  1. Create a CloudWatch role in IAM (if you don’t know how to do this see my previous article)
  2. Spin up a new Amazon Linux AMI instance using the new CloudWatch role in the IAM section of the instance creation (check out THIS article if you get stuck)
  3. SSH into your new instance & run the following command:
    1. sudo yum install perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https
    2. curl http://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.1.zip -O
    3. unzip CloudWatchMonitoringScripts-1.2.1.zip
    4. rm CloudWatchMonitoringScripts-1.2.1.zip
    5. cd aws-scripts-mon
  4. At this point you have downloaded and unzipped the Perl script necessary to make the remote calls to CloudWatch and installed the Perl bits needed to run said script.

 

To read the rest of Chris' post, click here!

 

By Chris Williams, Enterprise Consultant

 

Comments

Related Posts

Tech News Recap for the Week of 02/22/21

If you had a busy week and need to catch up, here’s our recap of tech stories you may have missed the week of 02/22/21!

New Mac Mystery Malware “Silver Sparrow” & New VMware (RCE) in vCenter!

By Randy Becker, CISO & VP, Network and Security Consulting There is a new form of malware (dubbed “Silver Sparrow” by Red Canary) that seems to be affecting Macs running Intel processors and Apple’s own M1 processors. It does not appear as though the malware has done anything nefarious, but as the saying goes, where there’s smoke there is often fire. VMware announces Remote Code Execution (RCE) vulnerability in the vCenter with a CVSSv3 base score of 9.8 CVE-2021-21972. This one looks ripe for exploitation as it is a RCE **AND** a 9.8 In addition to this, two others were found—all in the CVSSv3 range of 5.3-9.8.

Tech News Recap for the Week of 02/15/21

If you had a busy week and need to catch up, here’s our recap of tech stories you may have missed the week of 02/15/21!