Thursday, 15 December 2016

Installing AWS Inspector Agent on EC2 Hosts

Installing AWS inspector Agent on EC2 Hosts



1. wget https://d1wk0tztpsntt1.cloudfront.net/linux/latest/install

2. sudo bash install

Installed:
  AwsAgent.x86_64 0:1.0.578.0-100578

Complete!
HTTP/1.1 200 OK

3. to stop :
sudo /etc/init.d/awsagent stop

4. to start :
sudo /etc/init.d/awsagent start
configuration file /opt/aws/awsagent/etc/agent.cfg

to check the status
sudo /opt/aws/awsagent/bin/awsagent status



Known issues:

[ec2-user@*********~]$ sudo bash install
install: line 9: class: command not found
install: line 11: syntax error near unexpected token `('
install: line 11: ` undef_method m unless m =~ /(^__|^send$|^object_id$)/'


Solution:  Make sure to move all the existing files: install* and then download using wget as seen above in step1.