Пример #1
0
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
Пример #2
0
 def __init__(self):
     super().__init__()
     self.object_list.append(SystemInfo.SystemInfo())
     self.object_list.append(SystemInfo.ServiceInfo())
Пример #3
0
 def __init__(self):
     self.dir_check = Filestat.DirCheck()
     self.system_info = SystemInfo.SystemInfo()