Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon Cloudwatch Agent won't start

After installing Cloudwatch Agent on Amazon Linux 2 EC2, I ran cloudwatch-agent-ctl status

This command shows the status as stopped

I tried running 'cloudwatch-agent-ctl status` and got the following message:

cwagent-otel-collector will not be started "as it has not been configured yet"

Am not sure if the above message is causing CWAgent to not start. Any pointers?

Any pointers on how to find why my CWAgent won't start?

like image 798
Biju Avatar asked Sep 01 '25 20:09

Biju


1 Answers

Before you can start your CW agent, you must configure it. From docs:

Before running the CloudWatch agent on any servers, you must create a CloudWatch agent configuration file.

You can follow the docs how to setup the config files, before running the agent.

like image 187
Marcin Avatar answered Sep 03 '25 11:09

Marcin