def run(self): c = 0 while True: poll_info = self._poll() content = time.asctime(time.localtime()) + '\n' for item in poll_info: content += '++++%s: %s\n' %(item, str(poll_info[item])) content += '----------------------------\n\n' util.append_file(content, MonitorManager._logfile) time.sleep(MonitorManager._intvl) c = c + 1
def run(self): c = 0 while True: poll_info = self._poll() content = time.asctime(time.localtime()) + '\n' for item in poll_info: content += '++++%s: %s\n' % (item, str(poll_info[item])) content += '----------------------------\n\n' util.append_file(content, MonitorManager._logfile) time.sleep(MonitorManager._intvl) c = c + 1
def append_history(self, hv): util.append_file(self.path_head_history, hv + "\n")
def append_history(self, hv): util.append_file(self.path_head_history, hv+"\n")