Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 660 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 660 Bytes

Health Checker

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:

  1. Clone this repo

    $ git clone http://github.com/davividal/healthchecker && cd healthchecker
    
  2. Install its dependencies

    $ pip install -r requirements.txt
    
  3. Add to your sudoers:

    cat <<EOF | sudo tee /etc/sudoers.d/healthchecker
    $USERNAME  ALL=(ALL) NOPASSWD: $PWD/puppet/puppet_wrapper.sh
    EOF
  4. Define your rules at rules.d/your_awesome_rules.yaml

  5. Execute it:

    $ python healthchecker.py [your_awesome_rules]