Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check-sqs-messages.rb only 1 AWS credential allowed to add to monitor sqs count why not multiple #379

Open
akashkant-tech opened this issue Apr 7, 2020 · 4 comments

Comments

@akashkant-tech
Copy link

akashkant-tech commented Apr 7, 2020

Hi,
I've found a issue in plugin, In /opt/sensu/.aws/credentials only 1 AWS region credentials can be added. Which limits the use of different region based different credentials for different sqs queues monitoring. Kindly add an option in check-sqs-messages.rb to select which credentials are needed to be selected from /opt/sensu/.aws/credentials for the desired check to work. Right now it takes only 1 credential entry i.e only 1 aws_access_key_id and aws_secret_access_key where we can't add other/different region monitoring

Please provide some help regarding that I'm using it monitoring all our micro services queue count.
Thanks

@akashkant-tech
Copy link
Author

@rwha @majormoses any insight will be grateful

@rwha
Copy link
Contributor

rwha commented May 12, 2020

Try adding /opt/sensu/.aws/config with profiles defined for each region, e.g.:

[profile one]
region = us-west-1

[profile two]
region = us-west-2

And define the credentials in the credentials file with for each profile (instead of [default] you would need sections for each of the profiles, like [one]).

Then define the command as AWS_PROFILE=one check-sqs-message.rb ...

I don't think these plugins are being maintained anymore now that sensu-core is EOL.

@akashkant-tech
Copy link
Author

@rwha I tried that, changed [default] profile in both` ~/.aws/config and ~/.aws/credential and it's working fine.
Accepting queue's from multiple profile. Thanks a lot for your help! :)

@majormoses
Copy link
Member

majormoses commented Sep 27, 2020

These plugins can be used with sensu-(ruby|core|go) and are still maintained as much as the community is able to. We welcome any contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants