import optparse
-from collecty import Collecty
+import collecty
-c = Collecty()
+c = collecty.Collecty()
# Parse command line options
op = optparse.OptionParser(usage="usage: %prog [options] <configfile1> ... <configfileN>")
op.add_option("-d", "--daemon", action="store_true", default=False,
help="Run as a daemon in background.")
-
(options, configfiles) = op.parse_args()
if configfiles:
for file in configfiles:
c.read_config(file)
else:
+ # Load default config file
c.read_config("/etc/collecty/collecty.conf")
if not c.instances: