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

Unable to get queue length for queues not in us-east-1 #11

Open
derektamsen opened this issue Jun 8, 2013 · 1 comment
Open

Unable to get queue length for queues not in us-east-1 #11

derektamsen opened this issue Jun 8, 2013 · 1 comment

Comments

@derektamsen
Copy link

The munin plugin tracebacks when trying to query the queue length for message queues outside the default region of us-east-1.

$ sudo munin-run aws_sqs_queue_length_test-queue-us-west-2
Traceback (most recent call last):
  File "/etc/munin/plugins/aws_sqs_queue_length_sg-test-queue", line 45, in <module>
    AWSSQSQueueLengthPlugin().run()
  File "/usr/lib/python2.6/site-packages/munin/__init__.py", line 50, in run
    values = self.execute()
  File "/etc/munin/plugins/aws_sqs_queue_length_sg-test-queue", line 41, in execute
    for qname in self.queues
  File "/etc/munin/plugins/aws_sqs_queue_length_sg-test-queue", line 41, in <genexpr>
    for qname in self.queues
AttributeError: 'NoneType' object has no attribute 'get_queue'
@derektamsen
Copy link
Author

Since the SQSConnection() method is being called the region is being set to the defaults in boto

class SQSConnection(AWSQueryConnection):
    ...
    DefaultRegionName = 'us-east-1'
    DefaultRegionEndpoint = 'sqs.us-east-1.amazonaws.com'
    ...

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

Successfully merging a pull request may close this issue.

1 participant