Page 1 of 1

Amazon EC2 and S3 configuration plugin

Posted: Mon Sep 17, 2018 2:25 pm
by singletrack
Hello,

We are running the latest version of XI (5.5.3) and when attempting to run the Amazon EC2 configuration plugin, an error is thrown regarding boto3.

I have ensured boto3 is indeed installed on the XI server. The error persists. Is there any documentation on this configuration plugin on how to configure it and set it up correctly? What IAM users need to be created to perform this monitoring etc.?

Configuration Wizard: Amazon EC2 - Step 1
No address specified.
Specify either an Access Key ID or a static credentials file.
Specify either a Secret Access Key or a static credentials file.
Specify either a region or a static configuration file.
No instance ID specified.

Error: It looks like you are missing boto3 on your Nagios XI server.

To use this wizard you must install boto3 on your server. If you are using CentOS or RHEL you can run:

pip install boto3

Any information on this would be helpful.
Thanks

Re: Amazon EC2 and S3 configuration plugin

Posted: Mon Sep 17, 2018 2:39 pm
by scottwilkerson
Did you run the following on the server?

Code: Select all

pip install boto3
also, you error you posted shows the following, did you add these in the wizard?
No address specified.
Specify either an Access Key ID or a static credentials file.
Specify either a Secret Access Key or a static credentials file.
Specify either a region or a static configuration file.
No instance ID specified.
The IAM user is going to need at a minimum CloudWatchReadOnlyAccess permissions.

Re: Amazon EC2 and S3 configuration plugin

Posted: Mon Sep 17, 2018 3:44 pm
by singletrack
Yes, boto3 is installed as stated in the initial post.

pip install --upgrade boto3
Requirement already up-to-date: boto3 in /usr/lib/python2.7/site-packages (1.9.4)

The configuration messages are presented when I hit "Next", ignoring the Boto3 error.

This is new functionality that has been released, but I am struggling to find the documentation on what needs to be done to utilize it.

Credential files are used with aws cli, which is already working on my server without issue. I will continue to search for release notes or documentation regarding this config wizard.

Re: Amazon EC2 and S3 configuration plugin

Posted: Mon Sep 17, 2018 4:22 pm
by scottwilkerson
It would be best if we can do a quick remote to see why apache cannot run the command that is testing for the boto3 addon.

Can you open a ticket here, reference this thread and we can setup a quick remote session to help debug the issue.
https://support.nagios.com/tickets/

Thanks

Re: Amazon EC2 and S3 configuration plugin

Posted: Tue Sep 18, 2018 3:12 pm
by scottwilkerson
Just wanted to touch this thread with the outcome. OP had one of the dependencies for boto3 installed however if was only accessible by root.

We copied it to the site-packages directory and it worked successfully.