cloudwatch agent not starting

[cloud_user@ip-10-0-1-127 ~]$ sudo /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -c file:/opt/aws/amazon-cloudwatch-agent/bin/config.json -s


/opt/aws/amazon-cloudwatch-agent/bin/config-downloader --output-file /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json --download-source file:/opt/aws/amazon-cloudwatch-agent/bin/config.json --mode ec2 --config /opt/aws/amazon-cloudwatch-agent/etc/common-config.toml
Start configuration validation...
/opt/aws/amazon-cloudwatch-agent/bin/config-translator --input /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.json --output /opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.toml --mode ec2 --config /opt/aws/amazon-cloudwatch-agent/etc/common-config.toml
Invalid json format, please check. Reason: unexpected end of JSON input

2018/11/01 19:21:32 I! AmazonCloudWatchAgent Version 1.204682.0.
Configuration validation first phase failed. Agent version: 1.204682.0. Verify the JSON input is only using features supported by this version.

what seems to be the problem?

  • post-author-pic
    Adrian C
    11-01-2018

    Did you have any errors on the previous steps where you created that JSON file? ... the 'questions' step.

Looking For Team Training?

Learn More