Тёмный

AWS CloudWatch agent Troubleshooting 

Cloudperceptor
Подписаться 587
Просмотров 1,2 тыс.
50% 1

AWS CloudWatch agent Troubleshooting
1) Check if Agent is running on EC2
2) Port 443 is open in EC2 Security Group
3) Check if CloudWatchAgentServerPolicy is attached to EC2
Commands:
1. Bootstrap script:
#!/bin/bash
yum update -y
2. Install the CloudWatch Agent:
sudo yum install amazon-cloudwatch-agent -y
3. Configure the CloudWatch agent:
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-config-wizard
*** Say no to monitoring CollectD ***
*** Monitor /var/log/messages ***
4. cd /opt/aws/amazon-cloudwatch-agent/bin
/opt/aws/amazon-cloudwatch-agent/bin/config.json is the config file
5. Start the CloudWatch Agent
sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json
6. Generate some activity on our system by installing stress - it’s in the Extra Packages for Enterprise Linux (EPEL) repository, so first we'll install the epel repository, then we'll install stress:
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
stress --cpu 1

Наука

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
Далее
Unified CloudWatch Agent Tutorial - 1/2
10:41
Просмотров 14 тыс.
Fix AWS EC2 Booting Issues with incorrect fstab entries
21:33
AWS Cloudwatch Alarm Setup Tutorial | Step by Step
16:54
Cloudwatch logs from EC2 Instance, Ubuntu
18:03
Просмотров 6 тыс.
Cloud watch EC2 Alarms CPU, Memory & Disk
23:29
Просмотров 9 тыс.