Page 1 of 2
Connecting to AWS EC2 Instances
Posted: Tue Dec 24, 2019 9:58 am
by userman73
I am trying to monitor instances of EC2 on my AWS account. It says "The Access Key ID of the instance to be monitored.", but the only "Access Key ID" I know about is the Access Key to make calls to the AWS CLI.
Re: Connecting to AWS EC2 Instances
Posted: Thu Dec 26, 2019 7:45 am
by scottwilkerson
userman73 wrote:I am trying to monitor instances of EC2 on my AWS account. It says "The Access Key ID of the instance to be monitored.", but the only "Access Key ID" I know about is the Access Key to make calls to the AWS CLI.
That is the Access Key ID it is referring to.
Re: Connecting to AWS EC2 Instances
Posted: Tue Jan 14, 2020 2:28 pm
by userman73
I fill in the information, but on the next page, I am presented with an empty table.
Re: Connecting to AWS EC2 Instances
Posted: Tue Jan 14, 2020 2:41 pm
by scottwilkerson
userman73 wrote:I fill in the information, but on the next page, I am presented with an empty table.
Before clicking next did you click the "Get Available Instances" in the blue box?
Re: Connecting to AWS EC2 Instances
Posted: Tue Jan 14, 2020 2:44 pm
by userman73
Yes, and it says "There were no instances found. Verify your AWS credentials and try again."
Re: Connecting to AWS EC2 Instances
Posted: Tue Jan 14, 2020 3:22 pm
by scottwilkerson
Hmm, are you sure you have valid access key and secret? Does this XI server have remote access to the Internet to reach AWS?
If so can you run the following from the command line and show the output (replacing ACCESSKEYID and SECRET)?
Code: Select all
/usr/local/nagios/libexec/check_ec2.py --getinstances --accesskeyid='ACCESSKEYID' --secretaccesskey='SECRET'
Re: Connecting to AWS EC2 Instances
Posted: Tue Jan 14, 2020 4:01 pm
by userman73
Re: Connecting to AWS EC2 Instances
Posted: Tue Jan 14, 2020 4:11 pm
by scottwilkerson
Look's like:
Code: Select all
AWS was not able to validate the provided access credentials
scottwilkerson wrote:Hmm, are you sure you have valid access key and secret?
scottwilkerson wrote:Does this XI server have remote access to the Internet to reach AWS?
Re: Connecting to AWS EC2 Instances
Posted: Wed Jan 15, 2020 6:50 am
by userman73
Yes and Yes.
Re: Connecting to AWS EC2 Instances
Posted: Wed Jan 15, 2020 4:05 pm
by scottwilkerson
Are you sure these keys have the ability to call the DescribeRegions AWS API Call?