def deBugOutPut(): pids = psutil.pids() systemInfo.getMemInfo(pids) print systemInfo.processInfo_mem if __name__ == '__main__': # config setter config = Configure.Configure('./config.xml') # log file logFileName = time.strftime('%Y-%m-%d', time.localtime(time.time())) logger = Loger.Loger('Monitor-' + logFileName + '.log') # system info get systemInfo = SystemInfo.SystemInfo(pids=None, processName=None) # alert center alertcenter = Alert.Alert() # process names processNames = [] # email info mailInfo = None receiver = [] # alert limit define # region # alert limit configure
def __init__(self): super().__init__() self.object_list.append(SystemInfo.SystemInfo()) self.object_list.append(SystemInfo.ServiceInfo())
def __init__(self): self.dir_check = Filestat.DirCheck() self.system_info = SystemInfo.SystemInfo()