Skip to content

Instantly share code, notes, and snippets.

View abg's full-sized avatar

Andrew Garner abg

  • VMware
  • San Antonio
View GitHub Profile
#!/usr/bin/python
"""
python-bottle based MySQL replication monitor.
Configuration can be specified via [server.*] and [bottle] directivesin /etc/rack_replmon/monitor.conf. The monitor will parse any entry thatbegins with ^server as directives for a server to scan
Valid [server.*] directives:
host, port, user, passwd
Valid [bottle] directives:
host, port
#!/usr/bin/python
import pyrax
import ConfigParser
import sys
import getopt
class Config(ConfigParser.ConfigParser):
def __getitems__(self, section):
try:
@abg
abg / gist:9626615
Last active August 29, 2015 13:57 — forked from zastari/gist:9509625
#!/usr/bin/python
import ConfigParser
import logging
import optparse
import sys
import pyrax
error = logging.error