Create Cloudwatch Cluster Ang Get Data
Create Cloudwatch Cluster Ang Get Data
In This article we are going to discuss about the cloud watch and how to set monitaring using perl
script you can check cpu utlization default but you cann’t check memroy usages and other services
let’s start
Step -1
For Monitaring scripts used in perl script for this purpose you need to install perl package on your
ec2 instance using following command you can install perl package , Firstly update package and
install
If you didn’t have the unzip package you need to install unzip package
For ubuntu:
apt-get update
apt-get install unzip
For RHEL
sudo yum install zip unzip
For SUSE
rm CloudWatchMonitoringScripts-1.2.1.zip
add
AWSAccessKeyId=AKIA2544XUKRHWRL54IT
AWSSecretKey=3x4mp13/5Pdc2z83wOK1XDMPI/sGGlo+NyBM4fI
save this file using Ctrl + o and enter then Ctrl + x to save and exit
Testing:
Run the command for testing
./mon-put-instance-data.pl --mem-util --mem-used --disk-path=/ --disk-space-
util --disk-space-avail --verify --verbose
How to setup cloudwatch and how to see memroy usage ,memroy availble
and cpu utilazation on one dashboard
CRON setup
Add all script in the cron and automate transfer data to the cloudwatch
crontab -e
now,add the script and set minute means check automatically data transfer to the cloud
and add the scripts and save using Ctrl + o then Enter and exit using Ctrl + z