Example #1
0
 def __init__(self, dbname=None, store=None, **kwargs):
     NessusBackendPlugin.__init__(self)
     if dbname is not None:
         self.dbname = dbname
     if store is not None:
         self.store = store
     self.dbclient = MongoClient(**kwargs)
     self.collection = self.dbclient[self.dbname][self.store]
Example #2
0
 def __init__(self, dbname=None, store=None, **kwargs):
     NessusBackendPlugin.__init__(self)
     if dbname is not None:
         self.dbname = dbname
     if store is not None:
         self.store = store
     self.dbclient = MongoClient(**kwargs)
     self.collection = self.dbclient[self.dbname][self.store]
Example #3
0
 def __init__(self, dbname=None, store=None, **kwargs):
     NessusBackendPlugin.__init__(self)
     try:
         self.dbname = "nessus"
         self.store = "reports"
         self.index = "{db}_{store}".format(db=self.dbname, store=self.store)
         self.es = Elasticsearch(**kwargs)
         self.es.indices.create(index=self.index, ignore=400)
     except:
         raise
Example #4
0
 def __init__(self, dbname=None, store=None, **kwargs):
     NessusBackendPlugin.__init__(self)
     try:
         self.dbname = 'nessus'
         self.store = 'reports'
         self.index = "{db}_{store}".format(db=self.dbname,
                                            store=self.store)
         self.es = Elasticsearch(**kwargs)
         self.es.indices.create(index=self.index, ignore=400)
     except:
         raise