SSM agent syslog errors

0

New EC2 Ubuntu 18.04 AMI with IAM role AmazonSSMManagedInstanceCore attached. Seeing the following in syslog:

Aug  2 15:42:00 www amazon-ssm-agent.amazon-ssm-agent\[929]: Error occurred fetching the seelog config file path:  open /etc/amazon/ssm/seelog.xml: no such file or directory  
Aug  2 15:42:00 www amazon-ssm-agent.amazon-ssm-agent\[929]: 2019-08-02 15:42:00 ERROR Error adding the directory to watcher: no such file or directory  

Should there be an /etc/amazon/ directory in the system? There currently isn't. Have tried rebooting system and restarting amazon-ssm-agent.

질문됨 5년 전1940회 조회
1개 답변
0

Hi,
I solved doing these steps

#mkdir /tmp/ssm
#systemctl stop snap.amazon-ssm-agent.amazon-ssm-agent.service
#systemctl start snap.amazon-ssm-agent.amazon-ssm-agent.service

And check you have activity in the log file tail -f /var/log/amazon/ssm/amazon-ssm-agent.log

If you are not sure, using console go to AWS System Manager --> Managed Instances and check it.

Regards.

답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠