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

Script unaware of all regions #108

Open
@deathsfaction

Description

@deathsfaction

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions