Skip to content

Instantly share code, notes, and snippets.

View rodmur's full-sized avatar

Dale Harris rodmur

View GitHub Profile
@rodmur
rodmur / check_elb_healthy_hosts.py
Last active August 29, 2015 14:26 — forked from scoates/check_elb_healthy_hosts.py
Nagios plugin to monitor AWS/EC2 Elastic Load Balancers for healthy hosts
#!/usr/bin/env python
"""
A nagios plugin for ensuring that load balancers have at least a certain
number of healthy nodes.
Usage:
Nagios Command:
define command {
command_name check_elb_healthy_hosts
#!/usr/bin/ruby
require 'rubygems'
require 'hipchat-api'
require 'getopt/long'
require 'socket'
require 'erb'
#Do not modify these constants! (after you set these up, of course)
HipApiKey='ABCDEFGHKJHKJHKJHKJH'
Room='Nagios'