Lab 10:To Configure Amazon Cloud Watch
Lab 10:To Configure Amazon Cloud Watch
Objective :To configure Cloudwatch to monitor cpu utilization
Topology:
Pre-Requites :
Task :
Creating alaram
Select Notification
Check mail to verify
1.To configure Amazon Cloudwatch service
Launch a amazon linux instance ,then
Open AWS console
Click on services
In the management Tools section
Click on cloudwatch
On "Cloud watch", panel
Select Alarms
Click on "Create Alarm" button
In " Create Alarm" page
Select "EC2 Metrics"
Click on "per instance metrics"
From "Create Alarm" page
select" 1.select metric"
In search box provide instance ID or Name
Under Metric Name,select CPU Utilization check box
Click on Next button
On create Alarm page
select "2.Define Alarm"
under Alarm Threshold
Name------------------>test cpu utilization
Description----------->cputest
under whenever cpu utilization
is >=30
for 1 consective periods
Drag Down
Under Action
Whenever this alarm-------------->state is alarm
Send notifications to------------------------------->Click on new list
Send notifications to------------------------------->cputopicabc
Email------------------------------------------------>adminabc@abc.com
click on " Create Alarm " button
Click on" I will do it later " button
Go to your Email account and Check the mail
once mail is been checked
config status-------------->Pending Confirmation
verify the link from your mail
open your Email
click on " Confirm Subscription "
verify by the output
After confirmation from Email Config status has become blank
Now login instance mobaterm
verify output
cpu status is 100% idle
Now check the status in another terminal -2 by running top command
#top
verify the output
CPU load is 100%
Go to cloud watch service
Check the Status
After 5 minutes alarm is generated
Go to email and check mail
click the mail
verify output






















Comments
Post a Comment