Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Script unaware of all regions #108

Open
deathsfaction opened this issue Nov 29, 2019 · 0 comments
Open

Script unaware of all regions #108

deathsfaction opened this issue Nov 29, 2019 · 0 comments

Comments

@deathsfaction
Copy link

Have discovered that the RDS script doesn't show all DB instances in all zones. For example, I've recently added an instance in Canada and it doesn't appear to know this is a valid region. Additionally, having it list all instances only shows up 9 regions:

/usr/lib64/nagios/plugins/check_rds -r all -l
List of all DB instances in all region(s):
{'ap-northeast-1': [],
 'ap-southeast-1': [],
 'ap-southeast-2': [DBInstance:xxx],
 'eu-central-1': [],
 'eu-west-1': [DBInstance:xxxx, DBInstance:xxx],
 'sa-east-1': [],
 'us-east-1': [],
 'us-west-1': [],
 'us-west-2': []}

And if trying to query against an instance in Canada, using either ca-central-1 or ca-central-1a

/usr/lib64/nagios/plugins/check_rds -r ca-central-1 -i xxxxx -m status

Traceback (most recent call last):
  File "/usr/lib64/nagios/plugins/check_rds", line 399, in <module>
    main()
  File "/usr/lib64/nagios/plugins/check_rds", line 220, in main
    rds = RDS(region=options.region, profile=options.profile, identifier=options.ident)
  File "/usr/lib64/nagios/plugins/check_rds", line 49, in __init__
    self.info = rds.get_all_dbinstances(self.identifier)
AttributeError: 'NoneType' object has no attribute 'get_all_dbinstances'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant