Simple python script to check some rules against a bunch of AWS EC2 instances behind an Amazon ELB.
virtualenvwrapper friendly.
Work in progress.
How to use:
-
Clone this repo
$ git clone http://github.com/davividal/healthchecker && cd healthchecker
-
Install its dependencies
$ pip install -r requirements.txt
-
Add to your sudoers:
cat <<EOF | sudo tee /etc/sudoers.d/healthchecker $USERNAME ALL=(ALL) NOPASSWD: $PWD/puppet/puppet_wrapper.sh EOF
-
Define your rules at
rules.d/your_awesome_rules.yaml
-
Execute it:
$ python healthchecker.py [your_awesome_rules]