Ejemplo n.º 1
0
    def Invoked(self):
        log.debug("Collector -  OS - Base - Invoked Thread")
        get_os = GetOS(CONS_COLLECT_FOR["INVOKED"])
        get_os.collect()

        log.debug("Collector -  DB - Base - Invoked Thread")
        get_db = GetDB(CONS_COLLECT_FOR["INVOKED"])
        get_db.collect()

        log.debug("Collector -  Net - Base - Invoked Thread")
        get_net = GetNet(CONS_COLLECT_FOR["INVOKED"])
        get_net.collect()

        self.sendData(CACHE_FILE_INVOKED)
Ejemplo n.º 2
0
    def Continuous(self):
        log.debug("Collector -  DB - Base - Continuos Thread")
        get_db = GetDB(CONS_COLLECT_FOR["CONTINUOUS"])
        get_db.collect()

        log.debug("Collector -  OS - Base - Continuos Thread")
        get_os = GetOS(CONS_COLLECT_FOR["CONTINUOUS"])
        get_os.collect()

        log.debug("Collector -  Net - Base - Continuos Thread")
        get_net = GetNet(CONS_COLLECT_FOR["CONTINUOUS"])
        get_net.collect()

        #Send data
        self.sendData(CACHE_FILE_CONTINUOUS)
        pass
        #from lib.collector.OScollector_CRITICAL import *
        #from lib.collector.DBcollector_CRITICAL import *