Ad Widget

Collapse

Auto Discovery of MySQL DBs in an Auto Discovered hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • high-t
    Member
    • Dec 2014
    • 68

    #1

    Auto Discovery of MySQL DBs in an Auto Discovered hosts

    I'm trying to discover the list of MySQL DBs in an Auto Discovered RDS instances.
    Discovering the instances is rather easy: I'm running an AWS CLI command:
    Code:
    aws rds describe-db-instances
    and the result is a JSON containing the list of RDS instances. So far so good.
    Then, next, I'd like to get the list of DBs inside each RDS instance (equivalent to a server host). For that I need another auto discovery rule, but this time it needs to use the list of LLD hosts discovered at the previous discovery rule, so in essence, one discovery rule needs to rely on another discovery rule.

    I am aware that I can easily write a BASH of PYTHON script to do just that, but then it means that this scripts needs to be deployed to the servers running that discovery, and I'd like to use a system.run rather than manage scripts and deploy it.

    Any ideas will be highly appreciate.

    Thank you
    Amit.
Working...