|
|
@ -253,13 +253,13 @@ def InitCollector():
|
|
|
|
# @TODO : Validate the account & plan, insure preconditions are met/satisfied
|
|
|
|
# @TODO : Validate the account & plan, insure preconditions are met/satisfied
|
|
|
|
#
|
|
|
|
#
|
|
|
|
m = {'apps':'monitor.DetailProcess','folders':'monitor.FileWatch'}
|
|
|
|
m = {'apps':'monitor.DetailProcess','folders':'monitor.FileWatch'}
|
|
|
|
a = {'apps':'Apps','mailer':'Mailer','folders':'Folder'}
|
|
|
|
a = {'apps':'actor.Apps','mailer':'actor.Mailer','folders':'actor.Folder'}
|
|
|
|
lagents = []
|
|
|
|
lagents = []
|
|
|
|
lactors = []
|
|
|
|
lactors = []
|
|
|
|
for id in m :
|
|
|
|
for id in m :
|
|
|
|
if id in body :
|
|
|
|
if id in body :
|
|
|
|
agent = eval(m[id]+"()")
|
|
|
|
agent = eval(m[id]+"()")
|
|
|
|
actor = eval(m[id]+"()")
|
|
|
|
actor = eval(a[id]+"()")
|
|
|
|
args = body[id] if id in body else None
|
|
|
|
args = body[id] if id in body else None
|
|
|
|
if args is not None :
|
|
|
|
if args is not None :
|
|
|
|
agent.init(args)
|
|
|
|
agent.init(args)
|
|
|
@ -277,7 +277,7 @@ def InitCollector():
|
|
|
|
config['store']['args']['dbname'] = None #'monitor-logs'
|
|
|
|
config['store']['args']['dbname'] = None #'monitor-logs'
|
|
|
|
config['store']['args']['uid'] = key
|
|
|
|
config['store']['args']['uid'] = key
|
|
|
|
manager = Manager()
|
|
|
|
manager = Manager()
|
|
|
|
manager.init(actors = actors,agents=lagents,config=config,key=key,node=node) ;
|
|
|
|
manager.init(actors = lactors,agents=lagents,config=config,key=key,node=node) ;
|
|
|
|
r = [pickle.dumps(manager)]
|
|
|
|
r = [pickle.dumps(manager)]
|
|
|
|
except Exception,e:
|
|
|
|
except Exception,e:
|
|
|
|
print '***** ',e
|
|
|
|
print '***** ',e
|
|
|
|