# Path: amonagent/defaults.py
# SYSTEM_CHECK_PERIOD = config.get('system_check_period', 60)
# HOST = config.get('host', 'https://amon.cx')
# SERVER_KEY = config.get('server_key', None)
# 	PIDFILE = '/var/run/amonagent/amonagent.pid'
# 	PIDFILE = config.get('pidfile', '/var/run/amonagent.pid')
# LOGFILE = config.get("logfile", '/var/log/amonagent/amonagent.log')
# LOGGING_MAX_BYTES = 5 * 1024 * 1024
# DEFAULT_PLUGINS_PATH = '/etc/amonagent/plugins'
# CUSTOM_PLUGINS_PATH = config.get("custom_plugins_path")


from amonagent import defaults
	import json
	import simplejson as json


try:
except ImportError:

try:
	config_file = file('/etc/amon-agent.conf').read()
	config = json.loads(config_file)
except Exception, e:
	print "There was an error in your configuration file (/etc/amon-agent.conf)"
	raise e




class Settings(object):

	def __init__(self):
		# update this dict from the defaults dictionary (but only for ALL_CAPS settings)
		for setting in dir(defaults):
			if setting == setting.upper():

# Path: amonagent/defaults.py
# SYSTEM_CHECK_PERIOD = config.get('system_check_period', 60)
# HOST = config.get('host', 'https://amon.cx')
# SERVER_KEY = config.get('server_key', None)
# 	PIDFILE = '/var/run/amonagent/amonagent.pid'
# 	PIDFILE = config.get('pidfile', '/var/run/amonagent.pid')
# LOGFILE = config.get("logfile", '/var/log/amonagent/amonagent.log')
# LOGGING_MAX_BYTES = 5 * 1024 * 1024
# DEFAULT_PLUGINS_PATH = '/etc/amonagent/plugins'
# CUSTOM_PLUGINS_PATH = config.get("custom_plugins_path")


# Path: amonagent/settings.py
from amonagent import defaults
	import json
	import simplejson as json



try:
except ImportError:

try:
	config_file = file('/etc/amon-agent.conf').read()
	config = json.loads(config_file)
except Exception, e:
	print "There was an error in your configuration file (/etc/amon-agent.conf)"
	raise e




class Settings(object):

	def __init__(self):
		# update this dict from the defaults dictionary (but only for ALL_CAPS settings)
		for setting in dir(defaults):
			if setting == setting.upper():

				setattr(self, setting, getattr(defaults, setting))